﻿@charset "UTF-8";




/* ===== 頁面主標題 ===== */
.s39-detail-hero {
    background: linear-gradient(135deg, #3a8fd4 0%, #6bb0e8 100%);
    color: white;
    padding: 30px 0 20px 0;
    position: relative;
    overflow: visible;
    display: block;
    min-height: auto;
    height: auto !important;
    max-height: none !important;
}

.s39-detail-hero::after {
    
    font-size: 160px;
    opacity: 0.06;
    position: absolute;
    right: -10px;
    bottom: -20px;
    transform: rotate(12deg);
}

.s39-detail-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%;
    height: auto !important;
    min-height: auto !important;
}

.s39-detail-hero .s39-hero-text {
    flex: 1 1 50%;
    height: auto !important;
    min-height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
}

.s39-detail-hero .s39-hero-text h1 {
    font-size: 44px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    word-break: break-word;
    white-space: normal;
}

.s39-detail-hero .s39-hero-text h1 span {
    color: #ffe484;
}

.s39-detail-hero .s39-breadcrumb {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
}

.s39-detail-hero .s39-breadcrumb a {
    color: #ffe484;
    text-decoration: none;
    transition: color 0.2s;
}

.s39-detail-hero .s39-breadcrumb a:hover {
    text-decoration: underline;
    color: #ffffff;
}

.s39-detail-hero .s39-hero-image {
    flex: 1 1 40%;
    text-align: center;
}

.s39-detail-hero .s39-hero-image img {
    max-width: 85%;
    height: auto;
    max-height: 210px;
    display: block;
    background: transparent;
    margin: 0 auto;
}

/* ===== 返回連結 ===== */
.s39-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffe484;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    margin-top: 6px;
}

.s39-back-link:hover {
    color: #ffffff;
}

/* ===== 相簿說明 ===== */
.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-gallery-section {
    padding: 24px 0 50px 0;
    background: #ffffff;
}

.s39-gallery-section .s39-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.s39-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.s39-gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 14px;
    background: #f5faff;
    border: 1px solid #dce8f5;
    cursor: zoom-in;
    transition: box-shadow 0.3s ease;
}

.s39-gallery-item:hover {
    box-shadow: 0 8px 24px rgba(43, 123, 201, 0.12);
}

.s39-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.s39-gallery-item:hover img {
    transform: scale(1.06);
}

.s39-gallery-item .s39-zoom-hint {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(11, 30, 48, 0.55);
    color: #ffffff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.s39-gallery-item:hover .s39-zoom-hint {
    opacity: 1;
}

/* ===== Lightbox ===== */
.s39-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(11, 20, 30, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.s39-lightbox.s39-show {
    opacity: 1;
    pointer-events: auto;
}

.s39-lightbox img {
    max-width: 90vw;
    max-height: 86vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.s39-lightbox-close {
    position: absolute;
    top: 22px;
    right: 26px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.s39-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

.s39-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.s39-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.24);
}

.s39-lightbox-prev {
    left: 22px;
}

.s39-lightbox-next {
    right: 22px;
}

.s39-lightbox-count {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ===== 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-detail-hero {
        padding: 25px 0 15px 0;
    }

    .s39-detail-hero .s39-hero-text h1 {
        font-size: 34px;
    }

    .s39-detail-hero .s39-breadcrumb {
        font-size: 16px;
    }

    .s39-detail-hero .s39-hero-image {
        flex: 1 1 100%;
        text-align: center;
    }

    .s39-detail-hero .s39-hero-image img {
        max-width: 55%;
        max-height: 120px;
    }

    .s39-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .s39-cta-band h2 {
        font-size: 24px;
    }

    .s39-back-link {
        font-size: 16px;
    }
}

/* ----- 手機 (max-width: 768px) ----- */
@media (max-width: 768px) {
    .footer-spacer {
        margin-bottom: 55px;
    }

    .s39-detail-hero {
        padding: 55px 0 10px 0 !important;
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .s39-detail-hero .s39-hero-text {
        transform: none !important;
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
    }

    .s39-detail-hero .s39-hero-text h1 {
        font-size: 24px !important;
        line-height: 1.4 !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .s39-detail-hero .s39-breadcrumb {
        display: none !important;
    }

    .s39-detail-hero .s39-hero-image {
        display: none !important;
    }

    .s39-back-link {
        display: none !important;
    }

    /* ===== 機型切換按鈕 ===== */
    .s39-model-switch {
        gap: 10px 12px !important;
        justify-content: flex-start !important;
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }

    .s39-model-chip {
        font-size: 15px !important;
        padding: 8px 18px !important;
        border-radius: 25px !important;
        white-space: nowrap !important;
    }

    .s39-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .s39-gallery-note {
        font-size: 14px !important;
    }

    .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-detail-hero {
        padding: 50px 0 8px 0 !important;
    }

    .s39-detail-hero .s39-hero-text h1 {
        font-size: 20px !important;
        line-height: 1.4 !important;
    }

    .s39-model-switch {
        gap: 8px 10px !important;
    }

    .s39-model-chip {
        font-size: 13px !important;
        padding: 6px 14px !important;
        border-radius: 20px !important;
    }

    .s39-gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .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;
    }
}

/* ============================================================
   手機底部工具列修正
   ============================================================ */
.footer-spacer {
    display: block;
    height: 0;
}

@media (max-width: 768px) {
    .footer-spacer {
        margin-bottom: 55px;
    }
}
