body {
    /* font-family: Noto Sans TC, "微軟正黑體", sans-serif; */
    font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif;
    font-size: 1.14286rem;
    color: #333333;
}

html {
    scroll-behavior: smooth;
}

p {
    color: #424242;
    line-height: 1.8;
}

a:hover {
    text-decoration: none;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.h7,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Noto Sans TC, "微軟正黑體", sans-serif;
}


.g-bg-green-2 {
    background-color: #D9E6BD;
}

/*上橫幅  start*/
@media(max-width: 1300px) {
    .navbar-brand img {
        width: 250px;
    }
}

.navbar-brand img {
    width: 250px;
}



@media (max-width: 1300px) {
    .navbar-brand img {
        width: 220px;
    }
}

@media (max-width: 350px) {
    .navbar-brand img {
        width: 180px;
    }
}



.dropdown-menu {
    font-size: 15px;
}

.u-heading-v3__title {
    font-size: 24px;
    font-weight: 700;
}

@media (min-width: 1200px) {
    .navbar-expand-xl .navbar-nav .nav-link {
        font-size: 15px;
        padding-right: .35rem;
        padding-left: .35rem;
    }
}

.dropdown-item {
    font-size: 1.1rem;
    padding: .5rem 1.5rem;
    /* font-family: 'Noto Serif TC', serif; */
    font-weight: bold;
}

.navbar-light .navbar-nav .nav-link {
    color: rgba(0, 0, 0, .7);
    /* font-family: 'Noto Serif TC', serif; */
    font-weight: bold;
    font-size: 1.1rem;
}

.dropdown-toggle::after {
    margin-left: 0.2rem;
}

.dropdown-item:focus,
.dropdown-item:hover {
    background-color: transparent;
    color: #007642;
    padding-left: 2rem;
    transition: 0.3s;
}

/*上橫幅 end*/

/*選單按鈕 start*/
.hamburger-inner,
.hamburger-inner::after,
.hamburger-inner::before {
    height: 1px;
}

/*選單按鈕 end*/



/* .u-heading-v3-1 .index-more{
    position: relative;
    top:4px;
} */
.table-bordered {
    border: 1px solid #333333;
}

.table-bordered td,
.table-bordered th {
    border: 1px solid #333333;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #333333;
}

.signup-check-iframe {
    font-size: 15px;
    height: 400px;
    overflow: scroll;
    border: 1px solid #bdbdbd;
    padding: 10px;
    margin-bottom: 10px;
    color: #333;
}

.mid-banner {
    background-repeat: repeat-y;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
}

/* 客戶 */

/*  marquee */
.marquee-1 {
    background-color: #06348a;
    color: #fff;
    padding: 6px 0;
}

.marquee-1 .marquee,
.marquee-2 .marquee {
    width: 100%;
    overflow: hidden;
}

.marquee-1 .marquee span,
.marquee-2 .marquee span {
    /* background-color: #004bd6; */
    background-color: #d60000;
    padding: 5px;
    margin-right: 10px;
    color: #fff;
}

.marquee-1 .marquee a,
.marquee-1 .marquee a {
    margin-right: 30px;
    color: #fff;
}

/* icon */
.brd-right-dot {
    border-right: 1px solid rgba(182, 182, 182, 0.705);
}

/* message tab */
[data-tab-content] {
    display: none;
}

.active[data-tab-content] {
    display: block;
}


.tabs {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    /* -ms-flex-pack: distribute; */
    /* justify-content: space-around; */
    list-style-type: none;
    margin: 0;
    padding: 0;
    /* border-bottom: 1px solid black; */
}


/* product */
.gallery-single {
    margin-bottom: 30px;
}

.gallery-single {
    position: relative;
    overflow: hidden;
    -webkit-box-shadow: 0 0 10px #ccc;
    box-shadow: 0 0 10px #ccc;
}

