/* 全局样式 */
:root {
    --primary-color: #00bcd4;
    --primary-rgb: 0, 188, 212;
    --secondary-color: #6c757d;
    --dark-color: #1e293b;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --text-color: #333333;
    --text-light: #6c757d;
    --text-secondary: #666666;
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #eeeeee;
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --box-shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --glow-effect: 0 0 15px rgba(var(--primary-rgb), 0.5);
    --neon-glow: 0 0 10px rgba(var(--primary-rgb), 0.8);
    --tech-gradient: linear-gradient(135deg, #00bcd4, #3f51b5);
    --border-radius: 12px;
    --section-padding: 100px 0;
    --heading-color: #222222;
    --accent-color: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color:#ffffff;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn.primary:hover {
    background-color: #00a0b4;
    transform: translateY(-3px);
    box-shadow: var(--neon-glow);
}

.btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn.primary:hover::before {
    left: 100%;
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 70px;
}

.nav-list {
    display: flex;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    padding: 0;
    z-index: 10;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    position: absolute;
    left: 0;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

/* APK下载按钮专用样式 */
.btn.download-apk {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    position: relative;
    overflow: hidden;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.btn.download-apk:hover {
    background: linear-gradient(135deg, #e55a2b, #df8419);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    color: white;
}

.btn.download-apk::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
    z-index: 1;
}

.btn.download-apk:hover::before {
    left: 100%;
}

.btn.download-apk i {
    margin-right: 8px;
    animation: downloadPulse 2s infinite;
}

@keyframes downloadPulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.1); 
    }
}

/* 针对移动端优化下载按钮 */
@media (max-width: 768px) {
    .btn.download-apk {
        padding: 14px 24px;
        font-size: 0.9rem;
        box-shadow: 0 3px 12px rgba(255, 107, 53, 0.25);
    }
    
    .btn.download-apk:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
    }
}

/* GitHub按钮专用样式 */
.btn.github {
    background: linear-gradient(135deg, #333333, #24292e);
    color: white;
    position: relative;
    overflow: hidden;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(36, 41, 46, 0.3);
    transition: all 0.3s ease;
}

.btn.github:hover {
    background: linear-gradient(135deg, #24292e, #1b1f23);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(36, 41, 46, 0.4);
    color: white;
}

.btn.github::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: 1;
}

.btn.github:hover::before {
    left: 100%;
}

.btn.github i {
    margin-right: 8px;
    animation: githubPulse 3s infinite;
}

@keyframes githubPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 访问网站按钮专用样式 */
.btn.visit-site {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    position: relative;
    overflow: hidden;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.btn.visit-site:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn.visit-site::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
    z-index: 1;
}

.btn.visit-site:hover::before {
    left: 100%;
}

.btn.visit-site i {
    margin-right: 8px;
    animation: visitPulse 2.5s infinite;
}

@keyframes visitPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-2deg); }
    75% { transform: scale(1.1) rotate(2deg); }
}

/* API访问按钮专用样式 */
.btn.api-access {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    position: relative;
    overflow: hidden;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.btn.api-access:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    color: white;
}

.btn.api-access::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
    z-index: 1;
}

.btn.api-access:hover::before {
    left: 100%;
}

.btn.api-access i {
    margin-right: 8px;
    animation: apiPulse 2s infinite;
}

@keyframes apiPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08) rotateY(5deg); }
}

/* 查看详情按钮优化 */
.btn.view-details {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: white;
    position: relative;
    overflow: hidden;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
    transition: all 0.3s ease;
}

.btn.view-details:hover {
    background: linear-gradient(135deg, #0097a7, #00838f);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
    color: white;
}

.btn.view-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
    z-index: 1;
}

.btn.view-details:hover::before {
    left: 100%;
}

.btn.view-details i {
    margin-right: 8px;
    animation: detailsPulse 2.2s infinite;
}

@keyframes detailsPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

