/* 🌍 全局样式 */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
    padding: 20px;
}

/* 🏆 标题样式 */
h1 {
    color: #0056b3;  /* 让标题颜色更柔和 */
}

h2 {
    color: #004494;
    margin-top: 20px;
}

/* 👤 个人简介卡片 */
.profile-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    margin: auto;
}

.profile-card img {
    width: 150px;  /* 头像大小 */
    border-radius: 50%;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

/* 📸 图片样式（通用） */
img {
    border-radius: 10px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    max-width: 100%;  /* 确保图片不会超出容器 */
}

/* 📜 介绍文字 */
p {
    max-width: 800px;
    margin: 10px auto;
    line-height: 1.6;
}

/* 🔗 按钮样式 */
.contact-button {
    display: inline-block;
    background-color: #0073e6;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.contact-button:hover {
    background-color: #0056b3;
}

/* 📸 让 Masonry 照片墙 居中对齐 */
.masonry-gallery {
    display: flex;
    flex-wrap: wrap;  /* 允许换行 */
    justify-content: center;  /* 💡 让整个图片区域 水平居中 */
    gap: 15px;  /* 图片间距 */
    padding: 10px;
    max-width: 90%;  /* 控制宽度 */
    margin: 0 auto;  /* 💡 让整个区域在页面居中 */
}

/* 🎨 让图片大小统一 */
.masonry-gallery img {
    width: calc(25% - 15px);  /* 💡 让每行最多 4 张，保持间距 */
    max-width: 220px;  /* 限制图片最大宽度 */
    height: auto;  /* 保持图片比例 */
    border-radius: 10px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}

/* 📱 响应式优化 */
@media (max-width: 1024px) {
    .masonry-gallery img {
        width: calc(33% - 15px);  /* 平板端 3 列 */
    }
}

@media (max-width: 768px) {
    .masonry-gallery img {
        width: calc(50% - 15px);  /* 手机端 2 列 */
    }
}

@media (max-width: 480px) {
    .masonry-gallery img {
        width: 100%;  /* 小屏幕 1 列 */
    }
}
