/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Header styles */
header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 2px solid #eee;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.subtitle-cn {
    font-size: 1.1rem;
    color: #95a5a6;
}

nav {
    margin-top: 20px;
}

nav a {
    color: #3498db;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #2980b9;
}

/* Main content styles */
main {
    padding-bottom: 40px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.card h3 {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 400;
}

.card p {
    margin-bottom: 10px;
    color: #555;
}

.card p.cn {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.button {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background: linear-gradient(135deg, #2980b9, #2471a3);
    transform: translateY(-2px);
}

/* Legal content styles */
.legal-content {
    max-width: 700px;
    margin: 0 auto;
}

.language-toggle {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.language-toggle button {
    background: #e9ecef;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.language-toggle button.active {
    background: #3498db;
    color: white;
}

.language-toggle button:hover {
    background: #3498db;
    color: white;
}

.content-section {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.content-section h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.content-section h3 {
    color: #34495e;
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-section h4 {
    color: #5d6d7e;
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.content-section p {
    margin-bottom: 15px;
    text-align: justify;
    color: #555;
}

.content-section ul {
    margin: 15px 0;
    padding-left: 30px;
}

.content-section li {
    margin-bottom: 8px;
    color: #555;
}

.content-section strong {
    color: #2c3e50;
}

/* Footer styles */
footer {
    text-align: center;
    padding: 30px 0;
    border-top: 2px solid #eee;
    margin-top: 40px;
    color: #7f8c8d;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .language-toggle {
        padding: 15px;
    }
    
    .language-toggle button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.7rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .subtitle-cn {
        font-size: 0.9rem;
    }
    
    .card h2 {
        font-size: 1.3rem;
    }
    
    .card h3 {
        font-size: 1.1rem;
    }
}