/* 自定義變數 */
:root {
    --primary-color: #2c7be5;
    --secondary-color: #00d4aa;
    --success-color: #27c93f;
    --info-color: #39afd1;
    --warning-color: #f5b759;
    --danger-color: #e63757;
    --light-color: #f8f9fc;
    --dark-color: #152e4d;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #00d4aa 0%, #2c7be5 100%);
    --shadow-light: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    --border-radius: 12px;
}

/* 基礎樣式 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
}

/* Header 樣式 */
.custom-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.custom-header .logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.custom-header .logo:hover {
    transform: scale(1.1);
}

.company-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 公司資訊容器樣式 */
.company-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.company-name-zh {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-name-en {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: -2px;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: linear-gradient(135deg, rgba(44, 123, 229, 0.1) 0%, rgba(0, 212, 170, 0.1) 100%);
}

/* Hero Section */
.hero-section {
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-position: center center;
    
    background-size: contain;
    background-attachment: fixed;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.hero-buttons .btn:hover::before {
    left: 100%;
}

.hero-buttons .btn-primary {
    background: var(--gradient-secondary);
    border: none;
    box-shadow: var(--shadow-medium);
}

.hero-buttons .btn-outline-primary {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 輪播樣式 */
.hero-carousel {
    position: relative;
    z-index: 2;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.carousel-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.carousel-card:hover {
    transform: translateY(-10px);
}

.carousel-card img {
    max-height: 300px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: white;
    padding: 1rem;
}

.carousel-caption {
    position: static;
    color: white;
    text-shadow: none;
    background: none;
    padding: 1rem 0 0 0;
}

.carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* Features Section */
.features-section {
    background: var(--light-color);
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 0rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo .logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo .company-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

/* Footer雙語公司名稱樣式 */
.footer-company-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-company-name-zh {
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.footer-company-name-en {
    font-weight: 500;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: -2px;
    letter-spacing: 1px;
}

.footer-info p {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-info i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9rem;
}

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

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

/* 響應式設計 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    /* 首頁特色項目手機版2x2網格 */
    .features-section .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    
    .features-section .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .page-header {
        padding: 6rem 0 3rem;
        background-attachment: scroll;
    }
    
    .footer-logo {
        justify-content: center;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    /* Footer雙語公司名稱手機版樣式 */
    .footer-company-info {
        text-align: center;
    }
    
    .footer-company-name-zh {
        font-size: 1rem;
    }
    
    .footer-company-name-en {
        font-size: 0.8rem;
    }
    
    /* 產品詳細頁面按鈕區塊響應式 */
    .product-actions {
        text-align: center;
    }
    
    .product-actions .btn {
        width: auto;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .page-header {
        padding: 5rem 0 2.5rem;
    }
    
    .company-name {
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .company-name-zh {
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .company-name-en {
        font-size: 0.7rem;
        white-space: nowrap;
        margin-top: -1px;
    }
    
    .navbar-brand {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap;
    }
    
    .navbar-brand .logo {
        height: 40px;
        margin-right: 0.75rem !important;
        margin-bottom: 0;
    }
    
    /* 服務頁面小螢幕響應式 */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .process-step {
        padding: 1.5rem 1rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-content h6 {
        font-size: 0.9rem;
    }
    
    .step-content p {
        font-size: 0.8rem;
    }
    
    .flow-item {
        padding: 2rem 1rem;
    }
    
    .flow-icon {
        width: 60px;
        height: 60px;
    }
    
    .flow-icon i {
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 1.8rem;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    /* CTA按鈕響應式 */
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

/* 頁面通用樣式 */
.page-header {
    background: var(--gradient-primary);
    background-image: url('../../img/top_bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: white;
    padding: 8rem 0 4rem;
    margin-top: 76px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.8) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.content-section {
    padding: 4rem 0;
}

.card-custom {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.btn-custom {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: none;
}

.btn-primary-custom {
    background: var(--gradient-secondary);
    color: white;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* 載入動畫 */
.loading-animation {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   PAGE SPECIFIC STYLES - 頁面專用樣式
   ============================================ */

/* ============================================
   FOOTER STYLES - Footer頁面樣式
   ============================================ */

/* Footer logo增大版本 */
.footer .logo-large {
    height: 60px !important;
    width: auto !important;
    filter: brightness(0) invert(1); /* 白色化效果 */
}

/* Footer聯絡資訊樣式 */
.footer-info p {
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Footer響應式設計 */
@media (max-width: 768px) {
    .footer-info {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .footer-info p {
        margin-bottom: 0.5rem !important;
        margin-right: 0 !important;
        white-space: normal;
    }
    
    .footer-info p:last-child {
        margin-bottom: 0 !important;
    }
}

/* ============================================
   CONTACT PAGE STYLES - 聯絡我們頁面樣式
   ============================================ */

/* 內容分隔線 */
.content-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    margin: 1rem 0 2rem 0;
    border-radius: 2px;
}

/* 聯絡表單容器 */
.contact-form-container {
    padding: 3rem 0;
}

/* 表單標籤樣式 */
.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.form-label i {
    color: var(--primary-color);
}

/* 表單控制項樣式 */
.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 123, 229, 0.25);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success-color);
}

/* 錯誤訊息樣式 */
.invalid-feedback {
    display: block;
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* 勾選框樣式 */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 資訊卡片樣式 */
.info-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
    border-left: 5px solid var(--primary-color);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* 資訊圖示樣式 */
.info-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.info-card:hover .info-icon {
    transform: scale(1.1);
}

.info-icon i {
    font-size: 1.8rem;
    color: white;
}

/* 資訊內容樣式 */
.info-content h5 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* 地址樣式 */
.address-zh {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.address-en {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* 聯絡項目樣式 */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #6c757d;
}

.contact-item i {
    color: var(--secondary-color);
    width: 20px;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* 公司登記資訊樣式 */
.registration-info {
    margin-top: 1rem;
}

.reg-item {
    margin-bottom: 1rem;
}

.reg-item .label {
    color: #6c757d;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.reg-item .value {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* 警告容器樣式 */
.alert-container .alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 0;
}

.alert-success {
    background: linear-gradient(135deg, rgba(39, 201, 63, 0.1) 0%, rgba(39, 201, 63, 0.05) 100%);
    color: var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(230, 55, 87, 0.1) 0%, rgba(230, 55, 87, 0.05) 100%);
    color: var(--danger-color);
}

/* ============================================
   ABOUT PAGE STYLES - 關於我們頁面樣式
   ============================================ */

/* 公司統計項目樣式 */
.company-stats .stat-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.company-stats .stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.stat-label {
    margin: 0;
    color: #6c757d;
}

/* 圖片容器樣式 */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 123, 229, 0.9) 0%, rgba(0, 212, 170, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.overlay-content h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* 價值觀網格樣式 */
.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.value-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.value-icon i {
    font-size: 1.5rem;
    color: white;
}

.value-card h5 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.value-card p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* CTA按鈕樣式 */
.cta-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* CTA區塊樣式 */
.cta-section-teal {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 5rem 0;
}

/* ============================================
   SERVICES PAGE STYLES - 服務項目頁面樣式
   ============================================ */

/* 內容分隔線 */
.content-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    margin: 1rem 0 2rem 0;
    border-radius: 2px;
}

/* 服務亮點卡片樣式 */
.service-highlight-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-light);
    height: 100%;
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.service-highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.service-highlight-card .service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.service-highlight-card .service-icon i {
    font-size: 2rem;
    color: white;
}

/* 服務列表樣式 */
.service-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
}

.service-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #6c757d;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list i {
    color: var(--secondary-color);
}

/* 服務標籤樣式 */
.service-badge {
    display: inline-block;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-badge.odm {
    background: var(--gradient-primary);
}

/* 服務標題樣式 */
.service-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* 服務特色樣式 */
.service-features h5,
.service-process h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #6c757d;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* 服務特色網格樣式 */
.service-features .row {
    --bs-gutter-x: 0.5rem;
}

.service-features .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* 服務圖片樣式 */
.service-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: white;
    padding: 0;
    box-shadow: var(--shadow-light);
    height: 400px;
}

.service-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 123, 229, 0.95) 0%, rgba(0, 212, 170, 0.95) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.service-image:hover .service-overlay {
    opacity: 1;
}

.overlay-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.overlay-icon i {
    font-size: 2rem;
}

/* 流程步驟樣式 */
.process-steps {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content h6 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* 服務流程樣式 */
.service-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.flow-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.flow-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.flow-item:hover .flow-icon {
    transform: scale(1.1);
}

.flow-icon i {
    font-size: 1.8rem;
    color: white;
}

.flow-item h5 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.flow-item p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.flow-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0.5;
}

/* 服務推薦樣式 */
.service-testimonial .testimonial-text {
    font-style: italic;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* ============================================
   PRODUCTS PAGE STYLES - 產品頁面樣式
   ============================================ */

/* 產品篩選樣式 */
.product-filter {
    margin-bottom: 3rem;
}

.filter-btn {
    background: white;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 0.75rem 1.5rem;
    margin: 0.25rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 123, 229, 0.3);
}

.filter-btn.active {
    transform: translateY(-2px) scale(1.05);
}

/* 產品標題樣式 */
.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.product-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

/* 產品展示樣式 */
.product-showcase {
    position: relative;
    margin-bottom: 2rem;
}

.product-image-container {
    position: relative;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.product-image-container img {
    max-height: 400px;
    object-fit: contain;
    width: 100%;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 123, 229, 0.9) 0%, rgba(0, 212, 170, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    cursor: pointer;
}

.product-image-container:hover .product-overlay {
    opacity: 1;
}

.overlay-content p {
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* 功能列表樣式 */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    color: var(--secondary-color);
}

/* 規格網格樣式 */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.spec-label {
    font-weight: 500;
    color: var(--dark-color);
}

.spec-value {
    font-weight: 600;
    color: var(--primary-color);
}

/* 產品卡片樣式 */
.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.product-image {
    position: relative;
    background: #f8f9fa;
    padding: 2rem;
    overflow: hidden;
}

.product-image img {
    max-height: 200px;
    object-fit: contain;
    width: 100%;
}

.product-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 123, 229, 0.95) 0%, rgba(0, 212, 170, 0.95) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.product-card:hover .product-hover {
    opacity: 1;
}

.hover-content h6 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hover-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* 產品資訊樣式 */
.product-info {
    padding: 2rem;
}

.product-info h5 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.product-info p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* 產品特色標籤樣式 */
.product-features-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 應用卡片樣式 */
.application-card {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.application-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: transform 0.3s ease;
}

.application-card:hover .app-icon {
    transform: scale(1.1);
}

.app-icon i {
    font-size: 2rem;
    color: white;
}

.application-card h5 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.application-card p {
    color: #6c757d;
    margin: 0;
}

/* 應用註記樣式 */
.application-note h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.application-note p {
    margin: 0;
    font-size: 0.9rem;
}

.application-note i {
    color: var(--secondary-color);
}

/* ============================================
   PRODUCT DETAIL PAGES - 產品詳細頁面樣式
   ============================================ */

/* 麵包屑樣式 */
.breadcrumb-section {
    background: var(--light-color);
    padding: 2rem 0 1rem;
    margin-top: 76px;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* 產品分類標籤樣式 */
.product-category {
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

/* 產品展示區域樣式 */
.product-showcase .product-image-container {
    position: relative;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.product-showcase img {
    max-height: 500px;
    object-fit: contain;
    width: 100%;
}

/* 規格表格樣式 */
.specs-table {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
}

.specs-table .table {
    margin: 0;
}

.specs-table .spec-label {
    font-weight: 600;
    color: var(--dark-color);
    width: 40%;
    background: #f8f9fa;
}

.specs-table .spec-value {
    color: var(--primary-color);
    font-weight: 500;
}

/* 產品卡片（詳細頁面版本）樣式 */
.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.product-card .product-image {
    background: #f8f9fa;
    padding: 2rem;
    text-align: center;
}

.product-card .product-image img {
    max-height: 150px;
    object-fit: contain;
    width: 100%;
}

.product-card .product-info {
    padding: 2rem;
}

.product-card .product-info h5 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.product-card .product-info p {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* PIR-606專用樣式 - 崁燈感應器安裝步驟樣式 */
.install-step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.install-step h5 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.install-step p {
    color: #6c757d;
    margin: 0;
}

/* ============================================
   RESPONSIVE STYLES - 響應式樣式
   ============================================ */

@media (max-width: 768px) {
    /* 聯絡頁面響應式 */
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
    
    .info-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .reg-item {
        text-align: left;
    }
    
    /* 關於頁面響應式 */
    .values-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .value-card {
        padding: 1.5rem 0.8rem;
    }
    
    .value-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 0.8rem;
    }
    
    .value-icon i {
        font-size: 1.2rem;
    }
    
    .value-card h5 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .value-card p {
        font-size: 0.85rem;
    }
    
    .company-stats .stat-item {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    /* 服務頁面響應式 */
    .service-flow {
        flex-direction: column;
        gap: 1rem;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
        display: flex;
        justify-content: center;
    }
    
    .flow-item {
        min-width: auto;
        max-width: none;
        width: 100%;
        padding: 1.5rem;
        background: white;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-light);
        margin-bottom: 1rem;
    }
    
    .service-title {
        font-size: 2rem;
    }
    
    .service-subtitle {
        font-size: 1.1rem;
    }
    
    .process-steps {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .process-step {
        background: white;
        padding: 1.2rem;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-light);
        margin-bottom: 0;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .step-content {
        text-align: center;
    }
    
    .step-content h6 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .step-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .service-highlight-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .service-image {
        height: 250px;
        margin-bottom: 2rem;
        margin-top: 2rem;
    }
    
    .service-content {
        padding: 0 1rem;
    }
    
    .feature-item {
        padding: 0.5rem 0;
        flex-wrap: wrap;
        font-size: 0.9rem;
    }
    
    .service-features .row {
        --bs-gutter-x: 0.5rem;
    }
    
    .service-features .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* 產品頁面響應式 */
    .product-title {
        font-size: 2rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .product-features-mini {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    /* CTA按鈕響應式 */
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }
} 