:root {
    --primary-color: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #ffffff;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --text-light: #64748b;
    --spacing: 2rem;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* 通用样式 */
.section {
    padding: 3rem var(--spacing);
    margin-top: 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 导航栏样式优化 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 0.8rem 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(37, 99, 235, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    padding: 0 var(--spacing);
    max-width: 1200px;
    margin: 0 auto;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-links li {
    position: relative;
}

/* 添加分隔线 */
.nav-links li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background: rgba(37, 99, 235, 0.1);
}

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
    border: 1px solid transparent;
}

.nav-links li a:hover {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.1);
}

.nav-links li a::after {
    display: none;
}

.nav-links li a.active {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

/* 响应式导航栏 */
@media (max-width: 1200px) {
    .nav-links {
        gap: 0.8rem;
    }
    
    .nav-links li a {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: var(--spacing);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--secondary-color);
        flex-direction: column;
        padding: 0.5rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(37, 99, 235, 0.15);
        border-top: none;
    }

    .nav-links.active {
        display: flex;
    }

    /* 移动端移除垂直分隔线 */
    .nav-links li:not(:last-child)::after {
        display: none;
    }

    /* 添加水平分隔线 */
    .nav-links li:not(:last-child) {
        border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 1rem 1.5rem;
        text-align: center;
        font-size: 1rem;
        border-radius: 0;
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        background-color: rgba(37, 99, 235, 0.05);
        border-color: transparent;
    }
}

/* 个简介部分优化 */
.profile {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-light);
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tagline {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* 技能卡片样式优化 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.skill-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    opacity: 1;
}

.skill-card:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 99, 235, 0.15);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

.skill-card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.skill-level {
    height: 8px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 4px;
    margin: 1rem 0;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.skill-level .progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    border-radius: 4px;
}

.skill-details {
    list-style: none;
    text-align: left;
    margin-top: 1.2rem;
    background: rgba(37, 99, 235, 0.03);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.skill-details li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.5;
}

.skill-details li:last-child {
    margin-bottom: 0;
}

.skill-details li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-card {
        padding: 1.5rem;
    }
}

/* 项目卡片样式优化 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.project-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    opacity: 1;
}

.project-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
}

.project-date {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.project-description {
    background: rgba(37, 99, 235, 0.03);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 0.8rem 0;
}

.project-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-description li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-description li:last-child {
    margin-bottom: 0;
}

.project-description li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.project-tags span {
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 1400px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* 证书展示样式优化 */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.certificate-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    position: relative;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    opacity: 1;
}

.certificate-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.certificate-info {
    padding: 1.2rem;
    background: rgba(37, 99, 235, 0.02);
}

.certificate-info h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.certificate-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .certificates-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
}

/* 页脚优化 */
.footer {
    background: var(--text-color);
    color: var(--secondary-color);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.copyright-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.copyright-info p:first-child {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .social-links {
        margin-top: 1rem;
    }
}

/* 教育背景样式优化 */
.timeline {
    position: relative;
    padding: 2rem 0;
    max-width: 900px;
    margin: 0 auto;
}

/* 主时间线 */
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 3px;
    background: linear-gradient(to bottom, 
        var(--primary-color) 0%,
        var(--primary-light) 50%,
        var(--primary-color) 100%);
    border-radius: 3px;
    animation: timelineGlow 3s ease-in-out infinite;
}

/* 部圆点 - 改用 ::after 而不是第二个 ::before */
.timeline::after {
    content: '';
    position: absolute;
    left: -4px;
    bottom: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    animation: bottomDotPulse 2s ease-in-out infinite;
}

/* 顶部箭头 - 使用新的伪元素 */
.timeline-top-arrow {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    width: 14px;
    height: 14px;
    border-left: 3px solid var(--primary-color);
    border-top: 3px solid var(--primary-color);
    transform: rotate(45deg);
    background: var(--secondary-color);
    animation: arrowPulse 2s ease-in-out infinite;
}

/* 时间点样式 */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 3px solid var(--primary-color);
    z-index: 1;
    transition: all 0.3s ease;
    animation: timelineDot 1.5s ease-in-out infinite;
}

/* 连接线 */
.timeline-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 2rem;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.timeline-item:hover::after {
    transform: scaleX(1);
}

