/* ====================================
   語言切換器（Header 右上角）
   ==================================== */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.language-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.language-switcher li {
    margin: 0;
    padding: 0;
}

.language-switcher a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.language-switcher a:hover {
    background: #f0f0f0;
    color: #39B68B;
}

.language-switcher .current-lang a {
    background: #39B68B;
    color: white;
}

/* ====================================
   語言選擇頁面
   ==================================== */
.language-selector-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.language-selector-container {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.selector-title {
    font-size: clamp(28px, 5vw, 48px);
    color: #333;
    margin-bottom: 50px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.language-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.language-option {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.language-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.lang-icon {
    margin-bottom: 20px;
}

.lang-flag {
    font-size: 64px;
    display: inline-block;
}

.language-option h2 {
    font-size: 24px;
    margin: 10px 0;
    color: #333;
    font-weight: 600;
}

.lang-native {
    font-size: 16px;
    color: #666;
    margin: 5px 0 0;
}

/* 手機版調整 */
@media (max-width: 640px) {
    .language-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .language-option {
        padding: 30px 20px;
    }

    .lang-flag {
        font-size: 48px;
    }
}
