* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #FFFBD9;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding: 40px 20px;
}

/* 背景圆点容器 */
.dots-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* 浮动圆点 */
.dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float linear infinite;
    filter: blur(0.5px);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -40px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, -60px) rotate(180deg);
    }
    75% {
        transform: translate(-40px, -20px) rotate(270deg);
    }
}

/* 主卡片 */
.card {
    background: white;
    border-radius: 20px;
    padding: 60px 50px;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    z-index: 1;
    position: relative;
    margin: 0 auto;
}

/* 个人简介区域+头像 */
.info-section {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #ffdd99;
}

.label {
    font-size: 16px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 500;
}

/* 新增名字彩色放大样式 */
.name-color {
    font-size: 34px;
    font-weight: bold;
    background: linear-gradient(90deg, #ff4757, #ffa502, #2ed573, #1e90ff, #a55eea);
    -webkit-background-clip: text;
    color: transparent;
}

.content {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    flex: 1;
    min-width: 280px;
}

.avatar-box .avatar-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffe66d;
}

.content a {
    color: #4ECDC4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content a:hover {
    color: #3BA99F;
    text-decoration: underline;
}

/* 板块包装器 分区美化 */
.card-wrap {
    margin-bottom: 45px;
    padding: 24px;
    background: #fffdf5;
    border-radius: 16px;
    border: 1px solid #ffeec2;
}

.card-wrap:last-child {
    margin-bottom: 0;
}

/* 板块标题 */
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FFE66D;
}

/* 项目作品图片组 */
.project-img-group {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.pro-img {
    width: 200px;
    height: 135px;
    border-radius: 10px;
    object-fit: cover;
    transition: 0.3s;
}

.pro-img:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px #00000018;
}

.hobby-img-box {
    margin-bottom: 18px;
}

.hobby-img {
    width: 170px;
    height: 110px;
    border-radius: 10px;
    object-fit: cover;
}

/* 内容文本区域 */
.content-text {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

/* 项目盒子 左右布局：图标+文字 */
.item-box {
    margin-bottom: 16px;
    padding: 16px;
    background-color: #FFF9E6;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.item-icon {
    font-size: 24px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffe66d55;
    border-radius: 8px;
    flex-shrink: 0;
}

.item-text {
    flex: 1;
}

.item-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
}

.item-box:last-child {
    margin-bottom: 0;
}

.item-box strong {
    color: #333;
    font-size: 17px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }

    .card {
        padding: 40px 30px;
    }

    .content {
        font-size: 16px;
    }

    .section-title {
        font-size: 18px;
    }

    .content-text {
        font-size: 15px;
    }

    .item-box {
        padding: 13px;
    }

    .pro-img {
        width: 160px;
        height: 110px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
    }

    .content {
        font-size: 15px;
    }

    .section-title {
        font-size: 17px;
    }

    .content-text {
        font-size: 14px;
    }

    .item-box {
        padding: 11px;
        flex-wrap: wrap;
    }

    .item-box strong {
        font-size: 16px;
    }

    .avatar-box {
        width: 100%;
        text-align: center;
    }

    .avatar-box .avatar-img {
        width: 110px;
        height: 110px;
    }
}
