/* ========================================
   玖方便 - 現代化頁面樣式
   適用於: about.php, contact.php, news.php
   ======================================== */

/* ===== 共用 Hero Section ===== */
.hero-section {
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.about-hero {
    background: linear-gradient(135deg, #4872f7 0%, #a6ffc7 100%);
}

.contact-hero {
    background: linear-gradient(135deg, #4872f7 0%, #a6ffc7 100%);
}

.news-hero {
    background: linear-gradient(135deg, #4872f7 0%, #a6ffc7 100%);
}


.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: 50px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 10%;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 15%;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

.text-gradient {
    background: linear-gradient(135deg, #a6ffc7 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Hero 統計數據 ===== */
.stat-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

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

/* ===== 共用 Section 元素 ===== */
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
}

.bg-gradient-light {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

/* ===== 共用卡片基礎樣式 ===== */
.card-modern {
    background: white;
    padding: 30px;
    border-radius: 20px;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

/* ===== 共用圖標樣式 ===== */
.icon-modern {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.icon-gradient-1 {
    background: linear-gradient(135deg, #4872f7 0%, #a6ffc7 100%);
}

.icon-gradient-2 {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
}

.icon-gradient-3 {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

.icon-gradient-4 {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
}

.icon-gradient-5 {
    background: linear-gradient(135deg, #06c755 0%, #00b900 100%);
}

.icon-gradient-6 {
    background: linear-gradient(135deg, #0891b2 0%, #14b8a6 100%);
}

.icon-gradient-7 {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

/* ===== 共用連結樣式 ===== */
.link-modern {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-modern:hover {
    color: #1e40af;
    transform: translateX(5px);
    display: inline-block;
}





/* ========================================
   ABOUT.PHP 專屬樣式
   ======================================== */

/* 大型圖標框 */
.icon-box-large {
    width: 100%;
    height: 400px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-box-large i {
    font-size: 150px;
    background: linear-gradient(135deg, #4872f7 0%, #a6ffc7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 特色列表 */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4872f7 0%, #a6ffc7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h6 {
    margin-bottom: 5px;
    font-weight: 600;
}

/* 價值卡片 */
.value-card.modern {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.value-card.modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.value-icon.mission {
    background: linear-gradient(135deg, #4872f7 0%, #a6ffc7 100%);
}

.value-icon.vision {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.value-icon.values {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.value-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
}

/* 時間軸 */
.timeline-modern {
    position: relative;
    padding-left: 0;
}

.timeline-item-modern {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item-modern:last-child .timeline-marker::before {
    display: none;
}

.timeline-marker {
    position: relative;
    flex-shrink: 0;
}

.timeline-marker::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 60px;
    width: 2px;
    height: calc(100% + 40px);
    background: linear-gradient(135deg, #4872f7 0%, #a6ffc7 100%);
    transform: translateX(-50%);
}

.timeline-dot {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4872f7 0%, #a6ffc7 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.timeline-content {
    flex: 1;
    padding: 20px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #2563eb;
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* 合規卡片 */
.compliance-card {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.compliance-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.compliance-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.compliance-icon.shield {
    background: linear-gradient(135deg, #4872f7 0%, #a6ffc7 100%);
}

.compliance-icon.bank {
    background: linear-gradient(135deg, #4872f7 0%, #a6ffc7 100%);
}

.compliance-icon.cert {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
}

.compliance-icon.cloud {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* 優勢卡片 */
.advantage-card {
    padding: 30px 25px;
    background: white;
    border-radius: 15px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.advantage-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4872f7 0%, #a6ffc7 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ========================================
   CONTACT.PHP 專屬樣式
   ======================================== */

/* 聯絡卡片 */
.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.contact-icon.phone {
    background: linear-gradient(135deg, #4872f7 0%, #a6ffc7 100%);
}

.contact-icon.email {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.contact-icon.line {
    background: linear-gradient(135deg, #06c755 0%, #00b900 100%);
}

.contact-icon.location {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.contact-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #764ba2;
    transform: translateX(5px);
    display: inline-block;
}

/* 資訊列表 */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    border-left: 4px solid #2563eb;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4872f7 0%, #a6ffc7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-content h6 {
    margin-bottom: 5px;
    font-weight: 600;
    color: #2d3748;
}

/* LINE QR 卡片 */
.line-qr-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.qr-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.line-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #06c755 0%, #00b900 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.qr-code-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.qr-code-container {
    width: 280px;
    height: 280px;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid #06c755;
}

.btn-line {
    background: linear-gradient(135deg, #06c755 0%, #00b900 100%);
    color: white;
    border: none;
    font-weight: 600;
}

.btn-line:hover {
    background: linear-gradient(135deg, #00b900 0%, #06c755 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6, 199, 85, 0.3);
}

/* 聯絡表單 */
.contact-form-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-floating > label {
    color: #6c757d;
}

.form-control:focus,
.form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 服務優勢 */
.service-benefit {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.service-benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ========================================
   NEWS.PHP 專屬樣式
   ======================================== */

/* 分類篩選 */
.news-filter-wrap {
    display: flex;
    justify-content: center;
}

.news-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #4872f7 0%, #a6ffc7 100%);
    border-color: #2563eb;
    color: white;
}

/* 新聞卡片 */
.news-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

.news-card.featured {
    background: linear-gradient(135deg, #667eea05 0%, #764ba205 100%);
    border: 2px solid #667eea;
}

.news-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.badge-product {
    background: linear-gradient(135deg, #4872f7 0%, #a6ffc7 100%);
}

.badge-company {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.badge-tech {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.badge-event {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.news-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.news-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #2563eb;
    margin-bottom: 20px;
}

.news-icon.featured-icon {
    width: 80px;
    height: 80px;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #4872f7 0%, #a6ffc7 100%);
    color: white;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d3748;
    line-height: 1.4;
}

.news-card.featured .news-title {
    font-size: 1.5rem;
}

.news-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.meta-item {
    font-size: 13px;
    color: #999;
}

.news-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: #764ba2;
    transform: translateX(5px);
    display: inline-block;
}

/* 分頁 */
.pagination-wrapper {
    margin-top: 3rem;
}

.pagination .page-link {
    border: 2px solid #e0e0e0;
    color: #2563eb;
    padding: 10px 18px;
    margin: 0 5px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: #667eea;
    color: white;
    border-color: #2563eb;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #4872f7 0%, #a6ffc7 100%);
    border-color: #2563eb;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 電子報訂閱 */
.newsletter-section {
    background: linear-gradient(135deg, #4872f7 0%, #a6ffc7 100%);
}

.newsletter-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 20px;
    color: white;
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.newsletter-form .input-group {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.newsletter-form .form-control {
    padding: 15px 20px;
    border: none;
    border-radius: 10px 0 0 10px;
    font-size: 16px;
}

.newsletter-form .btn-light {
    padding: 15px 30px;
    border-radius: 0 10px 10px 0;
    font-weight: 600;
    color: #2563eb;
    border: none;
}

.newsletter-form .btn-light:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-form .form-text {
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   響應式設計 (共用)
   ======================================== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .cta-box {
        padding: 30px 20px;
    }
    
    /* About.php 響應式 */
    .timeline-item-modern {
        flex-direction: column;
        gap: 15px;
    }
    
    .timeline-marker::before {
        display: none;
    }
    
    .icon-box-large {
        height: 300px;
    }
    
    .icon-box-large i {
        font-size: 100px;
    }
    
    /* Contact.php 響應式 */
    .contact-form-card {
        padding: 30px 20px;
    }
    
    .line-qr-card {
        padding: 30px 20px;
    }
    
    .qr-code-container {
        width: 200px;
        height: 200px;
    }
    
    /* News.php 響應式 */
    .news-categories {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .newsletter-box {
        padding: 30px 20px;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control,
    .newsletter-form .btn-light {
        border-radius: 10px;
        width: 100%;
    }
    
    .newsletter-form .btn-light {
        margin-top: 10px;
    }
}

/* ========================================
   產業輪播樣式
   適用於: brand.php, products_index.php
   ======================================== */

/* 產業輪播容器 */
#industriesCarousel {
    position: relative;
    padding: 20px 0;
}

.industries-grid,
.brand-industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 50px;
}

/* 產業卡片 */
.industry-card,
.brand-industry-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.industry-card:hover,
.brand-industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 背景圖片 */
.industry-bg,
.brand-industry-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.industry-card:hover .industry-bg,
.brand-industry-card:hover .brand-industry-bg {
    transform: scale(1.05);
}

/* 遮罩層 */
.industry-overlay,
.brand-industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    transition: opacity 0.3s ease;
}

.industry-card:hover .industry-overlay,
.brand-industry-card:hover .brand-industry-overlay {
    opacity: 0.8;
}

/* 內容區域 */
.industry-content,
.brand-industry-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 1.5rem;
}

/* 圖示 */
.industry-icon,
.brand-industry-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.industry-card:hover .industry-icon,
.brand-industry-card:hover .brand-industry-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.industry-icon i,
.brand-industry-icon i {
    font-size: 2rem;
}

/* 名稱 */
.industry-name,
.brand-industry-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Carousel 控制按鈕 */
#industriesCarousel .carousel-control-prev,
#industriesCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

#industriesCarousel .carousel-control-prev {
    left: 0;
}

#industriesCarousel .carousel-control-next {
    right: 0;
}

#industriesCarousel .carousel-control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#industriesCarousel .carousel-control-icon i {
    font-size: 1.2rem;
    color: #4872f7;
}

#industriesCarousel .carousel-control-prev:hover,
#industriesCarousel .carousel-control-next:hover {
    background: #4872f7;
}

#industriesCarousel .carousel-control-prev:hover .carousel-control-icon i,
#industriesCarousel .carousel-control-next:hover .carousel-control-icon i {
    color: white;
}

/* 產業輪播響應式調整 */
@media (max-width: 576px) {
    .industries-grid,
    .brand-industries-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .industry-icon,
    .brand-industry-icon {
        width: 50px;
        height: 50px;
    }
    
    .industry-icon i,
    .brand-industry-icon i {
        font-size: 1.5rem;
    }
    
    .industry-name,
    .brand-industry-name {
        font-size: 1.1rem;
    }
    
    #industriesCarousel .carousel-control-prev,
    #industriesCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    #industriesCarousel .carousel-control-icon i {
        font-size: 1rem;
    }
}

@media (min-width: 577px) and (max-width: 991px) {
    .industries-grid,
    .brand-industries-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 30px;
    }
}

/* ========================================
   產業 Swiper 輪播（支援拖曳，兩排顯示）
   ======================================== */

.brand-industries-swiper,
.industries-swiper {
    position: relative;
    padding: 20px 50px;
}

/* 每個 Slide 內的兩排網格 */
.industries-slide-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    height: 100%;
}

/* Swiper 按鈕樣式 */
.brand-industries-swiper .swiper-button-prev,
.brand-industries-swiper .swiper-button-next,
.industries-swiper .swiper-button-prev,
.industries-swiper .swiper-button-next {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #4872f7;
    transition: all 0.3s ease;
}

.brand-industries-swiper .swiper-button-prev:hover,
.brand-industries-swiper .swiper-button-next:hover,
.industries-swiper .swiper-button-prev:hover,
.industries-swiper .swiper-button-next:hover {
    background: #4872f7;
    color: white;
    transform: scale(1.1);
}

.brand-industries-swiper .swiper-button-prev::after,
.brand-industries-swiper .swiper-button-next::after,
.industries-swiper .swiper-button-prev::after,
.industries-swiper .swiper-button-next::after {
    font-size: 18px;
    font-weight: bold;
}

.brand-industries-swiper .swiper-button-prev,
.industries-swiper .swiper-button-prev {
    left: 0;
}

.brand-industries-swiper .swiper-button-next,
.industries-swiper .swiper-button-next {
    right: 0;
}

/* 拖曳游標 */
.brand-industries-swiper .swiper-wrapper,
.industries-swiper .swiper-wrapper {
    cursor: grab;
}

.brand-industries-swiper .swiper-wrapper:active,
.industries-swiper .swiper-wrapper:active {
    cursor: grabbing;
}

/* Grid 模式調整 */
.brand-industries-swiper .swiper-slide,
.industries-swiper .swiper-slide {
    height: auto;
}

/* 平滑過渡效果 */
.brand-industries-swiper .swiper-wrapper,
.industries-swiper .swiper-wrapper {
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 卡片過渡 */
.brand-industry-card,
.industry-card {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Loop 時防止閃爍 */
.brand-industries-swiper .swiper-slide-duplicate,
.industries-swiper .swiper-slide-duplicate {
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* 響應式調整 */
@media (max-width: 576px) {
    .brand-industries-swiper,
    .industries-swiper {
        padding: 20px 10px;
    }
    
    .industries-slide-grid {
        gap: 15px;
    }
    
    .brand-industries-swiper .swiper-button-prev,
    .brand-industries-swiper .swiper-button-next,
    .industries-swiper .swiper-button-prev,
    .industries-swiper .swiper-button-next {
        width: 35px;
        height: 35px;
    }
    
    .brand-industries-swiper .swiper-button-prev::after,
    .brand-industries-swiper .swiper-button-next::after,
    .industries-swiper .swiper-button-prev::after,
    .industries-swiper .swiper-button-next::after {
        font-size: 14px;
    }
}

@media (min-width: 577px) and (max-width: 991px) {
    .industries-slide-grid {
        gap: 18px;
    }
}
