/* ==========================================
   《虛戀協議》官方介紹網站 - 核心樣式表
   設計風格：未來賽博霓虹、毛玻璃科技感
   ========================================== */

/* 引入全域變數 */
:root {
    --bg-primary: #414549;      /* 深灰色主色 */
    --bg-secondary: #2f3235;    /* 區塊背景色（稍微深一點的灰色做交替） */
    --bg-accent: #25282a;       /* 卡片與高亮背景色 */
    
    --color-pink: #ff6584;      /* 柔和科技霓虹粉紅 */
    --color-blue: #00d2f0;      /* 科技霓虹藍 */
    --color-purple: #a855f7;    /* 極光紫 */
    --color-green: #39ff14;     /* 螢光綠 */
    
    --text-primary: #f8f9fa;    /* 主要文字顏色（乾淨白） */
    --text-muted: #b2b9c0;      /* 次要/說明文字顏色（灰白） */
    
    --glass-bg: rgba(37, 40, 42, 0.75); /* 使用灰色作為底色的毛玻璃 */
    --glass-border: rgba(255, 101, 132, 0.2);
    --glass-border-blue: rgba(0, 210, 240, 0.2);
    
    --font-main: 'Noto Sans TC', sans-serif;
    --font-tech: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 基礎重設 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
}

body {
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 210, 240, 0.12) 0%, transparent 40%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* 容器排版 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 霓虹發光字體樣式 */
.text-glow {
    text-shadow: 0 0 10px rgba(255, 102, 204, 0.6), 0 0 20px rgba(255, 102, 204, 0.3);
}

.text-glow-blue {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6), 0 0 20px rgba(0, 240, 255, 0.3);
}

/* 區塊標題設計 */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-pink), var(--color-blue));
    border-radius: 2px;
}

.section-subtitle {
    font-family: var(--font-tech);
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 0.8rem;
}

/* ==========================================
   1. 頂部導覽列樣式
   ========================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

/* 滾動時導覽列變更樣式 */
.main-header.scrolled {
    background-color: rgba(47, 50, 53, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

/* Logo 設計 */
.logo {
    display: flex;
    flex-direction: column;
    font-weight: 900;
}

.logo-neon {
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 42, 116, 0.4);
    background: linear-gradient(45deg, var(--text-primary) 50%, var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-sub {
    font-family: var(--font-tech);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--color-blue);
}

/* 導覽選單 */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-blue);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* 導覽列下載按鈕 */
.btn-nav {
    border: 1px solid var(--color-pink);
    padding: 0.5rem 1.2rem !important;
    border-radius: 8px;
    color: var(--color-pink) !important;
    font-weight: 700;
    background: rgba(255, 101, 132, 0.05);
}

.btn-nav:hover {
    background: var(--color-pink);
    color: var(--text-primary) !important;
    box-shadow: 0 0 15px rgba(255, 101, 132, 0.4);
}

.btn-nav::after {
    display: none;
}

/* 行動版導覽開關 */
.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* ==========================================
   2. 首頁橫幅區 (Hero)
   ========================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0 1rem;
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    transform: perspective(500px) rotateX(60deg) translateY(-30%) translateZ(0);
    transform-origin: top center;
    animation: gridMove 20s linear infinite;
    z-index: 1;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 1000px; }
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 20%, var(--bg-primary) 90%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-blue);
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hero-title .text-glow {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: #fff;
    text-shadow: 
        0 0 10px rgba(255, 102, 204, 0.8),
        0 0 30px rgba(255, 102, 204, 0.4),
        0 0 60px rgba(255, 102, 204, 0.2);
}

.hero-title .text-subtitle {
    font-family: var(--font-tech);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 8px;
    color: var(--color-blue);
    text-transform: uppercase;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 3.5rem;
    letter-spacing: 2px;
    font-weight: 300;
}

/* 通用按鈕設計 */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    position: relative;
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
    color: var(--text-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 101, 132, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-blue);
    box-shadow: 0 8px 20px rgba(0, 210, 240, 0.25);
    transform: translateY(-3px);
}

/* 滾動提示器 */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
}

.mouse-icon {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.mouse-icon .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-blue);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

.scroll-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==========================================
   3. 故事背景區 (Story)
   ========================================== */
.story-section {
    padding: 8rem 0;
    background-color: var(--bg-secondary);
    position: relative;
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
}

.story-lead {
    font-size: 1.15rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 4rem;
    line-height: 1.8;
}

/* 視覺小說對話框 */
.vn-dialogue-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    min-height: 180px;
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.25),
        0 0 15px rgba(255, 101, 132, 0.05);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.vn-dialogue-box:hover {
    border-color: rgba(255, 101, 132, 0.4);
    box-shadow: 
        0 12px 36px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(255, 101, 132, 0.15);
}

