/* 全局樣式 */
:root {
    --primary-color: #8a6f54; /* 金棕色，參考圖片木質元素 */
    --secondary-color: #e0e0e0; /* 溫和的淺灰色，參考球形燈罩 */
    --accent-color: #d5c5b0; /* 淺棕色，輔助色調 */
    --text-color: #333333;
    --light-text: #ffffff;
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --header-font: 'Helvetica Neue', Arial, sans-serif;
    --body-font: 'Arial', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* 確保HTML元素也不允許水平滾動 */
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden; /* 禁止水平滾動 */
    width: 100%; /* 確保寬度不超過視窗 */
    position: relative; /* 為定位元素提供參考點 */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    overflow: hidden; /* 防止內容溢出 */
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
    margin-bottom: 20px;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* 導航欄 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    overflow-x: hidden; /* 防止水平溢出 */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 5%;
}

.logo {
    font-family: var(--header-font);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 語言切換器 */
.lang-switcher {
    display: flex;
    gap: 5px;
    margin-left: 20px;
}

.lang-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lang-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* 導航連結動畫 */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 手機版語言切換器 */
.mobile-lang-switcher {
    display: none;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
}

.nav-active .mobile-lang-switcher {
    display: block;
}

.mobile-lang-switcher .lang-title {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.mobile-lang-switcher .lang-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 5px;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* 首頁英雄區塊 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/gallery/Olivia Marsh X Teen Vogue 02.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text);
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 5px;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.cta-btn.secondary {
    background-color: transparent;
    color: var(--light-text);
    border: 2px solid var(--light-text);
}

.cta-btn.primary:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
}

.cta-btn.secondary:hover {
    background-color: var(--light-text);
    color: var(--dark-bg);
}

/* 關於部分 */
.about {
    background-color: var(--light-bg);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background-color: rgba(138, 111, 84, 0.05);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    z-index: 1;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background-color: rgba(138, 111, 84, 0.05);
    clip-path: polygon(0 100%, 0 0, 100% 100%);
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

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

.about-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 70px;
    height: 70px;
    border-top: 3px solid var(--primary-color);
    border-left: 3px solid var(--primary-color);
    z-index: 1;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 70px;
    height: 70px;
    border-bottom: 3px solid var(--primary-color);
    border-right: 3px solid var(--primary-color);
    z-index: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
    display: block;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    padding-left: 20px;
    border-left: 2px solid var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1rem;
    position: relative;
    padding-left: 15px;
}

.about-text p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-text);
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.social-links a:hover::before {
    transform: translateY(0);
}

.social-links a:hover {
    transform: translateY(-5px);
    background-color: var(--dark-bg);
}