/* 联系我按钮特殊样式 */
.btn.contact-me {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    position: relative;
    overflow: hidden;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

.btn.contact-me:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    color: white;
}

.btn.contact-me::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
    z-index: 1;
}

.btn.contact-me:hover::before {
    left: 100%;
}

.btn.contact-me i {
    margin-right: 8px;
    animation: contactPulse 1.8s infinite;
}

@keyframes contactPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

/* 移动端按钮优化 */
@media (max-width: 768px) {
    .btn.github,
    .btn.visit-site,
    .btn.api-access,
    .btn.view-details,
    .btn.contact-me {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .btn.github:hover,
    .btn.visit-site:hover,
    .btn.api-access:hover,
    .btn.view-details:hover,
    .btn.contact-me:hover {
        transform: translateY(-1px);
    }
}

/* 英雄区 */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    background-color: var(--bg-color);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--box-shadow);
}

.profile-img-placeholder i {
    font-size: 100px;
    color: var(--primary-color);
}

.scroll-down {
    text-align: center;
    margin-top: 50px;
}

.scroll-down a {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--text-light);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* 技能区 */
.skills {
    padding: var(--section-padding);
    background-color: var(--bg-secondary);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.skill-category {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.skill-category:hover {
    transform: var(--card-hover-transform) rotateY(5deg);
    box-shadow: var(--box-shadow-hover), var(--glow-effect);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 108, 247, 0.1) 0%, transparent 70%);
    opacity: 0;
    z-index: -1;
    transform: scale(0.5);
    transition: var(--transition);
}

.skill-category:hover::before {
    opacity: 1;
    transform: scale(1);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.skill-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
    color: var(--text-color);
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.skill-name {
    flex: 0 0 150px;
    font-weight: 500;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-left: 15px;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #00d4ff);
    border-radius: 4px;
    position: relative;
    width: 0;
    transition: width 1.5s ease;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.skill-list li:hover {
    transform: translateX(5px);
}

.skill-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    text-shadow: 0 0 5px var(--primary-color);
    transition: var(--transition);
}

.skill-list li:hover::before {
    transform: scale(1.3);
}

/* 技能进度条样式 */
.skill-progress {
    height: 6px;
    background-color: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
}

.skill-progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.2, 1);
    position: relative;
    box-shadow: 0 0 10px var(--primary-color);
}

.skill-category:hover .skill-progress::after {
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* 项目区 */
.projects {
    padding: var(--section-padding);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 1;
    perspective: 1000px;
}

.project-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.project-image {
    height: 160px;
    position: relative;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.05);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 项目占位图标 */
.project-icon {
    position: absolute;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.8;
    z-index: 1;
    transition: all 0.5s ease;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
    opacity: 0;
}

/* 当图片加载完成后，隐藏图标 */
.project-image img.loaded {
    opacity: 1;
}

.project-image img.loaded ~ .project-icon {
    opacity: 0;
    transform: scale(0.5);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tech span {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.project-tech span:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    color: white;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: var(--transition);
    flex: 1;
    text-align: center;
}

.project-link:hover {
    background-color: #3a57d7;
    color: white;
}

.project-achievements {
    margin-top: 15px;
}

.project-achievements p {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    color: var(--success-color);
}

.project-achievements i {
    margin-right: 8px;
}

/* 经历区 */
.experience {
    padding: var(--section-padding);
    background-color: var(--bg-secondary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 50px;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    z-index: 1;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.timeline-content {
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.timeline-content:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(3deg);
    box-shadow: var(--box-shadow-hover), var(--glow-effect);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(74, 108, 247, 0.1) 0%, transparent 70%);
    opacity: 0;
    z-index: -1;
    transform: scale(0.5);
    transition: var(--transition);
}

.timeline-content:hover::before {
    opacity: 1;
    transform: scale(1);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.timeline-content ul {
    margin-left: 20px;
}

.timeline-content li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.timeline-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* 教育区 */
.education {
    padding: var(--section-padding);
}

.education-card {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.education-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 30px;
}

.education-details h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.education-details p {
    color: var(--text-light);
}

/* 联系区 */
.contact {
    padding: var(--section-padding);
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0) 70%);
    top: -150px;
    left: -150px;
    z-index: 0;
}

.contact::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0) 70%);
    bottom: -150px;
    right: -150px;
    z-index: 0;
}

