﻿@charset "UTF-8";

/* ============================================================
   三久太陽能 - 安裝實例頁 (s39-projects)
   需搭配 s39-nav-footer.css 一起使用
   ============================================================ */

/* ============================================================
   頁面主標題 (與 about 頁面同風格 - 高度 200px)
   ============================================================ */
.s39-projects-hero {
    background: linear-gradient(135deg, #3a8fd4 0%, #6bb0e8 100%);
    color: white;
    padding: 0;
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.s39-projects-hero::after {
    
    font-size: 160px;
    opacity: 0.06;
    position: absolute;
    right: -10px;
    bottom: -20px;
    transform: rotate(12deg);
}

.s39-projects-hero .s39-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.s39-projects-hero .s39-hero-text {
    flex: 1 1 50%;
}

.s39-projects-hero .s39-hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.2;
}

.s39-projects-hero .s39-breadcrumb {
    color: rgba(255, 255, 255, 0.85);
    font-size: 22px;
}

.s39-projects-hero .s39-breadcrumb a {
    color: #ffe484;
    text-decoration: none;
    transition: color 0.2s;
}

.s39-projects-hero .s39-breadcrumb a:hover {
    text-decoration: underline;
    color: #ffffff;
}

.s39-projects-hero .s39-hero-image {
    flex: 1 1 40%;
    text-align: center;
}

.s39-projects-hero .s39-hero-image img {
    max-width: 85%;
    height: auto;
    max-height: 210px;
    display: block;
    background: transparent;
    margin: 0 auto;
}

/* ----- 分類篩選 ----- */






/* ===== 相簿說明 ===== */
.s39-gallery-note {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #6a8aaa;
}

.s39-gallery-note i {
    color: #2b7bc9;
}

/* ===== 機型切換按鈕 ===== */
.s39-model-switch {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 0;
}

.s39-model-chip {
    display: inline-block;
    background: #ffffff;
    color: #1a5a96;
    font-size: 18px;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: 30px;
    border: 2px solid #2b7bc9;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.s39-model-chip:hover {
    background: #2b7bc9;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 123, 201, 0.25);
}

.s39-model-chip.s39-active {
    background: #2b7bc9;
    color: #ffffff;
    border-color: #2b7bc9;
}



/* ----- 案例網格 ----- */
.s39-works-section {
    padding: 30px 0 50px 0;
    background: #ffffff;
}

.s39-works-section .s39-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.s39-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.s39-work-card {
    background: #ffffff;
    border: 1px solid #dce8f5;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s ease;
}

.s39-work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(43, 123, 201, 0.10);
    border-color: #6bb0e8;
}

.s39-work-card .s39-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f5faff;
}

.s39-work-card .s39-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.s39-work-card:hover .s39-thumb img {
    transform: scale(1.05);
}

.s39-work-card .s39-case-caption {
    padding: 14px 16px 4px 16px;
    font-size: 16px;
    font-weight: 700;
    color: #1a5a96;
    line-height: 1.5;
}

.s39-work-card .s39-more {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px 16px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #2b7bc9;
    transition: color 0.2s;
}

.s39-work-card .s39-more i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.s39-work-card:hover .s39-more i {
    transform: translateX(4px);
}

.s39-work-card.s39-hidden {
    display: none;
}

/* ----- CTA 橫幅 ----- */
.s39-cta-band {
    background: #1a5a96;
    padding: 40px 0;
}

.s39-cta-band .s39-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .s39-cta-band .s39-container {
        flex-direction: row;
        align-items: center;
    }
}

.s39-cta-band h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
}

.s39-cta-band p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-top: 4px;
}

.s39-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffe484;
    color: #1a5a96;
    padding: 12px 32px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.s39-cta-btn:hover {
    background: #ffd95e;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(43, 123, 201, 0.30);
}

/* ============================================================
   響應式設計 (RWD)
   ============================================================ */

/* ----- 平板 (max-width: 992px) ----- */
@media (max-width: 992px) {
    .s39-projects-hero {
        height: 180px;
    }

    .s39-projects-hero .s39-hero-text h1 {
        font-size: 36px;
    }

    .s39-projects-hero .s39-breadcrumb {
        font-size: 18px;
    }

    .s39-projects-hero .s39-hero-image {
        flex: 1 1 100%;
        text-align: center;
    }

    .s39-projects-hero .s39-hero-image img {
        max-width: 55%;
        max-height: 120px;
        transform: none;
    }

    .s39-projects-hero .s39-hero-text {
        transform: translateY(-30px);
    }

    .s39-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .s39-cta-band h2 {
        font-size: 24px;
    }
}

/* ----- 手機 (max-width: 768px) ----- */
@media (max-width: 768px) {
    .s39-projects-hero {
        height: 170px;
    }

    .s39-projects-hero .s39-hero-text h1 {
        font-size: 30px;
    }

    .s39-projects-hero .s39-breadcrumb {
        font-size: 16px;
    }

    .s39-projects-hero .s39-hero-image img {
        max-width: 65%;
        max-height: 150px;
        transform: translate(60px, -30px);
    }

    .s39-projects-hero .s39-hero-text {
        transform: translateY(30px);
    }

    .s39-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .s39-work-card .s39-case-caption {
        font-size: 15px;
        padding: 12px 14px 2px 14px;
    }

    .s39-work-card .s39-more {
        font-size: 13px;
        padding: 4px 14px 14px 14px;
    }

    .s39-filter-btn {
        font-size: 14px;
        padding: 6px 16px;
    }

    .s39-cta-band h2 {
        font-size: 22px;
    }

    .s39-cta-band p {
        font-size: 15px;
    }

    .s39-cta-btn {
        font-size: 16px;
        padding: 10px 26px;
    }
}

/* ----- 小手機 (max-width: 480px) ----- */
@media (max-width: 480px) {
    .s39-projects-hero {
        height: 140px;
    }

    .s39-projects-hero .s39-hero-text h1 {
        font-size: 24px;
    }

    .s39-projects-hero .s39-breadcrumb {
        font-size: 14px;
    }

    .s39-projects-hero .s39-hero-image img {
        max-width: 58%;
        max-height: 110px;
        transform: translate(60px, -30px);
    }

    .s39-projects-hero .s39-hero-text {
        transform: translateY(30px);
    }

    .s39-works-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .s39-work-card .s39-case-caption {
        font-size: 15px;
    }

    .s39-filter-bar {
        gap: 6px;
    }

    .s39-filter-btn {
        font-size: 13px;
        padding: 5px 12px;
    }

    .s39-cta-band {
        padding: 30px 0;
    }

    .s39-cta-band h2 {
        font-size: 20px;
    }

    .s39-cta-band p {
        font-size: 14px;
    }

    .s39-cta-btn {
        font-size: 15px;
        padding: 8px 20px;
    }
}

/* ===== 只改動型號按鈕顯示樣式，其他保留原貌 ===== */
@media (max-width: 768px) {
    .footer-spacer {
        margin-bottom: 55px;
    }

    /* ---- 分類篩選按鈕 - 像 projects-detail.html 一樣 ---- */
    .s39-filter-section {
        padding: 20px 0 5px 0;
    }

    .s39-filter-bar {
        gap: 10px 12px !important;
        justify-content: flex-start !important;
        padding: 0 5px !important;
    }

    .s39-filter-btn {
        font-size: 15px !important;
        padding: 8px 18px !important;
        border-radius: 25px !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 480px) {
    .s39-filter-bar {
        gap: 8px 10px !important;
    }

    .s39-filter-btn {
        font-size: 14px !important;
        padding: 6px 14px !important;
        border-radius: 20px !important;
    }
}