/* ========== 全域樣式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background-color: #ffffff; color: #000000; padding-top: 100px; line-height: 1.6; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ========== Header 固定頂部 ========== */
.header { position: fixed; top: 0; left: 0; right: 0; height: 100px; background-color: #ffffff; display: flex; justify-content: space-between; align-items: center; padding: 0 40px; z-index: 100; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
.lang-btn { background-color: transparent; color: #000000; font-size: 16px; font-weight: 600; padding: 8px 24px; border: 1px solid #000000; border-radius: 20px; transition: all 0.3s ease; }
.lang-btn:hover { background-color: #000000; color: #ffffff; }
.header-logo { height: 80px; width: auto; }
.hamburger-btn { background-color: transparent; width: 40px; height: 40px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; border: 1px solid #000000; border-radius: 50%; transition: all 0.3s ease; }
.hamburger-btn span { display: block; width: 20px; height: 1px; background-color: #000000; border-radius: 2px; transition: all 0.3s ease; }
.hamburger-btn:hover { background-color: #000000; }
.hamburger-btn:hover span { background-color: #ffffff; }

@media (max-width: 767px) {
    .header { height: 80px; padding: 0 15px; }
    .header-logo { height: 60px; }
    .lang-btn { font-size: 14px; padding: 6px 18px; }
    .hamburger-btn { width: 36px; height: 36px; }
    .hamburger-btn span { width: 18px; height: 1px; }
}

/* ========== Navigation 側邊選單 ========== */
.nav { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200; pointer-events: none; }
.nav-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.8); opacity: 0; visibility: hidden; }
.nav-menu { position: absolute; top: 0; right: 0; bottom: 0; width: 300px; background-color: #1a1a1a; transform: translateX(100%); display: flex; align-items: center; justify-content: center; }
.nav-close-btn { position: absolute; top: 20px; right: 20px; width: 50px; height: 50px; background-color: transparent; border: 1px solid #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; z-index: 10; }
.nav-close-btn span { font-size: 36px; color: #ffffff; line-height: 1; font-weight: 300; }
.nav-close-btn:hover { background-color: #ffffff; }
.nav-close-btn:hover span { color: #1a1a1a; }
.nav-list { width: 100%; padding: 40px; }
.nav-list li { margin-bottom: 30px; }
.nav-link { font-size: 24px; font-weight: 600; color: #ffffff; display: block; padding: 15px 0; transition: color 0.3s ease, transform 0.3s ease; }
.nav-link:hover { color: #E86F4D; transform: translateX(10px); }

/* 頁面載入後才啟用過渡動畫 */
.nav.loaded .nav-overlay { transition: opacity 0.4s ease, visibility 0.4s ease; }
.nav.loaded .nav-menu { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

/* 選單開啟狀態 */
.nav.active { pointer-events: auto; }
.nav.active .nav-overlay { opacity: 1; visibility: visible; }
.nav.active .nav-menu { transform: translateX(0); }

/* 防止背景滾動 */
body.menu-open { overflow: hidden; }

@media (max-width: 479px) {
    .nav-menu { width: 100%; }
}

/* ========== Hero Section 主視覺 ========== */
.hero { position: relative; width: 100%; overflow: hidden; }
.hero-bg-bottom { position: relative; width: 100%; z-index: 1; }
.hero-bg-top { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; opacity: 0; clip-path: inset(0 0 100% 0); animation: revealFromTop 2s linear 0.8s forwards, fadeIn 2.8s ease-out 0.8s forwards; will-change: clip-path, opacity; }
.hero-img { width: 100%; height: auto; display: block; }
.hero-overlay-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.marquee { position: absolute; bottom: 0; left: 0; right: 0; background-color: #ffffff; padding: 15px 0; overflow: hidden; border-top: 1px solid #000000; z-index: 3; }
.marquee-content { display: flex; white-space: nowrap; animation: marquee 30s linear infinite; }
.marquee-content span { font-size: 24px; font-weight: 700; letter-spacing: 2px; color: #999999; display: inline-block; }
.marquee-content .highlight { color: #E86F4D; }

@keyframes revealFromTop {
    0% { clip-path: polygon(0 0, 100% 0%, 100% 0, 0 0); }
    50% { clip-path: polygon(0 0, 100% 0%, 100% 50%, 0 70%); }
    100% { clip-path: polygon(0 0, 100% 0%, 100% 100%, 0 100%); }
}

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

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 767px) {
    .marquee { padding: 10px 0; }
    .marquee-content span { font-size: 18px; }
    .hero-bg-top { animation-duration: 1.5s, 1.3s; }
}

/* ========== Video Section 預告片 ========== */
.video-section { background-color: #0a0a0a; background-image: url('images/video-bg.png'); background-size: cover; background-position: center; padding: 80px 20px; text-align: center; position: relative; }
.video-description { max-width: 1400px; margin: 0 auto 40px; background-color: transparent; border: 1px solid #ffffff; border-radius: 12px; padding: 60px; color: #ffffff; }
.video-description p { margin-bottom: 15px; font-size: 16px; line-height: 1.8; }
.video-description p:last-child { margin-bottom: 0; }
.video-title { font-size: 32px; font-weight: 700; color: #ffffff; margin-bottom: 40px; letter-spacing: 2px; }
.video-player { max-width: 1400px; width: 100%; margin: 0 auto; border: 1px solid #000000; border-radius: 12px; overflow: hidden; }

@media (max-width: 767px) {
    .video-section { padding: 60px 15px; }
    .video-description { padding: 40px; }
    .video-description p { font-size: 14px; }
    .video-title { font-size: 24px; margin-bottom: 30px; }
}

@media (min-width: 1200px) {
    .video-section { padding: 100px 40px; }
}

/* ========== Activities Section 動態活動 ========== */
.activities-section { background-color: #E86F4D; background-image: url('images/activities-bg.png'); background-size: cover; background-position: center; padding: 80px 20px; position: relative; }
.activities-title { text-align: center; font-size: 48px; font-weight: 900; color: #ffffff; margin-bottom: 60px; display: flex; align-items: center; justify-content: center; gap: 20px; }
.activities-title .star { width: 48px; height: 48px; animation: rotate 3s linear infinite; }

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.coming-soon-container { text-align: center; margin-bottom: 40px; }
.coming-soon-text { font-size: 64px; font-weight: 900; color: #ffffff; letter-spacing: 8px; }

.activities-container { position: relative; max-width: 1400px; margin: 0 auto; overflow: visible; }
.activities-cards { display: flex; gap: 30px; overflow-x: scroll; overflow-y: hidden; scroll-behavior: smooth; padding-bottom: 10px; }
.activities-cards::-webkit-scrollbar { height: 8px; }
.activities-cards::-webkit-scrollbar-track { background-color: rgba(0, 0, 0, 0.3); border-radius: 10px; }
.activities-cards::-webkit-scrollbar-thumb { background-color: #ffffff; border-radius: 10px; }
.activity-card { flex: 0 0 auto; background-color: transparent; border: none; border-radius: 12px; overflow: visible; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.activity-card:hover { transform: scale(1.05); }
.card-img { width: 100%; height: 350px; object-fit: cover; border-radius: 12px; border: 1px solid #000000; }
.card-content { padding: 20px 0; }
.card-title { font-size: 20px; font-weight: 700; color: #ffffff; margin-bottom: 10px; line-height: 1.4; }
.card-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { font-size: 14px; font-weight: 600; color: #000000; padding: 6px 12px; background-color: #ffffff; border: 1px solid #000000; border-radius: 20px; }

@media (max-width: 767px) {
    .activities-section { padding: 60px 15px; }
    .activities-title { font-size: 32px; gap: 15px; }
    .activities-title .star { width: 32px; height: 32px; }
    .coming-soon-text { font-size: 36px; letter-spacing: 4px; margin-bottom: 20px; }
    .activities-cards { scroll-snap-type: x mandatory; }
    .activity-card { width: 85vw; scroll-snap-align: center; }
    .card-img { height: 280px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .activity-card { width: calc((100% - 30px) / 2); }
    .card-img { height: 300px; }
}

@media (min-width: 1200px) {
    .activities-section { padding: 100px 40px; }
    .activity-card { width: calc((100% - 60px) / 3); }
}

/* ========== Info Section 展覽資訊 ========== */
.info-section { background-color: #E86F4D; background-image: url('images/info-bg.png'); background-size: cover; background-position: center; padding: 0; position: relative; }
.info-section .marquee { position: relative; background-color: #ffffff; border-top: 1px solid #000000; border-bottom: 1px solid #000000; }
.info-content { max-width: 1400px; margin: 0 auto; padding: 60px 20px 80px; display: flex; gap: 40px; align-items: flex-start; }
.info-text { flex: 1; background-color: transparent; border: none; border-radius: 0; padding: 0; color: #ffffff; }
.info-text h2 { font-size: 36px; font-weight: 900; margin-bottom: 30px; color: #ffffff; padding-left: 20px; border-left: 4px solid #ffffff; }
.info-item { margin-bottom: 25px; }
.info-item:last-child { margin-bottom: 0; }
.info-item h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; color: #ffffff; }
.info-item p { font-size: 16px; line-height: 1.8; margin-bottom: 5px; color: #ffffff; }
.info-item .address { color: #ffffff; opacity: 0.9; }
.info-map { flex: 1.5; }
.info-map iframe { width: 100%; height: 400px; border: 1px solid #000000; border-radius: 12px; }

@media (max-width: 767px) {
    .info-section { padding: 0; }
    .info-content { flex-direction: column; padding: 40px 15px 60px; gap: 30px; }
    .info-text { padding: 0; width: 100%; }
    .info-text h2 { font-size: 28px; }
    .info-item h3 { font-size: 20px; }
    .info-item p { font-size: 14px; }
    .info-map { width: 100%; }
    .info-map iframe { height: 300px; }
}

@media (min-width: 1200px) {
    .info-content { padding: 80px 40px 100px; }
}

/* ========== Footer 頁尾 ========== */
.footer { background-color: #ffffff; padding: 0 120px; height: 140px; display: flex; justify-content: space-between; align-items: center; }
.footer-logo-left { max-width: 250px; height: auto; }
.footer-logo-right { max-width: 250px; height: auto; }

@media (max-width: 767px) {
    .footer { padding: 0 15px; height: 100px; }
    .footer-logo-left { max-width: 150px; }
    .footer-logo-right { max-width: 150px; }
}

/* ========== 滾動淡入效果 ========== */
.fade-in-element { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-element.is-visible { opacity: 1; transform: translateY(0); }