@charset "UTF-8";

/* ==========================================================================
   1. CSS 變數與全域基礎設定 (Reset & Global Standards)
   ========================================================================== */
:root {
    --primary-color: #17a2b8;        /* 品牌亮青藍色 */
    --primary-hover: #0097a7;        /* 按鈕 Hover 深藍色 */
    --brand-dark: #0b3c5d;           /* 品牌深藍色 */
    --text-dark: #0f172a;            /* 主要深色標題文字 */
    --text-main: #333333;            /* 一般內文顏色 */
    --text-muted: #666666;           /* 輔助/說明文字顏色 */
    --bg-light: #f5f5f5;             /* 輕微灰底 */
    --border-color: #dcdcdc;         /* 通用灰邊框 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft JhengHei", "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: #ffffff;
    font-size: 17px; /* 規範：內文統一 17px */
}

/* 標題規範：大標題統一 40px */
h1, h2, 
.hero-title, 
.section-title, 
.sub-section-title, 
.main-title, 
.projects-title, 
.faq-main-heading, 
.main-feature-title, 
.esg-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
}

/* 內文規範：統一 17px */
p, .card-text, .card-title, .faq-child-content, .feature-card-desc, .esg-subtitle {
    font-size: 17px;
    line-height: 1.6;
}

/* 註解/輔助文字規範：允許適當縮小 (14px - 15px) */
small, .caption-text, .step-desc, .card-item-desc, .step-num {
    font-size: 14px;
    color: var(--text-muted);
}

/* 高亮與品牌色 */
.dims-highlight, .highlight-text, .brand-color, .text-primary-blue, .brand-name {
    color: var(--primary-color) !important;
    font-weight: bold;
}

.max-w-1200 {
    max-width: 1140px;
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   2. Hero Section 英雄區塊樣式
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background-color: #020c1b;
    background-image:url("../images/dims/2026/Hero_bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
}

.hero-content-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 15px;
    color: #ffffff;
}

.hero-title .brand-sub {
    font-size: 40px;
    font-weight: 600;
    display: block; /* 強制獨立成行，避免依賴瀏覽器自動換行計算造成跨瀏覽器位置不一致 */
    color: #ffffff;
    line-height: 1.4;
}

.hero-description {
    font-size: 17px;
    color: #ffffff;
    font-weight: 400;
    margin-top: 15px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    border-radius: 4px;
    width: fit-content;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-btn:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.hero-media-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

/* ==========================================================================
   3. Feature Showcase 產品特色與對比表格區塊
   ========================================================================== */
.feature-showcase {
    background-color: #ffffff;
}

.section-title, .sub-section-title {
    color: #000000;
}

.accordion-state {
    display: none;
}

.accordion-card {
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    background-color: #ffffff;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-header-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    margin-bottom: 0;
}

.card-title-text {
    font-size: 22px;
    color: var(--brand-dark);
}

.arrow-icon {
    display: inline-block;
    font-size: 16px;
    color: #aeb9c4;
    transform: rotate(90deg);
    transition: transform 0.3s ease, color 0.3s ease;
    line-height: 1;
}

.card-body-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    opacity: 0;
    transition: all 0.3s ease;
}

.card-text {
    color: var(--text-muted);
}

.card-text li {
    margin-bottom: 8px;
}

.card-text li:last-child {
    margin-bottom: 0;
}

/* Radio 選中狀態連動 */
.accordion-state:checked ~ .card-header-label .arrow-icon {
    transform: rotate(-90deg);
    color: var(--primary-color);
}

.accordion-state:checked ~ .card-body-content {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 24px;
}

/* 右側圖片連動選擇器 (:has) */
.visual-container {
    position: relative;
    height: 380px;
    width: 100%;
}

