/* 全局样式 */
:root {
    --primary-color: #0066cc;
    --secondary-color: #004080;
    --accent-color: #00aaff;
    --background-color: #f8f9fa;
    --dark-bg-color: #2a3a4a;
    --text-color: #333;
    --light-text-color: #666;
    --white-color: #fff;
    --border-color: #e0e0e0;
    --card-bg-color: #fff;
    --timeline-color: #ddd;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gradient-angle: 0deg;
}

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

@keyframes gradientShift {
    0% {
        background-position: 0% 50%, center;
    }
    25% {
        background-position: 50% 25%, center;
    }
    50% {
        background-position: 100% 50%, center;
    }
    75% {
        background-position: 50% 75%, center;
    }
    100% {
        background-position: 0% 50%, center;
    }
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

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

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
}

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

section {
    padding: 100px 0;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo a {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.logo a:hover {
    color: #ffffff; /* 改为白色，增强与背景的对比度 */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: var(--transition);
}

/* 英雄区 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--dark-bg-color);
    color: var(--white-color);
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, 
        rgba(75, 0, 130, 0.7) 0%, 
        rgba(16, 24, 52, 0.7) 15%, 
        rgba(2, 101, 173, 0.6) 40%, 
        rgba(0, 212, 255, 0.5) 65%, 
        rgba(102, 45, 140, 0.6) 85%, 
        rgba(147, 51, 234, 0.7) 100%), 
        url('bg.png');
    background-size: 300% 300%, cover;
    background-position: 0% 0%, center;
    opacity: 0.85;
    animation: gradientShift 15s ease infinite;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 40px;
    position: relative;
    z-index: 3;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 30px;
    border: 4px solid var(--accent-color);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 170, 255, 0.6);
    position: relative;
    animation: floatAnimation 6s ease-in-out infinite;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid rgba(0, 170, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.1);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #ffffff; /* 改为白色，增强与背景的对比度 */
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.intro {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-block;
}

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

.btn.primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

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

.btn.secondary:hover {
    background-color: var(--white-color);
    color: var(--dark-bg-color);
}

/* 研究方向 */
.research {
    background-color: var(--white-color);
}

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

.research-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.research-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.research-card p {
    color: var(--light-text-color);
}

/* 项目成果 */
.projects {
    background-color: var(--background-color);
}

.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(--timeline-color);
}

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

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid var(--white-color);
    box-shadow: var(--shadow-sm);
}

.timeline-date {
    position: absolute;
    left: 60px;
    top: 0;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.timeline-content {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tech-tags span {
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 专利与论文 */
.publications {
    background-color: var(--white-color);
}

.publications-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.publications-column h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.publication-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.publication-meta {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.publication-desc {
    color: var(--light-text-color);
    font-size: 0.95rem;
}

/* 履历 */
.cv {
    background-color: var(--background-color);
}

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

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

.cv-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.cv-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid var(--white-color);
    box-shadow: var(--shadow-sm);
}

.cv-date {
    position: absolute;
    left: 60px;
    top: 0;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.cv-content {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: var(--shadow-md);
}

.cv-content h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.cv-position {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.skills {
    max-width: 800px;
    margin: 0 auto;
}

.skills h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    text-align: center;
}

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

.skill-category {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.skill-category h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 荣誉奖项 */
.honors {
    background-color: var(--white-color);
}

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

.honor-item {
    display: flex;
    align-items: flex-start;
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.honor-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.honor-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
}

.honor-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.honor-year {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* 联系方式 */
.contact {
    background-color: var(--background-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-text a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-text a:hover {
    text-decoration: underline;
}

/* 页脚 */
footer {
    background-color: var(--dark-bg-color);
    color: var(--white-color);
    padding: 30px 0;
    text-align: center;
}

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

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

.social-links a {
    color: var(--white-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: #ffffff; /* 改为白色，增强与背景的对比度 */
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .publications-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        height: calc(100vh - 70px);
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.5s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .burger {
        display: block;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .research-cards, 
    .honors-list, 
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .skill-categories {
        grid-template-columns: 1fr;
    }
    
    footer .container {
        flex-direction: column;
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .timeline-content,
    .cv-content,
    .honor-item,
    .contact-item {
        padding: 20px;
    }
}