.social-links a i {
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

/* 添加媒體查詢，優化響應式設計 */
@media screen and (max-width: 992px) {
    .about-content {
        gap: 40px;
    }
    
    .about-image::before,
    .about-image::after {
        width: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-text {
        padding-left: 0;
        border-left: none;
        text-align: center;
    }
    
    .about-text p {
        padding-left: 0;
    }
    
    .about-text p::before {
        display: none;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .about::before,
    .about::after {
        width: 50%;
    }
}

@media screen and (max-width: 480px) {
    .about {
        padding: 60px 0;
    }
    
    .about::before,
    .about::after {
        display: none;
    }
    
    .about-image {
        max-width: 280px;
    }
    
    .about-image::before,
    .about-image::after {
        display: none;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
    }
    
    .social-links a i {
        font-size: 1rem;
    }
}

/* EP部分 */
.meanwhile {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 80px 0;
}

.meanwhile h2 {
    color: var(--light-text);
}

.meanwhile h2::after {
    background-color: var(--light-text);
}

.ep-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.ep-cover img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ep-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.track-list {
    margin-bottom: 40px;
}

.track-list h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.track-list ol {
    list-style-position: inside;
}

.track-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.track-list li:last-child {
    border-bottom: none;
}

.track-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.track-duration {
    margin-left: auto;
    color: #888;
}

audio {
    width: 100%;
    margin-top: 10px;
}

.streaming-links h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.streaming-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.stream-btn {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.stream-btn:hover {
    transform: translateY(-3px);
    background-color: var(--accent-color);
    color: var(--dark-bg);
}

/* 巡演部分 */
.tour {
    background-color: #f8f8f8;
    padding: 80px 0;
    position: relative;
    overflow: hidden; /* 確保內容不會溢出容器 */
    width: 100%;
}

.tour-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
}

.tour-intro-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 15px;
    box-sizing: border-box;
}

.tour-banner {
    width: 100%;
    max-width: 600px;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.tour .container {
    width: 98%;
    max-width: 1400px;
    padding: 40px 0;
    overflow: visible;
    position: relative;
}

.tour-dates {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 30px;
    padding-top: 10px;
    padding-left: 5px;
    padding-right: 5px;
    margin: 0 auto;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    scroll-snap-type: x mandatory; /* 確保滾動定位準確 */
    -webkit-overflow-scrolling: touch; /* 平滑滾動在iOS上 */
    touch-action: pan-x; /* 確保只允許水平滑動 */
}

.tour-dates::-webkit-scrollbar {
    display: none;
}

/* 設置卡片容器指示條 */
.tour-indicator {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 4px;
}

.indicator-dot.active {
    background-color: var(--primary-color);
}

@media screen and (min-width: 1200px) {
    /* 大屏幕優化 */
    .tour-dates {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        max-width: 1200px; /* 限制最大寬度，確保卡片居中顯示 */
        margin: 0 auto;
    }
    
    .tour-date {
        width: calc((100% / 5) - 20px); /* 從6個卡片改為一行5個 */
        min-width: 180px;
        max-width: 220px;
        margin: 0;
    }
}

/* 添加中等屏幕的優化 */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .tour-dates {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .tour-date {
        width: calc((100% / 4) - 15px); /* 一行4個卡片 */
        min-width: 180px;
        max-width: 220px;
        margin: 0;
    }
}

@media screen and (max-width: 992px) {
    .tour {
        padding: 60px 0; /* 減少上下填充 */
    }
    
    .tour .container {
        width: 98%;
        padding: 30px 0; /* 減少垂直填充 */
        margin: 0 auto; /* 確保居中 */
        overflow-x: hidden; /* 禁止水平溢出 */
    }
    
    .tour-dates {
        justify-content: flex-start;
        padding-left: 10px;
        padding-right: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        touch-action: pan-x; /* 確保在平板上也能正常滾動 */
        overscroll-behavior-x: contain; /* 防止滾動穿透 */
    }
    
    .tour-date {
        min-width: 150px;
        max-width: 200px;
        width: 160px;
        flex: 0 0 auto;
        scroll-snap-align: start;
        height: 550px;
    }
    
    .venue-preview {
        height: 470px;
    }
}

@media screen and (max-width: 768px) {
    nav {
        padding: 0 5%;
    }
    
    .hero-logo {
        max-width: 60%;
    }
    
    .hero {
        background-position: 70% center;
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/gallery/Olivia Marsh X Teen Vogue 02.webp');
        background-repeat: no-repeat;
    }
    
    .nav-links {
        position: fixed;
        right: 0;
        top: 70px;
        height: calc(100vh - 70px);
        background-color: rgba(255, 255, 255, 0.95);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 60%;
        transform: translateX(100%);
        transition: none;
        padding: 20px;
        box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .burger {
        display: block;
    }
    
    .nav-active {
        transform: translateX(0);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    /* 顯示手機版語言切換器，隱藏桌面版 */
    .desktop-lang-switcher {
        display: none;
    }
    
    .mobile-lang-switcher {
        display: block;
    }
    
    .lang-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .tour .container {
        width: 100%;
        padding: 30px 0;
        margin: 0 auto;
        overflow: visible !important; /* 確保不阻擋滾動 */
    }
    
    .tour-dates {
        padding-left: 10px;
        padding-right: 10px;
        gap: 10px;
        overflow-x: auto !important; /* 強制啟用橫向滾動 */
        max-width: 100%;
        width: 100%;
        touch-action: pan-x; /* 確保可以水平滑動 */
        scrollbar-width: none; /* 隱藏滾動條 */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }
    
    .tour-date {
        width: 150px;
        max-width: 150px;
        height: 500px;
    }
    
    .venue-preview {
        height: 420px;
    }
    
    .date {
        font-size: 1.8rem;
    }
    
    .location {
        font-size: 1.2rem;
    }
    
    .tour-date.highlight::after {
        top: 8px;
        right: 8px;
        padding: 3px 6px;
        font-size: 0.65rem;
    }
    
    .tour-banner {
        max-width: 450px;
        max-height: 300px;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-logo {
        max-width: 90%;
    }
    
    .hero {
        background-position: center;
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/gallery/96e1b8d69d71f34796905bb51ec210f7.webp');
        background-repeat: no-repeat;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .lang-switcher {
        right: 60px;
    }
    
    .lang-btn {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }
    
    .tour .container {
        width: 100%;
        padding: 20px 0;
        overflow: visible !important; /* 確保不阻擋滾動 */
    }
    
    .tour-dates {
        padding-left: 8px;
        padding-right: 8px;
        gap: 6px;
        overflow-x: auto !important; /* 強制啟用橫向滾動 */
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        overscroll-behavior-x: contain;
    }
    
    .tour-date {
        width: 130px;
        max-width: 130px;
        height: 450px;
    }
    
    .venue-preview {
        height: 370px;
    }
    
    .date {
        font-size: 1.6rem;
    }
    
    .location {
        font-size: 1.1rem;
    }
    
    .tour-date.highlight::after {
        top: 5px;
        right: 5px;
        padding: 2px 5px;
        font-size: 0.6rem;
    }
    
    .tour-banner {
        max-width: 350px;
        max-height: 250px;
    }
}

/* 漢堡菜單動畫 */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

.track-list-styled {
    margin: 30px 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2);
    position: relative;
}

.track-list-styled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 25%, transparent 25%,
                transparent 50%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0.05) 75%,
                transparent 75%, transparent);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    position: relative;
}

.track-item:hover {
    background-color: rgba(138, 111, 84, 0.2);
}

.track-item.featured {
    background-color: rgba(138, 111, 84, 0.15);
    position: relative;
}

.track-item.featured::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--primary-color);
}

.track-item.featured:hover {
    background-color: rgba(138, 111, 84, 0.25);
}

.track-item:last-child {
    border-bottom: none;
}

.track-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    min-width: 40px;
}

