@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&display=swap');

body {
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #2d3436;
    line-height: 1.6;
}

header {
    padding: 40px 0;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

header h1 {
    font-family: 'Caveat';
    font-size: 4em;
    margin: 0;
    background: linear-gradient(45deg, #0984e3, #6c5ce7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

header h2 {
    margin: 10px 0;
    font-weight: normal;
}

.bilingual {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.en {
    order: 1;
}

.zh {
    order: 2;
    color: #636e72;
    font-size: 0.95em;
}

main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0984e3;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.cards-container.four-column {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(9, 132, 227, 0);
    position: relative;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(9, 132, 227, 0.15);
    border-color: rgba(9, 132, 227, 0.1);
    background: linear-gradient(to bottom right, #fff, rgba(9, 132, 227, 0.03));
}

.card h3 {
    margin-top: 0;
    color: #2d3436;
    font-size: 1.4em;
    transition: color 0.4s ease;
}

.card:hover h3 {
    color: #0984e3;
}

.card .bilingual {
    color: #636e72;
    font-size: 0.95em;
    margin-bottom: 15px;
    line-height: 1.6;
}

.card a {
    color: #0984e3;
    text-decoration: none;
    font-weight: 500;
    position: static;
}

.card a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.card a::after {
    content: '→';
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.8;
}

.card:hover a::after {
    transform: translateX(5px);
    opacity: 1;
}

.organizations {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
    gap: 30px;
}

.organization {
    width: 120px;
    text-align: center;
}

.organization img {
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
    filter: grayscale(30%);
}

.organization img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.footer {
    margin-top: 60px;
    background: linear-gradient(45deg, #2d3436 0%, #2d3436 100%);
    color: #dfe6e9;
    text-align: center;
    padding: 2em 0;
}

.footer q {
    font-style: italic;
    display: block;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 1000px) {
    .cards-container.four-column {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2.5em;
    }
    header h2 {
        font-size: 1em;
        margin-top: -20px;
    }
    .cards-container {
        grid-template-columns: 1fr;
    }
    .bilingual {
        gap: 0.2em;
    }
} 