.contact-grid {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    width: 100%;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-info.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.contact-header {
    background-color: var(--primary-color);
    color: white;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-header-icon {
    font-size: 2rem;
    background-color: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
}

.contact-header-icon i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.contact-header h3 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.contact-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
    padding: 5px 0;
    transition: transform 0.2s ease;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item.fade-in {
    opacity: 1;
    transform: translateX(0);
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(360deg);
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-footer {
    background-color: var(--bg-secondary);
    padding: 25px;
    text-align: center;
}

.contact-footer p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-social {
    display: flex;
    gap: 15px;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.contact-social.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.contact-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* GitHub社交链接 */
.contact-social a[href*="github"] {
    background: linear-gradient(135deg, #333333, #24292e);
    box-shadow: 0 4px 15px rgba(36, 41, 46, 0.3);
}

.contact-social a[href*="github"]:hover {
    background: linear-gradient(135deg, #24292e, #1b1f23);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 8px 25px rgba(36, 41, 46, 0.4);
}

/* Gitee社交链接 */
.contact-social a[href*="gitee"] {
    background: linear-gradient(135deg, #c71d23, #a91218);
    box-shadow: 0 4px 15px rgba(199, 29, 35, 0.3);
}

.contact-social a[href*="gitee"]:hover {
    background: linear-gradient(135deg, #a91218, #8b0f14);
    transform: translateY(-3px) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(199, 29, 35, 0.4);
}

/* 微信社交链接 */
.contact-social a:has(i.fa-weixin) {
    background: linear-gradient(135deg, #07c160, #06ad54);
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.3);
}

.contact-social a:has(i.fa-weixin):hover {
    background: linear-gradient(135deg, #06ad54, #059f4a);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(7, 193, 96, 0.4);
}

/* 社交链接通用动效 */
.contact-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.contact-social a:hover::before {
    left: 100%;
}

/* 页脚 */
.footer {
    background-color: #ffffff;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-projects {
    margin: 15px 0;
    padding: 10px;
    background-color: rgba(0, 188, 212, 0.1);
    border-radius: 8px;
    width: 100%;
    max-width: 700px;
}

.footer-projects p {
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: center;
}

.footer-projects a {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.footer-projects a:hover {
    color: #3a57d7;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color:var(--primary-color);
    transform: translateY(-5px);
}

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary-color);
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 188, 212, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loader-text {
    font-size: 16px;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

body.loaded {
    overflow: auto;
}

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    width: 0%;
    z-index: 1000;
    transition: width 0.1s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 页面过渡效果 */
body.loaded .hero,
body.loaded .skills,
body.loaded .projects,
body.loaded .experience,
body.loaded .education,
body.loaded .contact,
body.loaded .footer {
    animation: pageTransition 0.8s ease-out forwards;
}

@keyframes pageTransition {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        width: 100%;
    }
    .cta-buttons {
        justify-content: center;
    }
    .section-title {
        font-size: 2rem;
    }
    .project-card.featured {
        grid-column: auto;
    }
    .contact-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .contact-info {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        height: 0;
        overflow: hidden;
        transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1000;
        padding: 0;
        opacity: 0;
    }
    
    .nav-list.active {
        height: auto;
        padding: 20px 0;
        opacity: 1;
        border-bottom: 2px solid var(--primary-color);
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }
    
    .nav-list.active .nav-item {
        opacity: 1;
        transform: translateY(0);
        transition-delay: calc(0.1s * var(--item-index));
    }
    
    .nav-link {
        position: relative;
        overflow: hidden;
        display: block;
        padding: 12px 20px;
        padding-left: 25px;
        font-size: 1.1rem;
        font-weight: 500;
        width: 100%;
        transition: all 0.3s ease;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background-color: var(--primary-color);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }
    
    .nav-link:hover::before,
    .nav-link.active::before {
        transform: scaleY(1);
    }
    
    .nav-link:hover, .nav-link.active {
        background-color: transparent;
        color: var(--primary-color);
    }
    
    /* 打开菜单时的遮罩效果 */
    .nav::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .nav-list.active + .nav::after {
        opacity: 1;
        visibility: visible;
    }
    
    /* 修复移动端导航菜单的最大高度 */
    .nav-list.active {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    /* 添加滚动条样式 */
    .nav-list.active::-webkit-scrollbar {
        width: 5px;
    }
    
    .nav-list.active::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
    }
    
    .nav-list.active::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }
    
    /* 汉堡菜单按钮样式优化 */
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    /* 汉堡菜单动画 */
    .mobile-menu-toggle.active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
        background-color: var(--primary-color);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
        background-color: var(--primary-color);
    }
    
    .skills-container {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .skill-category {
        padding: 15px;
    }
    
    .skill-category h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .skill-list li {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .skill-name {
        flex: 0 0 120px;
    }
    
    .skill-bar {
        height: 6px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .project-card {
        overflow: hidden;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-content {
        padding: 15px;
    }
    
    .project-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .project-description {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .project-tech {
        margin-bottom: 12px;
    }
    
    .project-tech span {
        font-size: 0.75rem;
        padding: 4px 10px;
        margin-right: 5px;
        margin-bottom: 5px;
    }
    
    .timeline::before {
        left: 15px;
        width: 3px;
    }
    
    .timeline-item {
        padding-left: 45px;
        margin-bottom: 40px;
    }
    
    .timeline-dot {
        left: 7.5px;
        width: 18px;
        height: 18px;
        box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
    }
    
    .timeline-date {
        font-size: 0.85rem;
        font-weight: 500;
        margin-bottom: 8px;
        color: var(--primary-color);
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
    }
    
    .timeline-content h4 {
        font-size: 1rem;
    }
    
    .timeline-content li {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .education-card {
        flex-direction: column;
        text-align: center;
    }
    
    .education-icon {
        margin-bottom: 20px;
    }
    
    .contact-social {
        flex-wrap: wrap;
        gap: 12px;
    }
    .contact-header {
        padding: 18px 15px;
    }
    .contact-body {
        padding: 20px 15px;
    }
    .contact-item i {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .section-title::after {
        width: 80px;
        height: 4px;
        margin: 15px auto 0;
    }
    
    section {
        padding: 60px 0;
    }
    
    /* 移动端动画优化 */
    .skill-progress::after,
    .project-card::after {
        animation: none; /* 移动端禁用一些复杂动画 */
    }
    
    /* 简化动画曲线和持续时间 */
    .skill-category,
    .project-card,
    .contact-item,
    .nav-link {
        transition: all 0.25s ease; /* 更短的过渡时间 */
    }
    
    /* 优化滚动和滑动体验 */
    html, body {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 减少阴影复杂度提高渲染性能 */
    .skill-category:hover,
    .project-card:hover,
    .contact-info:hover {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .contact-footer {
        padding: 18px 15px;
    }
    
    .contact-social {
        gap: 12px;
    }
    
    .contact-social a {
        width: 40px;
        height: 40px;
    }
    
    .project-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .name {
        font-size: 2.5rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .contact-info {
        padding: 0;
        width: 100%;
    }
    .contact-header {
        padding: 15px;
    }
    .contact-header-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    .contact-header h3 {
        font-size: 1.3rem;
    }
    .contact-body {
        padding: 20px 15px;
        gap: 15px;
    }
    .contact-social a {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .skill-category {
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .skill-category:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }
    
    .skill-bar {
        margin-left: 10px;
    }
    
    .project-image {
        height: 160px;
    }
    
    .project-tech {
        flex-wrap: wrap;
    }
    
    .contact-item {
        margin-bottom: 12px;
    }
    
    .contact-item:last-child {
        margin-bottom: 0;
    }
    
    .contact-social a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* 粒子背景 */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

/* 打字机效果 */
.typewriter-container {
    height: 30px;
    margin-bottom: 20px;
    overflow: hidden;
}

.typewriter {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.2rem;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--primary-color);
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 添加AOS动画类 */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.aos-animate {
    opacity: 1;
}

.scroll-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #00d4ff);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* 打印样式优化 */
@media print {
    body {
        background-color: white;
        color: black;
        font-size: 12pt;
    }
    
    .header, .mobile-menu-toggle, .back-to-top, 
    .scroll-progress, .particles-container, .scroll-down,
    .footer, .contact-social {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    section {
        padding: 20px 0 !important;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    p, li {
        color: black;
        font-size: 11pt;
    }
    
    .hero {
        height: auto;
        min-height: auto;
    }
    
    .hero-content {
        flex-direction: row;
        align-items: center;
        padding: 20px 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .project-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .project-card.featured {
        grid-column: span 2;
    }
    
    .timeline::before {
        background-color: #ccc;
    }
    
    .contact-info {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
    
    .btn {
        border: 1px solid #ccc;
        background: none;
        color: black;
    }
}

/* 图片懒加载样式 */
.lazy {
    transition: opacity 0.3s;
    opacity: 0;
}

.lazy.loaded {
    opacity: 1;
}

/* 页面过渡动画 */
.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

.slide-in {
    animation: slideIn 0.5s ease-out forwards;
}

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

@keyframes slideIn {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 移动端优化过渡动画 */
@media (max-width: 768px) {
    /* 简化移动端动画减少性能消耗 */
    .slide-in, .fade-in {
        animation-duration: 0.3s;
    }
    
    .project-card, .skill-category, .timeline-item, .contact-info {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    /* 无动画过渡替代方案 */
    .no-animation {
        transition: none !important;
        animation: none !important;
    }
    
    /* 优化触摸交互 */
    .project-card:active, .skill-category:active, .contact-info:active {
        transform: scale(0.98);
    }
}

/* 触摸反馈效果 */
.touch-active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* 移动端优化样式 */
.mobile-optimized {
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent;
}

/* 减少移动端滚动卡顿 */
.mobile-optimized * {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@media (max-width: 768px) {
    /* 增强触摸反馈 */
    .nav-link:active, .btn:active, a:active {
        opacity: 0.7;
        transform: scale(0.97);
    }
    
    /* 优化图片加载中效果 */
    .project-image {
        position: relative;
    }
    
    .project-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        animation: shimmer 1.5s infinite;
        background-size: 200% 100%;
    }
    
    .project-image img.loaded + .project-image::before {
        display: none;
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 修改导航栏激活项颜色 */
.nav-link.active {
    color: var(--primary-color);
}

/* 教育图标颜色 */
.education-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 30px;
}

/* 联系项目图标 */
.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* 社交链接色彩 */
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* GitHub社交链接 */
.social-links a[href*="github"] {
    background: linear-gradient(135deg, #333333, #24292e);
    box-shadow: 0 4px 15px rgba(36, 41, 46, 0.3);
}

.social-links a[href*="github"]:hover {
    background: linear-gradient(135deg, #24292e, #1b1f23);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 8px 25px rgba(36, 41, 46, 0.4);
}

/* Gitee社交链接 */
.social-links a[href*="gitee"] {
    background: linear-gradient(135deg, #c71d23, #a91218);
    box-shadow: 0 4px 15px rgba(199, 29, 35, 0.3);
}

.social-links a[href*="gitee"]:hover {
    background: linear-gradient(135deg, #a91218, #8b0f14);
    transform: translateY(-3px) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(199, 29, 35, 0.4);
}

/* 微信社交链接 */
.social-links a:has(i.fa-weixin) {
    background: linear-gradient(135deg, #07c160, #06ad54);
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.3);
}

.social-links a:has(i.fa-weixin):hover {
    background: linear-gradient(135deg, #06ad54, #059f4a);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(7, 193, 96, 0.4);
}

/* 社交链接通用动效 */
.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.social-links a:hover::before {
    left: 100%;
}

/* 头像占位符 */
.profile-img-placeholder i {
    font-size: 100px;
    color: var(--primary-color);
}

/* 技能类别标题 */
.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

/* 职位标题 */
.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

/* 更小屏幕的优化 */
@media (max-width: 480px) {
    .timeline::before {
        left: 12px;
        width: 2px;
    }
    
    .timeline-item {
        padding-left: 35px;
    }
    
    .timeline-dot {
        left: 6px;
        width: 14px;
        height: 14px;
    }
}

/* 在媒体查询之前，添加PC端特定的导航栏样式 */
@media (min-width: 769px) {
    .nav-link {
        padding: 8px 15px;
        transition: all 0.3s ease;
        border-radius: 4px;
    }
    
    .nav-link:hover, .nav-link.active {
        background-color: transparent;
        color: var(--primary-color);
        box-shadow: none;
    }
    
    .nav-link::after {
        height: 2px;
        bottom: -2px;
        background-color: var(--primary-color);
    }
    
    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }
}

/* 微信二维码样式 */
.wechat-qrcode {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin: 15px 0;
}

.wechat-qrcode img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.wechat-qrcode img:hover {
    transform: scale(1.05);
}

/* 联系我区域样式优化 - 更加优雅的设计 */
.contact-wechat {
    /* background: linear-gradient(145deg, #ffffff, #f5f9ff); */
    border-radius: 16px;
    padding: 0;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); */
    /* transition: all 0.4s ease; */
    overflow: hidden;
}

.contact-wechat:hover {
    /* box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08); */
    /* transform: translateY(-5px); */
}

.wechat-content {
    display: flex;
    align-items: center;
}

.wechat-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.wechat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #07C160, #06ad54);
    box-shadow: 0 5px 15px rgba(7, 193, 96, 0.25);
    margin-bottom: 5px;
}

.wechat-icon i {
    font-size: 30px;
    color: white;
}
.wechat-text{
    text-align: center;
}
.wechat-text h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.wechat-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.wechat-qrcode {
    padding: 30px;
    border-left: 1px solid rgba(235, 240, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.wechat-qrcode img {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.wechat-qrcode img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .wechat-content {
        flex-direction: column;
    }
    
    .wechat-info {
        width: 100%;
        padding: 0;
        align-items: center;
        text-align: center;
    }
    
    .wechat-qrcode {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(235, 240, 255, 0.8);
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .contact-item-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-item-group .contact-item {
        flex: 0 0 100%;
    }
    
    .wechat-icon {
        display: none; /* 在移动端隐藏微信图标 */
    }
    
    .wechat-text h4 {
        font-size: 16px;
    }
    
    .wechat-text p {
        font-size: 13px;
    }
    
    .wechat-qrcode {
        padding: 20px;
    }
    
    .wechat-qrcode img {
        width: 120px;
        height: 120px;
    }
}
/* 联系人信息组样式 */
.contact-item-group {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact-item-group .contact-item {
    flex: 0 0 48%;
}

/* 微信联系区域样式优化 - 更加优雅的设计 */
.contact-wechat {
    /* background: linear-gradient(145deg, #ffffff, #f5f9ff); */
    border-radius: 16px;
    padding: 0;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); */
    /* transition: all 0.4s ease; */
    overflow: hidden;
}
