:root {
    --color-contact: #EB8E26;
    --color-bg-home: #ffffff;
    --color-blue: #086caf;
    --font-title: "Microsoft JhengHei", "微軟正黑體", sans-serif;
    --font-header: "Microsoft JhengHei", "微軟正黑體", sans-serif;
    --font-content: "Microsoft JhengHei", "微軟正黑體", sans-serif;
    --font-body: "Microsoft JhengHei", "微軟正黑體", sans-serif;
}
body {
    background-color: #fff;
}
/********* header *********/
header {
    width: 100%;
    z-index: 100;
    top: 0;
}
@media screen and (min-width: 992px)
{
    header > nav .nav-link {
        border-radius: 10px !important;
        padding: 4px 15px !important;
        color: #096BAA !important;
        margin: 0 9px;
        font-size: 16px;
        text-align: center;
    }
    header > nav .nav-link.contact {
        background-color: var(--color-contact) !important;
        color: #fff !important;
        border: 1px solid var(--color-contact);
    }
    header > nav .nav-link.dropdown-toggle::after {
        display: none !important;
    }
    header > nav .nav-link:hover,
    header > nav .nav-link.dropdown-toggle.show {
        background-color: var(--color-contact); !important;
        color: #fff !important;
    }
    /*header > nav .nav-link.contact:hover {
        background-color: #09792e !important;
        border: 1px solid #09792e;
    }*/
    header > nav .nav-link.active {
        background-color: transparent !important;
        border: 1px solid transparent;
        color: #eb8f26 !important;
    }
    .navbar-nav .dropdown-menu {
        background-color: #fff;
        border: none;
        top: 51px;
        border-radius: 0px;
        padding: 0px;
        left: 50% !important;        /* 從父元素左邊 50% */
        transform: translateX(-50%);
    }
    .navbar-nav .dropdown-menu li {
        margin: 3px 5px;
        text-align: center;
        border-bottom: 1px solid #f5f5f5;
        padding: 2px 10px;
    }
    .navbar-nav .dropdown-menu .dropdown-item {
        color: #096BAA !important;
        font-size: 14px;
        padding: 8px;
        text-align: center;
    }
    .navbar-nav .dropdown-menu .dropdown-item:hover {
        color: var(--color-contact) !important;
        background-color: #fff;
    }

}
.widthbg {
    background-color: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}
