/* --- 1. 全局變數與基礎設定 --- */
:root {
    --bg-dark: #0a0516;
    --bg-nav: rgba(15, 5, 29, 0.9);
    --neon-purple: #a855f7;
    --neon-blue: #6366f1;
    --glow-purple: rgba(168, 85, 247, 0.15); /* 光暈顏色 */
    --glow-blue: rgba(99, 102, 241, 0.15);   /* 光暈顏色 */
    --text-bright: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);
    --border-glow: 1px solid rgba(168, 85, 247, 0.3);
    --shadow-glow: 0 0 15px rgba(168, 85, 247, 0.5);
    --transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
/* --- style.css --- */
}
/* 基礎設定：所有頁面預設都是深色底，防止全白 */
body {    
    background-color: var(--bg-dark);
    font-family: 'Inter', -apple-system, sans-serif;
    color: #ffffff;
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- ✨ 首頁專用：霓虹迷紅燈效果 --- */
.glowing-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    overflow: hidden;
    pointer-events: none;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.7;
    animation: glow-move 12s infinite alternate ease-in-out;
}

.glow-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, transparent 70%);
    top: -150px; left: -100px;
}

.glow-2 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    bottom: -100px; right: -50px;
    animation-delay: -4s;
}

@keyframes glow-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 50px); }
}

/* --- 🖼️ 項目頁專用：背景圖片設定 --- */
.project-page {
    background-image: linear-gradient(rgba(6, 2, 13, 0.8), rgba(6, 2, 13, 0.8)), url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* 導覽列與內容區... (保持你原本的設定) */
/* --- 2. 導覽列佈局 (電腦版) --- */
.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: var(--border-glow);
    display: flex;
    justify-content: center;
}

.container {
    width: 90%;
    max-width: 1200px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-bright);
    letter-spacing: 2px;
    z-index: 1100;
}

.logo span {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: 0.3s ease;
}

.nav-item:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 8px var(--neon-purple);
}

.btn-cta {
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
    padding: 10px 24px;
    border-radius: 8px;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
    transition: 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.8);
}

/* --- 3. 漢堡按鈕 --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
    padding: 5px;
}

.bar {
    width: 28px;
    height: 3px;
    background-color: var(--text-bright);
    transition: var(--transition);
    border-radius: 2px;
}

/* --- 4. 響應式手機版 (小於 768px) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 5, 22, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: var(--transition);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1050;
        visibility: hidden;
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
    }

    .nav-item {
        font-size: 1.5rem;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--text-bright);
    }

    .btn-cta {
        font-size: 1.2rem;
        padding: 15px 40px;
        order: -1;
        margin-bottom: 20px;
    }

    #mobile-menu.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    #mobile-menu.active .bar:nth-child(2) { opacity: 0; }
    #mobile-menu.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* 內容區通用間距 */
.content { 
    padding-top: 150px; 
    text-align: center; 
    min-height: 100vh;
}
/* --- 🤝 合作夥伴頁面專用樣式 --- */

/* 夥伴外層容器：使用 Grid 網格佈局 */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 自動適應寬度 */
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

/* 獨立文字框（卡片） */
.partner-card {
    background: rgba(255, 255, 255, 0.05); /* 極輕微的透明白 */
    backdrop-filter: blur(10px);           /* 毛玻璃效果 */
    border: 1px solid rgba(168, 85, 247, 0.2); /* 霓虹紫邊框 */
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.partner-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.partner-card h3 {
    color: var(--neon-purple);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.partner-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

.partner-logo {
    width: 80px;         /* 寬度與高度必須一致 */
    height: 80px;
    margin: 0 auto 15px; /* 居中並留點間距 */
    
    /* ✨ 製作圓形的關鍵 */
    border-radius: 50%;  
    overflow: hidden;    /* 確保圖片超出圓圈的部分會被裁切 */
    
    /* 霓虹邊框與裝飾 */
    border: 2px solid #ff00fb; 
    box-shadow: 0 0 15px rgb(255, 0, 255);
    
    /* 讓文字（P1, P2）也能在圓圈內居中 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    font-weight: bold;
    color: #00FF9F;
}

/* 確保圖片填滿圓形且不變形 */
.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 關鍵：裁切圖片以填滿容器，不壓扁 */
}
/* --- 💎 贊助者名人堂專用樣式 --- */

.sponsor-container {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
}

/* 贊助者方框基礎樣式 */
.sponsor-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.4s ease;
}

/* 懸浮發光效果 */
.sponsor-card:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.07);
}

/* 等級標籤樣式 */
.tier-tag {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 🥇 黃金贊助（最亮眼） */
.tier-gold { 
    border: 1px solid #ffd700; 
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}
.tier-gold .tier-tag { background: #ffd700; color: #000; }
.tier-gold h3 { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }

/* 🥈 鋼鐵/白銀贊助 */
.tier-silver { 
    border: 1px solid #e0e0e0; 
}
.tier-silver .tier-tag { background: #e0e0e0; color: #000; }

/* 🥉 銅級贊助 */
.tier-bronze { 
    border: 1px solid #cd7f32; 
}
.tier-bronze .tier-tag { background: #cd7f32; color: #fff; }

.sponsor-info h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.sponsor-info p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* 手機版適應：將內容改為垂直排列 */
@media (max-width: 600px) {
    .sponsor-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
}
/* --- 👤 高管介紹頁面專用樣式 --- */

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 高管個人名片 */
.member-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 24px;
    width: 300px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.member-card:hover {
    transform: translateY(-15px);
    border-color: var(--neon-blue);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

/* 頭像外框 */
.avatar-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-dark); /* 沒圖片時的底色 */
}

.member-card h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    color: #fff;
    letter-spacing: 1px;
}

.member-role {
    color: var(--neon-purple);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.member-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* 社交圖標 (可選) */
.member-social {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.member-social a {
    color: var(--text-dim);
    transition: 0.3s;
    font-size: 1.2rem;
    text-decoration: none;
}

.member-social a:hover {
    color: #fff;
}
.content h1 {
    font-size: 4.5rem;
    background: linear-gradient(to right, #00f7ff, var(--neon-blue), #00f7ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* 文字變透明以顯示漸層 */
    
    /* 漸層移動動畫 + 呼吸縮放 */
    animation: shine 3s linear infinite, pulse 2s ease-in-out infinite alternate;
}

@keyframes shine {
    to { background-position: 200% center; }
}

@keyframes pulse {
    from { transform: scale(1); filter: drop-shadow(0 0 5px var(--neon-purple)); }
    to { transform: scale(1.02); filter: drop-shadow(0 0 20px var(--neon-blue)); }
}
@media (max-width: 768px) {
    .content h1 {
        font-size: 2.5rem; /* 手機版字體縮小 */
    }
    .content p {
        font-size: 1.1rem;
    }
}