.vn-speaker {
    position: absolute;
    top: -18px;
    left: 2rem;
    background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
    color: var(--text-primary);
    padding: 0.4rem 1.8rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 6px;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 101, 132, 0.3);
}

.vn-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-top: 0.8rem;
    letter-spacing: 1px;
    min-height: 80px;
}

.vn-next-indicator {
    position: absolute;
    bottom: 1.2rem;
    right: 1.5rem;
    color: var(--color-pink);
    font-size: 1.2rem;
    animation: bounceDown 1.2s infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ==========================================
   4. 角色情報區 (Characters)
   ========================================== */
.char-section {
    padding: 8rem 0;
    background-color: var(--bg-primary);
}

.char-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.char-tab-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(37, 40, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.char-tab-btn:hover {
    color: var(--text-primary);
    border-color: rgba(0, 240, 255, 0.3);
    background: rgba(0, 240, 255, 0.03);
}

.char-tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(177, 13, 201, 0.1));
    border-color: var(--color-blue);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

.char-display-container {
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    min-height: 480px;
}

.char-profile {
    display: none;
    grid-template-columns: 1.1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.char-profile.active {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

/* 角色立繪外框 */
.char-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    padding: 1.5rem;
    background: rgba(37, 40, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.char-avatar-bg {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 霓虹邊框發光 */
.char-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 16px;
    pointer-events: none;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

#char-chris .char-image-wrapper::after { border-color: rgba(255, 102, 204, 0.3); }
#char-lydia .char-image-wrapper::after { border-color: rgba(0, 240, 255, 0.3); }
#char-sophia .char-image-wrapper::after { border-color: rgba(211, 0, 255, 0.3); }

#char-chris .char-image-wrapper:hover::after { box-shadow: 0 0 30px rgba(255, 102, 204, 0.3); }
#char-lydia .char-image-wrapper:hover::after { box-shadow: 0 0 30px rgba(0, 240, 255, 0.3); }
#char-sophia .char-image-wrapper:hover::after { box-shadow: 0 0 30px rgba(211, 0, 255, 0.3); }

.char-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.15));
    transition: var(--transition-smooth);
}

.char-image-wrapper:hover .char-img {
    transform: scale(1.05) translateY(-5px);
}

/* 角色文字資訊 */
.char-info {
    display: flex;
    flex-direction: column;
}

.char-name {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.name-zh {
    font-size: 2.2rem;
    font-weight: 900;
}

#char-chris .name-zh { color: #fff; text-shadow: 0 0 10px rgba(255, 102, 204, 0.5); }
#char-lydia .name-zh { color: #fff; text-shadow: 0 0 10px rgba(0, 240, 255, 0.5); }
#char-sophia .name-zh { color: #fff; text-shadow: 0 0 10px rgba(211, 0, 255, 0.5); }

.name-en {
    font-family: var(--font-tech);
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
}

.char-role {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-blue);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

#char-chris .char-role { color: var(--color-pink); }
#char-lydia .char-role { color: var(--color-blue); }
#char-sophia .char-role { color: #d300ff; }

.char-desc {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* 角色屬性表 */
.char-stats {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.stat-row {
    display: grid;
    grid-template-columns: 100px 1fr 50px;
    align-items: center;
    gap: 1rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.stat-fill {
    height: 100%;
    border-radius: 4px;
    width: 0; /* JS 動態加載 */
    transition: width 1s cubic-bezier(0.1, 0.8, 0.3, 1);
}

#char-chris .stat-fill { background: linear-gradient(90deg, var(--color-pink), var(--color-purple)); }
#char-lydia .stat-fill { background: linear-gradient(90deg, var(--color-blue), #0072ff); }
#char-sophia .stat-fill { background: linear-gradient(90deg, #d300ff, #8000ff); }

.stat-val {
    font-family: var(--font-tech);
    font-size: 0.9rem;
    text-align: right;
    font-weight: 600;
}

#char-chris .stat-val { color: var(--color-pink); }
#char-lydia .stat-val { color: var(--color-blue); }
#char-sophia .stat-val { color: #d300ff; }


/* ==========================================
   5. 遊戲特色區 (Features)
   ========================================== */
.features-section {
    padding: 8rem 0;
    background-color: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-blue);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(0, 240, 255, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-blue);
    margin-bottom: 2rem;
    display: inline-block;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--color-pink);
    filter: drop-shadow(0 0 8px rgba(255, 102, 204, 0.6));
}

.feature-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.feature-card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

/* ==========================================
   6. 畫面展示區 (Gallery)
   ========================================== */
.gallery-section {
    padding: 8rem 0;
    background-color: var(--bg-primary);
}

/* 模擬軟體視窗結構 */
.game-window-mockup {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.window-title-bar {
    background-color: rgba(18, 11, 34, 0.9);
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.window-dots {
    display: flex;
    gap: 8px;
    position: absolute;
    left: 1.5rem;
}

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.window-title {
    width: 100%;
    text-align: center;
    font-family: var(--font-tech);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.window-content {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

/* 投影片樣式 */
.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 2;
}

/* 用 CSS 漸層模擬科幻遊戲背景圖 */
.slide-image-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.first-slide {
    background: 
        radial-gradient(ellipse at center, rgba(11, 6, 20, 0.4) 0%, rgba(11, 6, 20, 0.9) 100%),
        linear-gradient(135deg, #1f1235 0%, #10061e 100%);
}
.first-slide::before {
    content: '';
    position: absolute;
    top: 30%; left: 50%; transform: translate(-50%, -50%);
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 102, 204, 0.15) 0%, transparent 70%);
}

.second-slide {
    background: 
        radial-gradient(ellipse at center, rgba(11, 6, 20, 0.3) 0%, rgba(11, 6, 20, 0.9) 100%),
        linear-gradient(135deg, #09203f 0%, #537895 100%);
}

.third-slide {
    background: 
        radial-gradient(ellipse at center, rgba(11, 6, 20, 0.4) 0%, rgba(11, 6, 20, 0.9) 100%),
        linear-gradient(135deg, #2b1055 0%, #7597de 100%);
}

/* 投影片內部對話框 */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 70%, transparent 100%);
}

.slide-dialogue {
    max-width: 800px;
    margin: 0 auto;
    border-left: 3px solid var(--color-blue);
    padding-left: 1.5rem;
}

.speaker-tag {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: 1px;
}

.speaker-line {
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.6;
    letter-spacing: 1px;
}

/* 投影片導覽按鈕 */
.gallery-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.gallery-control-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(18, 11, 34, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.gallery-control-btn:hover {
    background-color: var(--color-blue);
    color: var(--bg-primary);
    border-color: var(--color-blue);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* ==========================================
   7. 下載與製作團隊區 (Download)
   ========================================== */
.download-section {
    padding: 8rem 0;
    background-color: var(--bg-secondary);
}

.download-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
}

/* 下載卡片 */
.download-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3.5rem 3rem;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.download-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    background: linear-gradient(45deg, #fff, var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.download-card p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 300;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.btn-download {
    padding: 1.2rem 2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.steam-btn {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.steam-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.direct-btn {
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-purple) 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(255, 102, 204, 0.2);
}

.direct-btn:hover {
    box-shadow: 0 0 25px rgba(255, 102, 204, 0.5);
    transform: translateY(-2px);
}

/* 團隊卡片 */
.credits-card {
    background: rgba(37, 40, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3.5rem 3rem;
    border-radius: 16px;
}

.credits-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.credits-card h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-blue);
}

.credits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.credits-list li {
    font-size: 1.05rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
    font-weight: 300;
}

.credits-list li strong {
    color: var(--color-blue);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* ==========================================
   8. 頁尾樣式
   ========================================== */
.main-footer {
    background-color: #1e2022;
    padding: 2.5rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.main-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ==========================================
   9. 響應式排版 (Media Queries)
   ========================================== */

@media (max-width: 992px) {
    .char-profile.active {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .char-image-wrapper {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .download-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .story-section, .char-section, .features-section, .gallery-section, .download-section {
        padding: 4.5rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }

    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background-color: rgba(47, 50, 53, 0.95);
        backdrop-filter: blur(20px);
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 2.5rem;
        width: 100%;
        text-align: center;
    }
    
    .hero-title .text-glow {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    .hero-title .text-subtitle {
        font-size: 1.1rem;
        letter-spacing: 4px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .char-tabs {
        gap: 0.8rem;
        margin-bottom: 2.5rem;
    }
    
    .char-tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .vn-dialogue-box {
        padding: 1.8rem 1.2rem 1.5rem;
        min-height: 200px;
    }
    
    .window-content {
        aspect-ratio: 4 / 3;
    }
    
    .speaker-line {
        font-size: 0.95rem;
    }
    
    .gallery-controls {
        bottom: 1rem;
        right: 1rem;
    }
    
    .gallery-control-btn {
        width: 36px;
        height: 36px;
    }
    
    .btn-download {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .download-card, .credits-card {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .stat-row {
        grid-template-columns: 80px 1fr 40px;
        gap: 0.5rem;
    }
}
