/* 重置样式和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 通用按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.primary-btn {
    background: #4361ee;
    color: white;
}

.primary-btn:hover {
    background: #3a56d4;
}

.secondary-btn {
    background: transparent;
    color: #4361ee;
    border: 2px solid #4361ee;
}

.secondary-btn:hover {
    background: #4361ee;
    color: white;
}

/* 区块标题样式 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4361ee;
    border-radius: 2px;
}

/* 头部导航样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4361ee;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4361ee;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 首页部分样式 */
.home {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
}

.home .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-content {
    flex: 1;
    padding-right: 50px;
}

.home-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.home-content h2 {
    font-size: 2rem;
    color: #4361ee;
    margin-bottom: 1.5rem;
}

.home-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

.highlight {
    color: #4361ee;
}

.btn-group .btn {
    margin-right: 15px;
}

.home-image {
    flex: 1;
    text-align: center;
}

.home-image img {
    max-width: 100%;
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 5px solid white;
}

/* 关于我部分样式 */
.about {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.personal-info {
    margin: 2rem 0;
}

.info-item {
    display: flex;
    margin-bottom: 1rem;
}

.label {
    font-weight: 600;
    width: 80px;
    color: #333;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 2rem;
    color: #4361ee;
    margin-bottom: 0.5rem;
}

/* 技能部分样式 */
.skills {
    padding: 100px 0;
    background: #f8f9fa;
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #4361ee;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: #4361ee;
    border-radius: 5px;
    position: relative;
    transition: width 1s ease-in-out;
}

/* 工作经历时间线样式 */
.experience {
    padding: 100px 0;
    background: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #4361ee;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
    padding: 30px 0;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 50px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 50px);
    text-align: left;
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background: #4361ee;
    color: white;
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    white-space: nowrap;
}

.timeline-content {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #4361ee;
}

.timeline-content p {
    color: #555;
    line-height: 1.7;
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #4361ee;
}

.timeline-content p {
    color: #555;
    line-height: 1.7;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #4361ee;
}

/* 项目经验样式 */
.projects {
    padding: 100px 0;
    background: #f8f9fa;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-10px);
}

.project-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}

.project-period {
    display: inline-block;
    padding: 3px 10px;
    background: #e9ecef;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.project-role {
    color: #4361ee;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.project-item p {
    color: #555;
    line-height: 1.7;
}

/* 教育背景样式 */
.education {
    padding: 100px 0;
    background: white;
}

.education-content {
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.education-date {
    background: #4361ee;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
}

.education-text h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.education-text h4 {
    font-size: 1.3rem;
    color: #4361ee;
    margin-bottom: 15px;
}

.education-text p {
    color: #555;
    line-height: 1.7;
}

.education-languages {
    max-width: 800px;
    margin: 50px auto 0;
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.education-languages h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* 联系方式部分样式 */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact-info p {
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 25px 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #4361ee;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.contact-item:hover {
    background: white;
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.15);
    transform: translateX(5px);
    cursor: pointer;
}

.contact-item i {
    font-size: 1.5rem;
    color: #4361ee;
    margin-right: 20px;
    margin-top: 3px;
    min-width: 30px;
}

.contact-item div {
    flex: 1;
    text-align: left;
}

.contact-item div h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item div p {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 3rem;
    justify-content: center;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    align-items: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #09bb07 0%, #07c160 100%);
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(9, 187, 7, 0.4);
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(9, 187, 7, 0.5);
}

/* 页脚样式 */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 25px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-content p {
    margin: 0;
    font-size: 15px;
    color: #bdc3c7;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 0;
}

.footer-links .separator {
    color: #7f8c8d;
    font-weight: 300;
    margin: 0 5px;
}

.footer-links a {
    color: #bdc3c7;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.footer-links a:hover {
    color: #fff;
    background: rgba(67, 97, 238, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.footer-links .beian-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links .beian-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.footer-links a:hover .beian-icon {
    filter: brightness(1.2);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .home .container {
        flex-direction: column;
        text-align: center;
    }
    
    .home-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .skills-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .footer {
        padding: 20px 0 15px;
    }
    
    .footer-content {
        gap: 10px;
    }
    
    .footer-content p {
        font-size: 13px;
    }
    
    .footer-links {
        gap: 10px;
        padding: 6px 0;
    }
    
    .footer-links a {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .footer-links .beian-icon {
        width: 16px;
        height: 16px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding: 0 0 0 80px !important;
        text-align: left !important;
    }
    
    .timeline-item .timeline-date {
        margin-bottom: 10px;
        text-align: left !important;
    }
    
    .education-item {
        flex-direction: column;
        text-align: center;
    }
    
    .education-date {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    .home-content h1 {
        font-size: 2.5rem;
    }
    
    .home-content h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .home {
        padding: 120px 0 80px;
    }
    
    .home-content h1 {
        font-size: 2rem;
    }
    
    .btn-group .btn {
        display: block;
        margin: 10px 0;
        width: 100%;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .education-item {
        padding: 20px;
    }
    
    .education-date {
        margin-bottom: 15px;
    }
    
    .experience-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .period {
        align-self: flex-start;
    }
}