.timeline-item {
    display: flex;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.timeline-item:hover {
    transform: translateX(10px);
    opacity: 1;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    min-width: 140px;
    padding: 1rem 1.2rem;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    color: white;
    margin-right: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* 工商管理本科背景 */
.timeline-item:last-child .timeline-date {
    background-image: linear-gradient(
        rgba(37, 99, 235, 0.95),
        rgba(96, 165, 250, 0.95)
    );
    background-size: cover;
    background-position: center;
}

/* 中级工程师背景 */
.timeline-item:nth-child(2) .timeline-date {
    background-image: linear-gradient(
        rgba(37, 99, 235, 0.8),
        rgba(37, 99, 235, 0.8)
    ), url('https://images.unsplash.com/photo-1573164713714-d95e436ab8d6');
}

/* 网站推广背景 */
.timeline-item:nth-child(3) .timeline-date {
    background-image: linear-gradient(
        rgba(37, 99, 235, 0.8),
        rgba(37, 99, 235, 0.8)
    ), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f');
}

/* 网站建设背景 */
.timeline-item:nth-child(4) .timeline-date {
    background-image: linear-gradient(
        rgba(37, 99, 235, 0.8),
        rgba(37, 99, 235, 0.8)
    ), url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97');
}

/* Java/PHP开发背景 */
.timeline-item:nth-child(5) .timeline-date {
    background-image: linear-gradient(
        rgba(37, 99, 235, 0.8),
        rgba(37, 99, 235, 0.8)
    ), url('https://images.unsplash.com/photo-1461749280684-dccba630e2f6');
}

/* 大学学习背景 */
.timeline-item:nth-child(6) .timeline-date {
    background-image: linear-gradient(
        rgba(37, 99, 235, 0.8),
        rgba(37, 99, 235, 0.8)
    ), url('https://images.unsplash.com/photo-1498243691581-b145c3f54a5a');
}

/* 对于没有对应图片的卡片，使用渐变背景 */
.timeline-item:nth-child(n+7) .timeline-date {
    background-image: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.95),
        rgba(96, 165, 250, 0.95)
    );
}

/* 悬停效果 */
.timeline-date::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.3)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-date {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.timeline-item:hover .timeline-date::before {
    opacity: 1;
}

.timeline-content {
    flex: 1;
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

.timeline-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.timeline-link:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateX(5px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        padding-left: 1.5rem;
    }
    
    .timeline-date {
        margin-bottom: 1rem;
        margin-right: 0;
        align-self: flex-start;
    }

    .timeline-item:hover {
        transform: translateX(5px);
    }
}

/* 工作经历卡片样式优化 */
.experience-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.experience-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    opacity: 1;
}

.experience-header {
    background: rgba(37, 99, 235, 0.03);
    padding: 2rem;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.experience-header h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.experience-header .company {
    display: inline-block;
    font-size: 1rem;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 20px;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.experience-header .date {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
}

.experience-content {
    padding: 2rem;
    background: var(--secondary-color);
}

.experience-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.experience-content li:last-child {
    margin-bottom: 0;
}

.experience-content li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.reference {
    margin: 1.5rem -2rem -2rem -2rem;
    padding: 1.5rem 2rem;
    background: rgba(37, 99, 235, 0.03);
    border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.reference p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.reference a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.3rem 0.8rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.reference a:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    text-decoration: none;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .experience-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .experience-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .experience-header,
    .experience-content {
        padding: 1.5rem;
    }
    
    .reference {
        margin: 1.5rem -1.5rem -1.5rem -1.5rem;
        padding: 1.5rem;
    }
}

/* 个人照片展示样式 */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.photo-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    position: relative;
}

.photo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    opacity: 1;
}

.photo-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    transition: transform 0.3s ease;
}

.photo-info {
    padding: 1.2rem;
    background: rgba(37, 99, 235, 0.02);
    text-align: center;
}

.photo-info h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.photo-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .photos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .photo-image {
        height: 300px;
    }
}

/* 基础信息样式 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    opacity: 1;
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.info-content {
    flex: 1;
}

.info-content h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-content ul {
    list-style: none;
    padding: 0;
}

.info-content li {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.info-content li:last-child {
    margin-bottom: 0;
}

.info-content li span {
    color: var(--text-color);
    font-weight: 500;
    margin-right: 0.5rem;
    min-width: 4rem;
}

.info-content li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.info-content li a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 1.5rem;
    }
}

/* 聊天窗口样式优化 */
.chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: var(--secondary-color);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.2);
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 1.2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-header h3 i {
    font-size: 1.2rem;
}

.chat-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.chat-toggle i {
    font-size: 1.1rem;
}

.chat-body {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.2rem;
}