.outside {
    height: 72px;
}
@media screen and (max-width: 991px)
{   
    header {
        position: fixed;
    }
    .bodycontent {
        margin-top: 83px;
    }
    .container-fluid {
        padding: 0px;
    }
    .navbar-nav {
        /*margin-top: 10px;*/
    }
    .navbar-nav .nav-item {
        margin: 6px;
    }
    .navbar-nav .dropdown-toggle::after {
        right: 15px;
        position: absolute;
        top: 17px;
        font-size: 24px;
        background-image: url('../images/down_arrow.png');
        content: "";
        background-size: contain;
        width: 20px;
        height: 20px;
        border: none;
    }
    .navbar-nav .dropdown-toggle.show::after {
        transform: rotate(180deg);
    }
    .navbar-nav .dropdown-menu {
        border: none;
    }
    .navbar-nav .dropdown-menu li {
        margin: 6px 0;
        border: 1px solid #dddddd;
        border-radius: 100px;
        padding: 5px;
        font-size: 14px;
        float: left;
        width: 100%;
    }
    .navbar-nav .dropdown-menu li a.dropdown-item:focus,
    .navbar-nav .dropdown-menu li a.dropdown-item:hover {
        background-color: transparent;
        color: #ec8f25;
    }
    .navbar {
        background-color: #fff !important;
    }
    .navbar-brand img {
        width: 70%;
        height: auto !important;
    }
    button.navbar-toggler {
        border: none;
        float: right;
        padding: 0px;
        outline: none;
    }
    button.navbar-toggler img {
        width: 50px;
        height: auto;
    }
    .navbar-box {
        flex-wrap: nowrap !important;
        padding: 10px;
    }
    .navbar-collapse.collapsing {
        height: 0px !important;
        padding-top: 10px;
    }
    .navbar-collapse.show {
        height: calc(100vh - 73px) !important;
        padding-top: 10px;
        width: 100%;
        overflow-y: scroll;
        background-color: #fdfdfd;
        transition: height 0.3s ease;
    }
    #navbarNavDropdown.show {
        right: 0;
    }
    #navbarNavDropdown .navbar-nav {
        width: 100%;
    }

    #navbarNavDropdown .nav-item {
        margin: 5px 0;
        width: calc(100vw - 30px);
        margin: auto;
        padding: 5px;
        border-bottom: 1px solid #f1f1f1;
    }
    #navbarNavDropdown .nav-item:last-child {
        border-bottom: none;
    }
    .navbar-toggler.active > img {
        content: url('../images/close.png');
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }
    .navbar-toggler > img {
        transition: transform 0.3s ease;
    }
    .navbar-toggler:active > img {
        transform: scale(0.9);
    }
    .navbar-box {
        display: flex;
        justify-content: space-between; /* 左右分開 */
        align-items: center;
        width: 100%;                   /* 滿版 */
        padding: 0 15px;               /* 內距，避免貼邊 */
    }

    .navbar-brand {
        margin-right: auto;            /* 靠左 */
    }

    .navbar-toggler {
        margin-left: auto;             /* 靠右 */
    }
}

/**************************/

/********* footer *********/
.site-footer {
    background-color: #08446B;
    color: #fff;
    padding: 30px 5% 40px;
    font-size: 14px;
}

/* 地址區 */
.footer-address p {
    margin: 2px 0;
    line-height: 35px;
}
.footer-address .footer-contact {
    margin-top: 10px;
    font-size: 14px;
}
.footer-address p > img {
    transform: translateY(-2px);
    margin-right: 10px;
}

/* Footer Links 基本設定 */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
}
.footer-links > li {
    color: #fff;
    font-size: 14px;
    padding-right: 13px;
}
.footer-links > li:last-child {
    border-right: none;
}

/* 主連結與標題 */
.footer-links a,
.footer-title {
    color: #fff;
    text-decoration: none;
    display: block;
    font-weight: 600;
    margin: auto;
    font-size: 16px;
    line-height: 28px;
}
.footer-links a:hover {
    text-decoration: underline;
}
/* Dropdown 區域 */
.footer-dropdown {
    /*display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;*/
    text-align: center;
}
.footer-title {
    margin-bottom: 10px;
}
.footer-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}
.footer-submenu a {
    font-size: 14px;
    text-decoration: none;
    width: fit-content;
    text-align: center;
    margin: auto;
    line-height: 28px;
    font-weight: 300;
}
.footer-submenu a:hover {
    color: var(--color-contact);
}
/* 聯絡我們特殊顏色 */
.footer-links a.contact {
    background-color: var(--color-contact) !important;
    color: #fff;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 5px;
}


/* 版權區 */
.footer-copy {
    font-size: 13px;
    opacity: 0.9;
}

/* 對齊控制 */
.footer-top {
    margin-bottom: 10px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 5px;
}

/* RWD */
@media (max-width: 767px) {
    .footer-links {
        /*justify-content: center;*/
        margin: 0 auto;
        display: none;
    }
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav {
        order: 1;
        margin-bottom: 15px;
    }
    .footer-address {
        order: 1;
        text-align: left;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        border: none;
        margin-top: 10px;
    }
    .footer-copy {
        margin: auto;
    }
}
/**************************/

