.rounded-xl {
    border-radius: 0.75rem !important;
}

/* === All Solutions === */
.solutions .card-img-top {
    transition: transform .4s ease;
}

.solutions .card:hover .card-img-top {
    transform: scale(1.05);
}

.solutions .card {
    background: #fff;
    transition: all .3s ease;
    border-radius: 10px;
}

.solutions .card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.solutions .card-title {
    font-size: 1.125rem;
}

.gray-bg {
    background: #f8f9fb;
}

/* === CTA Banner === */
.cta-banner {
    position: relative;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    height: 420px;
    /* 可依需求調整高度 */
}

.cta-banner .cta-bg {
    position: absolute;
    inset: 0;
    background-image: url("../images/cta-bg.jpg");
    background-size: cover;
    background-position: center;
    /*background-attachment: fixed;*/
}

/*.cta-banner:after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}*/

/* 內容略偏上置中 */
.cta-banner .cta-content {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 960px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

/* 按鈕樣式 */
.btn-cta {
    background-color: #98C664;
    border: none;
    color: #fff;
    padding: .75rem 1.5rem;
    font-weight: 600;
    border-radius: .5rem;
    box-shadow: 0 6px 18px rgba(134, 195, 107, .35);
    transition: all .2s ease;
}

.btn-cta:hover {
    background-color: #F1AB3F;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(134, 195, 107, .5);
}

/* RWD 微調 */
@media (max-width: 991.98px) {
    .cta-banner {
        height: 380px;
    }

    .cta-banner .cta-content {
        top: 42%;
    }

    .cta-banner .cta-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .cta-banner {
        height: 340px;
    }

    .cta-banner .cta-title {
        font-size: 1.5rem;
    }

    .btn-cta {
        padding: .65rem 1.25rem;
    }
}

/* === 通用標題區 === */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.section-title {
    display: flex;
    align-items: center;
}

.section-title-line {
    width: 10px;
    height: 30px;
    background: #7fbf5e;
    border-radius: 10px;
}

.section-header h2 {
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    color: #222;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #e5e5e5;
}

/* === 通用 Tabs 樣式 === */
.section-tabs .nav-link {
    border: 1px solid #ccc;
    border-radius: 30px;
    color: #777;
    font-size: .9rem;
    padding: .35rem 1.25rem;
    margin-left: .5rem;
    transition: all .3s ease;
}

.section-tabs .nav-link.active {
    background: #86c36b;
    border-color: #86c36b;
    color: #fff;
}

/* 手機版置中 */
@media (max-width: 575.98px) {
    .section-tabs {
        width: 100%;
        justify-content: center;
        margin-top: .5rem;
    }

    .section-tabs .nav-link {
        margin: 0 .25rem;
    }
}

/* === 解決方案內頁：第一段 === */
.solution-intro {
    background-color: #fff;
}

.solution-intro h2 {
    font-size: 2rem;
    color: #222;
    letter-spacing: 0.5px;
}

.solution-intro p {
    line-height: 1.8;
    font-size: 1rem;
}

.solution-intro img {
    border-radius: 0.75rem;
    /* 圓角 */
    transition: transform .4s ease, box-shadow .3s ease;
}

.solution-intro img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* RWD 微調 */
@media (max-width: 767.98px) {
    .solution-intro h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .solution-intro p {
        text-align: center;
    }

    .solution-intro img {
        margin-top: 1.5rem;
    }
}


/* === 解決方案內頁：第二段 === */

/* 行距輔助（BS4 沒內建） */
.lh-relaxed {
    line-height: 1.8;
}

/* 圖片圓角與陰影，貼近設計 */
.scene-img {
    border-radius: 14px;
    /*box-shadow: 0 10px 24px rgba(0,0,0,.12);*/
    width: 100%;
    height: auto;
}

/* 讓整個投影片左右有呼吸（避免貼邊） */
.scene-carousel .container {
    position: relative;
}

.scene-carousel .carousel-item {
    padding: 0 12px;
}

/* 指示點樣式 */
.scene-carousel .carousel-indicators li {
    background-color: #cfd6dc;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.scene-carousel .carousel-indicators .active {
    background-color: #4caf50;
}

/* 左右箭頭：紅色、置中、離內容一點距離 */
.scene-control {
    position: absolute;
    top: 50%;
    bottom: auto !important;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    opacity: 1;
    z-index: 10;
}

.scene-control .scene-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ff5a4e;
    /* 主紅 */
    color: #ff5a4e;
    font-size: 28px;
    line-height: 1;
    background: #fff;
    /*box-shadow: 0 8px 20px rgba(0,0,0,.08);*/
}

.carousel-control-prev,
.carousel-control-next {
    bottom: auto !important;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: -60px;
}

.carousel-control-next {
    right: -60px;
}

/* RWD：手機改上下堆疊，箭頭靠內一些 */
@media (max-width: 991.98px) {
    .carousel-control-prev {
        left: 0;
    }

    .carousel-control-next {
        right: 0;
    }
}

