/* 全局樣式 */
:root {
    --primary-color: #2D3047;      /* 深靛藍 */
    --secondary-color: #E6AF2E;    /* 金色 */
    --accent-color: #B56576;       /* 玫瑰紅 */
    
    /* 中性色 */
    --text-color: #2D3047;         /* 主要文字顏色 */
    --text-light: #6B7280;         /* 次要文字顏色 */
    --background-color: #F5F3EF;   /* 淺米色背景 */
    --background-light: #F5F3EF;   /* 淺米色背景 */
    
    /* 功能色 */
    --success-color: #4A7C59;      /* 森林綠 */
    --warning-color: #D4A373;      /* 琥珀色 */
    --error-color: #BC4749;        /* 深紅色 */
    
    /* 陰影 - 藝術風格陰影 */
    --shadow-sm: 0 4px 12px rgba(45, 48, 71, 0.08);
    --shadow-md: 0 8px 24px rgba(45, 48, 71, 0.12);
    --shadow-lg: 0 16px 32px rgba(45, 48, 71, 0.16);
    
    /* 過渡效果 */
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 圓角 */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* 古典藝術風格變量 */
    --shadow-color: rgba(45, 48, 71, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif TC', serif;
    color: var(--text-color);
    background-color: #F5F3EF;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* 導航欄樣式 */
header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.8rem 0;
    background-color: rgba(255, 255, 255, 0.99);
    box-shadow: var(--shadow-md);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
    font-size: 1rem;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

nav a.active {
    color: var(--secondary-color);
}

nav a:hover {
    color: var(--secondary-color);
}

/* 導航欄動畫效果 */
@keyframes slideFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

nav ul li {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

nav ul li:nth-child(1) { animation: slideFromTop 0.5s ease forwards 0.1s; }
nav ul li:nth-child(2) { animation: slideFromBottom 0.5s ease forwards 0.2s; }
nav ul li:nth-child(3) { animation: slideFromLeft 0.5s ease forwards 0.3s; }
nav ul li:nth-child(4) { animation: slideFromRight 0.5s ease forwards 0.4s; }
nav ul li:nth-child(5) { animation: slideFromTop 0.5s ease forwards 0.5s; }
nav ul li:nth-child(6) { animation: slideFromBottom 0.5s ease forwards 0.6s; }

/* 主要內容區域 */
main {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

section {
    margin-bottom: 4rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif TC', serif;
    letter-spacing: 0.5px;
    color: var(--primary-color);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h1::after {
    display: none;
}

/* 圖片藝廊樣式 */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 1rem 2.5rem;
    border: 2px solid var(--secondary-color);
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.4s ease;
    position: relative;
    font-family: 'Noto Serif TC', serif;
    letter-spacing: 1px;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(230, 175, 46, 0.3);
}

.filter-btn:hover::before,
.filter-btn.active::before {
    opacity: 1;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    padding: 0 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background-color: var(--background-color);
    box-shadow: 0 8px 20px rgba(45, 48, 71, 0.15);
    border-radius: 12px;
    transition: all 0.5s ease;
    border: 1px solid rgba(230, 175, 46, 0.1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(230, 175, 46, 0.1), 
        rgba(45, 48, 71, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
    filter: brightness(0.95) contrast(1.05);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(45, 48, 71, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.05) contrast(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(45, 48, 71, 0.95), 
        rgba(230, 175, 46, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.5s ease;
    padding: 2rem;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: transform 0.5s ease;
    font-family: 'Noto Serif TC', serif;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(20px);
    transition: transform 0.5s ease;
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

/* 圖片預覽樣式 */
.image-preview {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

.image-preview.active {
    opacity: 1;
    pointer-events: all;
}

.image-preview img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.5s ease;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 30px rgba(230, 175, 46, 0.3);
    border-radius: 8px;
}

.image-preview.active img {
    transform: scale(1);
}

.image-preview .close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-preview .close-btn:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .gallery-filters {
        gap: 1rem;
    }

    .filter-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .gallery-overlay h3 {
        font-size: 1.5rem;
    }

    .gallery-overlay p {
        font-size: 1rem;
    }

    .profile-image {
        min-width: 100%;
        max-width: 100%;
    }

    .gallery-item {
        aspect-ratio: 1;
    }
}

/* 人物介紹頁面樣式 */
.violinists-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.violinist-profile {
    display: flex;
    gap: 5rem;
    margin-bottom: 8rem;
    padding: 0;
    position: relative;
    border-bottom: 1px solid rgba(45, 48, 71, 0.1);
    padding-bottom: 4rem;
}

.violinist-profile:last-child {
    border-bottom: none;
}

.violinist-profile:nth-of-type(odd) {
    flex-direction: row;
}

.violinist-profile:nth-of-type(even) {
    flex-direction: row-reverse;
}

.profile-image {
    flex: 1;
    min-width: 400px;
    max-width: 500px;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s ease;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(45, 48, 71, 0.15);
    border: 1px solid rgba(230, 175, 46, 0.1);
}

.profile-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(230, 175, 46, 0.1), 
        rgba(45, 48, 71, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.profile-image:hover::before {
    opacity: 1;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    filter: grayscale(20%) brightness(0.95) contrast(1.05);
}

.violinist-profile:hover .profile-image {
    transform: scale(1.02);
}

.violinist-profile:hover .profile-image img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1.05) contrast(1.1);
}

.profile-content {
    flex: 1;
    padding: 2rem 0;
    position: relative;
}

.profile-content h2 {
    font-size: 3.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-family: 'Noto Serif TC', serif;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.profile-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
}

.profile-meta {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 1px;
}

.profile-description {
    font-size: 1.4rem;
    line-height: 2;
    color: var(--text-color);
    margin-bottom: 3rem;
    font-family: 'Noto Serif TC', serif;
    letter-spacing: 0.5px;
}

.profile-achievements h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: 'Noto Serif TC', serif;
    letter-spacing: 1px;
}

.profile-achievements ul {
    list-style: none;
    padding: 0;
}

.profile-achievements li {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    font-family: 'Noto Serif TC', serif;
    letter-spacing: 0.5px;
}

.profile-achievements li::before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-size: 1.8rem;
    line-height: 1;
}

@media (max-width: 1024px) {
    .violinist-profile {
        flex-direction: column;
        gap: 3rem;
        margin-bottom: 5rem;
        padding-bottom: 3rem;
    }

    .violinist-profile:nth-of-type(odd),
    .violinist-profile:nth-of-type(even) {
        flex-direction: column;
    }

    .profile-image {
        min-width: 100%;
        max-width: 100%;
    }

    .profile-content h2 {
        font-size: 2.5rem;
    }

    .profile-description {
        font-size: 1.2rem;
    }

    .profile-achievements li {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .violinists-section {
        padding: 1rem;
    }

    .violinist-profile {
        padding: 1rem;
        margin-bottom: 3rem;
    }

    .profile-image {
        height: 300px;
    }

    .profile-content h2 {
        font-size: 2rem;
    }

    .profile-description {
        font-size: 1.1rem;
    }
}

/* 人物介紹頁面樣式 */
.video-categories {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.8rem 2rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition-fast);
    position: relative;
}

.category-btn::after {
    display: none;
}

.category-btn:hover,
.category-btn.active {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background-color: var(--background-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.video-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--secondary-color);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 1;
    pointer-events: none;
}

.video-card:hover::before {
    opacity: 0.1;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.5rem 0;
}

.video-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.video-info p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.video-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* 頁腳樣式 */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: #FFFFFF;
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* 響應式設計 */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }

    .gallery-filters,
    .video-categories {
        gap: 1rem;
    }

    .filter-btn,
    .category-btn {
        padding: 0.6rem 1.2rem;
    }

    .gallery-container,
    .video-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
    }

    .image-preview img {
        max-width: 95%;
    }

    :root {
        --radius-sm: 6px;
        --radius-md: 8px;
        --radius-lg: 12px;
    }
}

/* 動畫效果 */
@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn var(--transition-normal);
}

/* 滾動條樣式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* 選中文字樣式 */
::selection {
    background: var(--secondary-color);
    color: white;
}

/* 載入動畫 */
.loading {
    position: fixed;
    inset: 0;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--background-light);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 返回頂部按鈕 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: #C0392B;
}

