/* ==============================================
   🚀 平滑滾動效果 - 全站適用
   ============================================== */

/* 啟用平滑滾動效果 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* 根據您的 header 高度調整 */
}

/* 為支援性考慮，加入 webkit 前綴 */
html {
    -webkit-scroll-behavior: smooth;
    -moz-scroll-behavior: smooth;
    -ms-scroll-behavior: smooth;
    -o-scroll-behavior: smooth;
}

/* Elementor 相容性處理 */
.elementor-section,
.elementor-container {
    scroll-margin-top: 80px; /* 確保錨點連結不會被 header 遮蓋 */
}

/* 行動裝置滾動調整 */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px; /* 行動版 header 高度調整 */
    }
    
    .elementor-section,
    .elementor-container {
        scroll-margin-top: 60px;
    }
}

/* 減少動畫偏好設定 - 無障礙考慮 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ==============================================
   🍭 SweetAlert2 彈窗樣式優化
   ============================================== */

/* SweetAlert2 彈窗主體樣式 */
.custom-modal-popup,
.swal2-popup {
    border-radius: 24px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25) !important;
}

/* SweetAlert2 標題樣式 */
.custom-modal-title,
.swal2-title {
    color: #1f2937 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    text-align: left !important;
}

/* SweetAlert2 關閉按鈕樣式 */
.custom-close-button,
.swal2-close {
    background: transparent !important;
    color: #333 !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 0 !important;
}

.custom-close-button:hover,
.swal2-close:hover {
    background: transparent !important;
    color: #000 !important;
    transform: scale(1.1);
}

/* SweetAlert2 內容容器樣式 */
.swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

.swal2-html-container ul {
    margin: 0 !important;
    padding-left: 20px !important;
}

.swal2-html-container li {
    margin-bottom: 8px !important;
    color: #4b5563 !important;
}

/* SweetAlert2 彈窗中的 icon 樣式 */
.modal-icon-top-left {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    width: 48px !important;
    height: 48px !important;
    z-index: 1000 !important;
}

.modal-icon-top-left img {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
    filter: none !important;
    display: block !important;
}

/* 當有 icon 時，調整標題位置 - 暫時停用以解決問題 */
/*
.swal2-popup .swal2-title {
    padding-left: 0 !important;
    transition: padding-left 0.3s ease !important;
}

.swal2-popup:has(.modal-icon-top-left) .swal2-title {
    padding-left: 70px !important;
}

.swal2-popup:not(:has(.modal-icon-top-left)) .swal2-title {
    padding-left: 0 !important;
}
*/

/* 簡化版本：確保標題始終在正確位置 */
.swal2-popup .swal2-title {
    padding-left: 0 !important;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .swal2-popup {
        width: 90% !important;
        margin: 20px !important;
    }
    
    .modal-icon-top-left {
        width: 40px !important;
        height: 40px !important;
        top: 15px !important;
        left: 15px !important;
    }
    
    .modal-icon-top-left img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .swal2-popup:has(.modal-icon-top-left) .swal2-title {
        padding-left: 60px !important;
        font-size: 20px !important;
    }
}

/* ==============================================
   🎨 Custom Components CSS v2.0 - 通用組件
   專責：通用組件、動畫效果、工具類別
   ============================================== */

/* ---------- 通用動畫效果 ---------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* 數字動畫效果 */
@keyframes numberPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes numberCountPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ---------- 通用工具類別 ---------- */
/* 文字截斷工具類 */
.text-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 通用載入狀態 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 通用進場動畫類 */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ---------- 語言切換器樣式 ---------- */
.language-switcher {
    position: relative;
    display: inline-flex; 
    align-items: center; 
    font-family: inherit;
    vertical-align: middle; 
}

/* 當前語言按鈕 */
.current-language {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    margin-top: -20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: inherit;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* 當前語言文字 */
.current-lang-text {
    display: inline-block;
    line-height: 1;
}

.current-language:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 國旗圖標 */
.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    display: block;
}

/* 下拉箭頭 */
.dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-top: 1px;
}

/* 語言選項容器 */
.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 120px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

/* 顯示下拉選單 */
.language-switcher:hover .language-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-switcher:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* 語言選項 */
.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f9fafb;
}

