/* 重置與基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 手機版容器優化 */
@media (max-width: 768px) {
    .container {
        padding: 0 24px; /* 增加手機版左右留白 */
    }
    
    .hero-content {
        padding: 0 24px; /* hero區塊也使用一致的左右留白 */
    }
    
    .nav-container {
        padding: 0 24px; /* 導航欄也增加留白 */
    }
    
    .nav-logo .logo-img {
        height: 35px; /* 手機版縮小logo */
    }
    
    .nav-logo h2 {
        font-size: 1.2rem; /* 手機版縮小字體 */
    }
    
    /* 手機端觸控優化 */
    a, button, .hamburger, [onclick] {
        min-height: 44px; /* iOS建議的最小觸控目標 */
        min-width: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(44, 90, 160, 0.1);
    }
    
    /* 確保按鈕和連結可以正常點擊 */
    .cta-button, 
    .nav-menu a,
    .hamburger,
    .view-photos-btn,
    .contact-item,
    .service-card,
    button,
    [onclick] {
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(44, 90, 160, 0.1);
        user-select: none;
        pointer-events: auto; /* 明確允許點擊事件 */
        position: relative;
        z-index: 10; /* 確保在其他元素之上 */
    }
    
    /* 導航選單連結特別處理 */
    .nav-menu a {
        display: block;
        padding: 1rem;
        text-decoration: none;
        color: #333;
        font-weight: 500;
        transition: color 0.3s ease;
        pointer-events: auto;
        z-index: 1001;
    }
}

/* 導航欄 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.hide {
    transform: translateY(-100%);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo .logo-img {
    height: 40px;
    width: auto;
}

.nav-logo h2 {
    color: #2c5aa0;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #2c5aa0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2c5aa0;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: #2c5aa0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px; /* 增加觸控區域 */
    min-width: 44px; /* 最小觸控目標 */
    min-height: 44px;
    justify-content: center;
    align-items: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(44, 90, 160, 0.2);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 首頁橫幅 */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 移除舊的幻燈片樣式 */

.hero-content {
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
    position: relative;
}

/* 移除指示器樣式 */

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

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

/* 區塊標題 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: #ff6b35;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* 服務項目 */
.services {
    padding: 100px 0;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #ff6b35);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: #2c5aa0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 90, 160, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: #2c5aa0;
    color: white;
    transform: scale(1.1);
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.7;
}

/* 關於我們 */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafe 0%, #ffffff 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #2c5aa0 50%, transparent 100%);
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-intro {
    max-width: 1200px;
    margin: 0 auto;
}

.about-description {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    margin: 1.5rem 0 0;
}

/* 移除統計數字相關樣式 */

/* 特色項目網格 */
.features-grid {
    margin-bottom: 4rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 90, 160, 0.1);
    position: relative;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0 0%, #1a3a6e 100%);
    border-radius: 0 0 2px 2px;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(44, 90, 160, 0.15);
}

.feature h4 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* CTA 區塊 */
.about-cta {
    text-align: center;
    margin-top: 3rem;
}

.about-cta .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #2c5aa0 0%, #1a3a6e 100%);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.about-cta .cta-button:hover {
    background: linear-gradient(135deg, #1a3a6e 0%, #0f2442 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(44, 90, 160, 0.4);
}

.about-cta .cta-button i {
    font-size: 1.2rem;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature {
        padding: 2rem;
    }
    
    .about-description {
        font-size: 1.1rem;
    }
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.features {
    display: grid;
    gap: 1.5rem;
}

.feature {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #ff6b35;
}

.feature h4 {
    color: #2c5aa0;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #666;
    margin: 0;
}

/* 移除關於我們的圖片樣式 */

/* 移除圖片網格 */

/* 移除所有圖片相關樣式 */

/* 聯絡我們 */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-item h4 {
    color: #2c5aa0;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    margin: 0;
}

/* 聯絡表單 */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    color: #2c5aa0;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.contact-form textarea {
    resize: vertical;
    margin-bottom: 1.5rem;
}