.track-title {
    flex-grow: 1;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 15px;
}

.track-badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    margin-right: 10px;
}

.track-duration {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-family: var(--header-font);
}

.stream-notice {
    text-align: center;
    margin: 20px 0 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stream-notice i {
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.streaming-links {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 10px;
}

@media screen and (max-width: 768px) {
    .track-title {
        font-size: 1rem;
    }
    
    .track-number {
        min-width: 30px;
        font-size: 1rem;
    }
    
    .track-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    .track-duration {
        font-size: 0.85rem;
    }
    
    .track-item {
        padding: 12px 15px;
    }
}

@media screen and (max-width: 480px) {
    .track-title {
        font-size: 0.9rem;
        margin: 0 8px;
    }
    
    .track-item {
        padding: 10px 12px;
    }
    
    .track-badge {
        display: inline-block;
        margin-top: 4px;
    }
}

/* 模態窗口樣式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: transparent;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden; /* 防止內容溢出 */
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: -40px;
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1002;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.close-modal:hover {
    color: var(--primary-color);
}

.poster-container {
    width: 100%;
    text-align: center;
}

.poster-container img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.5);
}

.modal-info {
    text-align: center;
    margin-top: 20px;
}

.modal-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.modal-info p {
    margin-bottom: 5px;
    font-size: 16px;
    color: var(--text-color);
}

@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .close-modal {
        top: -30px;
        right: 10px;
    }
    
    .poster-container img {
        max-height: 70vh;
    }
}

/* 移除滾動陰影提示，因為它們可能遮擋卡片 */
.tour-dates::before,
.tour-dates::after {
    display: none;
}

/* 添加橫向滾動指示器 */
.tour .container::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin: 20px auto 0;
    border-radius: 2px;
}

.tour-date {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 auto;
    min-width: 180px;
    max-width: 220px;
    width: 180px;
    position: relative;
    cursor: pointer;
    height: 700px;
    border: 1px solid #f0f0f0;
}

.tour-date:active {
    transform: scale(0.98);
}

/* 隱藏舊的按鈕樣式 */
.ticket-btn {
    display: none;
}

