/* 1. 全域設定與變數 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;500;900&display=swap');

:root {
    --gold: #d4af37;
    --gold-bright: #fcf6ba;
    --black: #050505;
    --gray: #1a1a1a;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    margin: 0;
    background-color: var(--black);
    color: white;
    font-family: 'Noto Sans TC', sans-serif;
    overflow-x: hidden;
}

/* 2. 通用工具類別 */
.gold-shimmer {
    background: linear-gradient(90deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa8a2e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.gold-text {
    color: var(--gold);
}

/* 3. 首頁 Hero Section (大螢幕主視覺) */
.hero {
    height: 100vh;
    display: flex; 
    justify-content: center; 
    align-items: center;
    /* 這裡可以更換你喜歡的背景圖 */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.9)), 
                url('https://images.unsplash.com/photo-1513151233558-d860c5398176?q=80&w=2000') center/cover;
    text-align: center; 
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin: 0; 
    line-height: 1.2;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
}

.subtitle {
    font-size: 1.2rem; 
    letter-spacing: 5px; 
    color: #ccc;
    margin: 20px 0 40px; 
    font-weight: 300;
}

/* 金色按鈕樣式 */
.btn-gold {
    padding: 15px 40px; 
    border: 1px solid var(--gold);
    color: var(--gold); 
    text-decoration: none;
    text-transform: uppercase; 
    letter-spacing: 2px;
    transition: all 0.4s; 
    position: relative;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-gold:hover {
    background: var(--gold); 
    color: black;
    box-shadow: 0 0 30px var(--gold);
}
/* 閃光掃過的動畫 */
.btn-gold::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    transition: 0s;
}

.btn-gold:hover::after {
    left: 120%;
    transition: 0.6s ease-in-out;
}

/* 4. 區塊通用標題 */
.section-title {
    text-align: center; 
    padding: 100px 0 40px;
    font-size: 2.5rem; 
    letter-spacing: 4px;
}

.section-title::after {
    content: ''; 
    display: block; 
    width: 50px; 
    height: 3px;
    background: var(--gold); 
    margin: 15px auto;
}

/* 5. 團隊頁面 / 卡片樣式 */
.team-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px; 
    padding: 0 10% 80px;
}

.member-card {
    background: #111; 
    border: 1px solid #222; 
    border-radius: 15px;
    padding: 30px; 
    text-align: center; 
    transition: 0.4s;
}

.member-card:hover {
    border-color: var(--gold); 
    background: #181818;
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* 頭像處理 */
.avatar-wrapper {
    width: 110px; 
    height: 110px; 
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, var(--gold), #444);
}

.avatar {
    width: 100%; 
    height: 100%; 
    border-radius: 50%;
    object-fit: cover;
    background: #222;
}

/* 6. 其他頁面細節 (如地點列表) */
#locationList {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.loading {
    color: var(--gold);
    text-align: center;
    font-size: 1.2rem;
}

/* style.css - 響應式優化 */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5rem; /* 手機大標題縮小 */
        letter-spacing: 5px;
    }
    
    .subtitle {
        font-size: 1rem;
        letter-spacing: 3px;
    }

    .top-nav {
        padding: 0 20px; /* 縮小邊距 */
        height: 60px;
    }

    .logo {
        font-size: 1.2rem;
    }
}

/* 頁面進入動畫 */
body {
    animation: fadeInPage 0.8s ease-in-out forwards;
    opacity: 0;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 準備跳轉時的淡出類別 */
body.fade-out {
    animation: fadeOutPage 0.5s ease-in-out forwards;
}

@keyframes fadeOutPage {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}