.language-option.active {
    background-color: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

/* 語言文字 */
.language-text {
    font-weight: 500;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .current-language {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .flag-icon {
        width: 18px;
        height: 13px;
    }
    
    .language-options {
        min-width: 100px;
    }
    
    .language-option {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* 深色主題適配 */
@media (prefers-color-scheme: dark) {
    .language-options {
        background: #1f2937;
        border-color: #374151;
    }
    
    .language-option {
        color: #d1d5db;
        border-bottom-color: #374151;
    }
    
    .language-option:hover {
        background-color: #374151;
    }
    
    .language-option.active {
        background-color: #1e40af;
        color: #dbeafe;
    }
}

/* ---------- 標誌輪播樣式 ---------- */
.logo-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: transparent;
    padding: 40px 0;
    /* 添加漸變遮罩效果 */
    mask: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: inline-flex;
    animation: smoothScroll 30s linear infinite !important;
    gap: 60px;
    will-change: transform;
}

.logo-item {
    flex: 0 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.logo-item img {
    max-height: 100%;
    max-width: 150px;
    width: auto;
    transition: all 0.3s ease;
    object-fit: contain;
}

.logo-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

@keyframes smoothScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 暫停動畫當滑鼠懸停 */
.logo-container:hover .logo-track {
    animation-play-state: paused;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .logo-container {
        padding: 30px 0;
    }
    
    .logo-track {
        gap: 40px;
        animation: smoothScroll 25s linear infinite !important;
    }
    
    .logo-item {
        height: 50px;
        min-width: 100px;
    }
}

/* ---------- 首頁專用互動式頁籤樣式 ---------- */
.homepage-tab-section {
    width: 100%;
    padding: 40px 20px;
}

.homepage-tab-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-inline: auto;
}

.homepage-tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    border: 2px solid transparent;
    background: #f9f9f9;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    text-align: center;
    height: 100px;
}

.homepage-tab-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.homepage-tab-button.active[data-tab="hrm"] {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3B82F6;
    color: #3B82F6;
}

.homepage-tab-button.active[data-tab="bpm"] {
    background: rgba(6, 182, 212, 0.1);
    border-color: #06B6D4;
    color: #06B6D4;
}

.homepage-tab-button.active[data-tab="ai"] {
    background: rgba(245, 158, 11, 0.1);
    border-color: #F59E0B;
    color: #F59E0B;
}

.homepage-tab-button.active[data-tab="cybersecurity"] {
    background: rgba(239, 68, 68, 0.1);
    border-color: #EF4444;
    color: #EF4444;
}

.homepage-tab-button.active[data-tab="rpa"] {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8B5CF6;
    color: #8B5CF6;
}

.homepage-tab-button.active[data-tab="esg"] {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10B981;
    color: #10B981;
}

.homepage-tab-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

.homepage-tab-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.homepage-tab-contents {
    padding: 40px;
    min-height: 400px;
    position: relative;
}

/* === Tab內容樣式 === */
.homepage-tab-content {
    /* 隱藏非active內容 */
    display: none;
    opacity: 0;
    visibility: hidden;
    
    /* 縮放動畫設定 */
    transform: scale(0.9);
    transition: all 0.4s ease;
    
    /* 定位設定 */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

/* === Active狀態 - 縮放進場動畫 === */
.homepage-tab-content.active {
    /* 顯示active內容 */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    
    /* 縮放到正常大小 */
    transform: scale(1) !important;
    
    /* 定位調整 */
    position: relative !important;
    pointer-events: auto !important;
    z-index: 2;
}

/* === 圖片樣式與縮放效果 === */
.homepage-tab-content img {
    width: 100%;
    max-width: 850px;
    height: auto;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

/* === 圖片Hover效果 === */
.homepage-tab-content img:hover {
    transform: scale(1.02);
}

/* === 響應式設計 === */
@media (max-width: 768px) {
    .homepage-tab-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .homepage-tab-button {
        height: 80px;
        font-size: 12px;
        padding: 12px 8px;
    }

    .homepage-tab-icon {
        width: 32px;
        height: 32px;
    }

    .homepage-tab-contents {
        padding: 20px;
        min-height: 300px;
    }
    
    .homepage-tab-content img {
        max-width: 100%;
    }
}

/* ---------- Customer Showcase 樣式 ---------- */
.customer-showcase {
    width: 100%;
    margin: 60px auto;
    padding: 0 20px;
    overflow: visible !important;
}

.showcase-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #333;
}

/* 產業標籤 */
.industry-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 80px; /* 增加空間給箭頭按鈕 */
    flex-wrap: wrap;
}

.industry-tab {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.industry-tab:hover {
    border-color: #3073F1;
    color: #fff;
}

.industry-tab.active {
    background: #3073F1;
    color: #fff;
    border-color: #3073F1;
}

/* 展示內容 */
.showcase-content {
    position: relative;
    margin-top: 20px;
    overflow: visible !important;
    padding: 10px 0;
}
.industry-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.industry-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* 輪播控制按鈕 - 修改為支援圖片 */
.carousel-controls {
    position: absolute;
    top: -80px;
    right: 0;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 8px;
}

.carousel-btn:hover:not(:disabled) {
    border-color: #EBEEF0 !important;
    background-color: rgba(235, 238, 240, 0.05) !important;
    transform: translateY(-2px);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #f3f4f6;
    transform: none;
}

/* 箭頭圖片樣式 */
.arrow-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    color: #1e1e1e;
    transition: all 0.3s ease;
}

.carousel-btn:hover:not(:disabled) .arrow-icon {
    transform: scale(1.1);
}

.carousel-btn:disabled .arrow-icon {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* 保留SVG支援（向後兼容） */
.carousel-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* 輪播容器改為網格容器 */
.showcase-carousel {
    overflow: visible !important;
    position: relative;
    padding: 30px 0 50px;
    margin: 0;
}

/* showcase-track 使用網格佈局（已在上方統一定義） */

/* showcase-card 樣式已在統一樣式中定義 */

.showcase-card:hover {
    transform: translateY(-8px) scale(1.01); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 10;
}

/* 強制覆蓋可能的Elementor樣式 */
.elementor-widget-html,
.elementor-widget-container,
.elementor-element {
    overflow: visible !important;
}

div[class*="showcase"] {
    overflow: visible !important;
}

.card-media {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.video-placeholder {
    position: relative;
    height: 100%;
    cursor: pointer;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.video-placeholder:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.company-name {
    font-size: 14px;
    color: #3073F1;
    font-weight: 500;
    margin-bottom: 4px;
}

.project-type {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.card-description {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

/* 響應式設計已在統一樣式中定義 *//* ---------- Footer 聯絡資訊樣式 ---------- */

/* 第二欄和第三欄容器 */
.contact-address-phone,
.contact-email-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 聯絡項目基本樣式 */
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* 聯絡項目圖標容器 */
.contact-icon {
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* SVG 圖標樣式 */
.contact-icon svg {
    width: 12px;
    height: 12px;
    color: #6b7280;
    transition: color 0.3s ease;
}

/* 聯絡文字容器 */
.contact-text {
    line-height: 1.4;
}

/* 聯絡文字內容 */
.contact-text .value {
    color: #374151;
    font-weight: 500;
    margin-bottom: 2px;
}

/* 不同聯絡方式的顏色區分 */
.contact-item.address .contact-icon {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.contact-item.address .contact-icon svg {
    color: #3b82f6;
}

.contact-item.email .contact-icon {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.contact-item.email .contact-icon svg {
    color: #10b981;
}

.contact-item.phone .contact-icon {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.contact-item.phone .contact-icon svg {
    color: #f59e0b;
}

/* Hover 效果 */
.contact-item:hover .contact-icon {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.contact-item:hover .contact-text .value {
    color: #1f2937;
}

/* 地址項目特殊樣式（因為有兩行文字） */
.contact-item.address .contact-text .value:first-child {
    margin-bottom: 2px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .contact-address-phone,
    .contact-email-main {
        gap: 15px;
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
        font-size: 13px;
    }
    
    .contact-icon {
        width: 18px;
        height: 18px;
    }
    
    .contact-icon svg {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .contact-address-phone,
    .contact-email-main {
        gap: 12px;
    }
    
    .contact-item {
        font-size: 12px;
        gap: 10px;
    }
    
    .contact-text .value {
        font-size: 12px;
    }
}

/* ---------- 資訊卡片組件樣式 ---------- */

/* 卡片容器 */
.info-card-section {
    width: 100%;
    margin: 0 0 60px;
    padding: 0 20px;
}

.info-section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1f2937;
}

.info-section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
}

/* 藍色卡片區域 */
.blue-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.blue-info-card {
    background: linear-gradient(135deg, #1754E0, #144bc9);
    border-radius: 16px;
    padding: 30px;
    color: white;
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blue-info-card:hover {
    transform: translateY(-5px);
}

.blue-info-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.blue-info-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.blue-info-card-subtitle {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.9;
}

.blue-info-card-content {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.8;
    flex-grow: 1;
}

.blue-info-card-more {
    align-self: flex-end;
    margin-top: 20px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blue-info-card-more:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 強制確保 more 按鈕可點擊 */
.blue-info-card-more,
.white-info-card-more {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 100 !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    touch-action: manipulation !important;
}

.blue-info-card-more:focus,
.white-info-card-more:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5) !important;
    outline-offset: 2px !important;
}

.blue-info-card-more:active,
.white-info-card-more:active {
    transform: scale(0.95) !important;
}

/* 白色卡片區域 */
.white-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.white-info-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f1f5f9;
}

.white-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.white-info-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: white;
}

.white-info-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1f2937;
    line-height: 1.3;
}

.white-info-card-content {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    flex-grow: 1;
}

.white-info-card-more {
    align-self: flex-end;
    margin-top: 20px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #3B82F6;
    border-radius: 8px;
    color: #3B82F6;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.white-info-card-more:hover {
    background: #3B82F6;
    color: white;
}

/* 彈窗樣式 */
.info-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.info-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.info-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.info-modal-close:hover {
    color: #374151;
}

.info-modal-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 32px;
    color: white;
}

.info-modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2937;
}

.info-modal-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #3B82F6;
}

.info-modal-text {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .blue-info-cards {
        grid-template-columns: 1fr;
    }
    
    .white-info-cards {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    
    .info-modal-content {
        margin: 10% auto;
        padding: 30px;
        width: 95%;
    }
    
    .blue-info-card,
    .white-info-card {
        padding: 24px;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .white-info-cards {
        grid-template-columns: 1fr;
    }
}

/* 彈窗動畫 */
.info-modal.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.info-modal.show .info-modal-content {
    animation: slideUp 0.3s ease;
}

/* 修復彈窗樣式 - 增強版（優化性能） */
.info-modal {
    display: none !important;
    position: fixed !important;
    z-index: 999999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
    will-change: opacity !important;
    contain: layout style !important;
}

.info-modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
}

.info-modal-content {
    background-color: white !important;
    margin: 20px auto !important;
    padding: 40px !important;
    border-radius: 20px !important;
    width: 90% !important;
    max-width: 600px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    position: relative !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25) !important;
    z-index: 1000000 !important;
    transform: scale(0.9) translateY(20px) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform, opacity !important;
    contain: layout style !important;
}

.info-modal.show .info-modal-content {
    transform: scale(1) translateY(0) !important;
}

/* 彈窗icon優化樣式 - 移除背景，直接顯示卡片icon */
.info-modal-icon {
    width: 64px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
    background: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.info-modal-icon img {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
    filter: none !important;
}

/* 載入指示器樣式 */
.blue-info-card-more[data-loading="true"],
.white-info-card-more[data-loading="true"] {
    pointer-events: none !important;
    opacity: 0.8 !important;
}

/* ---------- 圖片內容輪播組件樣式 ---------- */

/* 輪播容器 */
.image-content-carousel {
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, #fff 0%, #F1FAFD 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 80px;
}

/* 輪播軌道 */
.image-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 輪播項目 */
.image-carousel-item {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    min-height: 400px;
    position: relative;
}

/* 圖片區域 */
.image-carousel-image {
    flex: 0 0 50%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.image-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-carousel-item:hover .image-carousel-image img {
    transform: scale(1.05);
}

/* 內容區域 */
.image-carousel-content {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
}

.image-carousel-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.3;
}

.image-carousel-description {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 30px;
}

.image-carousel-link {
    display: inline-flex;
    align-items: center;
    color: #3B82F6;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.image-carousel-link:hover {
    color: #C4D9FC;
    transform: translateX(5px);
}

.image-carousel-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.image-carousel-link:hover::after {
    transform: translateX(3px);
}

/* 導航按鈕 */
.image-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #374151;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.image-carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.image-carousel-nav.prev {
    left: 20px;
}

.image-carousel-nav.next {
    right: 20px;
}

.image-carousel-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

/* 指示器 */
.image-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.image-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 替代布局 - 右圖左文 */
.image-carousel-item.reverse {
    flex-direction: row-reverse;
}

.image-carousel-item.reverse .image-carousel-content {
    background: transparent;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .image-carousel-item {
        flex-direction: column;
        min-height: auto;
    }

    .image-carousel-item.reverse {
        flex-direction: column;
    }

    .image-carousel-image {
        flex: 0 0 250px;
        width: 100%;
        height: 250px;
    }

    .image-carousel-content {
        padding: 40px 30px;
    }

    .image-carousel-title {
        font-size: 20px;
    }

    .image-carousel-description {
        font-size: 14px;
    }

    .image-carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .image-carousel-nav.prev {
        left: 10px;
    }

    .image-carousel-nav.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .image-carousel-content {
        padding: 30px 20px;
    }

    .image-carousel-title {
        font-size: 18px;
    }
}

/* ---------- Why Choose MetaGuru 組件樣式 ---------- */

/* 主容器 */
.why-choose-section {
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    overflow: hidden;
    min-height: 70vh;
    height: auto;
    padding: 60px 40px;
    border-radius: 20px;
}

/* 使用偽元素設定背景 */
.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/wp-content/uploads/2025/05/WhyMetaGuruSection_BG-scaled.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: 1;
}

/* 確保內容在背景之上 */
.why-section-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* 卡片容器 */
.why-feature-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    flex: 1;
    margin-top: 120px;
}

/* 單個卡片 */
.why-feature-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px 20px;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

/* 卡片標題 */
.why-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    color: white !important;
}

.why-feature-card:hover .why-card-title {
    color: black !important;
}

/* 簡短內容（預設顯示） */
.why-card-summary {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
    transition: all 0.3s ease;
    flex: 1;
}

/* 完整內容（hover時顯示） */
.why-card-details {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.6;
    transform: translateY(20px);
}

/* 特色高亮 */
.why-feature-card.highlighted {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Hover效果 */
.why-feature-card:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.why-feature-card:hover .why-card-summary {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.why-feature-card:hover .why-card-details {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
}

/* 響應式設計 */
@media (max-width: 968px) {
    .why-feature-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .why-section-title {
        font-size: 28px;
    }
    
    .why-choose-section {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .why-feature-cards {
        grid-template-columns: 1fr;
    }
    
    .why-section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .why-choose-section {
        padding: 30px 15px;
        min-height: auto;
    }
    
    .why-feature-card {
        padding: 25px 20px;
        min-height: 200px;
    }
}

/* 確保Elementor Container背景顯示 */
.elementor-element.elementor-container {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* ---------- 時間軸樣式 ---------- */
.timeline-section {
    text-align: center;
    width: 100%;
    padding: 60px 20px;
}

.timeline-image-container {
    max-width: 100%;
    margin: 0 auto;
}

.timeline-desktop {
    width: 100%;
    height: auto;
    display: block;
}

.timeline-mobile {
    width: 100%;
    height: auto;
    display: none;
}

/* 手機版顯示 */
@media (max-width: 768px) {
    .timeline-desktop {
        display: none;
    }
    
    .timeline-mobile {
        display: block;
    }
}

/* ---------- 全球統計組件樣式 ---------- */
.global-stats-section {
    width: 100%;
    margin-bottom: 60px;
    padding: 60px 20px;
}

.global-stats-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 60px;
}

/* 左側統計區域 */
.stats-content {
    flex: 1;
    max-width: 50%;
}

/* 右側地圖區域 */
.map-content {
    flex: 1;
    max-width: 50%;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
}

/* 統計項目 */
.stat-item {
    margin-bottom: 40px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

/* 上方統計項目 */
.stat-item-top {
    margin-bottom: 50px;
}

/* 下方統計項目容器 */
.stat-bottom-container {
    display: flex;
    gap: 40px;
    justify-content: space-between;
}

.stat-item-bottom {
    flex: 1;
    margin-bottom: 0;
}

/* 數字樣式 - 漸變色 */
.stat-number,
.stat-number-animated {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #1754e0, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* 標題 */
.stat-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
    line-height: 1.3;
}

/* 描述文字 */
.stat-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* 動畫效果 */
.stat-number-animated,
.stat-number {
    transition: all 0.3s ease;
}

.count-animation {
    animation: numberCountPulse 0.6s ease-in-out;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .global-stats-container {
        gap: 40px;
    }
    
    .stat-number {
        font-size: 40px;
    }
    
    .stat-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .global-stats-section {
        padding: 40px 15px;
    }
    
    .global-stats-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .stats-content,
    .map-content {
        max-width: 100%;
    }

    /* 手機版下方項目改為垂直排列 */
    .stat-bottom-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-title {
        font-size: 16px;
    }
    
    .stat-description {
        font-size: 13px;
    }
    
    .map-placeholder {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .stat-item {
        margin-bottom: 30px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-title {
        font-size: 15px;
    }
    
    .stat-description {
        font-size: 12px;
    }
}

/* 進場動畫 */
.stat-item-top {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease forwards;
    animation-delay: 0.2s;
}

.stat-item-bottom {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease forwards;
}

.stat-item-bottom:nth-child(1) { animation-delay: 0.4s; }
.stat-item-bottom:nth-child(2) { animation-delay: 0.6s; }

.map-content {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.8s ease forwards;
    animation-delay: 0.3s;
}

/* ==============================================
   🎯 CTA Section Component - 行動呼籲組件
   修復小螢幕背景圖片高度問題，Icon 改為一排兩個
   ============================================== */

/* === CTA 主容器 - 全寬設定 === */
.cta-section {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    max-width: none !important;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    box-sizing: border-box;
    /* 移除基礎背景，完全依賴偽元素 */
}

/* === 🎨 偽元素背景 - 響應式高度修復 === */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 🔄 替換成您的背景圖片路徑 */
    background-image: url('/wp-content/uploads/2025/05/OnestopSolutions_BG.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    opacity: 1;
    z-index: 1;
}

/* === 確保在 Elementor 環境中正常顯示 === */
.elementor-widget-html .cta-section,
.elementor-section .cta-section,
.elementor-container .cta-section,
.elementor-widget-container .cta-section {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    max-width: none !important;
    position: relative;
}

/* === 內容容器 === */
.cta-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* === 主標題 === */
.cta-title {
    font-size: 48px;
    font-weight: 700;
    color: white !important;
    margin-bottom: 60px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* === Icon 群組容器 - 桌面/平板4個一排，手機2個一排 === */
.cta-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
    margin-bottom: 60px;
    justify-items: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* === 單個 Icon 項目 === */
.cta-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
}

/* === Icon 容器 === */
.cta-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* === Icon 標籤 === */
.cta-icon-label {
    font-size: 18px;
    font-weight: 600;
    color: white !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* === 描述文字 === */
.cta-description {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* === CTA 按鈕 === */
.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: #6EC183;
    color: white !important;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(110, 193, 131, 0.4);
}

.cta-button:hover {
    background: #5ca76d;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(110, 193, 131, 0.5);
    color: white !important;
}

/* ==============================================
   📱 響應式設計 - 背景高度修復與 Icon 布局優化
   ============================================== */

/* === 大平板 (1024px 以下) === */
@media (max-width: 1024px) {
    .cta-section {
        padding: 80px 0;
    }
    
    .cta-section::before {
        background-attachment: scroll; /* 修復平板滾動問題 */
        background-size: cover;
        min-height: 100%; /* 確保背景覆蓋整個容器 */
    }
    
    .cta-content {
        padding: 0 30px;
    }
    
    .cta-title {
        font-size: 40px;
        margin-bottom: 50px;
    }
    
    .cta-icons {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px 20px;
        margin-bottom: 50px;
        max-width: 700px;
    }
    
    .cta-description {
        font-size: 16px;
        margin-bottom: 35px;
    }
}

/* === 平板 (768px 以下) === */
@media (max-width: 768px) {
    .cta-section {
        padding: 70px 0;
        /* 🔧 關鍵修復：確保小螢幕有足夠高度 */
        min-height: 100vh; /* 至少佔滿整個視窗高度 */
    }
    
    .cta-section::before {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        /* 🎯 修復背景高度不足問題 */
        min-height: 100vh; /* 背景至少覆蓋整個視窗 */
        height: 100%; /* 確保覆蓋整個容器 */
    }
    
    .cta-content {
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 80vh; /* 內容區域最小高度 */
    }
    
    .cta-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .cta-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 40px;
        margin-bottom: 40px;
        max-width: 400px;
    }
    
    .cta-icon {
        width: 70px;
        height: 70px;
    }
    
    .cta-icon img {
        width: 45px;
        height: 45px;
    }
    
    .cta-icon-label {
        font-size: 16px;
    }
    
    .cta-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .cta-button {
        padding: 14px 35px;
        font-size: 16px;
    }
}

/* === 手機版 (640px 以下) === */
@media (max-width: 640px) {
    .cta-section {
        padding: 60px 0;
        /* 🔧 手機版高度進一步優化 */
        min-height: 100vh;
    }
    
    .cta-section::before {
        /* 🎯 手機版背景優化 */
        min-height: 100vh;
        background-position: center center;
        background-size: cover; /* 確保完全覆蓋 */
    }
    
    .cta-content {
        padding: 0 15px;
        min-height: 85vh;
        justify-content: center;
    }
    
    .cta-title {
        font-size: 28px;
        margin-bottom: 35px;
    }
    
    .cta-icons {
        /* 手機版保持2x2網格 */
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 25px;
        margin-bottom: 35px;
        max-width: 300px;
    }
    
    .cta-icon {
        width: 65px;
        height: 65px;
    }
    
    .cta-icon img {
        width: 40px;
        height: 40px;
    }
    
    .cta-icon-label {
        font-size: 15px;
    }
    
    .cta-description {
        font-size: 14px;
        margin-bottom: 25px;
        line-height: 1.6;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 15px;
    }
}

/* === 小手機 (480px 以下) === */
@media (max-width: 480px) {
    .cta-section {
        padding: 50px 0;
        min-height: 100vh;
    }
    
    .cta-section::before {
        min-height: 100vh;
        /* 🔧 極小螢幕的背景位置調整 */
        background-position: center top;
    }
    
    .cta-content {
        padding: 0 12px;
        min-height: 90vh;
    }
    
    .cta-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .cta-icons {
        gap: 18px;
        margin-bottom: 30px;
    }
    
    .cta-icon {
        width: 60px;
        height: 60px;
    }
    
    .cta-icon img {
        width: 36px;
        height: 36px;
    }
    
    .cta-icon-label {
        font-size: 14px;
    }
    
    .cta-description {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* ==============================================
   🎨 進場動畫效果
   ============================================== */

.cta-section {
    opacity: 0;
    animation: ctaFadeIn 1s ease 0.3s forwards;
}

@keyframes ctaFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-icon-item {
    opacity: 0;
    transform: translateY(30px);
    animation: iconSlideUp 0.8s ease forwards;
}

.cta-icon-item:nth-child(1) { animation-delay: 0.5s; }
.cta-icon-item:nth-child(2) { animation-delay: 0.6s; }
.cta-icon-item:nth-child(3) { animation-delay: 0.7s; }
.cta-icon-item:nth-child(4) { animation-delay: 0.8s; }

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

/* ==============================================
   🔧 瀏覽器兼容性修復
   ============================================== */

/* Safari backdrop-filter 支援 */
@supports (-webkit-backdrop-filter: blur(10px)) {
    .cta-icon {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

/* 減少動畫模式 */
@media (prefers-reduced-motion: reduce) {
    .cta-section,
    .cta-icon-item {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ---------- 成功案例組件樣式 ---------- */
.success-cases-section {
  width: 100%;
  padding: 60px 20px;
}
.success-cases-container {
  max-width: 1200px;
  margin: 0 auto;
}
.success-cases-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #1f2937;
}
.news-category-bar {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.category-button {
  padding: 8px 20px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.3s ease;
}
.category-button:hover,
.category-button.active {
  background: #1754E0;
  border-color: #1754E0;
  color: white;
}
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.case-card,
.showcase-card {
    width: 100%;
    max-width: 400px;
    justify-self: start;
}

/* 當項目較少時的居中對齊 */
.news-grid.few-items,
.cases-grid.few-items {
    justify-content: center;
}

/* 響應式調整 - 覆蓋原有的響應式規則 */
@media (max-width: 1200px) {
    .news-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .news-grid,
    .cases-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .news-card,
    .case-card,
    .showcase-card {
        max-width: none;
        justify-self: stretch;
    }
}

.case-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
}
.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
/* === 🖼️ 卡片圖片區域 - 支援 WordPress 精選圖片 === */
.case-image,
.case-thumb,
.card-media,
.showcase-card .wp-post-image,
.case-card .wp-post-image {
    position: relative !important;
    height: 200px !important;
    overflow: hidden !important;
    border-radius: 16px 16px 0 0 !important;
    background: #f8fafc !important;
    display: block !important;
    width: 100% !important;
}

.case-image img,
.case-thumb img,
.card-media img,
.showcase-card .wp-post-image,
.case-card .wp-post-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    border-radius: 16px 16px 0 0 !important;
    display: block !important;
}

/* WordPress 精選圖片容器 */
.case-card .post-thumbnail,
.showcase-card .post-thumbnail {
    position: relative !important;
    height: 200px !important;
    overflow: hidden !important;
    border-radius: 16px 16px 0 0 !important;
    background: #f8fafc !important;
    margin: 0 !important;
    padding: 0 !important;
}

.case-card .post-thumbnail img,
.showcase-card .post-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 16px 16px 0 0 !important;
}

/* Hover 效果 */
.case-card:hover .wp-post-image,
.showcase-card:hover .wp-post-image,
.case-card:hover .post-thumbnail img,
.showcase-card:hover .post-thumbnail img,
.case-card:hover .case-image img {
    transform: scale(1.05) translateZ(0) !important;
}

/* 如果沒有圖片時的預設背景 */
.case-card:not(.has-post-thumbnail) .case-content::before,
.showcase-card:not(.has-post-thumbnail) .card-content::before {
    content: '';
    display: block;
    height: 200px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px 16px 0 0;
    margin: -25px -25px 20px -25px;
    position: relative;
}
.case-content {
  padding: 25px;
}
.case-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1f2937;
  line-height: 1.4;
}
.case-excerpt {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
}
.case-read-more {
  display: inline-block;
  padding: 10px 20px;
  background: #10b981;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.case-read-more:hover {
  background: #059669;
  transform: translateY(-2px);
}
.load-more-container {
  text-align: center;
}
.load-more-btn {
  padding: 12px 30px;
  background: transparent;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  color: #3b82f6;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.load-more-btn:hover {
  background: #3b82f6;
  color: white;
}
.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.case-card.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

@media (max-width: 1024px) {
  .success-cases-container {
    padding: 0 15px;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-content {
    padding: 20px;
  }

  .success-cases-title {
    font-size: 28px;
    text-align: center;
  }

  .category-tag {
    font-size: 13px;
    padding: 6px 16px;
  }

  .load-more-btn {
    font-size: 14px;
    padding: 10px 24px;
  }
}

@media (max-width: 768px) {
  .success-cases-section {
    padding: 40px 15px;
  }

  .success-cases-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
  }

  .industry-filter {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
  }

  .category-tag,
  .filter-tag {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 20px;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-card {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  }

  .case-content {
    padding: 18px;
  }

  .case-title {
    font-size: 16px;
  }

  .case-excerpt {
    font-size: 13px;
    line-height: 1.5;
  }

  .case-read-more {
    font-size: 13px;
    padding: 8px 16px;
  }

  .load-more-container {
    margin-top: 30px;
  }

  .load-more-btn {
    font-size: 14px;
    padding: 10px 24px;
  }
}


/* ---------- 📰 新聞組件樣式（News Section Styles） ---------- */
.news-section {
    width: 100%;
    padding: 80px 20px;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 主標題 */
.news-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1f2937;
}

/* 🔧 News 最新文章（Banner 下三卡） */
.news-section {
  width: 100%;
  padding: 80px 20px;
}
.news-container {
  max-width: 1200px;
  margin: 0 auto;
}

.news-latest-section {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  align-items: stretch;
}
.news-latest-card {
  flex: 0 0 33.3333%;
  padding: 20px;
  background: white;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  /* border-right: 1px solid #e5e7eb;*/
  border: none; /* 先清除所有邊框 */
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  min-height: 0;
  margin: 0;
}

.news-latest-card:not(:last-child) {
  border-right: 1px solid #e5e7eb;
}

.news-latest-logo {
  width: 100px;
  height: auto;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.news-latest-logo img {
  max-width: 100%;
  height: auto;
  display: block;
}

.news-latest-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1; 
}

.news-latest-title {
  font-size: 16px !important;
  font-weight: 700;
  color: #1754E0 !important;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-latest-title a {
    color: inherit;
    text-decoration: none !important;
}

.news-latest-title a:hover {
    color: #2563eb; /* 藍色 Hover 效果，可依需求調整 */
    text-decoration: underline !important;
}


.news-latest-benefit {
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 6px;
}

.news-latest-excerpt {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1; 
}

.news-latest-date {
  font-size: 12px;
  color: #9ca3af;
  margin-top: auto;
}

/* 響應式設計（Mobile） */
@media (max-width: 1024px) {
  .news-latest-section {
    flex-direction: column;
    padding: 0 15px 20px;
  }

  .news-latest-card {
    flex: 1 1 100%;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
  }

  .news-latest-card:last-child {
    border-bottom: none;
  }

  .news-latest-logo {
    margin-bottom: 8px;
  }
}


/* 最新文章區域 */
.recent-news {
    margin-bottom: 60px;
}

.recent-news-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1f2937;
}

.recent-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* 最新文章卡片 */
.recent-article {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #fff;
    cursor: pointer;
}
.recent-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* 客戶Logo */
.recent-article-logo {
    width: 60px;
    height: 40px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.recent-article-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.recent-article:hover .recent-article-logo img {
    filter: grayscale(0%);
    opacity: 1;
}

/* 最新文章內文 */
.recent-article-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}
.recent-article-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 12px;
}
.recent-article-date {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}
.date-icon {
    width: 14px;
    height: 14px;
    color: #6b7280;
}

/* 分類標籤（共用） - 強制優先級修復版 */
.news-categories,
.industry-filter {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    flex-wrap: wrap !important;
}

/* 強制覆蓋 WordPress/Elementor 樣式 */
.news-categories .category-tag,
.industry-filter .filter-tag,
.category-tag,
.filter-tag {
    padding: 8px 20px !important;
    background: white !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    pointer-events: auto !important;
    min-height: auto !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
    vertical-align: top !important;
}

.news-categories .category-tag:hover,
.news-categories .category-tag.active,
.industry-filter .filter-tag:hover,
.industry-filter .filter-tag.active,
.category-tag:hover,
.category-tag.active,
.filter-tag:hover,
.filter-tag.active {
    background: #1754E0 !important;
    border-color: #1754E0 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(23, 84, 224, 0.3) !important;
}

/* 一般新聞卡片區塊 - 修復三欄固定佈局 */
.news-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 50px !important;
    justify-items: stretch !important;
    align-items: stretch !important;
}

/* news-card 樣式已在統一樣式中定義 */
/* news-image 樣式已在統一樣式中定義 */
/* news-content 樣式已在統一樣式中定義 */
.news-meta {
    display: flex;
    align-items: left;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #6b7280;
}
.news-category {
    color: #3b82f6;
    padding: 0px;
    font-size: 11px;
    font-weight: 600;
}
.news-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1f2937;
    line-height: 1.4;
}
.news-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Read more 按鈕（統一樣式） */
.news-read-more,
.read-article {
    display: inline-block;
    padding: 10px 20px;
    background: #10b981;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.news-read-more:hover,
.read-article:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Load More 按鈕 */
.load-more-news-btn,
.load-more-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    color: #3b82f6;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.load-more-news-btn:hover,
.load-more-btn:hover {
    background: #3b82f6;
    color: white;
}
.load-more-news-btn:disabled,
.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

/* News 響應式設計已在統一樣式中定義 */
@media (max-width: 768px) {
    .news-section {
        padding: 60px 15px;
    }
    .news-title {
        font-size: 28px;
    }
    .recent-news-title {
        font-size: 20px;
    }
    .recent-articles {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .news-categories,
    .industry-filter {
        gap: 10px;
    }
    .category-tag,
    .filter-tag {
        padding: 6px 15px;
        font-size: 13px;
    }
}

/* 動畫 */
.news-card.fade-in,
.recent-article.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ---------- 全寬修正 ---------- */
/* 覆蓋所有組件的寬度限制，確保在Elementor全寬Section中顯示為全寬 */
.elementor-section-full_width .customer-showcase,
.elementor-section-full_width .info-card-section,
.elementor-section-full_width .global-stats-section,
.elementor-section-full_width .timeline-section,
.elementor-section-full_width .image-content-carousel,
.elementor-section-full_width .why-choose-section {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Astra主題 + Elementor 全寬修正 */
.ast-page-builder-template .elementor-section-full_width > .elementor-container {
    max-width: 100vw !important;
    width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 確保內容不受CSS限制 */
.elementor-section-full_width [class*="max-width"] {
    max-width: none !important;
}

/* 移除Astra容器限制 */
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
    background: transparent;
    padding: 0;
}

/* 強制全寬容器 */
.elementor-section.elementor-section-full_width {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* 修復Elementor h4標題樣式問題 */
.elementor-widget-container h4,
.elementor-heading-title {
    color: #fff !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin: 0 0 10px 0 !important;
}

/* ==============================================
  ESG Text Carousel Component
   ============================================== */

/* 主容器 */
.text-carousel-component {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 60px auto 100px auto; /* 底部增加空間給指示器 */
  padding: 0 20px;
  overflow: visible; /* 改為可見 */
}

/* 輪播包裝器 */
.text-carousel-wrapper {
  position: relative;
  overflow: visible; /* 改為可見，讓陰影不被截斷 */
  border-radius: 20px;
  background: transparent; /* 改為透明背景 */
  min-height: 400px;
  padding: 20px; /* 增加內邊距為陰影留空間 */
}

/* 輪播軌道 */
.text-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  padding: 0; /* 移除軌道內邊距 */
}

/* 卡片樣式 - 白色背景與自然陰影 */
.text-carousel-card {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 280px;
  align-items: center;
  gap: 40px;
  padding: 40px;
  min-height: 400px;
  position: relative;
  background: white; /* 改為白色背景 */
  border-radius: 20px; /* 圓角 */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05); /* 自然的多層陰影 */
  margin: 0 20px; /* 左右邊距，防止陰影被截斷 */
  opacity: 1;
}

/* 左上角指示器 */
.card-indicator {
  position: absolute;
  left: 30px;
  top: 30px; /* 調整位置 */
  z-index: 5;
}

.indicator-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* 內容區域 */
.card-content {
  padding-left: 20px; /* 減少左邊距 */
  z-index: 2;
}

.card-title {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 24px;
  line-height: 1.3;
}

.card-description {
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0;
}

/* 右側視覺元素 */
.card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px; /* 減少內邊距 */
  z-index: 2;
}

.visual-element {
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

/* 圖表圖片 */
.chart-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.visual-element:hover .chart-image {
  transform: scale(1.05);
}

/* 輪播定位 */
.text-carousel-track {
  transform: translateX(0%);
}

.text-carousel-wrapper.slide-0 .text-carousel-track {
  transform: translateX(0%);
}

.text-carousel-wrapper.slide-1 .text-carousel-track {
  transform: translateX(-100%);
}

.text-carousel-wrapper.slide-2 .text-carousel-track {
  transform: translateX(-200%);
}

.text-carousel-wrapper.slide-3 .text-carousel-track {
  transform: translateX(-300%);
}



/* 指示器 */
.text-carousel-indicators {
  position: absolute;
  bottom: -60px; /* 移到卡片外部 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1; /* 非活動狀態較深的灰色 */
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #3b82f6; /* 活動狀態為藍色 */
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.indicator:hover:not(.active) {
  background: #94a3b8; /* hover狀態 */
  transform: scale(1.1);
}

/* 響應式設計 */
@media (max-width: 1024px) {
  .text-carousel-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
    text-align: center;
    margin: 0 10px; /* 減少左右邊距 */
  }
  
  .card-content {
    padding-left: 0;
    order: 2;
  }
  
  .card-visual {
    order: 1;
    margin-bottom: 20px;
  }
  
  .visual-element {
    width: 200px;
    height: 200px;
  }
  
  .card-title {
    font-size: 24px;
  }
  
  .card-description {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .text-carousel-component {
    margin: 40px auto 80px auto; /* 調整底部空間 */
    padding: 0 15px;
  }
  
  .text-carousel-card {
    padding: 25px 20px;
    min-height: 350px;
    margin: 0 5px; /* 減少邊距 */
  }
  
  .card-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .card-description {
    font-size: 14px;
  }
  
  .visual-element {
    width: 160px;
    height: 160px;
  }
  
  .text-carousel-indicators {
    bottom: -50px; /* 調整指示器位置 */
  }
}

@media (max-width: 480px) {
  .text-carousel-card {
    padding: 25px 15px;
  }
  
  .card-title {
    font-size: 18px;
  }
  
  .card-description {
    font-size: 13px;
    line-height: 1.6;
  }
  
  .visual-element {
    width: 140px;
    height: 140px;
  }
}

/* 進場動畫 */
.text-carousel-component.animate-in .text-carousel-card {
  animation: slideInFromRight 0.8s ease-out;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 平滑過渡效果 */
.text-carousel-wrapper {
  transition: none; /* 移除hover效果 */
}

.text-carousel-card:hover {
  transform: translateY(-4px); /* 卡片hover上升效果 */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* 確保不影響現有組件 */
.text-carousel-component * {
  box-sizing: border-box;
}

/* 卡片切換動畫優化 */
.text-carousel-card {
  transition: all 0.6s ease; /* 加入變形過渡 */
}

/* 圖片載入優化 */
.chart-image,
.indicator-icon {
  max-width: 100%;
  height: auto;
  transition: all 0.3s ease;
}

/* 無障礙支援 */
.indicator:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* 防止文字選取干擾拖拽 */
.text-carousel-wrapper {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* 文字內容可選取 */
.card-content {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

/* 載入狀態 */
.chart-image {
  background: #f3f4f6;
  border-radius: 8px;
}

.chart-image[src=""],
.chart-image:not([src]) {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ==============================================
   ESG Green Info Cards Component CSS - 綠色資訊卡片
   ============================================== */

/* 綠色卡片容器 */
.green-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  margin: 60px 0;
}

/* 三欄版本 */
.green-info-cards.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

/* 單個綠色卡片 */
.green-info-card {
  background: linear-gradient(135deg, #63ad75 0%, #6ec183 100%);
  border-radius: 20px;
  padding: 32px 24px;
  color: white;
  position: relative;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

/* Hover 效果 */
.green-info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, #6ec183 0%, #7cc78f 100%);
}

/* 左上角圖標 */
.green-info-card-icon {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.3s ease;
}

.green-info-card:hover .green-info-card-icon {
  background: transparent !important;
  transform: scale(1.05);
}

.green-info-card-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: none !important;
  transition: all 0.3s ease;
}

/* 卡片標題 */
.green-info-card-title {
  font-size: 24px;
  font-weight: 700;
  margin: 80px 0 16px 0; /* 上邊距留給圖標空間 */
  color: white;
  line-height: 1.3;
  z-index: 2;
  position: relative;
}

/* 卡片內容 */
.green-info-card-content {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
  flex-grow: 1;
  z-index: 2;
  position: relative;
  margin-bottom: 20px;
}

.green-info-card-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}

.green-info-card-content ul {
  margin: 0;
  padding-left: 16px;
  color: rgba(255, 255, 255, 0.95);
}

.green-info-card-content li {
  margin-bottom: 4px;
}

.green-info-card-content strong {
  color: white;
  font-weight: 600;
}

/* 右下角裝飾圖案 */
.green-info-card-decoration {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 80px;
  height: 80px;
  opacity: 0.3;
  z-index: 1;
  transition: all 0.3s ease;
}

.green-info-card:hover .green-info-card-decoration {
  opacity: 0.5;
  transform: scale(1.1);
}

.green-info-card-decoration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1); /* 將裝飾圖案變為白色 */
}

/* 響應式設計 */
@media (max-width: 1024px) {
  .green-info-cards,
  .green-info-cards.three-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .green-info-card {
    min-height: 220px;
    padding: 28px 20px;
  }
  
  .green-info-card-title {
    font-size: 16px;
    margin: 70px 0 14px 0;
  }
  
  .green-info-card-content {
    font-size: 13px;
  }
  
  .green-info-card-icon {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
  }
  
  .green-info-card-icon img {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }
  
  .green-info-card-decoration {
    width: 60px;
    height: 60px;
    bottom: 12px;
    right: 12px;
  }
}

@media (max-width: 768px) {
  .green-info-cards,
  .green-info-cards.three-cols {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 40px 0;
  }
  
  .green-info-card {
    min-height: 200px;
    padding: 24px 18px;
  }
  
  .green-info-card-title {
    font-size: 16px;
    margin: 60px 0 12px 0;
  }
  
  .green-info-card-content {
    font-size: 13px;
    margin-bottom: 16px;
  }
  
  .green-info-card-icon {
    width: 36px;
    height: 36px;
    top: 18px;
    left: 18px;
  }
  
  .green-info-card-icon img {
    width: 20px;
    height: 20px;
  }
  
  .green-info-card-decoration {
    width: 50px;
    height: 50px;
    bottom: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .green-info-card {
    padding: 20px 16px;
    min-height: 180px;
  }
  
  .green-info-card-title {
    font-size: 15px;
    margin: 55px 0 10px 0;
  }
  
  .green-info-card-content {
    font-size: 12px;
  }
  
  .green-info-card-icon {
    width: 32px;
    height: 32px;
    top: 16px;
    left: 16px;
  }
  
  .green-info-card-icon img {
    width: 18px;
    height: 18px;
  }
  
  .green-info-card-decoration {
    width: 40px;
    height: 40px;
    bottom: 8px;
    right: 8px;
  }
}

/* 進場動畫 */
.green-info-card {
  opacity: 0;
  transform: translateY(20px);
  animation: greenCardFadeIn 0.6s ease forwards;
}

.green-info-card:nth-child(1) { animation-delay: 0.1s; }
.green-info-card:nth-child(2) { animation-delay: 0.2s; }
.green-info-card:nth-child(3) { animation-delay: 0.3s; }
.green-info-card:nth-child(4) { animation-delay: 0.4s; }
.green-info-card:nth-child(5) { animation-delay: 0.5s; }
.green-info-card:nth-child(6) { animation-delay: 0.6s; }

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

/* 確保不影響現有組件 */
.green-info-cards * {
  box-sizing: border-box;
}

/* 無障礙支援 */
.green-info-card:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* 特殊變體 - 深色綠 */
.green-info-card.dark-variant {
  background: linear-gradient(135deg, #6EC183 0%, #69bf7f 100%);
}

.green-info-card.dark-variant:hover {
  background: linear-gradient(135deg, #6EC183 0%, #69bf7f 100%);
}

/* 特殊變體 - 淺色綠 */
.green-info-card.light-variant {
  background: linear-gradient(135deg, #6EC183 0%, #69bf7f 100%);
}

.green-info-card.light-variant:hover {
  background: linear-gradient(135deg, #6EC183 0%, #69bf7f 100%);
}

/* 載入狀態 */
.green-info-card-icon img,
.green-info-card-decoration img {
  transition: opacity 0.3s ease;
}

.green-info-card-icon img[src=""],
.green-info-card-icon img:not([src]),
.green-info-card-decoration img[src=""],
.green-info-card-decoration img:not([src]) {
  opacity: 0;
}

/* 圖片載入失敗時的替代樣式 */
.green-info-card-icon img[alt]:after {
  content: attr(alt);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  color: white;
  text-align: center;
  opacity: 0.7;
}

/* ==============================================
   ESG Overview 專用樣式
   包含：標題置中、MetaGuru介紹區段、ESG專用背景
   ============================================== */

/* ESG Feature Header - 標題置中 */
.esg-feature-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.esg-feature-title {
  font-size: 36px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0;
  line-height: 1.3;
}

/* MetaGuru 介紹區段 */
.metaguru-intro-section {
  width: 100%;
  padding: 50px 0;
  margin: 50px 0;
  position: relative;
  z-index: 2;
}

.metaguru-intro-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.metaguru-intro-title {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 24px;
  line-height: 1.3;
}

.metaguru-intro-content {
  max-width: 800px;
  margin: 0 auto;
}

.metaguru-intro-content p {
  font-size: 18px;
  line-height: 1.7;
  color: #6b7280;
  margin: 0;
  text-align: center;
}

.metaguru-intro-content strong {
  color: #6EC183;
  font-weight: 600;
}

/* ESG 專用產品滑動組件 */
.esg-product-slider-wrapper {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 80px 0;
  position: relative;
  margin-top: 50px;
  margin-bottom: 0;
}

.esg-product-slider-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/wp-content/uploads/2025/06/esg_relatedsolutions_bg.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 1;
  z-index: 0;
}

.esg-slider-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 50px;
  color: #1f2937;
  position: relative;
  z-index: 2;
}

.esg-product-slider-section {
  position: relative;
  z-index: 2;
}

/* 確保內部元素在背景之上 */
.esg-product-slider-wrapper .product-slider-content,
.esg-product-slider-wrapper .product-slider-wrapper,
.esg-product-slider-wrapper .product-slider-container,
.esg-product-slider-wrapper .product-cards-container,
.esg-product-slider-wrapper .product-card {
  position: relative;
  z-index: 3;
}

/* ESG 版本的產品卡片微調 */
.esg-product-slider-wrapper .product-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.esg-product-slider-wrapper .product-card:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* ESG 版本的導航按鈕 */
.esg-product-slider-wrapper .product-slider-nav {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(16, 185, 129, 0.2);
  backdrop-filter: blur(10px);
}

.esg-product-slider-wrapper .product-slider-nav:hover {
  border-color: #6EC183;
  background: rgba(255, 255, 255, 1);
  color: #6EC183;
}

/* 響應式設計 */
@media (max-width: 1024px) {
  .esg-feature-title {
    font-size: 32px;
  }
  
  .metaguru-intro-title {
    font-size: 28px;
  }
  
  .metaguru-intro-content p {
    font-size: 16px;
  }
  
  .esg-slider-title {
    font-size: 32px;
  }
  
  .metaguru-intro-section {
    padding: 40px 0;
    margin: 40px 0;
  }
}

@media (max-width: 768px) {
  .esg-feature-title {
    font-size: 28px;
  }
  
  .metaguru-intro-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .metaguru-intro-content p {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .esg-slider-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .metaguru-intro-section {
    padding: 30px 0;
    margin: 30px 0;
  }
  
  .esg-product-slider-wrapper {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .esg-feature-title {
    font-size: 24px;
  }
  
  .metaguru-intro-title {
    font-size: 22px;
  }
  
  .metaguru-intro-content p {
    font-size: 14px;
  }
  
  .esg-slider-title {
    font-size: 24px;
  }
  
  .metaguru-intro-container {
    padding: 0 15px;
  }
}

/* 進場動畫 */
.metaguru-intro-section {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

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

/* 確保與綠色卡片的間距 */
.green-info-cards + .metaguru-intro-section {
  margin-top: 80px;
}

.metaguru-intro-section + .esg-product-slider-wrapper {
  margin-top: 50px;
}

/* ESG 主題色彩強調 */
.metaguru-intro-content strong {
  position: relative;
}

.metaguru-intro-content strong::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #6EC183, #6abf7f);
  border-radius: 1px;
}

/* ==============================================
   🎯 ESG雙文字輪播組件 CSS 補充
   ============================================== */

/* === 📦 新增：雙輪播容器樣式 === */
.dual-carousel-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible; /* 讓指示器可見 */
    padding: 40px 20px 80px 20px; /* 底部增加空間給指示器 */
    position: relative;
}

/* 新增：容器主標題 */
.dual-carousel-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1f2937 !important;
    margin-bottom: 50px;
    line-height: 1.3;
}

/* 新增：各輪播區段標題 */
.carousel-section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937 !important;
    margin-bottom: 40px;
    line-height: 1.3;
}

/* === 🔧 修改：現有文字輪播組件在雙容器中的調整 === */
.dual-carousel-container .text-carousel-component {
    margin-top: 0;
    margin-bottom: 80px;
    overflow: visible !important; /* 確保指示器可見 */
}

.dual-carousel-container .text-carousel-component:last-child {
    margin-bottom: 0; /* 最後一個輪播不需要底部間距 */
}

/* 修改：輪播包裝器在雙容器中的調整 */
.dual-carousel-container .text-carousel-wrapper {
    overflow: visible !important; /* 重要：讓指示器不被截斷 */
    padding: 20px 0; /* 上下增加空間 */
}

/* 修改：卡片在雙容器中的增強 */
.dual-carousel-container .text-carousel-card {
    border: 1px solid rgba(243, 244, 246, 0.8); /* 淡邊框增加層次感 */
}

.dual-carousel-container .text-carousel-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
}

/* 修改：指示器在雙容器中的位置調整 */
.dual-carousel-container .text-carousel-indicators {
    bottom: -60px; /* 確保在容器外部可見 */
}

/* === 📱 響應式調整：只針對雙容器 === */
@media (max-width: 1024px) {
    .dual-carousel-container {
        padding: 30px 15px 70px 15px;
    }

    .dual-carousel-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .carousel-section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .dual-carousel-container .text-carousel-component {
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .dual-carousel-container {
        padding: 25px 10px 60px 10px;
        border-radius: 16px;
    }

    .dual-carousel-title {
        font-size: 28px;
        margin-bottom: 35px;
    }

    .carousel-section-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .dual-carousel-container .text-carousel-component {
        margin-bottom: 50px;
    }

    .dual-carousel-container .text-carousel-indicators {
        bottom: -50px;
        gap: 10px;
    }

    .dual-carousel-container .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .dual-carousel-container {
        padding: 20px 8px 50px 8px;
    }

    .dual-carousel-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .carousel-section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

/* === 🔧 Elementor 兼容性：只針對雙容器 === */
.elementor-widget-html .dual-carousel-container,
.elementor-section .dual-carousel-container,
.elementor-container .dual-carousel-container,
.elementor-widget-container .dual-carousel-container {
    width: 100% !important;
    position: relative;
    overflow: visible !important;
}

.elementor-element .dual-carousel-container {
    /* 完全移除我們的 margin 設定，讓 Elementor 控制 */
    margin-left: inherit !important;
    margin-right: inherit !important;
}

/* 覆蓋 Elementor 對雙容器內標題的樣式衝突 */
.dual-carousel-container h1,
.dual-carousel-container h2 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important;
}

.dual-carousel-container .dual-carousel-title {
    margin-bottom: 50px !important;
}

.dual-carousel-container .carousel-section-title {
    margin-bottom: 40px !important;
}

/* === 🎨 視覺增強：只針對雙容器 === */
.dual-carousel-container .indicator-icon {
    transition: transform 0.3s ease;
}

.dual-carousel-container .card-indicator:hover .indicator-icon {
    transform: scale(1.05);
}

/* === 🛡️ 確保樣式優先級 === */
.dual-carousel-container * {
    box-sizing: border-box;
}

/* 📏 降低 tab 最小高度，防止空白撐開 */
.tab-content-wrapper {
  min-height: 200px !important;
}


/* 🌊 修正背景區塊過大問題 */
.bpm-feature-section::before,
.video-intro-component::before {
  height: 100% !important;
  width: 100% !important;
}

/* ==============================================
   🎯 Cloudera 樣式
   ============================================== */

/* ========== 全域基礎設定 ========== */
* {
  box-sizing: border-box;
}

.cloudera-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* ========== Tab 導航優化 ========== */
.product-tabbar {
  padding: 0;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.product-tabbar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.product-tabbar li {
  margin: 0;
}

.product-tabbar a {
  display: block;
  padding: 20px 40px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-tabbar a:hover,
.product-tabbar a.active {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
}

/* ========== Hero 區域增強 ========== */
.cloudera-video-section {
  background: linear-gradient(135deg, #1754E0 0%, #2563EB 50%, #10B981 100%);
  padding: 80px 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

.cloudera-video-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="80" cy="50" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="80" r="1.5" fill="rgba(255,255,255,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
  z-index: 0;
}

.video-intro-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.video-intro-content {
  padding-right: 40px;
}

.video-intro-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.video-intro-description {
  font-size: 24px;
  margin-bottom: 20px;
  opacity: 0.95;
  font-weight: 300;
  line-height: 1.4;
}

.video-intro-sub-description {
  font-size: 18px;
  opacity: 0.85;
  line-height: 1.6;
  font-weight: 300;
}

/* ========== 影片播放器增強 ========== */
.video-intro-media {
  position: relative;
}

.video-intro-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.video-intro-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.4);
}

.video-placeholder {
  position: relative;
  cursor: pointer;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-placeholder:hover .video-thumbnail {
  transform: scale(1.05);
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.video-play-button svg {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.video-placeholder:hover .video-play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-placeholder:focus {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
}

/* ========== 內容文字區塊 - 滿版藍色背景 ========== */
.cloudera-text-section {
  background: #0539C0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cloudera-text-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="textbg" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="10" cy="40" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23textbg)"/></svg>');
  opacity: 0.8;
  z-index: 0;
}

.cloudera-text {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 20px;
  line-height: 1.8;
  color: white;
  position: relative;
  z-index: 1;
  text-align: center;
}

.cloudera-text p {
  margin-bottom: 28px;
  opacity: 0.95;
  font-weight: 300;
}

.cloudera-text p:last-child {
  margin-bottom: 0;
}

/* ========== 里程碑統計區塊 ========== */
.cloudera-section {
  padding: 80px 20px;
}

.cloudera-container {
  max-width: 1200px;
  margin: 0 auto;
}

.cloudera-header {
  text-align: center;
  margin-bottom: 60px;
}

.cloudera-title {
  font-size: 42px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 16px;
  position: relative;
}

.cloudera-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #1754E0, #10B981);
  border-radius: 2px;
}

/* ========== 里程碑網格 - 根據設計稿優化 ========== */
.cloudera-milestone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 60px 40px;
  margin-top: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.cloudera-milestone-item {
  text-align: left;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transition: all 0.3s ease;
  border: none;
}

.cloudera-milestone-item:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.cloudera-milestone-item strong {
  display: block;
  font-size: 56px;
  font-weight: 700;
  background: linear-gradient(90deg, #1754e0, #10B981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 統一使用漸層色彩 */

.cloudera-milestone-item .milestone-title {
  font-size: 18px;
  color: #1a1a1a;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.cloudera-milestone-item .milestone-desc {
  font-size: 14px;
  color: #666;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

/* ========== 特色功能網格 - 根據設計稿優化 ========== */
.cloudera-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 30px;
  margin-top: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.cloudera-feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e8e8e8;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.cloudera-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.cloudera-feature-card:hover::before {
  transform: scaleX(1);
}

.cloudera-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #d0d0d0;
}

.cloudera-feature-icon {
  width: 60px;
  height: 60px;
  background: #4285F4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.cloudera-feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 移除 filter 效果，讓圖片保持原始顏色 */
}

.cloudera-feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.4;
}

.cloudera-feature-card p {
  color: #666;
  line-height: 1.5;
  margin: 0;
  font-size: 14px;
}

/* ========== CTA 區塊 - 滿版設計 ========== */
.cloudera-cta-section {
  background: #0539C0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cloudera-cta-section .cloudera-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.cloudera-cta-title {
  font-size: 48px;
  font-weight: 400;
  color: white !important;
  margin-bottom: 40px;
  text-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cloudera-cta-button {
  display: inline-block;
  background: white;
  color: #4285F4;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: none;
  min-width: 140px;
}

.cloudera-cta-button:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #4285F4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========== 響應式設計 ========== */
@media (max-width: 1024px) {
  .video-intro-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .video-intro-content {
    padding-right: 0;
  }
  
  .video-intro-title {
    font-size: 36px;
  }
  
  .video-intro-description {
    font-size: 20px;
  }
  
  .cloudera-milestone-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
  }
  
  .cloudera-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .cloudera-cta-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .cloudera-video-section {
    padding: 60px 20px;
  }
  
  .video-intro-title {
    font-size: 28px;
  }
  
  .video-intro-description {
    font-size: 18px;
  }
  
  .video-intro-sub-description {
    font-size: 16px;
  }
  
  .cloudera-title {
    font-size: 32px;
  }
  
  .cloudera-milestone-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .cloudera-milestone-item strong {
    font-size: 42px;
  }
  
  .cloudera-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cloudera-feature-card {
    padding: 30px 24px;
  }
  
  .product-tabbar a {
    padding: 16px 32px;
    font-size: 14px;
  }
  
  /* 文字區塊響應式 */
  .cloudera-text-section {
    padding: 60px 0;
  }
  
  .cloudera-text {
    font-size: 18px;
    padding: 0 20px;
  }
  
  /* CTA 響應式 */
  .cloudera-cta-title {
    font-size: 32px;
  }
  
  .cloudera-cta-section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .cloudera-video-section {
    padding: 40px 15px;
  }
  
  .video-intro-title {
    font-size: 24px;
  }
  
  .video-intro-description {
    font-size: 16px;
  }
  
  .cloudera-title {
    font-size: 28px;
  }
  
  .cloudera-cta-title {
    font-size: 28px;
  }
  
  .cloudera-cta-button {
    padding: 14px 32px;
    font-size: 16px;
  }
  
  .product-tabbar a {
    padding: 12px 24px;
  }
  
  /* 文字區塊手機版 */
  .cloudera-text-section {
    padding: 50px 0;
  }
  
  .cloudera-text {
    font-size: 16px;
    padding: 0 15px;
    line-height: 1.7;
  }
}

/* ========== 動畫效果 ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cloudera-milestone-item,
.cloudera-feature-card {
  animation: fadeInUp 0.6s ease forwards;
}

.cloudera-milestone-item:nth-child(1) { animation-delay: 0.1s; }
.cloudera-milestone-item:nth-child(2) { animation-delay: 0.2s; }
.cloudera-milestone-item:nth-child(3) { animation-delay: 0.3s; }
.cloudera-milestone-item:nth-child(4) { animation-delay: 0.4s; }
.cloudera-milestone-item:nth-child(5) { animation-delay: 0.5s; }

.cloudera-feature-card:nth-child(1) { animation-delay: 0.1s; }
.cloudera-feature-card:nth-child(2) { animation-delay: 0.2s; }
.cloudera-feature-card:nth-child(3) { animation-delay: 0.3s; }
.cloudera-feature-card:nth-child(4) { animation-delay: 0.4s; }
.cloudera-feature-card:nth-child(5) { animation-delay: 0.5s; }

/* ========== 載入優化 ========== */
.cloudera-page {
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

/* ========== 焦點樣式增強 ========== */
.cloudera-cta-button:focus,
.video-placeholder:focus {
  outline: 3px solid rgba(23, 84, 224, 0.5);
  outline-offset: 4px;
}

/* ========== 高對比度模式支援 ========== */
@media (prefers-contrast: high) {
  .cloudera-milestone-item,
  .cloudera-feature-card {
    border-width: 2px;
    border-color: #1754E0;
  }
  
  .video-placeholder:focus {
    outline-width: 4px;
    outline-color: #000;
  }
}

/* ========== 減少動畫偏好支援 ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==============================================
   🔧 強制修復：彈窗與卡片樣式
   ============================================== */

/* 修復卡片標題顏色 */
.blue-info-card-title {
    color: white !important;
}

.blue-info-card-content {
    color: white !important;
}

.blue-info-card-content ul,
.blue-info-card-content li {
    color: white !important;
}

/* 強制修復彈窗位置 */
.info-modal {
    position: fixed !important;
    z-index: 999999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    overflow-y: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

.info-modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.info-modal-content {
    background-color: white !important;
    margin: 20px auto !important;
    padding: 40px !important;
    border-radius: 20px !important;
    width: 90% !important;
    max-width: 600px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    position: relative !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25) !important;
    z-index: 1000000 !important;
    transform: none !important;
}

/* 強制覆蓋任何外部樣式 */
.elementor-widget-container .info-modal,
.elementor-section .info-modal,
body .info-modal {
    position: fixed !important;
    z-index: 999999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
}

/* 確保關閉按鈕可見 */
.info-modal-close {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    z-index: 1000001 !important;
    color: #666 !important;
    font-size: 28px !important;
    cursor: pointer !important;
}

/* 產業分類用 */
.industry-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1rem;
}
.filter-tag {
  padding: 6px 12px;
  background: #eee;
  border-radius: 20px;
  cursor: pointer;
}
.filter-tag.active {
  background: #0073aa;
  color: #fff;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.case-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
  transition: all 0.3s ease;
}
.case-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

/* ==============================================
   🏆 Success Cases & Customer Showcase 增強樣式
   ============================================== */

/* 成功案例主區域 */
.success-cases-section {
    padding: 60px 0;
    margin: 0;
}

.success-cases-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.success-cases-header {
    text-align: center;
    margin-bottom: 50px;
}

.success-cases-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.success-cases-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 分類標籤增強 */
.news-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.news-categories .category-tag {
    background: #ffffff !important;
    color: #666 !important;
    border: 2px solid #e0e0e0 !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.news-categories .category-tag:hover,
.news-categories .category-tag.active {
    background: #1754E0 !important;
    border-color: #1754E0 !important;
    color: white !important;
    transform: translateY(-2px) translateZ(0) !important;
    box-shadow: 0 4px 12px rgba(23, 84, 224, 0.3) !important;
}

/* 移除標籤數字 */
.news-categories .category-tag::after {
    display: none !important;
}

/* 確保標籤純色背景 */
.news-categories .category-tag {
    background: white !important;
    color: #6b7280 !important;
}

/* 案例卡片網格 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 案例卡片樣式 */
.case-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.case-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card:hover .case-card-image img {
    transform: scale(1.05);
}

.case-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.case-card-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
}

.case-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.case-card-tag {
    background: #f0f8ff;
    color: #0066cc;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.case-card-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.case-card-link:hover {
    color: #004499;
}

.case-card-link::after {
    content: "→";
    transition: transform 0.3s ease;
}

.case-card-link:hover::after {
    transform: translateX(3px);
}

/* 載入更多按鈕 */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: linear-gradient(135deg, #0066cc, #004499);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,102,204,0.3);
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #004499, #0066cc);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,102,204,0.4);
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .success-cases-header h2 {
        font-size: 2rem;
    }
    
    .news-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .news-categories .category-tag {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .case-card-content {
        padding: 20px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 載入狀態動畫 */
.case-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.case-card.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* 空狀態樣式 */
.no-cases-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
}

.no-cases-message .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 統計數據區域 */
.success-stats {
    background: linear-gradient(135deg, #0066cc, #004499);
    color: white;
    padding: 40px 0;
    margin: 50px 0;
    border-radius: 15px;
}

.success-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.success-stat-item {
    padding: 20px;
}

.success-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    animation: numberCountPulse 2s ease-in-out infinite;
}

.success-stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* 過濾器計數器 */
.category-tag .count {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 5px;
}

.category-tag.active .count {
    background: rgba(255,255,255,0.3);
}

/* === 🎯 Customer Showcase & Success Cases 統一樣式修復 === */

/* === 重要：覆蓋任何可能的JavaScript動態樣式 === */
.showcase-track[style],
.cases-grid[style],
.news-grid[style] {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    transform: none !important;
    transition: none !important;
}

/* 強制移除任何輪播相關的transform */
.showcase-card[style] {
    transform: none !important;
    left: auto !important;
    right: auto !important;
    position: relative !important;
}

/* 確保網格項目不受flex影響 */
.showcase-track > *,
.cases-grid > *,
.news-grid > * {
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
}

/* Customer Showcase 主容器 */
.customer-showcase {
    width: 100%;
    margin: 60px auto;
    padding: 0 20px;
    overflow: visible !important;
}

/* Success Cases 主容器 */
.success-cases-section {
    width: 100%;
    padding: 60px 0;
    margin: 0;
}

/* === 統一網格佈局：3欄桌面版，響應式調整 === */
.showcase-track,
.cases-grid,
.news-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-items: stretch !important;
    align-items: stretch !important;
}

/* 移除舊的 flex 佈局 */
.showcase-track {
    transition: none !important;
    transform: none !important;
}

/* === 統一卡片樣式與高度 === */
.showcase-card,
.case-card,
.news-card {
    background: white !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important; /* 防止grid項目收縮 */
    height: 420px !important; /* 統一固定高度 */
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

.showcase-card:hover,
.case-card:hover,
.news-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    z-index: 10 !important;
}

/* === 統一圖片區域 === */
.showcase-card .card-media,
.showcase-card .post-thumbnail,
.case-card .case-image,
.case-card .post-thumbnail,
.news-card .news-image {
    width: 100% !important;
    height: 200px !important;
    overflow: hidden !important;
    border-radius: 16px 16px 0 0 !important;
    background: #f8fafc !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    order: 1 !important;
}

.showcase-card .card-media img,
.showcase-card .post-thumbnail img,
.case-card .case-image img,
.case-card .post-thumbnail img,
.news-card .news-image img,
.showcase-card .wp-post-image,
.case-card .wp-post-image,
.news-card .wp-post-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    border-radius: 16px 16px 0 0 !important;
    display: block !important;
}

/* Hover 效果 */
.showcase-card:hover .card-media img,
.showcase-card:hover .post-thumbnail img,
.case-card:hover .case-image img,
.case-card:hover .post-thumbnail img,
.news-card:hover .news-image img,
.showcase-card:hover .wp-post-image,
.case-card:hover .wp-post-image,
.news-card:hover .wp-post-image {
    transform: scale(1.05) !important;
}

/* === 統一內容區域 === */
.showcase-card .card-content,
.case-card .case-content,
.news-card .news-content {
    padding: 20px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    order: 2 !important;
    background: white !important;
}

/* === 統一標題樣式 === */
.showcase-card .card-content h3,
.case-card .case-content .case-title,
.case-card .case-title,
.news-card .news-content .news-card-title,
.news-card .news-card-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    color: #333 !important;
    line-height: 1.4 !important;
    text-align: left !important;
    height: auto !important;
    min-height: 44px !important; /* 確保標題區域一致 */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* === 統一公司名稱/分類樣式 === */
.showcase-card .company-name,
.case-card .case-category,
.news-card .news-category {
    font-size: 12px !important;
    color: #3073F1 !important;
    font-weight: 500 !important;
    margin-bottom: 4px !important;
    text-align: left !important;
}

/* === 統一描述區域 === */
.showcase-card .card-description,
.case-card .case-excerpt,
.case-card .case-description,
.news-card .news-excerpt {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #666 !important;
    margin-bottom: 12px !important;
    text-align: left !important;
    flex: 1 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* === 統一按鈕/連結樣式 === */
.showcase-card .card-read-more,
.case-card .case-read-more,
.news-card .news-read-more {
    display: inline-block !important;
    padding: 8px 16px !important;
    background: #10b981 !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    align-self: flex-start !important;
    margin-top: auto !important;
}

.showcase-card .card-read-more:hover,
.case-card .case-read-more:hover,
.news-card .news-read-more:hover {
    background: #059669 !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

/* === 響應式設計 === */
@media (max-width: 1024px) {
    .showcase-track,
    .cases-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
        padding: 0 15px !important;
    }
    
    .showcase-card,
    .case-card,
    .news-card {
        height: 400px !important;
        min-width: 280px !important;
    }
}

@media (max-width: 768px) {
    .showcase-track,
    .cases-grid,
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 10px !important;
    }
    
    .showcase-card,
    .case-card,
    .news-card {
        height: auto !important;
        min-height: 350px !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    
    .showcase-card .card-content,
    .case-card .case-content,
    .news-card .news-content {
        padding: 18px !important;
    }
}

/* === News Load More 按鈕樣式修復 === */
.news-section .load-more-container,
.load-more-container {
    text-align: center !important;
    margin-top: 40px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.news-section .load-more-news-btn,
.load-more-news-btn,
.news-section .load-more-btn,
.load-more-btn,
#loadMoreNewsBtn,
#loadMoreBtn {
    display: inline-block !important;
    padding: 12px 30px !important;
    background: transparent !important;
    border: 2px solid #3b82f6 !important;
    border-radius: 8px !important;
    color: #3b82f6 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    min-width: 140px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.news-section .load-more-news-btn:hover,
.load-more-news-btn:hover,
.news-section .load-more-btn:hover,
.load-more-btn:hover,
#loadMoreNewsBtn:hover,
#loadMoreBtn:hover {
    background: #3b82f6 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.news-section .load-more-news-btn:disabled,
.load-more-news-btn:disabled,
.news-section .load-more-btn:disabled,
.load-more-btn:disabled,
#loadMoreNewsBtn:disabled,
#loadMoreBtn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* === 確保Load More按鈕顯示 === */
.load-more-container {
    display: block !important;
    text-align: center !important;
    margin-top: 40px !important;
}

.load-more-btn, .load-more-news-btn {
    display: inline-block !important;
    padding: 12px 30px !important;
    background: transparent !important;
    border: 2px solid #3b82f6 !important;
    border-radius: 8px !important;
    color: #3b82f6 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.load-more-btn:hover, .load-more-news-btn:hover {
    background: #3b82f6 !important;
    color: white !important;
}

/* === 隱藏舊的輪播控制 === */
.carousel-controls {
    display: none !important;
}

/* === 修復可能的主題衝突 === */
.case-card .entry-header,
.showcase-card .entry-header,
.news-card .entry-header {
    display: none !important;
}

.case-card .entry-content,
.showcase-card .entry-content,
.news-card .entry-content {
    display: none !important;
}

/* === 確保圖片在內容上方 === */
.case-card > *:first-child,
.showcase-card > *:first-child,
.news-card > *:first-child {
    order: 1 !important;
}

.case-card > .case-content,
.showcase-card > .card-content,
.news-card > .news-content {
    order: 2 !important;
}

/* ==============================================
   🔧 移除多餘內容區塊 - 簡單快速修復
   ============================================== */

/* === 🚫 隱藏/移除多餘的內容區塊 === */

/* 隱藏多餘的 WordPress 生成內容 */
.case-card .entry-content,
.showcase-card .entry-content,
.case-card .post-content,
.showcase-card .post-content {
    display: none !important;
}

/* 隱藏多餘的摘要區塊 */
.case-card .entry-summary,
.showcase-card .entry-summary {
    display: none !important;
}

/* 隱藏 WordPress 自動生成的內容區塊 */
.case-card .wp-block-post-content,
.showcase-card .wp-block-post-content {
    display: none !important;
}

/* 只保留我們需要的內容區域 */
.case-card > *:not(.post-thumbnail):not(.case-image):not(.case-thumb):not(.card-media):not(.case-content):not(.card-content) {
    display: none !important;
}

.showcase-card > *:not(.post-thumbnail):not(.case-image):not(.case-thumb):not(.card-media):not(.case-content):not(.card-content) {
    display: none !important;
}

/* 確保只有正確的內容區域顯示 */
.case-card .case-content,
.showcase-card .card-content {
    display: block !important;
    order: 10 !important;
}

/* 確保圖片區域正確顯示 */
.case-card .post-thumbnail,
.showcase-card .post-thumbnail,
.case-card .case-image,
.showcase-card .case-image {
    display: block !important;
    order: -10 !important;
}

/* === 🎯 強制清理任何多餘的 padding/margin === */
.case-card,
.showcase-card {
    padding: 0 !important;
    margin: 0 !important;
}

/* 移除可能導致額外空間的元素 */
.case-card br,
.showcase-card br {
    display: none !important;
}

/* 清理空的 div */
.case-card > div:empty,
.showcase-card > div:empty {
    display: none !important;
}

/* === 📱 確保卡片高度自適應 === */
.case-card {
    height: auto !important;
    min-height: auto !important;
}

.showcase-card {
    height: auto !important;
    min-height: auto !important;
}

/* ==============================================
   🔧 修正圖片位置 - 圖片應該在 case-content 內的上方
   ============================================== */

/* === 🎯 重新定義卡片結構 === */
.case-card,
.showcase-card {
    background: white !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    display: block !important; /* 改為 block，讓內容自然排列 */
}

/* === 📦 case-content 作為主容器 === */
.case-card .case-content,
.showcase-card .case-content,
.case-card .card-content,
.showcase-card .card-content {
    padding: 0 !important; /* 移除 padding，讓圖片能貼邊 */
    background: white !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* === 🖼️ 圖片區域 - 在 case-content 內的頂部 === */
.case-card .case-content .post-thumbnail,
.showcase-card .case-content .post-thumbnail,
.case-card .card-content .post-thumbnail,
.showcase-card .card-content .post-thumbnail,
.case-card .case-content .case-image,
.showcase-card .case-content .case-image,
.case-card .card-content .case-image,
.showcase-card .card-content .case-image {
    width: 100% !important;
    height: 200px !important;
    overflow: hidden !important;
    border-radius: 16px 16px 0 0 !important;
    background: #f8fafc !important;
    margin: 0 !important;
    padding: 0 !important;
    order: -10 !important; /* 確保圖片在最上方 */
    display: block !important;
    flex-shrink: 0 !important;
}

/* === 🖼️ 圖片本體 === */
.case-card .case-content .post-thumbnail img,
.showcase-card .case-content .post-thumbnail img,
.case-card .card-content .post-thumbnail img,
.showcase-card .card-content .post-thumbnail img,
.case-card .case-content img.wp-post-image,
.showcase-card .case-content img.wp-post-image,
.case-card .card-content img.wp-post-image,
.showcase-card .card-content img.wp-post-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 16px 16px 0 0 !important;
    transition: transform 0.3s ease !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* === 📝 文字內容區域 - 在圖片下方 === */
.case-card .case-content .content-text,
.showcase-card .case-content .content-text,
.case-card .card-content .content-text,
.showcase-card .card-content .content-text {
    padding: 25px !important;
    flex: 1 !important;
    order: 10 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* === 📝 標題和內容樣式 === */
.case-card .case-content h3,
.showcase-card .case-content h3,
.case-card .card-content h3,
.showcase-card .card-content h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    color: #1f2937 !important;
    line-height: 1.4 !important;
    order: 1 !important;
}

.case-card .case-content p,
.showcase-card .case-content p,
.case-card .card-content p,
.showcase-card .card-content p {
    font-size: 14px !important;
    color: #6b7280 !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
    order: 2 !important;
}

.case-card .case-content .case-excerpt,
.showcase-card .case-content .case-excerpt,
.case-card .card-content .card-description,
.showcase-card .card-content .card-description {
    order: 3 !important;
    margin-bottom: 15px !important;
}

.case-card .case-content .case-read-more,
.showcase-card .case-content .case-read-more,
.case-card .card-content .case-read-more,
.showcase-card .card-content .case-read-more {
    order: 4 !important;
    margin-top: auto !important;
}

/* === 🚫 隱藏外部圖片容器（如果有的話） === */
.case-card > .post-thumbnail,
.showcase-card > .post-thumbnail,
.case-card > .case-image,
.showcase-card > .case-image {
    display: none !important;
}

/* === 🎨 Hover 效果 === */
.case-card:hover,
.showcase-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.case-card:hover img,
.showcase-card:hover img {
    transform: scale(1.05) translateZ(0) !important;
}

/* === 📱 響應式調整 === */
@media (max-width: 768px) {
    .case-card .case-content .content-text,
    .showcase-card .case-content .content-text,
    .case-card .card-content .content-text,
    .showcase-card .card-content .content-text {
        padding: 20px !important;
    }
}

/* =================================================================
   🔧 CSS Grid 空洞修復 - Success Cases 卡片佈局
   解決篩選後出現空洞的問題
   ================================================================= */

/* 改進的 Grid 佈局 - 自動適應卡片數量 */
.cases-grid,
.news-grid,
.success-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 30px !important;
    justify-content: start !important;
    align-content: start !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px 0 !important;
    
    /* 關鍵：自動填充密集佈局，消除空洞 */
    grid-auto-flow: row dense !important;
}

/* 隱藏的卡片完全移出佈局流 */
.case-card[style*="display: none"],
.showcase-card[style*="display: none"],
.news-card[style*="display: none"],
.success-card[style*="display: none"] {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 可見卡片的優化顯示 */
.case-card[style*="display: block"],
.showcase-card[style*="display: block"], 
.news-card[style*="display: block"],
.success-card[style*="display: block"] {
    display: block !important;
    position: relative !important;
    left: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 1 !important;
    height: auto !important;
    overflow: visible !important;
    animation: gridCardFadeIn 0.4s ease forwards !important;
}

/* 卡片淡入動畫 */
@keyframes gridCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 基礎卡片樣式重置 */
.case-card,
.showcase-card,
.news-card,
.success-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    justify-self: stretch !important;
    align-self: start !important;
    
    /* 平滑過渡 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 少量卡片時的居中對齊 */
.cases-grid:has([style*="display: block"]:nth-child(1):nth-last-child(1)),
.news-grid:has([style*="display: block"]:nth-child(1):nth-last-child(1)) {
    /* 只有一張卡片時 */
    grid-template-columns: 1fr !important;
    max-width: 400px !important;
    justify-content: center !important;
}

.cases-grid:has([style*="display: block"]:nth-child(2):nth-last-child(1)),
.news-grid:has([style*="display: block"]:nth-child(2):nth-last-child(1)) {
    /* 只有兩張卡片時 */
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 800px !important;
    justify-content: center !important;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .cases-grid,
    .news-grid,
    .success-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        gap: 25px !important;
        max-width: 900px !important;
    }
}

@media (max-width: 768px) {
    .cases-grid,
    .news-grid,
    .success-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 15px !important;
        max-width: 100% !important;
    }
    
    .case-card,
    .showcase-card,
    .news-card,
    .success-card {
        max-width: none !important;
        justify-self: stretch !important;
    }
}

/* 載入狀態優化 */
.cases-grid.loading,
.news-grid.loading,
.success-grid.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.cases-grid.loading::before,
.news-grid.loading::before,
.success-grid.loading::before {
    content: "載入中...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #3B82F6;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 10;
}

/* 空狀態處理 */
.cases-grid:empty,
.news-grid:empty,
.success-grid:empty {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cases-grid:empty::after,
.news-grid:empty::after,
.success-grid:empty::after {
    content: "沒有找到相關內容";
    color: #6B7280;
    font-size: 16px;
    text-align: center;
    padding: 40px;
}

/* 針對篩選標籤的樣式優化 */
.category-tag,
.filter-tag {
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: all 0.3s ease !important;
}

.category-tag:hover,
.filter-tag:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.category-tag.active,
.filter-tag.active {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* ==============================================
   🚀 InfoModal 核心優化 CSS - 載入速度與Icon修復
   ============================================== */

/* === 🔄 載入動畫優化 === */
@keyframes spin {
    0% { 
        transform: translate(-50%, -50%) rotate(0deg); 
    }
    100% { 
        transform: translate(-50%, -50%) rotate(360deg); 
    }
}

/* === 🔘 載入指示器樣式 === */
.loading-indicator {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-top: 2px solid white !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    display: none !important;
    z-index: 1001 !important;
}

/* === ⚡ 按鈕優化樣式 === */
.blue-info-card-more,
.white-info-card-more {
    position: relative !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    touch-action: manipulation !important;
    z-index: 100 !important;
    transition: all 0.3s ease !important;
}

/* 按鈕載入狀態 */
.blue-info-card-more[data-loading="true"],
.white-info-card-more[data-loading="true"] {
    pointer-events: none !important;
    opacity: 0.8 !important;
    cursor: wait !important;
}

/* 按鈕交互效果 */
.blue-info-card-more:hover:not([data-loading="true"]),
.white-info-card-more:hover:not([data-loading="true"]) {
    transform: translateY(-1px) !important;
}

.blue-info-card-more:active:not([data-loading="true"]),
.white-info-card-more:active:not([data-loading="true"]) {
    transform: scale(0.95) !important;
}

/* 焦點樣式 */
.blue-info-card-more:focus,
.white-info-card-more:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5) !important;
    outline-offset: 2px !important;
}

/* === 🎯 Icon 顯示優化 === */
.info-modal-icon {
    width: 64px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
    padding: 8px !important;
    position: relative !important;
    z-index: 10 !important;
    transition: all 0.3s ease !important;
}

.info-modal-icon:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 16px rgba(23, 84, 224, 0.4) !important;
}

.info-modal-icon img {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
    transition: all 0.3s ease !important;
    border-radius: 4px !important;
}

/* 如果icon是文字路徑，隱藏文字 */
.info-modal-icon:has(img) {
    color: transparent !important;
    font-size: 0 !important;
}

/* === 📱 響應式優化 === */
@media (max-width: 768px) {
    .info-modal-icon {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 16px !important;
    }
    
    .info-modal-icon img {
        width: 32px !important;
        height: 32px !important;
    }
}

/* === 🛡️ 無障礙和安全性 === */
/* 高對比度模式支援 */
@media (prefers-contrast: high) {
    .info-modal-icon {
        border: 2px solid white !important;
    }
    
    .blue-info-card-more,
    .white-info-card-more {
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
    }
}

/* 減少動畫偏好支援 */
@media (prefers-reduced-motion: reduce) {
    .loading-indicator,
    .info-modal-icon,
    .blue-info-card-more,
    .white-info-card-more {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* === 🔧 強制覆蓋外部樣式 === */
/* 覆蓋任何可能的主題樣式 */
.elementor-widget-container .blue-info-card-more,
.elementor-widget-container .white-info-card-more,
.elementor-section .blue-info-card-more,
.elementor-section .white-info-card-more {
    position: relative !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* === 📊 性能優化 === */
/* GPU 加速 */
.loading-indicator,
.info-modal-icon {
    will-change: transform !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
}

/* 減少重繪 */
.info-modal-icon {
    contain: layout style paint !important;
}

/* === 🎯 調試工具樣式 === */
.info-modal-debug {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    z-index: 1000000;
    display: none;
}

.info-modal-debug.show {
    display: block;
}

/* ==============================================
   🎠 文字輪播組件樣式
   ============================================== */

/* 輪播組件容器 */
.text-carousel-component {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    overflow: hidden;
}

.carousel-section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 60px;
    line-height: 1.2;
}

/* 輪播容器 */
.text-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

/* 輪播軌道 */
.text-carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    width: 100%;
}

/* 輪播卡片 */
.text-carousel-card {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 80px 1fr 280px;
    align-items: center;
    gap: 40px;
    padding: 40px;
    min-height: 400px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    opacity: 1;
    transform: scale(1);
    transition: all 0.4s ease;
}

/* 卡片指示器圖標 */
.card-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0f7ff;
}

.indicator-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* 卡片內容 */
.card-content {
    padding: 0 20px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.3;
}

.card-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* 卡片視覺元素 */
.card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 200px;
    border-radius: 12px;
    background: #f8f9fa;
    overflow: hidden;
}

.chart-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 指示器容器 */
.text-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

/* 指示器點 */
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    display: block;
}

.indicator:hover {
    background: #94a3b8;
    transform: scale(1.1);
}

.indicator.active {
    background: #3b82f6;
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.indicator:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .text-carousel-card {
        grid-template-columns: 60px 1fr 240px;
        gap: 30px;
        padding: 30px;
    }
    
    .card-visual {
        width: 240px;
        height: 160px;
    }
    
    .carousel-section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .text-carousel-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .card-indicator {
        justify-self: center;
        grid-order: 1;
    }
    
    .card-content {
        grid-order: 2;
        padding: 0;
    }
    
    .card-visual {
        grid-order: 3;
        justify-self: center;
        width: 100%;
        max-width: 300px;
        height: 180px;
    }
    
    .carousel-section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .text-carousel-component {
        padding: 30px 15px 60px;
    }
}

@media (max-width: 480px) {
    .carousel-section-title {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
}

/* 提高手機版選單的層級 */
@media (max-width: 767px) {
    .elementor-nav-menu--mobile {
        z-index: 9999 !important;
    }
}

/* news文章專用樣式 */

.case-study-container {
  font-family: 'Helvetica Neue', Helvetica, 'Inter', 'Roboto', 'Arial', sans-serif;
  background-color: #fff;
  border-radius: 12px;
  padding: 30px;
  line-height: 1.7;
  color: #212529;
  max-width: 960px;
  margin: auto;
}

.case-study-container h2 {
  color: #1754E0;
  font-size: 24px;
  margin-top: 1.8em;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 0.3em;
}

.case-study-container h3 {
  color: #333;
  font-size: 20px;
  margin-top: 1.6em;
}

.case-highlight {
  background-color: #F1FAFD;
  padding: 16px 20px;
  border-left: 4px solid #1754E0;
  margin: 1em 0;
  border-radius: 6px;
}

.case-highlight strong {
  color: #103A9C;
}

.case-study-container ul {
  margin: 0 0 1em 1.2em;
  padding-left: 0;
}

.case-study-container li {
  margin-bottom: 0.6em;
}

.case-study-container img {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}


