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


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

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

/*====================================*/
/*  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;
}


/*====================================*/
/*  編輯器 container1
/*====================================*/

.content-txt .video-container {
    width: 1000px;
    height: 563px;
    margin-left: 0px;
}

.video-container iframe,
.video-container object,
.content-txt .video-container embed {
    width: 100%;
    height: 100%;
}

@media (max-width: 767px) {
    .content-txt .video-container {
        position: relative;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
        max-width: 100%;
        margin-left: 0px;
    }

    .content-txt .video-container iframe,
    .content-txt .video-container object,
    .content-txt .video-container embed {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.postContent img {

    max-width: 1000px;
    height: auto !important;

}

@media (max-width:768px) {
    .postContent img {
        max-width: 100% !important;
        height: auto !important;
    }
}

.text-f9ae3b {
    color: #f9ae3b !important;
    /*黃橘色*/
}

.bg-f9ae3b {
    background-color: #f9ae3b !important;
    /*黃橘色*/
}

.text-f5b32c {
    color: #f5b32c !important;
    /*橘黃色*/
}

.bg-f5b32c {
    background-color: #f5b32c !important;
    /*黃橘色*/
}

a:hover,
a:active,
a:focus {
    color: #f5b32c;
}

.float-right {
    float: right !important;
}

.float-left {
    float: left !important;
}


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

.wrap-sticky nav.navbar.bootsnav {
    position: fixed !important;
}

nav.navbar.bootsnav .navbar-container .navbar-collapse ul.nav.btn-style>li.active>a,
nav.navbar.bootsnav .navbar-container .navbar-collapse ul.nav.btn-style>li>a:hover,
nav.navbar.bootsnav .navbar-container .navbar-collapse ul.nav.btn-style>li.dropdown>ul.dropdown-menu li:hover a {
    background-color: #f9ae3b !important;
    color: #000 !important;
}

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

.arrow-rotate {
    transform: rotate(180deg);
}

nav.navbar.bootsnav .navbar-container .navbar-collapse ul.nav .dropdown-menu {
    border-radius: 20px;
}

#content-slider .slick-dots button:before,
#products-nav .slick-dots button:before,
.contact-slider .slick-dots button:before {
    color: #f9ae3b;
}

/*====================================*/
/*  search
/*====================================*/

.search-wrapper form button {
    background-color: #f9ae3b;
}

.btn-primary {
    background-color: #f9ae3b;
    border-color: #f9ae3b;
    color: #000;
}

/*====================================*/
/*  印刷庇护工場
/*====================================*/

.title-img {
    width: 100%;
    height: auto;
    display: inline-grid;
    justify-content: center;
    align-items: center;
}

.news-card {
    display: inline-grid;
    justify-items: center;
    width: 100%;
}

.news-card h5 {
    font-size: 0.95rem;
    padding: 20px 20px 10px;
    line-height: 1.6;
    text-align: center;
}

.news-box2 {
    width: 80%;
    display: inline-grid;
    justify-content: center;
}

/*====================================*/
/*  推薦產品
/*====================================*/

.border {
    border: 1px solid #dee2e6 !important;
}

.product-item__image {
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 30px;
    border-radius: 10px;
}

.products-card .products-content h6 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 10px 0 4px;
    font-weight: 600;
    font-size: 1.1rem;
}

.products-card .products-content p {
    font-size: 0.95rem;
    font-weight: 400;
    color: #888;
    line-height: 1;
    margin: 0 0 5px;
}

.products-content .price {
    font-size: 1.5rem;
    font-weight: 500;
}


/*====================================*/
/*  庇护工場與印刷專業
/*====================================*/

.about-container .cross-slider-nav-wrapper {
    right: 98px !important;
    bottom: 77px !important;
}

.about-container .slider-num-style {
    width: 60px;
    font-size: 0.9rem;
}

.about-container .content {
    padding: 0 10px 30px;
}

.about-container .btn-lg {
    background-color: #fff;
    border: none;
    font-size: 0.8rem;
    letter-spacing: 3px;
    padding: 10px 30px;
}

.about-container h2 {
    color: #fff;
    font-size: 1.5rem;
    padding-top: 15px;
    padding-bottom: 5px;
}

.about-container p {
    font-size: 1rem;
}

.default-padding {
    padding-top: 50px;
}


/*====================================*/
/* News home
/*====================================*/
.section-News {
    width: 100%;
}

.title-img2 {
    width: 100%;
    height: auto;
    display: inline-grid;
    justify-content: center;
    align-items: center;
}

.prl-50 {
    padding-right: 50px;
    padding-left: 50px;
}

.blog-card h5 {
    font-size: 1.2rem;
}


.blog-card p {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

.clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* 控制行數，大約等於 40 字 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    line-height: 1.6;
    max-height: calc(1.6em * 2);
}

.btn-primary-outline {
    background-color: #f5b32c;
    border-color: transparent;
    color: #000;
    font-weight: 500;
}

.btn-primary-outline:hover {
    background-color: #fff;
    border-color: #f5b32c;
    color: #000;
}

.services-box {
    display: inline-grid;
    justify-items: center;
}

section.section-services2 h6 {
    font-size: 1.2rem;
    font-weight: 600;
    padding-top: 10px;
    text-align: center;
}

section.section-services2 p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

/*====================================*/
/* footer
/*====================================*/

.footer {
    background: url(../images/bg/footer-bg.jpg) right top no-repeat;
    background-size: cover;
}

.footer-main {
    padding: 65px 0 0;
}

.footer .row {
    display: flex;
    align-items: flex-start;
    /* 三欄頂端對齊 */
    flex-wrap: wrap;
    /* RWD 換行 */
}

.footer .footer-logo {
    position: relative;
    padding-top: 80px;
    /* 預留空間給上方 logo */
}

.footer .footer-logo img {
    max-width: 278px;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    position: absolute;
    top: -25px;
    left: 0;
}

.footer h4 {
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 0;
    /* 移除預設上邊距 */
}

.footer p,
.footer a {
    line-height: 1.5;
    margin: 0;
    font-size: 1rem;
}

.footer a:hover {
    text-decoration: none;
    color: #f6b42c;
}

.footer p span {
    font-size: 0.8rem;
}

.footer-info {
    position: relative;
    padding-top: 36px;
}


/* 社群 icon 放在營業資訊上方，絕對定位 */
.footer .footer-contact {
    position: relative;
    padding-top: 80px;
    /* 預留空間給上方 icons */
}

.footer .social-icons {
    position: absolute;
    top: 0;
    left: 10px;
}

.footer .social-icons a {
    display: inline-block;
    margin-right: 10px;
}

.footer .footer-bottom {
    text-align: center;
    border-color: #ccc;
    margin-top: 40px;
    color: #000;
    font-size: 0.8rem;
}

.pr-5 {
    padding-right: 5px;
}

.footer-info p,
.footer-contact p {
    padding-bottom: 5px;
}

.footer-info p:last-child,
.footer-contact p:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    /* 通常也會順便清掉 margin */
}