@media (max-width: 767.98px) {
    .scene-control {
        width: 44px;
        height: 44px;
    }

    .scene-control .scene-arrow {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .scene-carousel .carousel-item {
        padding: 0;
    }

    .scene-img {
        margin-bottom: 1rem;
    }
}

.scene-arrow i {
    position: relative;
    /*top: 1px;*/
}

/* === 解決方案內頁：第三段 === */

/* 左線與底線標題樣式 */
.section-line {
    width: 5px;
    height: 20px;
    background-color: #7fbf5e;
    border-radius: 2px;
}

.section-divider {
    border: 0;
    height: 1px;
    background-color: #e5e5e5;
}

/* 卡片樣式 */
.product-card {
    background-color: #f9fafb;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.product-card:hover {
    background-color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* 了解更多 */
.learn-more {
    color: #7fbf5e;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.learn-more:hover {
    color: #5fa347;
}

/* === 產品詳細頁：第一段 === */

/* 共用輔助 */

.shadow-soft {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.section-line {
    width: 5px;
    height: 20px;
    background: #7fbf5e;
    border-radius: 2px;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #e5e5e5;
}

/* 大圖比例容器（4:3） */
.product-main {
    position: relative;
    background: #f7f8f9;
}

.product-main:before {
    content: "";
    display: block;
    padding-top: 100%;
}

/* 4:3 */
.product-main>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

/* 縮圖列 */
.thumbs-wrap {
    position: relative;
}

.thumbs-viewport {
    overflow: hidden;
    width: 100%;
}

.thumbs-list {
    transition: transform .25s ease;
}

.thumb-item {
    margin-right: .75rem;
}

.thumb-item:last-child {
    margin-right: 0;
}

.thumb-btn {
    display: block;
    width: 85px;
    height: 85px;
    border-radius: 12px;
    background: #f4f6f7;
    border: 2px solid transparent;
    overflow: hidden;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /*background: #fff*/
    ;
}

.thumb-item.active .thumb-btn {
    border-color: #ef5350;
    background: #fff;
}

/* 縮圖左右箭頭（非輪播，控制水平捲動） */
.thumb-nav {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ff5a4e;
    color: #ff5a4e;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transition: all .2s ease;
}

.thumb-nav:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.thumb-prev {
    margin-right: .25rem;
}

.thumb-next {
    margin-left: .25rem;
}

/* 優勢清單 */
.adv-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 18px;
}

.adv-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7fbf5e;
    box-shadow: 0 0 0 4px rgba(127, 191, 94, .12);
}

.adv-title {
    font-weight: 600;
    margin-bottom: .6rem;
}

/* RWD */
@media (max-width: 991.98px) {
    .thumb-btn {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 575.98px) {
    .thumb-btn {
        width: 56px;
        height: 56px;
    }
}

/* 讓縮圖區可以水平捲動；捲動時平滑 */
.thumbs-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
}

/* 可選：隱藏水平卷軸外觀（仍可捲） */
.thumbs-viewport::-webkit-scrollbar {
    height: 0;
}

.product-hero h1 {
    font-size: 2.2rem;
}

/* === 產品詳細頁：第二段 === */

/* 標題線與分隔線（沿用前面） */
.section-line {
    width: 5px;
    height: 20px;
    background: #7fbf5e;
    border-radius: 2px;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #e5e5e5;
}

/* 表格外觀與可捲動 */
.specs-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.specs-table th,
.specs-table td {
    vertical-align: top;
    padding: 1.25rem 1.25rem;
    min-width: 220px;
}

/* 欄頭：圖片卡 + 型號 */
.specs-head {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.specs-img {
    width: 220px;
    height: 220px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e8edf0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.specs-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.badge-spec {
    background: #86c36b;
    color: #fff;
    font-weight: 600;
    margin-bottom: .5rem;
}

.specs-model {
    font-weight: 600;
    color: #333;
}

/* 每列：上方虛線/淡線分隔、文字層級 */
.specs-row td {
    position: relative;
}

.specs-row td:before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 0;
    height: 1px;
    background: #eceff1;
}

.specs-label {
    color: #9aa4ab;
    font-size: .9rem;
    margin-bottom: .25rem;
}

.specs-val {
    color: #333;
}

/* 窄螢幕：縮小欄寬，讓捲動更滑順 */
@media (max-width: 767.98px) {

    .specs-table th,
    .specs-table td {
        min-width: 200px;
        padding: 1rem;
    }

    .specs-img {
        width: 200px;
        height: 210px;
    }
}

/* === 產品詳細頁：第三段 === */

/* 表頭：綠底白字 */
.thead-green th {
    background: #95c362;
    color: #fff;
    border: 0;
    font-weight: 600;
    padding: .9rem 1rem;
}

/* 斑馬紋 + hover */
.download-table tbody tr:nth-child(even) {
    background: #f8f9fb;
}

.download-table tbody tr:hover {
    background: #eef6ea;
}

/* 下載連結樣式 */
.file-link {
    color: #2f6f2f;
    text-decoration: underline;
}

.file-link:hover {
    color: #1f5c1f;
}

/* 右側下載 icon 按鈕 */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #d8dee3;
    color: #333;
    transition: .2s;
}

.btn-icon:hover {
    background: #fff;
    border-color: #95c362;
    color: #95c362;
    box-shadow: 0 6px 16px rgba(149, 195, 98, .18);
}

/* 手機：保留橫向捲動（由 .table-responsive 處理），隱藏編號欄 */
@media (max-width:575.98px) {

    .download-table td,
    .download-table th {
        white-space: nowrap;
    }
}

.downloads-block .table td,
.downloads-block .table th {
    vertical-align: middle;
}

/*------------------------------------------------------------------*/

/* 套在你包表格的外層：.table-responsive 或 .specs-scroll */
.specs-scroll {
  cursor: grab;
  -webkit-overflow-scrolling: touch; /* 手機滾動更順 */
}
.specs-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}
