/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #1a1a1a;
    --secondary-bg: #2a2a2a;
    --accent-color: #d4af37;
    --text-color: #f5f5f5;
    --text-muted: #b0b0b0;
    --border-color: #3a3a3a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Microsoft JhengHei', Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation */
#navbar {
    position: sticky;
    top: 0;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.5rem 0;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.mobile-menu-toggle {
    display: none; /* 移除頂部漢堡選單 */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections */
.section {
    padding: 4rem 0;
    min-height: 80vh;
    display: none; 
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.section.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

h4 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-color);
}

/* Home Section */
.hero-content {
    text-align: center;
}

.hero-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 5px solid var(--accent-color);
}

.intro-text {
    max-width: 800px;
    margin: 2rem auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Social Links */
.social-links {
    margin-top: 3rem;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.youtube-btn {
    background: #FF0000;
    color: white;
}

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

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* --- 手機版專屬導航選單 (Mobile Nav List) --- */
.mobile-nav-list {
    display: none; /* 桌面版隱藏 */
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-btn {
    background: var(--secondary-bg);
    color: var(--text-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.mobile-nav-btn:active {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: scale(0.98);
}

/* 手機版返回首頁按鈕 */
.mobile-back-home {
    display: none;
    background: var(--secondary-bg);
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.back-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: 8px;
}

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

/* Course Content */
.course-content {
    max-width: 800px;
    margin: 0 auto;
}

.subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.course-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.course-content li {
    margin-bottom: 0.5rem;
}

.location {
    background: var(--secondary-bg);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    margin: 1.5rem 0;
}

/* Service Items */
.service-item {
    background: var(--secondary-bg);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

/* Audio Player */
.audio-player {
    width: 100%;
    margin: 1rem 0;
    outline: none;
}

/* 隱藏時間滑桿 */
audio::-webkit-media-controls-timeline {
    display: none;
}

audio::-webkit-media-controls-current-time-display {
    display: none;
}

audio::-webkit-media-controls-time-remaining-display {
    display: none;
}

/* CTA Button */
.cta-button {
    display: block;
    margin: 2rem auto;
    padding: 1rem 3rem;
    background: var(--accent-color);
    color: var(--primary-bg);
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--secondary-bg);
    border-radius: 8px;
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--text-color);
}

/* Map */
.map-wrapper {
    margin: 3rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Location Guide */
.location-guide {
    margin-top: 3rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.guide-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.guide-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    background: var(--primary-bg);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Responsive Design (Mobile Only) */
@media (max-width: 768px) {
    /* 隱藏頂部橫向導航 */
    #navbar {
        display: none;
    }

    /* 顯示首頁底部的直向導航列表 */
    .mobile-nav-list {
        display: block;
    }

    /* 顯示內頁頂部的返回按鈕 */
    .mobile-back-home {
        display: block;
    }

    .hero-image {
        width: 200px;
        height: 200px;
    }

    h2 {
        font-size: 2rem;
    }

    .social-buttons {
        flex-direction: column;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
}