* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    min-height: 100vh;
}

/* Header with image */
.header-image {
    width: 100%;
    height: 200px;
    background: url('header.gif') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-title {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.site-title h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.site-title .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navigation */
.navigation {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-2px);
}

.nav-item:last-child .nav-link {
    border-right: none;
}

/* Main content */
.main-content {
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    color: #2d3748;
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.content-section {
    margin-bottom: 35px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section-title {
    color: #4a5568;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-content {
    color: #2d3748;
    line-height: 1.8;
    font-size: 1.05rem;
}

.section-content p {
    margin-bottom: 15px;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-image {
        height: 200px;
    }

    .site-title h1 {
        font-size: 1.8rem;
    }

    .site-title .subtitle {
        font-size: 1rem;
    }

    .nav-container {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 10px;
    }

    .nav-link {
        white-space: nowrap;
        min-width: auto;
        padding: 15px 20px;
        border-right: 1px solid rgba(255,255,255,0.1);
        border-bottom: none;
    }

    .main-content {
        padding: 20px;
    }

    .page-title {
        font-size: 1.8rem;
    }
}

/* Loading animation for smooth transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Language Toggle Styles */
.language-toggle-container {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.language-toggle {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.language-toggle span {
    margin: 0 5px;
    font-size: 14px;
}

.language-toggle .active {
    color: #667eea;
    font-weight: bold;
}

/* Language-specific display rules */
.zh-content {
    display: none;
}

html[lang="zh-TW"] .en-content {
    display: none;
}

html[lang="zh-TW"] .zh-content {
    display: block;
} 