.visual-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-showcase:has(#tab-1:checked) .img-1,
.feature-showcase:has(#tab-2:checked) .img-2,
.feature-showcase:has(#tab-3:checked) .img-3,
.feature-showcase:has(#tab-4:checked) .img-4 {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 對比表格樣式 */
.grid-style-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    table-layout: fixed;
}

.col-w-20 { width: 20%; }
.col-w-40 { width: 40%; }

.table-header-cell {
    background-color: #F8F9FA;
    color: #000000;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    vertical-align: middle !important;
    padding: 16px;
    border: 1px solid var(--border-color);
}

.table-body-cell {
    font-size: 17px;
    color: var(--text-main);
    text-align: center;
    vertical-align: middle !important;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    line-height: 1.6;
    background-color: #ffffff;
    transition: background-color 0.2s ease;
}

.grid-style-table tbody:hover .table-body-cell {
    background-color: #f8fafc;
}

.review-row {
    height: 30px;
}

/* ==========================================================================
   4. Success Cases 成功案例與商標輪播區塊
   ========================================================================== */
.case-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.case-section .container {
    max-width: 1500px;
}

.case-section .row {
    margin-left: -10px;
    margin-right: -10px;
}

.case-section .row > [class*='col-'] {
    padding-left: 10px;
    padding-right: 10px;
}

/* 輪播外框與按鈕 */
.carousel-wrapper-main {
    position: relative;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto 60px auto;
    display: flex;
    align-items: center;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: transparent;
    color: #999999;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.carousel-nav-btn:hover {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.15);
}

.carousel-nav-btn:focus {
    outline: none; /* 移除滑鼠點擊後的預設黑框 */
}

.carousel-nav-btn:focus-visible {
    outline: 2px solid var(--primary-color); /* 保留鍵盤 Tab 操作時的可視焦點框，兼顧無障礙 */
    outline-offset: 2px;
}

.prev-btn { left: -40px; }
.next-btn { right: -40px; }

.logo-slider-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;            
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;          
    cursor: grab;
    user-select: none;
}

.logo-slider-container.dragging {
    cursor: grabbing;              
    scroll-behavior: auto !important;        
}

.logo-slider-container::-webkit-scrollbar {
    display: none;
}

.logo-slider-track {
    display: flex;
    width: max-content;
    gap: 40px;
    padding: 10px 0;
}

.slide-item {
    width: auto;                  
    height: 40px;                  
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;  
}

.slide-item img {
    height: 100%;                  
    width: auto;                  
    object-fit: contain;          
    filter: grayscale(100%);
    opacity: 0.6;
    transition: opacity 0.3s ease, filter 0.3s ease;
    pointer-events: none;
    user-select: none;
}

.slide-item:hover img {
    filter: grayscale(0%); 
    opacity: 1;
}

/* 成功案例卡片 */
.case-card {
    background-color: #ffffff;
    border: 1px solid #eef2f5;
    border-radius: 4px;
    padding: 24px 15px; 
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* 頂部產業標籤粗體修正（移除重複樣式） */
.industry-badge {
    display: inline-block;
    background-color: #A7DCE8;
    color: var(--brand-dark);
    font-size: 14px;
    padding: 3px 12px;
    border-radius: 3px;
    margin-bottom: 12px;
    font-weight: 700 !important; /* 強制生效粗體 */
}

.industry-badge.badge-alt {
    background-color: #CCE3F0;
    color: var(--brand-dark);
}

.card-detail {
    margin-bottom: 16px;
}

.step-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--brand-dark);
}

.step-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
    padding-left: 14px;
}

.success-btn {
    font-size: 17px;
    font-weight: 600;
    color: #FFFFFF !important;
    background-color: var(--primary-color);
    border: 2px solid #2bb3c0;
    padding: 10px 40px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.success-btn:hover {
    color: #ffffff !important;
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    text-decoration: none;
}

/* ==========================================================================
   5. FAQ 常見問答區塊
   ========================================================================== */
.faq-section {
    padding: 40px 0;
    background-color: #ffffff;
}

.faq-minimal-container {
    width: 100%;
    max-width: 850px; 
    margin: 0 auto;
}

.faq-main-heading {
    color: var(--text-dark);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    text-align: center;
}

.faq-subtitle {
    display: inline;
    margin: 0;
    padding: 0;
    font-size: 1.05rem;
}

.faq-icon-no-bg {
    width: 20px;              
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;      
    flex-shrink: 0;          
    background-color: transparent; 
    border: none;              
}

.faq-icon-no-bg svg {
    width: 16px;              
    height: 16px;
    color: var(--text-dark);          
    transition: transform 0.25s ease; 
}

.faq-parent-item {
    border-bottom: 1px solid #e2e8f0; 
    padding: 8px 0;
}

.faq-parent-item:first-child {
    border-top: 1px solid #e2e8f0;    
}

.faq-parent-summary {
    display: flex;
    align-items: center;
    padding: 20px 8px;
    cursor: pointer;
    list-style: none; 
}

.faq-parent-summary::-webkit-details-marker {
    display: none; 
}

.faq-title-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.faq-parent-item[open] > .faq-parent-summary .faq-icon-no-bg svg {
    transform: rotate(90deg);
    color: var(--primary-color); 
}

.faq-parent-content {
    padding: 10px 0 20px 20px; 
}

.faq-child-item {
    margin-bottom: 8px;
}

.faq-child-item:last-child {
    margin-bottom: 0;
}

.faq-child-summary {
    display: flex;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    list-style: none;
}

.faq-child-summary::-webkit-details-marker {
    display: none;
}

.faq-child-summary .faq-title-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: #334155;
}

