* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* 导航栏 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

    nav ul {
        list-style: none;
        display: flex;
        justify-content: center;
        gap: 2rem;
        padding: 0;
        margin: 0;
    }
    nav li {
        display: inline-block;
    }

    nav a {
        color: #333;
        text-decoration: none;
        font-weight: 500;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

        nav a:hover,
        nav a.active {
            background: #333;
            color: white;
        }
/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap; /* 确保导航栏在小屏幕上仍然是横向排列 */
        justify-content: space-around;
    }

    nav li {
        flex: 1; /* 让每个导航项占据相等的宽度 */
        text-align: center;
    }
}

/* 通用容器 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    min-height: 100vh;
    padding: 5rem 0;
    display: flex;
    align-items: center;
}

/* 介绍区域 */
#introduction {
    background: #fff;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.intro-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 300;
    animation: fadeInLeft 0.8s ease-out;
}

.intro-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
    animation: fadeInLeft 0.8s ease-out 0.2s both;
}

.skills-list {
    list-style: none;
    animation: fadeInLeft 0.8s ease-out 0.4s both;
}

    .skills-list li {
        padding: 0.5rem 0;
        border-bottom: 1px solid #e0e0e0;
        transition: all 0.3s ease;
    }

        .skills-list li:hover {
            background: #f9f9f9;
            padding-left: 1rem;
        }

.intro-image {
    border: none;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
    animation: fadeInRight 0.8s ease-out;
}
    .intro-image img {
    max-width: 50%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 50px;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 展示区域 */
#showcase {
    background: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 300;
    position: relative;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 2px;
        background: #333;
    }

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.showcase-item {
    background: white;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .showcase-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

.showcase-image {
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

    .showcase-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
        transition: left 0.5s;
    }
.showcase-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: auto;
    border-radius: 10px;
}

.showcase-item:hover .showcase-image::before {
    left: 100%;
}

.showcase-content {
    padding: 2rem;
}

    .showcase-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: #333;
        font-weight: 500;
    }

    .showcase-content p {
        color: #666;
        margin-bottom: 1rem;
    }

.showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: #333;
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
}

.showcase-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #333;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .showcase-link:hover {
        background: #555;
        transform: translateY(-2px);
    }

/* 统计数据 */
.stats-section {
    background: #333;
    color: white;
    padding: 3rem 0;
    margin: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #ccc;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .intro-text h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
}

.footer-text {
    text-align: right;
    color: #ccc;
}

    .footer-text p {
        margin-bottom: 0.5rem;
    }
    .footer-text a {
        color: dimgray;
    }

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .footer-text {
        text-align: center;
    }
}