.why-text {
    position: absolute;
    left: 0;
    bottom: -100%;
    right: 0;
    height: 100%;
    background: rgba(116, 116, 116, 0.8);
    padding: 12px 12px;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}

.why-text h4 {
    color: #ffffff;
    font-size: 1.5em;
    font-weight: 600;
    padding-top: 1em;
    font-family: 'Rubik', sans-serif;
}

.why-text p {
    color: #ffffff;
    font-size: 1em;
    margin: 0px;
    padding-bottom: 15px;
    margin-top: 0px;
    margin-bottom: 15px;
}

.why-text a {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    border-radius: 28px;
    border: 2px solid #fff;
    padding: .8em 1.5em;
    text-decoration: none;
}

.gallery-single:hover .why-text {
    bottom: 0px;
}






.link_btn {
    text-decoration: none;
    letter-spacing: -.015em;
    font-size: 1em;
    padding: 0.5em 1em;
    color: #114364;
    background: transparent;
    font-weight: bold;
    -webkit-transition: all 0.25s linear;
    transition: all 0.25s linear;
    border: 1px solid #114364;
}

.link_btn:after {
    content: "\276f";
    padding: .5em;
    position: relative;
    right: 0;
    -webkit-transition: all 0.15s linear;
    transition: all 0.15s linear;
}

.link_btn:hover {
    border: 1px solid #114364;
    background: #114364;
    color: #fff;
}

.link_btn:hover,
.link_btn:focus,
.link_btn:active {
    background: #114364;
}

.link_btn:hover:after,
.link_btn:focus:after,
.link_btn:active:after {
    right: -10px;
}

.shadow-3:hover {

    box-shadow: rgba(0, 0, 0, 0.2) 0 5px 15px;
    -webkit-transition: all 0.3s cubic-bezier(0, .99, .44, .99);
    -moz-transition: all 0.3s cubic-bezier(0, .99, .44, .99);
    -o-transition: all 0.3s cubic-bezier(0, .99, .44, .99);
    -ms-transition: all 0.3s cubic-bezier(0, .99, .44, .99);
    transition: all 0.3s cubic-bezier(0, .99, .44, .99);

}

/* hitproduct */
.blockProduct {
    width: 100%;
    height: 216px;
    /* margin: 5px; */
    position: relative;
    overflow: hidden;
    box-shadow: 2px 2px 5px 2px rgba(17, 17, 17, 0.425);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-size: cover;
    border-radius: 6px;
}

.overlayProduct {
    z-index: 5;
    width: 80%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transform: rotate(45deg) scaleY(2) scaleX(0);
    transition: all 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: #3179ff 2px solid;
    border-right: #035afa 2px solid;
}

.blockProduct:hover .overlayProduct {
    transform: rotate(45deg) scaleY(2) scaleX(1);
}

.blockProduct--text {
    position: absolute;
    top: 25%;
    width: 100%;
    height: 100%;
    padding: 20px;
    color: antiquewhite;
    transform-origin: bottom center;
    transition: all 300ms ease-in;
    z-index: 100;
    opacity: 0;
    transition: all 300ms 200ms ease-in;
}

.blockProduct:hover .blockProduct--text {
    opacity: 1;
}

.textProduct--head {
    text-align: center;
    font-weight: 600;
    letter-spacing: 2px;
    padding-bottom: 2px;
    font-size: 2rem;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 2px 2px #333333;
}


@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
        width: 100% !important;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    td {
        border: none;
        position: relative;
    }

    table img,
    .g-bg-white img {
        max-width: 100% !important;
        height: auto !important;
        /* margin: 0 !important; */
    }

    table tbody tr td span span strong,
    table tbody tr td h2 span strong {
        display: block !important;
        width: 100% !important;
        font-size: 1.2rem !important;
    }
}

