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

:root {
    --primary-color: #a0d2eb; /* 淺藍色 */
    --secondary-color: #333; /* 黑色 */
    --background-color: #fff; /* 白色背景 */
    --header-footer-bg: #f5f5f5; /* 淺灰色背景 */
    --text-color: #333;
    --light-text: #777;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif; /* 無襯線字體 */
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* 標題字體大小 */
h1, h2, h3, h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* 內文字體大小 */
p, li, a, input, textarea, button {
    font-size: 12px;
}

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

/* Header 樣式 - 修改為淺灰色背景 */
header {
    background-color: var(--header-footer-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
}

/* 導航菜單 - 修改為類似參考圖片的樣式 */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
    position: relative;
}

nav ul li a {
    padding: 5px 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* 當前頁面選單項樣式 */
nav ul li.active a {
    color: var(--primary-color);
    font-weight: 600;
}

/* 主內容區 */
.main-content {
    padding-top: 70px; /* 為固定header留出空間 */
    min-height: calc(100vh - 150px);
}

/* 頁面標題區 - 類似參考圖片的 DISCOVER 樣式 */
.page-header {
    background-color: var(--header-footer-bg);
    padding: 30px 0;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 28px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 首頁樣式 */
.hero {
    text-align: center;
    padding: 80px 0;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 16px;
}

/* 作品分類區 */
.section-title {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 10px auto;
}

.two-column-section .video-column {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* 可選圓角 */
}

.two-column-section video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* 保持影片比例填滿容器 */
}

/* 維持原本的雙欄布局 */
.column-container {
    display: flex;
    gap: 30px;
    align-items: center;
}
.image-column, .video-column, .text-column {
    flex: 1;
}

/* 手機版調整 */
@media (max-width: 768px) {
    .column-container {
        flex-direction: column;
    }
}

/* 作品網格佈局 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    margin-top: 50px;
}

.portfolio-item {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-img {
    height: 250px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

/* 關於我區 */
.about-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 50px 0;
}

.about-img {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.about-img img {
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.about-content h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-info {
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

/* 購物頁面樣式 */
.shop-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.shop-sidebar {
    background-color: var(--header-footer-bg);
    padding: 20px;
    border-radius: 5px;
}

.shop-sidebar h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.shop-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-item {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 200px;
    overflow: hidden;
}

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

.product-info {
    padding: 15px;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.product-price {
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

/* 購物車按鈕 */
.add-to-cart {
    display: block;
    width: 100%;
    padding: 8px 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.add-to-cart:hover {
    background-color: #8bc3db;
}

/* 訂購表單 */
.order-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--header-footer-bg);
    border-radius: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.form-group textarea {
    min-height: 100px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #8bc3db;
}

/* 購物車 */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-total {
    text-align: right;
    margin-top: 20px;
    font-weight: bold;
}

/* Footer - 修改為淺灰色背景 */
footer {
    background-color: var(--header-footer-bg);
    color: var(--text-color);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
}

.footer-section p {
    margin-bottom: 10px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px 10px 0;
    color: var(--secondary-color);
    font-size: 18px;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    width: 100%;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .shop-container {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px 10px;
    }

    .about-section {
        flex-direction: column;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid, .shop-products {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 18px;
    }

    .hero h1 {
        font-size: 28px;
    }
    
    nav ul li {
        margin: 0 5px 5px;
    }
    
    nav ul li a {
        font-size: 12px;
    }
}
/* 兩欄佈局樣式 */
.two-column-section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.column-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.image-column {
    flex: 1;
}

.image-column img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.text-column {
    flex: 1;
}

.text-column h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.text-column p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
}

/* Footer 樣式 */
footer {
    background-color: #f8f8f8;
    padding: 40px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: flex-start; /* 靠左對齊 */
    gap: 80px; /* 兩欄間距 */
}

.footer-left {
    flex: none;
    width: 300px;
}

.footer-left h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.footer-left p {
    margin-bottom: 10px;
    color: #666;
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: left;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .column-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-left {
        width: 100%;
    }
}
/* 海報網格佈局 */
.poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.poster-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.poster-item:hover {
    transform: translateY(-5px);
}

.poster-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 彈出視窗樣式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 80%;
    max-width: 900px;
    border-radius: 10px;
    position: relative;
    animation: modalopen 0.4s;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 35px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

/* 圖片輪播樣式 */
.modal-gallery {
    position: relative;
    margin-bottom: 30px;
}

.gallery-slides {
    display: flex;
    overflow: hidden;
}

.slide {
    min-width: 100%;
    transition: transform 0.5s ease;
}

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

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    user-select: none;
    transition: 0.3s;
}

.next {
    right: 20px;
}

.prev {
    left: 20px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* 文字內容樣式 */
.modal-text {
    padding: 0 20px;
}

.modal-text h2 {
    margin-bottom: 15px;
    color: #333;
}

.modal-text p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.details p {
    margin-bottom: 8px;
    color: #666;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .modal-gallery {
        margin-bottom: 20px;
    }
    
    .slide img {
        max-height: 300px;
    }
}
.slide {
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
