/* =================================================================
   基礎設定
================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier', monospace;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =================================================================
   導航區域
================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 100;
    letter-spacing: 0.1em;
    color: #e0e0e0;
    text-decoration: none;
}

.back-btn {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.back-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
    transform: translateX(-5px);
}

/* =================================================================
   主要內容區域
================================================================= */
.main-content {
    padding-top: 8rem;
}

/* 項目列表頁面樣式 */
.projects-main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: 4rem;
    font-weight: 100;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0.7;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-card p {
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

/* =================================================================
   照片展示區域
================================================================= */
.photo-gallery {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
    padding: 6rem 2rem;
    margin-top: 4rem;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: 100;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 0.1em;
    color: #ffffff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    grid-auto-rows: 320px;
    padding: 0 1rem;
}

.gallery-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(12px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.9) contrast(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(
        transparent 0%, 
        rgba(0,0,0,0.4) 30%, 
        rgba(0,0,0,0.8) 70%, 
        rgba(0,0,0,0.95) 100%
    );
    color: white;
    backdrop-filter: blur(8px);
}

.gallery-caption h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.gallery-caption p {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.5;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

/* =================================================================
   Footer 區域
================================================================= */
.footer {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

.footer-content {
    width: 100%;
    margin: 0;
    padding: 3rem 1rem;
}

.footer-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

.footer-navigation.full-width {
    padding-left: 0;
    padding-right: 0;
}

.footer-nav-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.4s ease;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    font-weight: 300;
    position: relative;
    overflow: hidden;
}

.footer-nav-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.1);
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.contact-content h2 {
    font-size: 1.4rem;
    font-weight: 200;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.contact-info {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.email-text {
    margin: 0;
    font-size: 1rem;
}

.email-simple {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.email-simple:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.contact-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
}

.contact-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 20px rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.link-text {
    font-weight: 300;
    letter-spacing: 0.05em;
}

.link-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.contact-link:hover .link-arrow {
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    opacity: 0.6;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* =================================================================
   響應式設計
================================================================= */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
        grid-auto-rows: 280px;
    }
    
    .gallery-caption {
        padding: 1.5rem;
    }
    
    .gallery-caption h4 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .gallery-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .main-content {
        padding-top: 6rem;
    }
    
    .projects-main {
        padding: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .photo-gallery {
        padding: 4rem 1rem;
    }
    
    .gallery-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        grid-auto-rows: 280px;
        padding: 0;
    }
    
    .gallery-item {
        border-radius: 16px;
    }
    
    .gallery-caption {
        padding: 1.5rem;
    }
    
    .gallery-caption h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .gallery-caption p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .footer-navigation {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .footer-content {
        padding: 2rem 0.5rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .project-image {
        height: 160px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .photo-gallery {
        padding: 3rem 0.5rem;
    }
    
    .gallery-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }
    
    .gallery-grid {
        gap: 1.5rem;
        grid-auto-rows: 240px;
    }
    
    .gallery-item {
        border-radius: 12px;
    }
    
    .gallery-caption {
        padding: 1.2rem;
    }
    
    .gallery-caption h4 {
        font-size: 0.95rem;
    }
    
    .gallery-caption p {
        font-size: 0.8rem;
    }
    
    .footer-navigation {
        padding-left: 0;
        padding-right: 0;
    }
    
    .footer-content {
        padding: 2rem 0;
    }
}