:root {
    --light-bg: linear-gradient(to right, #1f4037, #99f2c8);
    --light-color: #fff;
    --dark-bg: #111;
    --dark-color: #ccc;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    text-align: center;
    transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    body {
        background: var(--dark-bg);
        color: var(--dark-color);
    }

    .content {
        background: #222;
        color: #ccc;
    }
}

.header {
    background-color: #4CAF50;
    color: #fff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    padding: 20px;
    max-width: 1200px;
}

.container a {
    color: #ffffff;
    text-decoration: none;
}

.container a:hover {
    text-decoration: none;
    color: #ffffff;
}

h1 {
    font-size: 3em;
    margin: 0;
}

p {
    font-size: 1.2em;
    margin: 10px 0 20px;
}

.button {
    padding: 15px 30px;
    font-size: 1em;
    color: white;
    background-color: #ff4b5c;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    transform: translateY(0);
}

.button:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-color: #ff364a;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: #4CAF50;
    font-size: 1.2em;
    text-decoration: none;
    margin: 0 10px;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.language-switch {
    margin-top: 20px;
    text-align: center;
}

.language-switch p {
    margin: 5px 0;
}

.custom-dropdown {
    position: relative;
    display: inline-block;
    font-size: 16px;
    margin-left: 10px;
}

.custom-dropdown-button {
    background-color: #fff;
    color: #222;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    min-width: 100px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-dropdown-button::after {
    content: '▼';
    margin-left: 10px;
    font-size: 12px;
}

.custom-dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 100px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-top: 5px;
    z-index: 1;
}

.custom-dropdown-content div {
    color: #222;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.custom-dropdown-content div:hover {
    background-color: #f1f1f1;
}

@media (prefers-color-scheme: dark) {
    .custom-dropdown-content {
        background-color: #222;
    }
    .custom-dropdown-content div {
        color: #fff;
    }
    .custom-dropdown-content div:hover {
        background-color: #444;
        color: #fff;
    }
    .custom-dropdown-button div:hover {
        background-color: #444;
        color: #fff;
    }
}

.custom-dropdown.show .custom-dropdown-content {
    display: block;
}

a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #45a049;
    text-decoration: underline;
}

.content {
    padding: 20px;
    background: #fff;
    color: #333;
    text-align: left;
    width: 100%;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.content h2 {
    color: #333;
    border-bottom: 2px solid #99f2c8;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.content p {
    font-size: 18px;
    line-height: 1.6;
}

.profile-img {
    float: left;
    margin-right: 20px;
    border-radius: 50%;
    width: 150px;
    height: 150px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.content section {
    min-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    gap: 20px;
    align-items: flex-start;
}

.card {
    background-color: #fff;
    color: #333;
    width: 300px;
    margin: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
    min-width: 250px;
    max-width: 400px;
}

@media (prefers-color-scheme: dark) {
    .card {
        background-color: #222;
        color: #ccc;
    }
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card h2,
.card p,
.card ul {
    margin: 20px;
}

[data-lang="zh"],
[data-lang="en"] {
    display: none;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .profile-img {
        float: none;
        display: block;
        margin: 0 auto 20px;
    }

    .container {
        width: 95%;
    }

    .content section {
        min-width: auto;
        padding: 10px 0;
    }
}
