* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
:root {
    --primary: rgb(255, 217, 59);
    --secondary: #ffd166;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --transition: all 0.3s ease;
}

/* 新增：主题切换按钮样式 */
.theme-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 1);
}
.theme-toggle i {
    color: #333;
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}
body.dark-mode .theme-toggle {
    background: rgba(40, 40, 40, 0.9);
}
body.dark-mode .theme-toggle i {
    color: #f8f9fa;
}

/* 深色模式样式 */
body.dark-mode {
    --primary: #e83e8c;
    --secondary: #ffd166;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    background: linear-gradient(
        135deg, 
        #1a1a2e 0%, 
        #16213e 100%
    );
    color: var(--light);
}
body.dark-mode .language-switcher {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
}
body.dark-mode .profile-section .heart-icon {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(232, 62, 140, 0.4);
}

/* 原有样式保持不变 */
body {
    background: linear-gradient(135deg, #ff7fb0 0%, #ff8e8e 100%);
    color: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(232, 62, 140, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 209, 102, 0.1) 0%, transparent 20%);
    z-index: -1;
}
.header {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
}
.language-switcher {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none !important;
    color: inherit;
}
.language-switcher:hover {
    text-decoration: none !important;
}
.language-switcher:visited {
    text-decoration: none !important;
}
.language-switcher:active {
    text-decoration: none !important;
}
.language-switcher:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
.language-switcher i {
    color: var(--secondary);
}
.main-container {
    max-width: 1200px;
    margin: 30px auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 20px;
}
.profile-section {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.avatar-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin-bottom: 30px;
}
.avatar {
    width: 100%;
    height: 220px;
    border-radius: 50% / 40%;
    object-fit: cover;
    object-position: center bottom;
    display: block;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    background: linear-gradient(
        45deg,
        #e83e8c,
        #ff8e53
    );
}
.heart-icon {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(232, 62, 140, 0.4);
    animation: pulse 2s infinite;
    border: 2px solid white;
}
.profile-name {
    font-size: 3.2rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--secondary), #FFB74D);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin-top: 10px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.profile-title {
    color: var(--white);
    font-size: 1.2rem;
    text-align: center;
    margin-top: 5px;
    font-weight: 300;
    letter-spacing: 1px;
}
.navigation-section {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.nav-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    color: var(--secondary);
}
.nav-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.nav-link {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    color: var(--light);
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}
.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
    border-color: rgba(232, 62, 140, 0.3);
}
.nav-link:hover .link-icon {
    transform: scale(1.2);
    color: var(--secondary);
}
.nav-link:hover::before {
    width: 100%;
}
.nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
    transition: var(--transition);
    z-index: 1;
}
.link-icon {
    width: 40px;
    text-align: center;
    font-size: 1.4rem;
    margin-right: 15px;
    transition: var(--transition);
    color: var(--primary);
    z-index: 2;
}
.link-text {
    flex: 1;
    z-index: 2;
}
.link-arrow {
    font-size: 1.2rem;
    opacity: 0.7;
    transition: var(--transition);
    z-index: 2;
}
.nav-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(5px);
}
.footer {
    text-align: center;
    padding: 25px;
    margin-top: auto;
    color: var(--gray);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}
.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--light);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}
.social-link:hover {
    background: var(--primary);
    transform: translateY(-5px);
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        gap: 50px;
    }
    .profile-section {
        padding-top: 20px;
    }
    .profile-name {
        font-size: 2.5rem;
    }
    .nav-link:hover {
        transform: translateX(5px);
    }
}

/* About Page Styles */
.about-section {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    color: var(--light);
    font-size: 1.1rem;
    line-height: 1.8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    margin-bottom: 20px;
    text-align: justify;
}

.about-card p {
    margin-bottom: 15px;
}

.about-card p:last-child {
    margin-bottom: 0;
}
