﻿/* ==================== */
/* RPA 頁面專用樣式 */
/* ==================== */

/* === 1. 基礎組件樣式 === */

/* 標題組件 */
.es-rpa-title {
    text-align: center;
    margin-bottom: 3rem;
}

.es-rpa-title h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--bs-primary);
}

/* 標題底線樣式 */
.es-rpa-title-hr {
    height: 5px !important;
    margin: auto !important;
    background: var(--bs-primary) !important;
    border: none;
}

.es-rpa-title-hr-short {
    max-width: 250px !important;
}

.es-rpa-title-hr-medium {
    max-width: 350px !important;
}

.es-rpa-title-hr-long {
    max-width: 500px !important;
}

/* 段落描述組件 */
.es-rpa-section-desc {
    margin-bottom: 2rem;
}

/* 文字強調樣式 */
.es-rpa-section-desc strong,
.es-rpa-testimonial-list strong,
.es-rpa-quote strong {
    color: var(--bs-primary);
    font-weight: 600;
}

/* === 2. 卡片樣式組件 === */

/* 內容卡片 (Section 1-4) */
.es-rpa-content-card {
    background: white;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    height: 100%;
    border: 2px solid var(--bs-primary);
    transform: translateY(-5px);
    transition: all 0.3s ease;
    text-align: center;
}

.es-rpa-content-card:hover {
    transform: translateY(-4px) scale(1.01) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.es-rpa-content-card img {
    max-height: 100px;
    width: auto;
    object-fit: contain;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* 功能特色卡片樣式已移至 site.css 共用 */

/* === 3. 客戶見證區塊 === */

/* 客戶見證卡片 */
.es-rpa-testimonial-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    border: 2px solid var(--bs-primary);
    display: flex;
    flex-direction: column;
}

.es-rpa-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--bs-secondary);
}

.es-rpa-testimonial-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.es-rpa-testimonial-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.es-rpa-testimonial-body .text-end {
    margin-top: auto;
    padding-top: 1rem;
}

/* 新聞外框樣式 */
.es-news-frame {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 15px;
    border: 2px solid #e9ecef;
}

.es-news-label {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(var(--bs-primary), 0.3);
    z-index: 10;
    display: flex;
    align-items: center;
}

.es-news-label i {
    font-size: 0.875rem;
}

.es-testimonial-news-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.es-rpa-testimonial-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.es-rpa-testimonial-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.es-rpa-testimonial-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--bs-primary);
    font-weight: bold;
}

.es-rpa-quote {
    background: rgba(13, 110, 253, 0.05);
    border-left: 4px solid var(--bs-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.es-rpa-quote p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.es-rpa-quote footer {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* === 4. CTA 區域 === */
.es-rpa-cta-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* === 5. 固定 Logo === */
.es-fixed-logo {
    position: fixed;
    right: 20px;
    bottom: 120px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--bs-primary);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none; /* 確保不會干擾其他元素的點擊 */
}

.es-fixed-logo.show {
    opacity: 1;
    visibility: visible;
}

.es-fixed-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* === 6. 動畫和互動效果 === */
.wow {
    visibility: hidden;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.es-ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* === 7. 響應式設計 === */
@media (max-width: 768px) {
    /* 標題響應式 */
    .es-rpa-title h2 {
        font-size: 1.5rem;
    }
    
    .es-rpa-title-hr-long {
        max-width: 300px !important;
    }
    
    .es-rpa-title-hr-medium {
        max-width: 250px !important;
    }
    
    .es-rpa-title-hr-short {
        max-width: 200px !important;
    }

    /* 卡片響應式 */
    .es-rpa-content-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .es-rpa-feature-header h4 {
        font-size: 1rem;
    }
    
    .es-rpa-cta-section {
        padding: 2rem 1rem;
    }
    
    .es-rpa-cta-section h2 {
        font-size: 1.5rem;
    }
    
    /* 客戶見證響應式 */
    .es-rpa-testimonial-header {
        padding: 1rem;
    }
    
    .es-news-frame {
        max-width: 400px;
        padding: 12px;
    }
    
    .es-testimonial-news-img {
        height: 400px;
    }
    
    .es-news-label {
        padding: 6px 12px;
        font-size: 0.75rem;
        right: 15px;
        top: -10px;
    }
    
    .es-news-label i {
        font-size: 0.75rem;
    }
    
    .es-rpa-testimonial-header h4 {
        font-size: 1rem;
    }
    
    .es-rpa-testimonial-header i {
        font-size: 1.5rem !important;
    }

    /* 移動設備優化 */
    .es-ripple-effect {
        display: none;
    }
}

@media (max-width: 576px) {
    /* 標題響應式 */
    .es-rpa-title h2 {
        font-size: 1.3rem;
        line-height: 1.4;
    }
    
    .es-rpa-title-hr-long {
        max-width: 250px !important;
    }
    
    .es-rpa-title-hr-medium {
        max-width: 200px !important;
    }
    
    .es-rpa-title-hr-short {
        max-width: 150px !important;
    }

    /* 卡片響應式 */
    .es-rpa-content-card img {
        max-height: 80px;
    }
    
    .es-rpa-content-card:hover {
        transform: translateY(-4px) scale(1) !important;
    }
    
    .es-rpa-feature-header i {
        font-size: 2rem;
    }
    
    .es-rpa-testimonial-header,
    .es-rpa-testimonial-body {
        padding: 1rem;
    }
    
    /* 新聞外框響應式 */
    .es-news-frame {
        max-width: 320px;
        padding: 10px;
    }
    
    .es-testimonial-news-img {
        height: 160px;
    }
    
    .es-news-label {
        padding: 5px 10px;
        font-size: 0.7rem;
        right: 12px;
        top: -8px;
    }
    
    .es-news-label i {
        font-size: 0.7rem;
    }
    
    /* 固定 Logo 響應式 */
    .es-fixed-logo {
        width: 50px;
        height: 50px;
        right: 15px;
        bottom: 110px;
        padding: 6px;
    }
}