/********* bodycontent ********/
.bodycontent {
    background-color: var(--color-bg-home);
    min-height: calc(100vh - 210px);
    display: inline-block;
    width: 100%;
}
.bodycontent.bgimg {
    background-image: url('../images/homebg.png');
    background-color: transparent;
    background-position: top;
    background-size: cover;
}
.bodycontent img.main_img {
    width: 100%;
    height: auto;
}
.bodycontent img {
    max-width: 100%;
}
/**************************/
.imgbox01 {
    border-radius: 25px;
    box-shadow: 0px 5px 0px #eb8f26;
    overflow: hidden;
}
.imgbox02 {
    border-radius: 45px;
    box-shadow: 5px 5px 2px #eb8f26;
    overflow: hidden;
}
.imgbox03 {
    border-radius: 45px;
    border: 5px solid #eb8f26;
    overflow: hidden;
}
.imgbox-1-1 {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
    left: 0;
    right: 0;
    background-position: center
}

.imgbox-5-3 {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
    left: 0;
    right: 0;
    background-position: center
}

.imgbox-10-7 {
    position: relative;
    width: 100%;
    padding-top: 70%;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
    left: 0;
    right: 0;
    background-position: center
}

.imgbox-4-3 {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
    left: 0;
    right: 0;
    background-position: center
}
.imgbox-3-4 {
    position: relative;
    width: 100%;
    padding-top: 133.33%;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
    left: 0;
    right: 0;
    background-position: center;
}

.imgbox-2-3 {
    position: relative;
    width: 100%;
    padding-top: 155%;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
    left: 0;
    right: 0;
    background-position: center;
}


.goback {
    text-align: center;
    margin: 30px auto 10px;
    display: block;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    width: fit-content;
    border-bottom: 1px solid transparent;
}
.goback:hover {
    color: #000;
    border-bottom: 1px solid #000;
}


/********* banner *********/
/* Hero Carousel */
.carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.carousel .carousel-inner,
.carousel .carousel-item {
    height: 100%;
}

.carousel .carousel-item {
    position: relative;
    transition: opacity 1s ease-in-out;
}

.carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Infobox 樣式 */
.infobox {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    text-align: left;
    color: #fff;
    z-index: 2;
    max-width: 600px;
    padding: 20px;
}

.infobox p.title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.infobox p.content {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.infobox a {
    display: inline-block;
    background: var(--color-contact);
    color: #fff;
    padding: 12px 32px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(235, 142, 38, 0.3);
}

.infobox a:hover {
    background: #fff;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 自訂 Carousel 指示器 */
.carousel .carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
    z-index: 3;
}

.carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
    opacity: 1;
}

.carousel .carousel-indicators .active {
    width: 30px;
    border-radius: 6px;
    background: white;
}

/* 自訂 Carousel 控制按鈕 */
.carousel .carousel-control-prev,
.carousel .carousel-control-next {
    width: 50px;
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 3;
}

.carousel .carousel-control-prev:hover,
.carousel .carousel-control-next:hover {
    opacity: 1;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .infobox {
        max-width: 500px;
    }
    
    .infobox p.title {
        font-size: 40px;
    }
}

