:root {
    --primary-color: #b19cd9;
    --secondary-color: #e6e6fa;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-text: #333;
    --border-color: rgba(177, 156, 217, 0.3);
}

[data-theme="dark"] {
    --primary-color: #9370db;
    --secondary-color: #4b0082;
    --text-color: #fff;
    --bg-color: #2d2d2d;
    --nav-bg: rgba(45, 45, 45, 0.95);
    --nav-text: #fff;
    --border-color: rgba(147, 112, 219, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui;
    transition: background 0.3s, color 0.3s, border 0.3s;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    z-index: 1001;
}

/* 导航栏 */
.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links a {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 个人简介 */
.hero {
    padding: 130px 0 2rem;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.avatar {
    width: min(100%, 250px);
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(177, 156, 217, 0.2);
}

.bio h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-color);
    margin-bottom: 1rem;
}

.bio p {
    color: var(--text-color);
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
}

/* 技能展示 */
.skills {
    padding: 4rem 0;
}

.skill-category {
    margin-bottom: 2rem;
    max-width: 800px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-bar {
    background: var(--secondary-color);
    height: 10px;
    border-radius: 5px;
}

.skill-progress {
    background: var(--primary-color);
    height: 100%;
    border-radius: 5px;
}

.skill-percent {
    color: var(--text-color);
    font-weight: bold;
}

/* 联系方式 */
.contact {
    padding: 4rem 0;
}

.contact-info {
    padding-left: 2rem;
    border-left: 3px solid var(--primary-color);
}

.social-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.social-link:hover {
    border-color: var(--primary-color);
    background: rgba(177, 156, 217, 0.1);
}

/* 页脚 */
footer {
    text-align: center;
    padding: 3rem 0;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }

    .avatar {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        justify-content: center;
        gap: 1.5rem;
    }

    .theme-toggle {
        right: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .contact-info {
        padding-left: 1rem;
    }
}

@media (max-width: 480px) {
    .avatar {
        height: 250px;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .social-link {
        padding: 0.6rem 1.2rem;
    }
}