<style>
body {
margin: 0; font-family: Arial, sans-serif; background: #fff; color: #111;
}
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #000;
    display: flex;
    justify-content: space-between; /* 左右分布 */
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box; /* 保证 padding 不撑出屏幕 */
    z-index: 1000;
}
.nav ul {
    list-style: none;
    display: flex;
    gap: 20px;          /* 导航项间距 */
    flex-wrap: wrap;    /* 小屏幕时自动换行 */
    margin: 0;
    padding: 0;
}
.nav a { text-decoration: none; color: #fff; }

/* Hero 区基础样式 */
/* Hero 区基础 */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #f5f5f5;
    color: #111;
    font-family: Arial, sans-serif;
}

/* 打字机效果 */
.typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    font-size: 48px;
    font-weight: bold;
    width: 0ch;  /* 从0开始显示文字 */
    animation: typing 2s steps(12, end) forwards; /* 12个字符 */
}

/* 打字动画 */
@keyframes typing {
    from { width: 0ch; }
    to { width: 12ch; } /* 根据文字长度调整 */
}

/* 描述文字淡入 */
.description {
    opacity: 0;
    font-size: 18px;
    margin-top: 20px;
    animation: fadeIn 1.5s 3s forwards;  /* 延迟1.5秒显示 */
}

/* 欢迎语淡入下滑 */
.welcome-text {
    opacity: 0;
    font-size: 20px;
    margin-top: 30px;
    animation: slideDown 2s 4s forwards; /* 延迟3秒显示 */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.highlight {
    color: #000;
}





.btn {
margin-top: 20px; padding: 10px 20px; background: #111;
color: #fff; border-radius: 8px; text-decoration: none;
}
.section { padding: 80px 20px; text-align: center; background: #fff; }



/* 段落样式 */
.loading-text {
    font-size: 16px;
    text-align: center;
}

/* 动态三个点 */
.dots::after {
    content: '';
    display: inline-block;
    width: 1ch;        /* 每个点的宽度 */
    animation: dots 1s steps(3, end) infinite;
}





/* 动画关键帧 */
@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}







#projects h2 {
    font-size: 24px;        /* 可以根据需要调整大小 */
    margin-bottom: 50px;    /* 文字下方空隙，值越大间距越大 */
    text-align: center;
    color: #111;
}

/* 我的项目列表 */
.project-list {
display: flex; justify-content: center; gap: 50px;
flex-wrap: wrap;
}
/* 项目卡片效果 */
.project-card {
    width: 320px;
    height: 400px;             /* 增高留给图片 */
    background: linear-gradient(135deg, #66e3fe 0%, #50daf8 100%);
    border: none;
    border-radius: 10px;
    display: flex;
    flex-direction: column;     /* 图片在上，文字在下 */
    justify-content: flex-start;
    align-items: center;
    color: #000;
    padding: 10px;
    box-sizing: border-box;
    transition: transform 0.3s;
}
/* 卡片图片 */
.project-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;          /* 图片铺满，保持比例 */
    border-radius: 8px;
    margin-bottom: 10px;
}

.project-card span {
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
    font-size: 20px;
    color: #fff;            /* 白色文字 */
 
}

/* 悬停放大效果（可选） */
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}



/* 微信二维码样式 */
.wechat-qrcode-final {
    display: inline-block;       /* 独立容器 */
    width: 300px;                /* 固定宽度 */
    height: 300px;               /* 固定高度 */
    text-align: center;
    margin: 20px auto;           /* 居中 */
}

.wechat-qrcode-final img {
    width: 300px;                /* 固定宽度 */
    height: 300px;               /* 固定高度 */
    display: block;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.wechat-qrcode-final p {
    margin-top: 5px;
    font-size: 16px;
    color: #333;
}

/* 手机端 */
@media screen and (max-width: 480px){
    .wechat-qrcode-final {
        width: 300px;
        height: 300px;
    }
    .wechat-qrcode-final img {
        width: 300px;
        height: 300px;
    }
}


.footer { text-align: center; padding: 20px; background: #111; color: #fff; }
</style>