.faq-child-summary .faq-icon-no-bg svg {
    color: #64748b; 
}

.faq-child-item[open] > .faq-child-summary .faq-icon-no-bg svg {
    transform: rotate(90deg);
    color: var(--primary-color);
}

.faq-child-content {
    padding: 8px 0 16px 20px; 
    color: #475569;
}

.faq-media {
    border-radius: 8px;
    margin-top: 16px;
    border: 1px solid #e2e8f0; 
}

/* FAQ 內部 RWD 表格 */
.table-responsive {
    width: 100%;
    overflow-x: auto;          
    -webkit-overflow-scrolling: touch;
    margin-top: 16px;
    border-radius: 8px;        
}

.faq-custom-table {
    width: 100%;               
    border-collapse: collapse; 
    font-size: 17px; 
    background-color: #ffffff; 
    border: 1px solid var(--border-color); 
    min-width: 600px;
}

.faq-custom-table thead th {
    background-color: #f4f6f9; 
    color: #000000;            
    font-weight: 600;
    text-align: center; 
    vertical-align: middle; 
    padding: 14px 12px;        
    border-bottom: 1px solid var(--border-color) !important; 
    white-space: nowrap;
}

.faq-custom-table td,
.faq-custom-table tbody th {
    color: #000000;            
    padding: 14px 12px;        
    text-align: center; 
    vertical-align: middle; 
    border-bottom: 1px solid var(--border-color); 
}

.faq-custom-table tbody tr:hover {
    background-color: #f8fafc;
}

.faq-custom-table tr th:nth-child(1),
.faq-custom-table tr td:nth-child(1) {
    width: 18%;
    min-width: 100px;
}

.faq-custom-table tr th:nth-child(2),
.faq-custom-table tr td:nth-child(2),
.faq-custom-table tr th:nth-child(3),
.faq-custom-table tr td:nth-child(3) {
    width: 41%;
    min-width: 250px;
}

/* ==========================================================================
   6. Why Choose Us 為甚麼選我們區塊
   ========================================================================== */
.features-section {
    background-color: #f5f5f5;
    padding: 80px 24px;
    width: 100%;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.main-feature-title {
    text-align: center;
    color: #000000;
    font-weight: 800;
    margin-bottom: 50px;
}

.features-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #f4f6f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.05);
}

.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.feature-card-title {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card-desc {
    color: #000000;
}

/* ==========================================================================
   7. ESG 永續經營區塊 (微調精準對齊圖示設計)
   ========================================================================== */
.esg-section {
    background-color: #f5f5f5;
    padding: 70px 0;
}

.esg-title {
    color: var(--text-dark);
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 40px;
}

.esg-grid-wrapper {
    margin-bottom: 0 !important;
}

.esg-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background-color: #ffffff;
    margin: 0 !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.esg-card {
    flex: 1 0 20% !important;
    padding: 45px 20px !important;
    text-align: center !important;
    border-right: 1px solid #e2e8f0;
    background-color: #ffffff;
    transition: background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.esg-card:last-child {
    border-right: none !important;
}

.esg-card:hover {
    background-color: #fafafa;
}

.icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    margin-bottom: 16px;
}

.esg-icon {
    max-width: 45px;
    max-height: 45px;
    object-fit: contain;
}

.card-item-title {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #000000;
    margin-top: 0;
    margin-bottom: 10px;
}

.card-item-desc {
    font-size: 15px !important;
    color: #666666 !important;
    line-height: 1.5;
    margin-bottom: 0;
}

.last-updated-text {
    font-size: 15px;
    color: #333333;
    font-weight: 500;
}

.footer-btn {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700;
    padding: 12px 40px !important;
    border-radius: 4px !important;
    border: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.footer-btn:hover {
    background-color: var(--primary-hover) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* 響應式微調 */
@media (max-width: 991.98px) {
    .esg-row {
        flex-wrap: wrap !important;
    }
    .esg-card {
        flex: 0 0 33.333% !important;
        border-bottom: 1px solid #e2e8f0;
    }
    .esg-card:nth-child(3n) {
        border-right: none !important;
    }
}

@media (max-width: 767.98px) {
    .esg-card {
        flex: 0 0 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0;
    }
    .esg-card:last-child {
        border-bottom: none !important;
    }

    /* Why Choose Us：手機版改為單欄上下排列，避免三欄擠壓 */
    .features-grid-three {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}