/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft JhengHei', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c6eaf9;
    padding: 60px 0;
}

.language-selector {
    width: 620px;
    height: 620px;
    background-image: url('images/Language-page-Popup Chi.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* 已移除白色遮罩以完全顯示背景圖 */

.language-buttons {
    display: flex;
    gap: 140px;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.language-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
    overflow: hidden;
}

.language-btn:hover {
    transform: translateY(-5px) scale(1.05);
}

.language-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.language-btn img {
    display: block;
    width: 130px;
    height: 100px;
    transition: all 0.3s ease;
}

/* Footer */
.footer {
    background: #1e82d2;
    color: #fff;
    padding: 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    font-size: 14px;
    color: #fff;
}

.footer-menu {
    display: flex;
    gap: 30px;
}

.footer-menu-item {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-menu-item:hover {
    color: #1e82d2;
}

.footer_text_right a{
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    padding-left: 10px;
    padding-right: 10px;
}

.footer_text_right a:hover{
   text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-selector {
        width: 420px;
        height: 420px;
    }
    
    .language-buttons {
        gap: 20px;
    }
    
    .language-btn img {
        width: 110px;
        height: 85px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-menu {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .language-selector {
        width: 280px;
        height: 280px;
    }
    
    .language-btn img {
        width: 100px;
        height: 75px;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animation Effects */
.language-selector {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-btn {
    animation: fadeIn 0.6s ease-out backwards;
}

.language-btn:nth-child(1) {
    animation-delay: 0.2s;
}

.language-btn:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Selection Effect */
.language-btn.selected {
    animation: pulse 0.6s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