/* 按鈕點擊效果 */
.filter-btn:active,
.category-btn:active {
    transform: scale(0.95);
}

/* 頁面切換動畫 */
.page-transition {
    animation: pageFade 0.5s ease;
}

@keyframes pageFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #FFFFFF;
        --text-color: #E0E0E0;
        --background-color: #121212;
        --background-light: #1E1E1E;
        --text-light: #AAAAAA;
    }

    .gallery-overlay {
        background: linear-gradient(to top, rgba(45, 48, 71, 0.9), rgba(230, 175, 46, 0.1));
    }

    .video-card::before {
        background: var(--accent-color);
    }

    .card {
        background: var(--background-light);
    }
    
    header {
        background-color: rgba(18, 18, 18, 0.98);
    }
    
    header.scrolled {
        background-color: rgba(18, 18, 18, 0.99);
    }
    
    nav a::before {
        background-color: rgba(255, 107, 107, 0.1);
    }
}

/* 無障礙支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 打印樣式 */
@media print {
    .back-to-top,
    .loading,
    .image-preview {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: none;
        color: black;
    }

    .gallery-item,
    .video-card {
        break-inside: avoid;
    }
}

/* 首頁樣式 */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* 小提琴介紹頁面 */
.intro-section {
    padding: 4rem 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.intro-card {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.intro-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.intro-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.intro-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    width: 50%;
    padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

/* 音樂欣賞頁面 */
.music-section {
    padding: 4rem 0;
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 2rem;
    background: #F5F3EF;
}

.music-card {
    background: #F5F3EF;
    border: 1px solid #E6AF2E;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.music-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(230, 175, 46, 0.1);
}

.music-info {
    padding: 1.5rem;
    background: #F5F3EF;
}

.music-info h3 {
    color: #2D3047;
    font-size: 1.3em;
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: 'Noto Serif TC', serif;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.5rem;
}

.music-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #E6AF2E;
}

.music-info p {
    color: #2D3047;
    margin: 0.5rem 0;
    font-size: 0.95em;
    line-height: 1.6;
    font-family: 'Noto Serif TC', serif;
}

/* 播放按鈕樣式 */
.play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E6AF2E;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.play-btn:hover {
    background: #2D3047;
    transform: scale(1.05);
}

/* 分類按鈕樣式 */
.category-btn {
    padding: 0.8rem 2rem;
    border: 2px solid var(--secondary-color);
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-family: 'Noto Serif TC', serif;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.category-btn:hover {
    color: white;
}

.category-btn:hover::before {
    transform: translateX(0);
}

.category-btn.active {
    background: var(--secondary-color);
    color: white;
}

/* 整體背景 */
.music-section {
    background: #F5F3EF;
    min-height: 100vh;
    padding: 4rem 2rem;
}

.music-section h1 {
    color: #2D3047;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 3rem;
    font-weight: 700;
    font-family: 'Noto Serif TC', serif;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 1rem;
}

.music-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #E6AF2E;
}

/* 作曲家卡片樣式 */
.composer-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.composer-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.composer-card h3 {
    color: #fff;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.composer-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .music-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
        background: #F5F3EF;
    }
    
    .music-section h1 {
        font-size: 2em;
    }
    
    .music-info {
        padding: 1.2rem;
        background: #F5F3EF;
    }
}