.contact-form button {
    width: 100%;
    background: #2c5aa0;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: #1a365d;
    transform: translateY(-2px);
}

/* 工作實績 */
.projects {
    padding: 100px 0;
    background: white;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-top: -1rem;
    margin-bottom: 3rem;
}

.projects-timeline {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.timeline-year {
    text-align: center;
    margin-bottom: 2rem;
}

.timeline-year h3 {
    display: inline-block;
    background: #2c5aa0;
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 50px;
    font-size: 1.5rem;
}

.project-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: #ff6b35;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-date {
    position: absolute;
    top: 2rem;
    right: 2rem;
    text-align: center;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-date .month {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5aa0;
}

.project-date .year {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-client {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-client img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.client-info h4 {
    color: #2c5aa0;
    margin-bottom: 0.25rem;
}

.client-info p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.project-details h3 {
    color: #1a365d;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #e3f2fd;
    color: #2c5aa0;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 專案照片圖庫 */
.project-gallery {
    margin: 1.5rem 0;
}

.gallery-preview {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.gallery-thumb:hover {
    transform: scale(1.05);
    border-color: #2c5aa0;
}

.more-photos {
    width: 80px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #ddd;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.more-photos:hover {
    background: #2c5aa0;
    color: white;
    transform: scale(1.05);
}

.more-photos span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* 照片燈箱 */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.gallery-modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    flex-direction: column;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
}

.gallery-close:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.gallery-close:active {
    transform: scale(0.95);
}

.gallery-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

#gallery-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.gallery-prev,
.gallery-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: all;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(255, 107, 53, 0.8);
    transform: scale(1.1);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-height: 120px;
    overflow-y: auto;
}

.gallery-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active {
    border-color: #ff6b35;
    transform: scale(1.1);
}

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

.more-projects {
    text-align: center;
    padding: 3rem 0;
    color: #666;
    font-style: italic;
}

.view-all-link {
    display: inline-block;
    margin-top: 1rem;
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
    font-style: normal;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #ff6b35;
    transform: translateX(5px);
}

.projects-cta {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .project-card {
        padding: 1.5rem;
    }
    
    .project-date {
        position: static;
        margin-bottom: 1rem;
        display: inline-block;
    }
    
    .project-client {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-year h3 {
        font-size: 1.2rem;
        padding: 0.4rem 1.5rem;
    }
}

/* 頁腳 */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #2c5aa0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #ccc;
}

/* 載入指示器 */
.loading-indicator {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 觀看照片按鈕 */
.view-photos-btn {
    background: linear-gradient(135deg, #2c5aa0 0%, #1a3a6e 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

.view-photos-btn:hover {
    background: linear-gradient(135deg, #1a3a6e 0%, #0f2442 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.view-photos-btn i {
    font-size: 1rem;
}

/* 照片載入模態框 */
.photo-loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.photo-loading-modal.show {
    opacity: 1;
    visibility: visible;
}

.photo-loading-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.loading-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.loading-header h3 {
    margin: 0;
    color: #2c5aa0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close-loading-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-loading-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.loading-progress {
    padding: 2rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-text {
    color: #666;
    font-size: 0.95rem;
}

.progress-count {
    color: #2c5aa0;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2c5aa0 0%, #1a3a6e 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0 2rem 2rem;
    max-height: 50vh;
    overflow-y: auto;
}

.photo-item {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.photo-item.loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.photo-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-item img:hover {
    transform: scale(1.05);
}

.photo-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 0.9rem;
    gap: 0.5rem;
}

.photo-error i {
    font-size: 2rem;
    opacity: 0.5;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .photo-loading-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .loading-header {
        padding: 1rem 1.5rem;
    }
    
    .loading-progress {
        padding: 1.5rem;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.8rem;
        padding: 0 1rem 1rem;
    }
}

@media (max-width: 390px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0 0.8rem 0.8rem;
    }
    
    .photo-item {
        aspect-ratio: 1;
    }
    
    .view-photos-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }
}

/* ===== 專案頁面卡片樣式 ===== */
.projects-expanded {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.year-section {
    margin-bottom: 3rem;
}

.year-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #2c5aa0;
    position: relative;
}

.year-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 2px;
    background: rgba(44, 90, 160, 0.3);
}

.year-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5aa0;
    margin: 0;
}

.project-count {
    background: linear-gradient(135deg, #2c5aa0, #1a365d);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 專案卡片容器 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 專案卡片 */
.project-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(44, 90, 160, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 90, 160, 0.08);
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(44, 90, 160, 0.2);
}

/* 卡片頭部 */
.project-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1a365d 100%);
    color: white;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.project-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.project-card:hover .project-header::before {
    transform: scale(1.2);
}

.project-info h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.project-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 107, 53, 0.9);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

/* 卡片內容 */
.project-content {
    padding: 1.5rem;
}

.project-client-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.project-client-details h4 {
    color: #2c5aa0;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.client-grid {
    display: grid;
    gap: 0.5rem;
}

.client-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.client-item strong {
    color: #666;
    min-width: 80px;
}

/* 專案範圍 */
.project-scope {
    margin-bottom: 1.5rem;
}

.project-scope h4 {
    color: #2c5aa0;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.scope-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scope-list li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.5rem;
    color: #555;
    line-height: 1.4;
}

.scope-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-size: 0.8rem;
}

/* 媒體檔案區塊 */
.project-media {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.project-media h4 {
    color: #2c5aa0;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.media-button-container {
    display: flex;
    justify-content: center;
}

.view-photos-btn {
    background: linear-gradient(135deg, #6c7b87, #5a6973);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.view-photos-btn:hover {
    background: linear-gradient(135deg, #5a6973, #4a5762);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 123, 135, 0.3);
}

.view-photos-btn i {
    font-size: 1.1rem;
}

/* 標籤 */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-tags .tag {
    background: #e8f2ff;
    color: #2c5aa0;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(44, 90, 160, 0.2);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .year-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .year-header h2 {
        font-size: 2rem;
    }
    
    .project-header {
        padding: 1.25rem;
    }
    
    .project-info h3 {
        font-size: 1.2rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-content {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .projects-expanded {
        padding: 1rem 0.5rem;
    }
    
    .projects-grid {
        gap: 1rem;
    }
    
    .project-badge {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 0.75rem;
        align-self: center;
    }
    
    .project-header {
        padding: 1rem;
    }
    
    .project-content {
        padding: 1rem;
    }
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2c5aa0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #666;
    font-size: 1rem;
}

/* 地址與地圖樣式 */
.address-with-map {
    margin-top: 0.5rem;
}

.address-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.address-link:hover {
    color: #2c5aa0;
}

.map-icon {
    font-size: 1.2rem;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.map-thumbnail {
    display: block;
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 200px;
    height: 150px;
    border: 2px solid #333;
    position: relative;
    background: #f0f8ff;
}

.map-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
    border-color: #2c5aa0;
}

.map-preview {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-preview svg {
    width: 100%;
    height: 100%;
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(44, 90, 160, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.map-thumbnail:hover .map-overlay {
    opacity: 1;
}

.map-overlay i {
    font-size: 1.2rem;
}

.map-overlay span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 999; /* 確保導航選單不會超過其他模態框 */
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* 移除響應式關於我們佈局 */
    
    /* 移除響應式圖片樣式 */
    
    .gallery-preview {
        justify-content: center;
    }
    
    .hero-indicators {
        bottom: 20px;
        gap: 0.8rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    /* 改善移動端觸控目標 */
    .gallery-thumb,
    .more-photos {
        min-width: 60px;
        min-height: 60px;
        position: relative;
    }
    
    /* 為觸控創建更大的點擊區域 */
    .gallery-thumb::after,
    .more-photos::after {
        content: '';
        position: absolute;
        top: -10px;
        right: -10px;
        bottom: -10px;
        left: -10px;
        pointer-events: none; /* 防止偽元素阻擋點擊 */
    }
}

/* 滾動條樣式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2c5aa0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a365d;
}

/* 漢堡選單動畫 */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}