@media (max-width: 992px) {
    .carousel {
        aspect-ratio: 4 / 3;
    }
    
    .infobox {
        left: 8%;
        max-width: 450px;
    }
    
    .infobox p.title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .infobox p.content {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .infobox a {
        padding: 10px 24px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .carousel {
        aspect-ratio: 3 / 4;
    }
    
    .infobox {
        left: 5%;
        right: 5%;
        max-width: 90%;
        padding: 15px;
    }
    
    .infobox p.title {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .infobox p.content {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    .infobox a {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .carousel .carousel-indicators {
        bottom: 20px;
    }
    
    .carousel .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
    }
    
    .carousel .carousel-indicators .active {
        width: 24px;
    }
}

@media (max-width: 576px) {
    .infobox p.title {
        font-size: 24px;
    }
    
    .infobox p.content {
        font-size: 13px;
    }
}

/**************************/

.bodycontent .textbox {
    width: fit-content;
}
.bodycontent p.title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}
.bodycontent p.title-blue {
    color: var(--color-blue);
}
.bodycontent p.content {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.bodycontent a {
    background: var(--color-contact, #f7b500);
    color: #fff;
    padding: 6px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inherit;
    width: fit-content;
}

.bodycontent a:hover {
    background: #fff;
    color: #333;
}
.homeblock1box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    /* row-gap: 20px; */
    /* column-gap: 15px; */
}
.homeblock1box .item {
    border-radius: 25px;
    border: 4px solid var(--color-blue);
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直置中 */
    align-items: center; /* 水平置中(可選) */
    text-align: center;
    color: var(--color-blue);
    background-color: #fff;
    aspect-ratio: 4.5 / 3;
}
.homeblock1box .item p.title {
    font-size: 28px;
    margin-bottom: 0px;
}
.homeblock1box .item p.subtitle {
    margin: 10px auto 0;
}
@media screen and (max-width: 991px)
{
    .homeblock1box {
        gap: 10px;
    }
    .homeblock1box .item p.title {
        font-size: 22px;
    }
}
@media screen and (max-width: 767px)
{
    .homeblock1box {
        grid-template-columns: repeat(1, 1fr);
        margin-top: 20px;
        gap: 20px;
    }
}


/* bluebg 包裹整個區域，但背景只跟左側文字區高度 */
.bluebg {
    position: relative;
    width: 100vw; /* 全寬 */
    display: flex;
    justify-content: center;
    padding: 60px 0; /* 上下內距 */
}

/* 左側文字區的藍色背景 */
.bluebg .text-bg {
    background-color: var(--color-blue);
    position: absolute;
    bottom: 0;
    left: 0;
    top: auto;
    height: 60%;
    width: 100vw;
    /*z-index: -1;*/
}

/* container 內部排版 */
.bluebg .box {
    display: flex;
    align-items: flex-end; /* 圖片與文字底部對齊 */
    justify-content: space-between;
    flex-wrap: wrap;
    z-index: 9;
}

/* 左側文字區 */
.bluebg .leftarea {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative; /* 讓 text-bg 對齊文字 */
}

/* 右側圖片區 */
.bluebg .rightarea {
    display: flex;
    align-items: flex-end; /* 底部對齊 */
}
.blueimgtxt {
    font-size: 22px;
    margin-bottom: 0px;
    line-height: 55px;
    font-weight: 500;
}
.bluebg .rightarea .item:nth-child(1) .imgbox02 { margin-bottom: 0; }
.bluebg .rightarea .item:nth-child(2) .imgbox02 { margin-bottom: 30px; }
.bluebg .rightarea .item:nth-child(3) .imgbox02 { margin-bottom: 60px; }
@media screen and (max-width: 991px)
{
    .blueimgtxt {
        font-size: 16px;
    }
}
@media screen and (max-width: 767px)
{
    .bluebg .text-bg {
        top: 12%;
        bottom: auto;
    }
    .blueimgtxt {
        font-size: 14px;
    }
}


.bgmaterialright {
    position: absolute;
    right: 0;
    /*top: 0;*/
    z-index: -99999;
}
.bgmaterialleft {
    position: absolute;
    left: 0;
    z-index: -99999;
}

.homeblock2box {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px; /* 保留足夠空間給箭頭 */
    position: relative;
    width: 1000px;
    max-width: 90vw;
}

.homeblock2box .item {
    border-radius: 25px;
    border: 4px solid #EB8E26;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #353535;
    background-color: #fff;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 10px;
    box-sizing: border-box;
    position: relative; /* 方便箭頭定位 */
}

/* 箭頭放在右側外面 */
.homeblock2box .item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -30px; /* 貼在正方形右側外面，可調整距離 */
    top: 50%;
    transform: translateY(-50%);
    width: 27px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg width="54" height="41" viewBox="0 0 54 41" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M27.6113 40.6604L53.2598 21.9112C53.4884 21.7437 53.6747 21.523 53.8034 21.2674C53.9321 21.0118 53.9995 20.7286 54 20.4411L54 20.4368C53.9994 20.1482 53.9314 19.864 53.8017 19.6076C53.672 19.3513 53.4843 19.1303 53.2542 18.963L27.6057 0.334771C27.3406 0.141966 27.0286 0.0276512 26.704 0.00441613C26.3794 -0.0188189 26.0549 0.0499282 25.7661 0.203085C25.4769 0.355221 25.2344 0.58593 25.0653 0.869819C24.8962 1.15371 24.807 1.47977 24.8076 1.81211L24.8076 10.579L1.77127 10.5783C1.53857 10.5782 1.30814 10.6249 1.09316 10.7159C0.87817 10.8069 0.682838 10.9402 0.518333 11.1084C0.353828 11.2765 0.223377 11.4762 0.134437 11.6959C0.0454974 11.9156 -0.000187451 12.151 -5.41531e-07 12.3888L0.000704468 28.6093C0.000609091 28.8471 0.0464007 29.0827 0.135462 29.3024C0.224524 29.5222 0.355105 29.7218 0.51974 29.89C0.684378 30.0581 0.879836 30.1915 1.09495 30.2824C1.31005 30.3733 1.54059 30.42 1.77338 30.4198L24.8069 30.4198L24.8069 39.1895C24.8069 39.866 25.1801 40.487 25.7696 40.7993C26.0593 40.9518 26.3846 41.0196 26.7096 40.9951C27.0346 40.9706 27.3467 40.8548 27.6113 40.6604Z" fill="%23EB8E26"/></svg>') no-repeat center;
    background-size: contain;
}
.homeblock2box .item .title {
    font-size: 18px;
    margin-bottom: 0px;
}
/* 響應式 */
@media screen and (max-width: 991px) {
    .homeblock2box {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        width: 500px;
    }

    .homeblock2box .item:not(:last-child)::after {
        right: -25px;
        width: 22px;
        height: 16px;
    }
}

@media screen and (max-width: 767px) {
    .homeblock2box {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0px !important;
    }

    .homeblock2box .item:not(:last-child)::after {
        right: -20px;
        width: 18px;
        height: 13px;
    }
}

@media screen and (max-width: 575px) {
    .homeblock2box {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0px !important;
        width: 300px;
    }
}

ul.serviceUl {
    display: flex;
    flex-wrap: wrap; /* ✅ 超出寬度自動換行 */
    justify-content: center; /* ✅ 水平置中 */
    gap: 10px; /* ✅ 項目間距 */
    list-style: none;
    padding: 0;
    margin: 0 auto 30px;
    width: 100%; /* ✅ 不限制寬度 */
    max-width: 600px; /* 可自行調整最大寬度 */
}

ul.serviceUl > li {
    flex: 1 1 auto; /* ✅ 等比例伸縮 */
    text-align: center;
}

ul.serviceUl > li > a {
    display: inline-block;
    color: #096BAA;
    background-color: transparent;
    border-bottom: 2px solid #3DA6EC;
    border-radius: 0px;
    padding: 10px 15px;
    transition: all .3s ease;
    white-space: nowrap;
    word-break: keep-all;
}

ul.serviceUl > li > a:hover {
    color: #3DA6EC;
    border-bottom: none;
    border-radius: 15px;
}

ul.serviceUl > li > a.active {
    border-bottom: none;
    background-color: var(--color-contact);
    color: #fff;
    border-radius: 15px;
}
@media (max-width: 480px) {
  ul.serviceUl > li {
    flex: 1 1 45%; /* 每行兩個 */
  }
}

@media (max-width: 360px) {
  ul.serviceUl > li {
    flex: 1 1 100%; /* 每行一個 */
  }
}


.serviceBlock {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
}
.serviceBlock .item {
    width: 30%;
    height: 4em;
    background-color: #3DA6EC;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}
.serviceBlock .item > p {
    margin-bottom: 0px;
}
.equipmentbox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* ✅ 重點：讓一列只有一個項時置中 */
    gap: 2rem; /* 每個 item 間距，可自行調整 */
}

/* 內層 item 寬度：桌機一列兩個、手機滿版 */
.equipmentbox > .item {
    flex: 1 1 calc(50% - 2rem); /* 兩欄 */
    max-width: calc(50% - 2rem);
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .equipmentbox > .item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
.equipmentbox > .item .title {
    color: #096BAA;
    font-weight: 500;
    border-bottom: 1px solid #096BAA;
    padding-bottom: 10px;
    word-break: break-all;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    font-size: 30px;
}

/* 外層結構 */
.equipmentbox > .item .col-12.m-auto {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* 讓左右欄並排且內容可自動撐滿 */
.equipmentbox > .item .col-md-6.col-12 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 50%;
}

@media (max-width: 768px) {
    .equipmentbox > .item .col-md-6.col-12 {
        flex: 1 1 100%;
        margin-top: 1rem;
    }
}

/* 文字樣式 */
.equipmentbox > .item .brief,
.equipmentbox > .item .stock {
    color: #353535;
    font-size: 14px;
    text-align: left;
}

/* brief 多行多點方案 */
.equipmentbox > .item .brief {
    display: block;
    text-indent: 0;
    margin-bottom: 8px;
    list-style: none;
    padding-left: 1.2em;
}

.equipmentbox > .item .brief br {
    display: block;
    content: "";
    margin-top: 6px;
}

.equipmentbox > .item .brief li {
    position: relative;
}

.equipmentbox > .item .brief li::before {
    content: "•";
    position: absolute;
    left: -1.2em;
    color: #353535;
}

/* stock 靠底對齊 */
.equipmentbox > .item .stock {
    margin-top: auto;
    position: relative;
    padding-left: 1.2em;
}

.equipmentbox > .item .stock::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #353535;
}

.map-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contactbox {
    display: inline-block;
}
.contactbox p {
    font-size: 14px;
}
.contactbox .title {
    font-size: clamp(24px, 6vw, 115px) !important;
    text-align: left !important;
    line-height: 7vw;
}
.contactbox table {
    width: 100%;
}
.contactbox table tr td:first-child {
    font-weight: bold;
    color: #066daf;
    border-bottom: 1px solid #3DA6EC;
    padding: 14px 2px 2px;
    font-size: 16px;
}
.contactbox table tr td:last-child {
    text-align: right;
    color: #066daf;
    border-bottom: 1px solid #3DA6EC;
    padding: 14px 2px 2px;
    font-size: 16px;
}
.contactbox .col-md-6 {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 👈 表格會貼到底 */
}
@media screen and (max-width: 767px)
{
    .contactbox table tr td {
        font-size: 14px !important;
    }
}

.pagination {
    margin: auto;
    width: fit-content;
}
.pagination p {
    background-color: transparent;
    color: #2b2f35;
    font-weight: 400;
    font-size: 14px;
    padding: 0px 30px;
    margin: 0 auto;
}
.pagination a {
    background-color: transparent;
    color: #2b2f35;
    font-weight: 400;
    font-size: 14px;
    padding: 0px;
}
.pagination a:hover,
.pagination a:focus {
    background-color: transparent;
    color: #086caa;
    font-weight: 400;
    font-size: 14px;
    padding: 0px;
}

.albumbox .item a {
    background: transparent;
    padding: 0px;
    color: transparent;
    display: inline;
}
#lightboxOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;
}
#lightboxOverlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}
#lightboxOverlay.show img {
  transform: scale(1);
}
.img-zoom { cursor: zoom-in; }