/* 聊天图标样式 */
.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
    cursor: pointer;
    z-index: 1000;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-icon i {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.chat-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.chat-icon:hover i {
    transform: scale(1.1);
}

/* 显示/隐藏状态 */
.chat-container.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.chat-icon.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

/* 消息样式优化 */
.message {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    align-items: flex-end;
}

.message.bot {
    align-items: flex-start;
}

.message-content {
    max-width: 85%;
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message.user .message-content {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 5px;
}

.message.bot .message-content {
    background: rgba(37, 99, 235, 0.08);
    color: var(--text-color);
    border-bottom-left-radius: 5px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

/* 输入框样式 */
.chat-input {
    padding: 1rem;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
    background: rgba(37, 99, 235, 0.02);
    display: flex;
    gap: 0.8rem;
}

.chat-input textarea {
    flex: 1;
    height: 40px;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 20px;
    resize: none;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.chat-input textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.chat-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* 聊天窗口响应式样式 */
@media (max-width: 768px) {
    .chat-container {
        width: 100%;
        height: 100vh;
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        border-radius: 0;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }

    .chat-container.active {
        transform: translateY(0);
    }

    .chat-container.hidden {
        transform: translateY(100%);
    }

    .chat-body {
        height: calc(100vh - 60px);
        display: flex;
        flex-direction: column;
    }

    .chat-messages {
        flex: 1;
        overflow-y: auto;
    }

    .chat-input {
        position: relative;
        bottom: 0;
        background: var(--secondary-color);
        padding: 1rem;
        border-top: 1px solid rgba(37, 99, 235, 0.1);
    }
}

/* 平板设备样式 */
@media (min-width: 769px) and (max-width: 1024px) {
    .chat-container {
        width: 320px;
        right: 15px;
        bottom: 15px;
    }

    .chat-body {
        height: 350px;
    }
}

/* 横屏模式样式 */
@media (max-height: 500px) {
    .chat-container {
        height: 100vh;
        max-height: 100vh;
    }

    .chat-body {
        height: calc(100vh - 60px);
    }

    .chat-input {
        padding: 0.8rem;
    }

    .chat-input textarea {
        height: 40px;
        padding: 0.5rem 1rem;
    }
}

/* 确保在大屏幕上的最大宽度 */
@media (min-width: 1025px) {
    .chat-container {
        max-width: 400px;
    }
}

/* 基础响应式布局 */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
        padding: 0 1.5rem;
    }

    .profile {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .profile-img {
        width: 200px;
        height: 200px;
        margin: 0 auto 2rem;
    }

    .contact-info {
        justify-content: center;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .experience-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .profile {
        padding: 1.5rem 1rem;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .profile-info h1 {
        font-size: 2rem;
    }

    .skills-grid,
    .experience-cards,
    .projects-grid,
    .certificates-grid,
    .photos-grid,
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-card,
    .experience-card,
    .project-card,
    .certificate-card,
    .photo-card,
    .info-card {
        padding: 1.2rem;
    }

    .timeline-item {
        flex-direction: column;
        padding-left: 2rem;
    }

    .timeline-date {
        margin-bottom: 1rem;
        margin-right: 0;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item::before {
        left: -4px;
    }

    .photo-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }

    .section {
        padding: 1.5rem 0;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .profile-info h1 {
        font-size: 1.8rem;
    }

    .contact-info {
        gap: 1rem;
    }

    .contact-info a {
        width: 40px;
        height: 40px;
    }

    .skill-card,
    .experience-card,
    .project-card,
    .certificate-card,
    .photo-card,
    .info-card {
        padding: 1rem;
    }

    .timeline-date {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .photo-image {
        height: 200px;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .profile {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 2rem;
    }

    .profile-img {
        margin: 0;
    }

    .contact-info {
        justify-content: flex-start;
    }

    .photo-image {
        height: 180px;
    }
}

/* 打印样式优化 */
@media print {
    .chat-container,
    .chat-icon {
        display: none;
    }
}

/* 图片显示优化 */
.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-light);
}

.photo-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.certificate-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

/* 移动端图片响应式调整 */
@media (max-width: 768px) {
    .profile-img {
        width: 200px;
        height: 200px;
        margin: 0 auto 1.5rem;
    }

    .photo-image {
        height: 300px;
        object-fit: contain;
        background-color: #f8f9fa;
    }

    .certificate-image {
        height: auto;
        max-height: 250px;
        object-fit: contain;
        padding: 1rem;
        background-color: #f8f9fa;
    }
}

/* 小屏幕进一步优化 */
@media (max-width: 480px) {
    .profile-img {
        width: 150px;
        height: 150px;
    }

    .photo-image {
        height: 250px;
    }

    .certificate-image {
        max-height: 200px;
    }
}

/* 所有卡片的默认样式优化 */
.timeline-content,
.skill-card,
.experience-card,
.project-card,
.certificate-card,
.photo-card,
.info-card {
    background: linear-gradient(
        to bottom right,
        rgba(37, 99, 235, 0.05),
        rgba(96, 165, 250, 0.08)
    );
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.12);
    transform: translateY(-5px);
}

/* 内容样式优化 */
.skill-level .progress,
.project-tags span,
.certificate-info,
.experience-header,
.info-content,
.photo-info {
    background: rgba(37, 99, 235, 0.08);
}

/* 图标样式优化 */
.skill-card i,
.info-card i {
    transform: scale(1.1);
}

/* 移除所有悬停效果 */
.timeline-content:hover,
.skill-card:hover,
.experience-card:hover,
.project-card:hover,
.certificate-card:hover,
.photo-card:hover,
.info-card:hover,
.skill-card:hover i,
.info-card:hover i {
    transform: none;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.12);
} 