/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

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

.hidden {
    display: none !important;
}

/* 加载动画 */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 头部区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0 150px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.profile-img {
    margin-bottom: 30px;
}

.img-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.img-placeholder i {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.7);
}

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

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 400;
    opacity: 0.9;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info a,
.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.contact-info a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 波浪效果 */
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23fff"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23fff"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23fff"/></svg>');
    background-size: 1200px 100px;
}

.wave1 {
    animation: wave 12s linear infinite;
    z-index: 1;
}

.wave2 {
    animation: wave 8s linear infinite;
    z-index: 2;
    opacity: 0.5;
    bottom: 10px;
}

.wave3 {
    animation: wave 15s linear infinite;
    z-index: 3;
    opacity: 0.3;
    bottom: 15px;
}

@keyframes wave {
    0% { background-position-x: 0; }
    100% { background-position-x: 1200px; }
}

/* 章节样式 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

.section-title i {
    margin-right: 15px;
    color: #667eea;
}

/* 核心优势 */
.core-strengths {
    background: white;
}

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

.strength-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.strength-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.strength-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #667eea;
}

.strength-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.strength-card p {
    color: #666;
    font-size: 1rem;
}

/* 项目经验 */
.experience {
    background: #f0f2f5;
}

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

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

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #667eea;
    z-index: 2;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 30px;
    width: 2px;
    height: calc(100% + 20px);
    background: #667eea;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateX(5px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.project-header h3 {
    font-size: 1.4rem;
    color: #333;
    margin: 0;
}

.time-period {
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.timeline-content h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.timeline-content h5 {
    color: #555;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 500;
}

.timeline-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-points {
    list-style-type: none;
    margin-bottom: 25px;
}

.project-points li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: #555;
}

.project-points li::before {
    content: '●';
    color: #667eea;
    position: absolute;
    left: 0;
    top: 0;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-item {
    background: #eef2ff;
    color: #667eea;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 技术影响力 */
.influence {
    background: white;
}

.influence-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.influence-item {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.influence-item h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.influence-item h3 i {
    margin-right: 10px;
    color: #667eea;
}

.influence-item p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.github-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border: 2px solid #667eea;
    border-radius: 30px;
    transition: all 0.3s;
}

.github-link:hover {
    background: #667eea;
    color: white;
}

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

.footer p {
    margin-bottom: 10px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 100px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .time-period {
        align-self: flex-start;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .strengths-grid,
    .influence-content {
        grid-template-columns: 1fr;
    }
    
    .tech-stack {
        justify-content: center;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

.strengths-grid > * {
    animation: fadeIn 0.6s ease-out;
}

.timeline-item {
    animation: fadeIn 0.8s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* 动画类 */
.animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

/* 视差效果 */
.parallax {
    transition: transform 0.1s linear;
}