/* 1. 全局设置 */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* 2. 卡片容器 */
.container {
    background: white;
    width: 320px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
}

/* 3. 头像 */
.profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    background-color: #e0e0e0;
}

/* 4. 文字信息 */
h1 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #222;
}

.bio {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ★★★ 新增：标签样式核心代码 ★★★ */
.skills {
    display: flex;             /* 让标签横向排列 */
    justify-content: center;   /* 居中对齐 */
    gap: 10px;                 /* 标签之间的间距 */
    flex-wrap: wrap;           /* 如果一行放不下，自动换行 */
    margin-bottom: 30px;       /* 和下方按钮拉开距离 */
}

.tag {
    background-color: #f3f4f6; /* 浅灰背景 */
    color: #4b5563;            /* 深灰文字 */
    font-size: 13px;           /* 字体稍小显精致 */
    padding: 6px 14px;         /* 内边距：撑开胶囊的大小 */
    border-radius: 20px;       /* 变成圆角胶囊 */
    font-weight: 500;          /* 字体稍微加粗 */
}
/* ------------------------------- */

/* 5. 按钮样式 */
.btn {
    display: block;
    background-color: #222;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    transition: 0.2s;
}

.btn:hover {
    background-color: #000;
    transform: scale(1.02);
}

footer {
    margin-top: 30px;
    font-size: 12px;
    color: #aaa;
}