/* 學習資源頁面 */
.learning-section {
    padding: 4rem 0;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.resource-card {
    background-color: var(--background-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.resource-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.resource-content {
    padding: 1.5rem;
}

.resource-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.resource-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

.resource-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.resource-tag {
    padding: 0.3rem 0.8rem;
    background: var(--background-light);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-color);
}

/* 卡片樣式 */
.card {
    background: var(--background-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

/* 按鈕樣式 */
.button {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    background: var(--primary-color);
    color: white;
}

.button::after {
    display: none;
}

.button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.button-secondary {
    background: var(--secondary-color);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 2rem;
    }

    .intro-grid,
    .music-grid,
    .resource-grid {
        grid-template-columns: 1fr;
    }
}

/* 調整連結顏色 */
a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* 調整表單元素焦點顏色 */
input:focus, textarea:focus, select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(230, 175, 46, 0.2);
}

/* 調整標籤顏色 */
.tag {
    background: var(--background-light);
    color: var(--text-color);
    border: 1px solid var(--secondary-color);
}

/* 調整深色模式下的顏色 */
@media (prefers-color-scheme: dark) {
    .gallery-overlay {
        background: linear-gradient(to top, rgba(45, 48, 71, 0.9), rgba(230, 175, 46, 0.1));
    }
    
    .card:hover {
        border-color: var(--secondary-color);
    }
    
    .tag {
        border-color: var(--secondary-color);
    }
}

/* 移除晃動動畫 */
@keyframes gentleShake {
    0% { transform: translateY(0); }
    100% { transform: translateY(0); }
}

/* 恢復導航連結效果 */
nav a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* 恢復按鈕效果 */
.button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 恢復過濾按鈕效果 */
.filter-btn:hover,
.filter-btn.active {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* 恢復分類按鈕效果 */
.category-btn:hover,
.category-btn.active {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* 恢復卡片效果 */
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

/* 恢復圖片藝廊項目效果 */
.gallery-item:hover {
    transform: scale(1.02);
}

/* 恢復影片卡片效果 */
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* 恢復音樂卡片效果 */
.music-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* 恢復資源卡片效果 */
.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* 恢復標籤效果 */
.tag:hover {
    background: var(--secondary-color);
    color: white;
}

/* 恢復連結效果 */
a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* 恢復播放按鈕效果 */
.play-btn:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* 恢復返回頂部按鈕效果 */
.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: #C0392B;
}

/* 聯絡頁面樣式 */
.contact-section {
    padding: 4rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    padding: 2rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: var(--background-light);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.contact-method:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-method i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-method h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.email-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.email-link:hover {
    color: var(--accent-color);
}

.contact-form {
    padding: 2rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-form h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    background: var(--background-light);
    color: var(--text-color);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(230, 175, 46, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .contact-method {
        background: var(--background-light);
    }

    .form-group input,
    .form-group textarea {
        background: var(--background-light);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* 郵件發送提示框樣式 */
.message-box {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--success-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    animation: slideIn 0.5s ease-out;
}

.message-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.message-content i {
    font-size: 1.5rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.message-box.hide {
    animation: slideOut 0.5s ease-in forwards;
}

.maker-image img,
.composer-card img,
.card-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    filter: brightness(0.95) contrast(1.05);
    transition: all 0.5s ease;
}

.maker-image:hover img,
.composer-card:hover img,
.card-image:hover img {
    filter: brightness(1.05) contrast(1.1);
    transform: scale(1.02);
}

.main-image {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
}

/* 音樂網格布局 */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 30px;
}

/* 整體背景 */
.music-section {
    background: #F5F3EF;
    min-height: 100vh;
    padding: 4rem 2rem;
}

.music-section h1 {
    color: #2D3047;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 作曲家卡片樣式 */
.composer-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.composer-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.composer-card h3 {
    color: #fff;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.composer-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .music-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .category-btn {
        margin: 5px;
        padding: 8px 15px;
        font-size: 0.9em;
    }
    
    .music-section h1 {
        font-size: 2em;
    }
}

/* 音樂控制按鈕樣式 */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.music-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #E6AF2E;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.music-toggle-btn:hover {
    transform: scale(1.1);
    background: #2D3047;
}

.music-toggle-btn.playing {
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 音樂介紹彈出視窗樣式 */
.music-info-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.music-info-popup.active {
    opacity: 1;
    visibility: visible;
}

.music-info-content {
    background: #F5F3EF;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.music-info-content h2 {
    color: #2D3047;
    font-size: 2em;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Noto Serif TC', serif;
    letter-spacing: 1px;
}

.music-info-details {
    color: #2D3047;
    line-height: 1.8;
}

.music-info-details p {
    margin-bottom: 1rem;
    font-size: 1.1em;
}

.music-info-details strong {
    color: #E6AF2E;
    font-weight: 600;
}

.close-popup-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #2D3047;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-popup-btn:hover {
    color: #E6AF2E;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .music-info-content {
        width: 95%;
        padding: 1.5rem;
    }

    .music-info-content h2 {
        font-size: 1.5em;
    }

    .music-info-details p {
        font-size: 1em;
    }
}

/* 圖片藝廊頁面背景 */
.gallery-section {
    background: url('6.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    padding: 4rem 0;
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 243, 239, 0.9);
    z-index: 1;
}

.gallery-section > * {
    position: relative;
    z-index: 2;
}

.gallery-container {
    background: transparent;
}

/* 音頻播放器樣式 */
.audio-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: #E6AF2E;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #2D3047;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-bar::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #E6AF2E;
}

.time-display {
    font-size: 0.9rem;
    color: #2D3047;
    text-align: right;
}

.music-controls {
    margin-top: 1rem;
} 