/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f6fa;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #2563eb;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 首页部分 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}

.btn-secondary {
    border: 2px solid #2563eb;
    color: #2563eb;
    background: #fff;
}

.btn-secondary:hover {
    background: #2563eb;
    color: #fff;
}

.btn-success {
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}

.btn-success:hover {
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.profile-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.profile-info h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 通用部分样式 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1f2937;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin: 1rem auto 0;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 2px;
}

/* 关于我部分 */
.about {
    padding: 5rem 0;
    background: white;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2.5rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(37,99,235,0.06);
    padding: 3rem 2.5rem 2.5rem 2.5rem;
    max-width: 900px;
    margin: 0 auto 2.5rem auto;
    position: relative;
}

.about-content::before {
    content: "";
    position: absolute;
    left: 2rem; top: 2rem;
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #2563eb 60%, #3b82f6 100%);
    border-radius: 50%;
    opacity: 0.12;
}

.about-text {
    max-width: 820px;
    margin: 0 auto 3rem auto;
    text-align: left;
    font-size: 1.08rem;
    line-height: 2;
    color: #374151;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    padding: 2.5rem 2.5rem 2rem 2.5rem;
}

.about-text p {
    font-size: 1.12rem;
    color: #374151;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #f8fafc;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.04);
    padding: 2rem 0;
    margin-top: 2rem;
}

.stat {
    flex: 1;
    min-width: 160px;
    text-align: center;
    background: none;
    box-shadow: none;
    padding: 0;
}

.stat h3 {
    color: #2563eb;
    font-size: 2.2rem;
}

.stat p {
    color: #6b7280;
    font-weight: 500;
}

/* 技能部分 */
.skills {
    padding: 5rem 0;
    background: linear-gradient(90deg, #f0f4ff 0%, #f8fafc 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
    font-size: 1.2rem;
}

.skill-category h3 i {
    color: #2563eb;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-name {
    font-weight: 500;
    color: #374151;
}

.skill-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 4px;
    transition: width 1s ease;
}

/* 项目部分 */
.projects {
    padding: 5rem 0;
    background: #f8fafc;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.project-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.97rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #1d4ed8;
}

.project-period {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.project-features {
    margin: 0.5rem 0 1rem 0;
    padding-left: 1.2rem;
    color: #374151;
    font-size: 0.98rem;
}

.project-features li {
    list-style: disc;
    margin-bottom: 0.25rem;
}

.personal-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* 经历部分 */
.experience {
    padding: 5rem 0;
    background: #fff !important;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #2563eb 0%, #3b82f6 100%);
    z-index: 1;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 32px;
}

.timeline-marker {
    position: relative;
    z-index: 2;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    border: 4px solid #2563eb;
    box-shadow: 0 0 0 4px #e5e7eb;
    margin-right: 32px;
    margin-left: 0;
    flex-shrink: 0;
    left: 0;
    top: 0;
}

.timeline-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 2rem 2.5rem 2rem 3rem !important;
    min-width: 0;
    flex: 1;
    text-align: left;
    margin-top: 0;
    position: relative;
    left: 0;
    margin-left: 48px;
}

.timeline-content > * {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.timeline-content ul,
.timeline-content ol {
    padding-left: 2rem !important;
    margin-left: 0 !important;
}

.timeline-content li {
    margin-left: 0;
}

.timeline-header {
    margin-bottom: 1rem;
}

.timeline-header h3 {
    color: #1f2937;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: #2563eb;
    font-weight: 600;
    margin-right: 1rem;
}

.timeline-date {
    color: #6b7280;
    font-size: 0.9rem;
}

.timeline-content p {
    padding-left: 1.5rem !important;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    color: #6b7280;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-content li::before {
    content: '•';
    color: #2563eb;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 移除竖直居中单列样式 */
.timeline-item,
.timeline-item:nth-child(odd) .timeline-content,
.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 联系部分 */
.contact {
    padding: 5rem 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: #2563eb;
    width: 40px;
    text-align: center;
}

.contact-item h3 {
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #6b7280;
}

.social-links {
    margin-top: 2rem;
}

.social-links h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--social-color);
}

.social-link i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--social-color);
}

.social-link span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
}

.social-link .custom-csdn {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background: #fc5531;
    border-radius: 4px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚 */
.footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .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: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        text-align: left;
        padding-left: 2rem;
        padding-right: 0;
    }

    .timeline-marker {
        left: 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.company-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.company-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.company-period {
    color: #2563eb;
    font-size: 0.98rem;
    margin-bottom: 0.25rem;
}

.company-title {
    color: #374151;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.company-content p {
    color: #6b7280;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.timeline-content h1,
.timeline-content h2,
.timeline-content h4,
.timeline-content .timeline-header,
.timeline-content p,
.timeline-content .company,
.timeline-content .subtitle {
    padding-left: 1.5rem !important;
}

/* 卡片通用美化 */
.skill-category, .project-card, .timeline-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(37,99,235,0.07);
    transition: box-shadow 0.3s, transform 0.3s;
}
.skill-category:hover, .project-card:hover, .timeline-content:hover {
    box-shadow: 0 10px 32px rgba(37,99,235,0.13);
    transform: translateY(-4px) scale(1.02);
}

@media (max-width: 900px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
@media (max-width: 600px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .contact-item {
        padding: 1.2rem 1rem;
    }
} 