.yt {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.yt iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.modal-backdrop.show {
    opacity: .7;
}

.only-two-line {
    overflow: hidden;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* QA */

details {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    transition: 0.5s;
}

summary {
    padding: .5rem;
    display: block;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* summary:before {
    content: "";
    border-width: 0.4rem;
    border-style: solid;
    border-color: transparent transparent transparent #333;
    position: absolute;
    top: 1.3rem;
    left: 1rem;
    transform: rotate(0);
    transform-origin: 0.2rem 50%;
    transition: 0.25s transform ease;
  }
  
  details[open] > summary:before {
    transform: rotate(90deg);
  }
  
  details summary::-webkit-details-marker {
    display: none;
  }
  
  details > ul {
    padding-bottom: 1rem;
    margin-bottom: 0;
  } */


summary::before,
summary::after {
    width: 0.75em;
    height: 1px;
    position: absolute;
    top: 50%;
    right: 20px;
    content: "";
    background-color: currentColor;
    text-align: right;
    transform: translateY(-50%);
    transition: transform 0.2s ease-in-out;
}

summary::after {
    transform: translateY(-50%) rotate(90deg);
}

[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

[open] summary {
    color: #007642 !important;
}

summary::-webkit-details-marker {
    display: none;
}

details p {
    margin: 0 0 1em 1.5em;
    line-height: 1.5;
    color: #676666;
    font-size: 1.1rem;
}

details[open] summary~* {
    animation: open 0.3s ease-in-out;
}

@keyframes open {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

details[open] p {
    border-left: 2px solid #007642;
    opacity: 100;
    transition: all 3s ease;
}

#loading-bg {
    position: fixed;
    z-index: 9999;
    background-color: #fff;
    width: 100vw;
    height: 100vh;
}

/* 預設 navbar 外觀 */
.navbar {
    transition: background-color 0.3s ease;
    z-index: 1000;
}

/* 桌機版專用 */
@media (min-width: 1200px) {
    .navbar.fixed-top-desktop {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        background-color: rgba(255, 255, 255, 0);
        /* 初始半透明 */
        z-index: 1000;
        transition: background-color 0.3s ease;
    }

    .navbar.fixed-top-desktop.scrolled {
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        /* 可選陰影 */
    }
}

/* 基本樣式 */
.navbar-nav .nav-link {
    position: relative;
    /* display: inline-block;
    padding: 0.5rem 1rem;
    color: #333;
    font-weight: 600; */
    text-decoration: none;
    transition: color 0.3s ease;
}

/* 底線動畫效果 */
.navbar-nav .nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0%;
    background-color: #007642;
    /* 可改為品牌色 */
    transition: width 0.4s ease;
}

.navbar-nav .nav-link:hover {
    color: #007642;
    /* 滑入時變色 */
}

.navbar-nav .nav-link:hover::before {
    width: 100%;
}

.ms-nav-next,
.ms-nav-prev {
    background: none !important;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 50%;
    border: 1px solid #ffffff70;
    transform: translateY(-50%);
    color: #fff;
    transition: all 0.3s ease;
}

.ms-nav-next::before,
.ms-nav-prev::before {
    content: "\f105";
    /* FontAwesome 'angle-right' */
    font-family: FontAwesome;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    transition: all 0.3s ease;
}

/* 左箭頭改為 < */
.ms-nav-prev::before {
    content: "\f104";
    /* angle-left */
}

.ms-nav-next:hover,
.ms-nav-prev:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    color: #333;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.ms-bullets {
    bottom: 1rem !important;
    /* 可調整整組 bullet 的位置 */
}

.ms-bullet {
    width: 9px !important;
    height: 9px !important;
    background: linear-gradient(to right, #ccc, #ddd) !important;
    border-radius: 50px;
    margin: 0 6px;
    opacity: 0.5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease-in-out;
    border: none !important;
}

.ms-bullet:hover {
    background: linear-gradient(to right, #fff, #eee) !important;
    opacity: 1;
    transform: scale(1.1);
}

.ms-bullet-selected {
    width: 30px !important;
    background: #fff !important;
    opacity: 1;
    /* box-shadow: 0 0 6px rgba(136, 51, 48, 0.5); */
}


footer {
    background-image: url("/images/footer-bg.jpg");
}

.ms-view {
    background: #ccc !important;
}

.logo-white {
    filter: invert(1) brightness(200%) drop-shadow(0 0 3px rgba(0, 0, 0, 0.2));
    transition: filter 0.3s ease !important;
}

.navbar-link-white {
    color: white !important;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.ms-skin-light-3 .ms-bullets.ms-dir-h {
    width: auto !important;
}

.main-title {
    position: relative;
    /* text-align: center; */
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.main-title .tw {
    color: #333;
    /* position: absolute; */
    top: 50%;
    left: 50%;
    font-size: 2rem;
    font-weight: bold;
    /* font-family: 'Noto Serif TC', serif; */
}

.tit01 {
    position: relative;
}

.main-title .tit01::after {
    content: "";
    display: block;
    width: 1px;
    height: 5.6rem;
    background-color: #007642;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}


.main-title .en {
    color: #007642;
    font-size: 25px;
    font-family: 'Noto Serif TC', serif;
    font-style: italic;
}

.video-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* 半透明黑色 */
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.overlay-content {
    color: white;
    z-index: 3;
}

.overlay-content h1 {
    font-size: 2.5rem;
    line-height: 1.4;
    margin-bottom: 1em;
    font-family: 'Noto Serif TC', serif;
    font-weight: bolder;
}

.cta-button {
    display: inline-block;
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 0.8em 2em;
    text-decoration: none !important;
    font-weight: bold;
    border-radius: 0;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.3s;
    font-family: 'Noto Serif TC', serif;
    margin-top: 4.2rem;
}

.cta-button:hover {
    background-color: #fff;
    color: #007642;
}

.btn-three {
    display: inline-block;
    color: #FFF;
    padding: 0.6em 2em;
    transition: all 0.5s;
    position: relative;
    font-size: 1.1rem;
    height: 45px;
    width: 180px;
    margin-top: 4.2rem;
    letter-spacing: 1px;
    font-family: 'Noto Serif TC', serif;
    text-decoration: none !important;
}

.btn-three:hover {
    color: #FFF !important;
}

.btn-three::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.btn-three:hover::before {
    opacity: 0;
    transform: scale(0.5, 0.5);
}

.btn-three::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: scale(1.2, 1.2);
}

.btn-three:hover::after {
    opacity: 1;
    transform: scale(1, 1);
}

/* === RWD 手機適配 === */
@media (max-width: 768px) {
    .overlay-content h1 {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.6em 1.5em;
        font-size: 1rem;
    }
}



@media (min-width: 992px) {
    .main-title.straight {
        -webkit-writing-mode: vertical-lr;
        -ms-writing-mode: tb-lr;
        writing-mode: vertical-lr;
        margin-bottom: 0;
    }

    .main-title.straight .tw {
        top: 0;
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}

.dealer-section {
    padding: 6rem 1.25rem;
    /* background: #f0f3f7; */
    background: url("/images/wall01.png") #f7f7f7 repeat;
    animation: fadeInUp 0.8s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.owl-nav {
    display: none !important;
}


.gototop {
    position: fixed;
    right: 1.5rem;
    bottom: 1rem;
    width: 3rem;
    height: 3rem;
    text-align: center;
    color: #fff;
    text-decoration: none;
    background: rgba(12, 106, 62, 0.8);
    line-height: 46px;
    opacity: 0;
    z-index: 10000;
}

.gototop:focus,
.gototop:hover {
    color: #fff
}

.gototop:hover {
    background: rgba(12, 106, 62, 1);
}

.gototop i {
    font-weight: 800
}

.green__button {
    position: relative;
    align-items: center;
    background-color: #007642;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1rem;
    height: 45px;
    border: none;
    justify-content: center;
    text-align: center;
    transition: .2s !important;
    width: 180px;
    text-decoration: none !important;
    letter-spacing: 1px;
    font-weight: bold;
    /* font-family: 'Noto Serif TC', serif; */
}

.green__button:hover {
    background-color: #014e2c;
}

.g-color-green--hover {
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.g-color-green--hover:hover {
    color: #007642 !important;
    text-decoration: none;
    transform: translateY(-5px) !important;
}

.g-bg-green {
    background-color: #007642 !important;
}

.dealer-menu li a:hover {
    background-color: #005a31;
    color: #fff;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

/* 額外美化按鈕 */
.btn-success {
    background-color: #007642;
    border-color: #007642;
}

.btn-success:hover {
    background-color: #005a31;
    border-color: #005a31;
}

/* 可自定義選單樣式 */
#sidebarMenu a.active {
    background-color: #007642;
    color: #fff;
    font-weight: bold;
    border-radius: 3px;
}

.grid figure {
    position: relative;
    float: left;
    overflow: hidden;
    width: 100%;
    margin: 0 0 15px 0;
    background: #000;
    text-align: center;
    cursor: pointer;
    padding-top: 70%;
}

.grid figure img {
    /* position: relative;
    display: block;
    max-width: 100%; */
    opacity: 0.9;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

figure.effect-bubba img {
    opacity: 0.75;
    -webkit-transition: opacity 0.35s;
    transition: opacity 0.35s;
}

figure.effect-bubba:hover img {
    opacity: 0.4;
}

.grid figure figcaption {
    padding: 1em;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.25em;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.grid figure figcaption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

figure.effect-bubba figcaption::before,
figure.effect-bubba figcaption::after {
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    content: '';
    opacity: 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
}

figure.effect-bubba figcaption::before {
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    -webkit-transform: scale(0, 1);
    transform: scale(0, 1);
}

figure.effect-bubba h2 {
    /* padding-top: 35%; */
    letter-spacing: 5px;
    -webkit-transition: -webkit-transform 0.35s;
    transition: transform 0.35s;
    -webkit-transform: translate3d(0, -10px, 0);
    transform: translate3d(0, -10px, 0);
}

figure.effect-bubba p {
    display: none;
    color: #fff;
    padding: 10px 1.5em;
    opacity: 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: translate3d(0, 20px, 0);
    transform: translate3d(0, 20px, 0);
    letter-spacing: 1px;
    transition: all .3s ease;
}

.p-name {
    font-size: 1.2rem !important;
    border-radius: 0;
}

figure.effect-bubba:hover h2,
figure.effect-bubba:hover p {
    display: block;
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    transition: all .3s ease;
}

figure.effect-bubba:hover h2 {
    margin-bottom: 1.5rem;
}

.grid figure figcaption::before,
.grid figure figcaption::after {
    pointer-events: none;
}

figure.effect-bubba figcaption::after {
    border-right: 1px solid #fff;
    border-left: 1px solid #fff;
    -webkit-transform: scale(1, 0);
    transform: scale(1, 0);
}

figure.effect-bubba:hover figcaption::before,
figure.effect-bubba:hover figcaption::after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

.card {
    /* border-radius: 5px; */
    background-color: #fff;
    /* box-shadow: -1px 0px 20px -5px #ddd; */
    /* padding: 8px; */
    margin-top: 10px;
    margin-bottom: 10px;
}

.card .img {
    position: relative;
    width: 100%;
    padding-top: 62%;
}

.img img {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.g-width-100x {
    width: 100% !important;
}

img {
    display: block;
    max-width: 100%;
}



.dealer-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: auto;
}

.dealer-carousel-wrapper {
    flex: 1 1 72%;
    min-width: 300px;
}

.dealer-text {
    flex: 1 1 20%;
    min-width: 250px;
    text-align: left;
}

.dealer-text h2 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.dealer-text p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}

.dealer-item {
    margin: 20px 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dealer-item:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px -2px #e8e7e7;
}

.dealer-item img {
    width: 100%;
    /* height: 180px; */
    object-fit: cover;
    /* border-radius: 8px; */
    margin-bottom: 15px;
}

.dealer-item h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #312f3e;
    margin-bottom: 20px;
}

.dealer-item:hover h3 {
    color: #007642 !important;
}

.dealer-item p {
    color: #777;
    line-height: 1;
    font-family: "Nunito Sans", "Microsoft JhengHei UI", "Microsoft JhengHei", Arial, sans-serif;
    font-size: 1rem;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.menu-toggle.open+.submenu {
    max-height: 500px;
    /* 設定一個足夠的高度，視內容多寡調整 */
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.menu-toggle.open {
    color: #fff !important;
    background-color: #007642 !important;
}

.g-text-underline--none--hover:focus,
.g-text-underline--none--hover.open {
    color: #007642 !important;
}

.menu-toggle.open .toggle-icon {
    transform: rotate(0deg);
}


/* 浮動按鈕-預約設計 */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}

/* 主按鈕 */
.contact-toggle {
    background-color: #007642;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 8px 12px 16px 12px;
    cursor: pointer;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 1px;
    line-height: 1.4;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.contact-toggle:hover {
    background-color: #059658;
}

/* 隱藏按鈕區塊，展開時顯示 */
.contact-actions {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-actions.show {
    display: flex;
}

/* 個別按鈕樣式 */
.contact-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.contact-btn.call {
    background-color: #006bff;
}

.contact-btn.line {
    background-color: #00c300;
}

.contact-btn:hover {
    transform: scale(1.1);
    color: #FFF;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-height: 0;
    /* overflow: hidden; */
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.contact-actions.show {
    max-height: 200px;
    /* 高度依內容調整 */
    opacity: 1;
}

/* 電話號碼預設隱藏 */
.contact-btn .phone-number {
    position: absolute;
    display: inline-block;
    /* margin-left: 8px; */
    white-space: nowrap;
    color: #fff;
    background: #333;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.phone-number:before {
    pointer-events: none;
    position: absolute;
    z-index: -1;
    content: '';
    border-style: solid;
    -webkit-transition-duration Specifies how long the transition from the old value to the new value should take.: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: transform;
    transition-property: transform;
    top: calc(50% - 8px);
    right: 0;
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent #333;
    -webkit-transform: translateX(7px);
    transform: translateX(7px);
}

/* 桌機版展開時滑出 */
#callBtn.show-number .phone-number {
    opacity: 1;
    transform: translateX(-90px);
    pointer-events: auto;
}

/* 手機版強制隱藏號碼 */
@media (max-width: 767.98px) {
    .contact-btn .phone-number {
        display: none !important;
    }
}


/* RWD：小螢幕調整位置 */
@media (max-width: 768px) {
    .floating-contact {
        right: 10px;
    }
}


/* 手機版改用 + 和 - icon */
@media (max-width: 767.98px) {
    .menu-toggle .toggle-icon {
        transform: none !important;
        /* 清掉旋轉 */
    }

    .menu-toggle.open {
        color: #007642 !important;
        background: none !important;
        border-bottom: 1px solid #ccc !important;
        font-weight: bold !important;
    }
}

button:focus {
    outline: none;
}

.floating-sample-btn {
    transition: transform 0.3s;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}

@media (max-width: 1600px) {
    figure.effect-bubba:hover h2 {
        margin-bottom: 1rem;
    }
}



/* 手機版改為：標題在上，輪播在下 */
@media (max-width: 1119.9px) {
    .dealer-carousel-wrapper {
        order: 2;
    }

    .dealer-text {
        order: 1;
    }
}

@media (max-width: 575.9px) {
    .dealer-item {
        background: #fff;
        margin: 20px 10px;
        box-shadow: 0px 8px 20px -2px #e8e7e7;
    }

    .dealer-container {
        gap: 50px;
    }

    .nav-link {
        padding: .8rem 1rem;
    }

    figure.effect-bubba h2 {
        font-size: 1.6rem;
    }
}