/* 調整日期信息區域，使整個卡片可點擊 */
.date-info {
    width: 100%;
    padding: 20px 10px;
    background-color: #fff;
    z-index: 10;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.venue-preview {
    width: 100%;
    height: 620px;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    pointer-events: none;
}

.venue-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.date {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1.2;
}

.location {
    font-size: 1.4rem;
    font-weight: 600;
    display: block;
    margin-top: 5px;
}

.tour-date:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.tour-date:hover .venue-preview img {
    transform: scale(1.05);
}

.tour-date.highlight {
    border: 1px solid var(--primary-color);
    position: relative;
}

.tour-date.highlight::after {
    content: '安可場';
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 20;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

/* 響應式調整 */
@media screen and (max-width: 768px) {
    .tour-date.highlight::after {
        top: 8px;
        right: 8px;
        padding: 3px 6px;
        font-size: 0.65rem;
    }
}

@media screen and (max-width: 480px) {
    .tour-date.highlight::after {
        top: 5px;
        right: 5px;
        padding: 2px 5px;
        font-size: 0.6rem;
    }
}

.ticket-btn {
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.ticket-btn:hover {
    background-color: var(--dark-bg);
    color: white;
}

@media screen and (max-width: 768px) {
    .container {
        width: 95%; /* 在手機版上增加可用寬度 */
        padding: 30px 10px; /* 減少填充，增加內容空間 */
    }
    
    .tour .container {
        width: 95%;
        padding: 30px 0; /* 移除水平填充 */
        overflow: hidden; /* 確保內容不會溢出 */
    }
}

@media screen and (max-width: 480px) {
    .tour .container {
        width: 100%;
        padding: 30px 0;
    }
    
    .container {
        width: 100%;
        padding: 20px 10px;
    }
}

/* 修正頁腳 */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 50px 0 30px;
    width: 100%;
    overflow-x: hidden; /* 防止水平溢出 */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-left, .footer-right {
    flex: 1;
    min-width: 300px;
    padding: 0 15px;
}

.footer-left {
    margin-right: 20px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.footer-logo {
    font-family: var(--header-font);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--light-text);
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-left, .footer-right {
        width: 100%;
    }
    
    .footer-right {
        align-items: center;
    }
    
    .footer-links {
        margin-top: 15px;
    }
}

/* Telegram 群組樣式 - 頁腳版 */
.footer-left .telegram-group {
    margin: 20px 0;
    text-align: left;
    padding: 0;
    background-color: transparent;
    border: none;
    max-width: 100%;
    position: relative;
}

.footer-left .telegram-group::before {
    display: none;
}

.footer-left .telegram-group p {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--light-text);
    opacity: 0.9;
}

.footer-left .telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background-color: rgba(0, 136, 204, 0.6);
    color: var(--light-text);
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-left .telegram-link:hover {
    transform: translateY(-3px);
    background-color: rgba(0, 136, 204, 0.9);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
    color: var(--light-text);
}

@media screen and (max-width: 768px) {
    .footer-left .telegram-group {
        text-align: center;
    }
    
    .footer-left .telegram-link {
        padding: 8px 16px;
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    .footer-left .telegram-group p {
        font-size: 0.9rem;
    }
    
    .footer-left .telegram-link {
        font-size: 0.9rem;
    }
    
    .telegram-link i {
        font-size: 1.1rem;
    }
}

/* 手機版特別優化 */
@media screen and (max-width: 480px) {
    /* 確保導航菜單在手機上不會導致頁面可滾動 */
    .nav-links {
        width: 80%; /* 縮小寬度，避免觸發溢出 */
        max-width: 300px;
    }
    
    body.menu-open {
        overflow: hidden; /* 當菜單打開時阻止滾動 */
    }
    
    /* 確保所有容器都不會引起水平溢出 */
    .container, 
    .hero-content,
    .about-content,
    .ep-content,
    .tour-dates,
    .gallery-grid,
    .contact-info,
    .footer-links {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

[data-lang="en"] .tour-date.highlight::after {
    content: 'Encore';
}

[data-lang="ko"] .tour-date.highlight::after {
    content: '앙코르';
}

/* 添加照片集樣式 */
.gallery {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 80px 0;
}

.gallery h2 {
    color: var(--light-text);
}

.gallery h2::after {
    background-color: var(--light-text);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
    position: relative;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item img {
        height: 250px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 280px;
    }
}

/* 添加聯絡區段樣式 */
.contact {
    background-color: var(--light-bg);
    padding: 80px 0;
    text-align: center;
}

/* Strategy 視頻部分 */
.strategy-video {
    background-color: var(--light-bg);
    padding: 80px 0;
    text-align: center;
}

.latest-track {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 30px;
    align-items: center;
    text-align: left;
}

.video-container {
    flex: 1;
    min-width: 300px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
}

.video-container.full-width {
    width: 100%;
    margin-bottom: 30px;
}

.track-info.text-center {
    text-align: center;
    width: 100%;
}

.stream-links.center {
    justify-content: center;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--dark-bg);
    border-radius: 8px;
    opacity: 1 !important; /* 強制顯示，不受JavaScript控制 */
    pointer-events: all !important; /* 強制啟用交互 */
    z-index: 10;
}

.video-container.full-width .album-art {
    width: 40%;
    max-width: 400px;
}

.album-art {
    width: 60%;
    position: relative;
    margin-bottom: 20px;
}

.album-art.full-width {
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
}

.album-art.full-width img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.album-art img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.play-button i {
    color: #fff;
    font-size: 32px;
    margin-left: 5px;
}

.play-button:hover {
    background-color: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.track-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.text-center {
    text-align: center;
}

.stream-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.stream-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.stream-link:hover {
    background-color: var(--dark-bg);
    transform: translateY(-3px);
}

@media screen and (max-width: 768px) {
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button i {
        font-size: 24px;
    }
    
    /* 調整视频元素比例 */
    .video-container.full-width {
        margin-bottom: 20px;
    }
    
    .video-container.full-width .album-art {
        width: 60%;
        max-width: 300px;
    }
}

@media screen and (max-width: 480px) {
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-button i {
        font-size: 20px;
    }
    
    .stream-links {
        flex-direction: column;
        align-items: center;
    }
    
    .stream-link {
        width: 80%;
    }
    
    /* 調整视频元素比例 */
    .video-container.full-width .album-art {
        width: 80%;
        max-width: 250px;
    }
}

@media screen and (max-width: 768px) {
    .ep-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 480px) {
    .ep-content {
        grid-template-columns: 1fr;
    }
}

/* 照片集模態視窗樣式 */
.gallery-container {
    width: 100%;
    text-align: center;
    position: relative;
}

.gallery-container img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 5px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 1003;
}

.gallery-prev, .gallery-next {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gallery-prev:hover, .gallery-next:hover {
    background-color: var(--primary-color);
}

.gallery-prev i, .gallery-next i {
    font-size: 1.5rem;
}

.gallery-image {
    cursor: pointer;
}

/* 更多照片提示樣式 */
.more-photos {
    margin-top: 40px;
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.more-photos p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.instagram-link:hover {
    transform: translateY(-5px);
    background-color: #E1306C; /* Instagram 品牌色 */
    color: var(--light-text);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.instagram-link i {
    font-size: 1.3rem;
}

@media screen and (max-width: 768px) {
    .more-photos {
        padding: 25px 20px;
    }
    
    .more-photos p {
        font-size: 1.1rem;
    }
    
    .instagram-link {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .gallery-controls {
        padding: 0 10px;
    }
    
    .gallery-prev, .gallery-next {
        width: 40px;
        height: 40px;
    }
    
    .gallery-prev i, .gallery-next i {
        font-size: 1.2rem;
    }
}

/* Telegram 群組樣式 */
.telegram-group {
    margin: 25px auto;
    text-align: center;
    padding: 25px;
    border-radius: 8px;
    background-color: rgba(34, 34, 34, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    max-width: 600px;
}

.telegram-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.telegram-group p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background-color: rgba(0, 136, 204, 0.8);
    color: var(--light-text);
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.telegram-link:hover {
    transform: translateY(-3px);
    background-color: rgba(0, 136, 204, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--light-text);
}

.telegram-link i {
    font-size: 1.1rem;
}

@media screen and (max-width: 768px) {
    .telegram-group {
        padding: 20px;
        margin: 15px auto;
    }
    
    .telegram-link {
        padding: 8px 16px;
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    .telegram-group p {
        font-size: 0.9rem;
    }
    
    .telegram-link {
        font-size: 0.9rem;
    }
    
    .telegram-link i {
        font-size: 1.1rem;
    }
}

/* 巡演影片連結樣式 */
.tour-video-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tour-video-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.tour-video-btn i {
    margin-right: 8px;
    font-size: 18px;
}

.tour-video-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.tour-video-btn.youtube {
    background-color: #ff0000;
    color: white;
}

.tour-video-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
} 