/*====================================*/
/* About
/*====================================*/

.sec-padding {
    padding: 40px 20px;
}

.col-centered {
    float: none;
    margin: 0 auto;
}

.about-box-con h4 {
    font-size: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.about-box-con p.by-sub-title {
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

.about-twoBox h6 {
    font-size: 1.3rem;
    line-height: 1.8;
    margin: 0;
}

.feature-box-29 {
    margin-right: 20px;
    margin-left: 20px;
}


.feature-box-29 p {
    margin-top: 20px;
    font-size: 1rem;

}

.text-padding h4 {
    font-size: 1.5rem;
}

.breadcrumb-area .breadcrumb-wrap {
    margin: 0 20px;
    padding: 50px 0;
}

/*收合*/

.fold-up {
    display: inline-grid;
    justify-items: end;
}

.fold-up p span.more {
    display: none;
}

.fold-up.expanded p span.more {
    display: inline;
}

.read-more {
    display: inline;
    color: #777;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 📱 手機版 → 自動展開，按鈕隱藏 */
@media (max-width: 768px) {
    .fold-up p span.more {
        display: inline !important;
    }

    .read-more {
        display: none !important;
    }
}

/*====================================*/
/* news Blog
/*====================================*/
.sidebar_section {
    padding: 0;
}

.sidebar_section .banner_section_item {
    padding: 50px 30px;
    text-align: center;
    width: 100%;
    display: inline-grid;
    justify-content: center;
}

.sidebar_section .banner_section_item img {
    display: inline-grid;
}

.news-sectionBox {
    padding: 80px 15px 40px;
}

.news-sectionBox h2.breadcrumbs-custom-title {
    font-size: 1.8rem;
    font-weight: 600;
}

.news-sectionBox .news-cardBox .news-img {
    border-radius: 10px;
    margin-bottom: 12px;
}

.news-sectionBox .news-cardBox time {
    color: #8a8a8a;
}

.news-cardBox h5 {
    font-size: 1.3rem;
    font-weight: 600;
}

.clamp2 {
    max-inline-size: 20ch;
    /* 限制顯示寬度，大約 10 個中英文混排字 */
    overflow: hidden;
    white-space: nowrap;
    /* 單行 */
    text-overflow: ellipsis;
    /* 超出顯示 ... */
    vertical-align: top;
}

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

.pagination-m ul li a.active {
    background-color: #f9ae3b;
    color: #000;
}

.pagination-m ul li a:hover:not(.active) {
    border-radius: 4px;
    background-color: #ffdda9;
    margin-left: 3px;
    margin-right: 3px;
}

/*側邊欄位*/

.aside-padding {
    padding-top: 20px;
}

.aside-menu p {
    font-size: 1.2rem;
    border-left: 2px solid #f9ae3b;
    line-height: 1em;
    padding-left: 20px;
    margin-bottom: 30px;
    font-weight: 600;
}

ul.category-navbar {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.category-navbar:last-child {
    margin-bottom: 0;
}

.category-navbar a {
    display: inline-block;
    width: 100%;
    padding: 8px;
    border-radius: 10px;
    color: #333;
}

.category-navbar .category-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 5px;
}

.category-navbar .active>a {
    background-color: #f9ae3b;
}

.category-navbar a:hover {
    color: #000;
    background-color: #ffdda9;
    padding-left: 5px;
    font-weight: 600;
}


.widget {
    padding: 40px;
    margin-bottom: 30px;
    background-color: #fffcf8;
    border-radius: 10px;
    height: 100%;
}


/*====================================*/
/* contact
/*====================================*/

.contact-form-section {
    position: relative;
    padding: 70px 0px 30px;
}

.auto-container {
    position: static;
    max-width: 1200px;
    padding: 0px 30px;
    margin: 0 auto;
}

.contact-form-section .column,
.contact-form .form-group {
    position: relative;
    margin-bottom: 20px;
}

.contact-form-section h3 {
    position: relative;
    color: #222222;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 12px;
    text-transform: uppercase;
    text-align: center;
}

ul.contact-info-detail {
    position: relative;
    margin-bottom: 35px;
    z-index: 1;
}

ul.contact-info-detail li {
    position: relative;
    padding-left: 50px;
    padding-bottom: 0px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #333;
}

ul.contact-info-detail li .icon {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    color: #ffffff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    z-index: 10;
    background-color: #f9ae3b;
}

ul.contact-info-detail li h4 {
    color: #000;
    font-size: 1rem;
    font-weight: 600;
}

ul.contact-info-detail li a {
    color: #333;
}


ul.contact-info-detail li a:hover {
    color: #8cc11f;
}

/*form*/

.contact-form .form-group input[type="text"],
.contact-form .form-group input[type="tel"],
.contact-form .form-group input[type="email"],
.contact-form .form-group select {
    position: relative;
    display: block;
    width: 100%;
    line-height: 28px;
    padding: 10px 30px;
    color: #000000;
    border: 1px solid #ececec;
    height: 50px;
    background: #ffffff;
    -webkit-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    transition: all 300ms ease;
}

.contact-form {
    width: 100%;
    max-width: 800px;
    margin: 10px auto 0;
}


.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 6px;
}

.required {
    color: red;
    margin-left: 4px;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

textarea[name="message"] {
    height: 150px;
    /* 固定高度 */
    resize: none;
    /* 禁止拖曳 */
    overflow-y: auto;
    /* 超出捲軸 */
    line-height: 1.5;
}

/* 驗證不通過時紅框 */
input:valid,
textarea:valid {
    border: 1px solid #4CAF50;
}

button.theme-btn {
    background: #f9ae3b;
    color: #000;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
}

button.theme-btn:hover {
    background: #fff;
    color: #000;
    border: 2px solid #f9ae3b;
}

h2.breadcrumbs-custom-title {
    font-size: 1.8rem;
    font-weight: 600;
}


.map-section,
.map-outer,
.map-section iframe {
    margin: 0;
    padding: 0;
    display: block; /* 讓 iframe 不受 inline 預設影響 */
}

/*====================================*/
/* 產品介紹
/*====================================*/

.products-menu h6 {
    color: #ff8d1c;
    font-size: 1.2rem;
    font-weight: 600;
}

.products-menu ul li.active>a {
    color: #000;
    background-color: #f5b32c;
}

.products-menu ul li a:hover {
    background-color: #ffdfae;
    color: #000;
}

.price .original span {
    font-size: 1rem;
}

.price .selling {
    font-size: 1.5rem;
}

.price div span {
    font-size: 1.1rem;
}

.clamp3 {
    max-inline-size: 40ch;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: top;
}

.product-area .area-title {
    color: #f9ae3b;
    font-weight: 600;
}

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

@media (min-width: 992px) and (max-width: 1199px) {
    .about-container .cross-slider-nav-wrapper {
        right: 66px !important;
    }
}

@media only screen and (min-width: 992px) {
    nav.navbar.bootsnav .navbar-container .navbar-header .navbar-brand img.logo {
        height: 90px;
    }

    .section-News {
        background: url(../images/bg/news-bg.png) left top no-repeat;
        background-size: contain;
    }

    .section-services2 {
        background: url(../images/bg/services-bg.jpg) right top no-repeat;
        background-size: cover;
    }

    .title-img2 {
        justify-content: start;
    }

    .pr100 {
        padding-right: 100px;
    }

    .services-lg {
        background: url(../images/products/title-img-suggested-services.png) left top no-repeat;
        height: 123px;
    }

    .lg-ht-44 {
        height: 44px;
    }

    .lg-mt0 {
        margin-top: 0;
    }

}

@media only screen and (max-width: 991px) {
    nav.navbar.bootsnav .navbar-toggle {

        font-size: 1.5rem;
        margin-top: 30px;
    }

    .arrow-icon {
        display: none;
    }

    nav.navbar.bootsnav .navbar-container .navbar-collapse {
        width: 200px;
    }

    .sm-pt0 {
        padding-top: 0;
    }

    nav.navbar.bootsnav .navbar-container .navbar-collapse .header-media {
        margin-top: 30px;
        margin-left: 30px;
    }

    section.section-services2 {
        display: inline-grid;
        justify-items: center;
        width: 100%;
    }

    .services-box-sm {
        display: inline-grid;
        justify-items: center;
    }

    .services-sm {
        background: url(../images/products/title-img-suggested-services-sm.png) left top no-repeat;
        height: 122px;
        max-width: 377px;
        background-size: contain;
    }

    .navbar-brand>img {
        height: 70px !important;
    }

    .navbar-brand>img {
        height: 70px !important;
    }

    .widget {
        padding: 40px 40px 0;
    }

    ul.category-navbar {
        display: inline-flex;
        flex-wrap: wrap;
    }

    .products-menu h6 {
        margin-top: 20px;
    }

    .footer .footer-bottom {
        margin-top: 10px;
    }
}

@media only screen and (min-width: 768px) {
    .progress-bar {
        display: none;
    }

    .lg-social-icons {
        display: block;
    }

    .sm-social-icons {
        display: none;
    }

}

@media only screen and (max-width: 767px) {
    .product-item__image {
        padding: 15px;
    }

    .footer-main {
        padding: 35px 0 0;
    }

    .footer .row {
        flex-direction: column;
    }

    .footer-main {
        padding-right: 20px;
        padding-left: 20px;
    }

    .footer .footer-logo,
    .footer .footer-info,
    .footer .footer-contact {
        text-align: left;
        /* 手機版靠左對齊 */
        margin-bottom: 20px;
    }

    .footer .footer-bottom {
        font-size: 0.8rem;
    }

    .fixed-links {
        right: 10px;
        bottom: 60px;
        /* 手機版往上一點 */
    }

    .lg-social-icons {
        display: none;
    }

    .sm-social-icons {
        display: inline-flex;
    }

    .footer .footer-logo {
        padding-top: 0;
    }

    .footer .footer-logo img {
        position: relative !important;
        top: 0;
    }

    .footer-main .link-icons img {
        width: 40px !important;
        height: 40px !important;
        margin-right: 10px;
    }

    .footer-info,
    .footer .footer-contact {
        padding-top: 0;
    }

    .footer p,
    .footer a {
        font-size: 0.9rem;
    }

    .sm-mt-0 {
        margin-top: 0 !important;
    }

    .default-padding {
        padding: 50px 20px;
    }

    .about-container p {
        font-size: 1rem;
        line-height: 1.3;
    }

    .products-content .price {
        font-size: 1.7rem;
    }

    /* RWD 手機版：改為單欄 */
    .form-row {
        grid-template-columns: 1fr;
    }

    .news-sectionBox {
        padding: 10px 30px 40px;
    }

    h2.breadcrumbs-custom-title {
        font-size: 1.5rem;
    }

    .about-box-con h4 {
        font-size: 1.2rem;
    }

    .about-twoBox h6 {
        font-size: 1.1rem;
    }

    .text-padding h4 {
        font-size: 1.1rem;
        text-align: left;
    }

    .products-card .products-content p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

}

@media only screen and (max-width: 576px) {
    .news-box2 {
        width: 100%;
    }

}

@media only screen and (max-width: 367px) {
    .about-container .cross-slider-nav-wrapper {
        right: 55px !important;
    }

    .services-sm {
        height: 77px;
    }
}