/* 全局变量和基础样式 */
:root {
    --bg-color: #FFF9E6;
    --card-bg: #FFFFFF;
    --primary: #FF8E72;
    --secondary: #6EC1E4;
    --accent: #FFD93D;
    --text: #2D3436;
    --border: 3px solid #2D3436;
    --shadow: 5px 5px 0px #2D3436;
}

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

body {
    font-family: 'Fredoka', 'ZCOOL KuaiLe', sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: radial-gradient(#2D3436 1px, transparent 1px);
    background-size: 20px 20px;
}

.container {
    width: 90%;
    max-width: 400px;
    background: var(--card-bg);
    border: var(--border);
    border-radius: 25px;
    box-shadow: var(--shadow);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0px #2D3436;
}

/* 头像样式 */
.avatar-box {
    width: 120px;
    height: 120px;
    background: var(--accent);
    border: var(--border);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    overflow: hidden;
    position: relative;
}

.face-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.face {
    font-size: 50px;
}

h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--primary);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

p.bio {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #636e72;
}

/* 标签样式 */
.tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tag {
    background: var(--secondary);
    padding: 5px 15px;
    border: 2px solid #2D3436;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 2px 2px 0px #2D3436;
}

/* 链接按钮样式 */
.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    display: block;
    text-decoration: none;
    color: var(--text);
    background: #fff;
    padding: 15px;
    border: var(--border);
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 4px 4px 0px #2D3436;
    transition: all 0.2s;
    position: relative;
}

.btn:hover {
    background: var(--primary);
    color: white;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #2D3436;
}

.btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #2D3436;
}

/* 装饰性的小元素 */
.deco {
    position: absolute;
    font-size: 24px;
    animation: float 3s ease-in-out infinite;
}
.deco-1 { top: -15px; right: -15px; transform: rotate(15deg); }
.deco-2 { bottom: -15px; left: -15px; transform: rotate(-15deg); animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-10px) rotate(25deg); }
}

/* 首页右上角的后台按钮 */
.admin-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 5px 15px;
    border: 2px solid #2D3436;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 2px 2px 0px #2D3436;
    transition: all 0.2s;
}

.admin-btn:hover {
    transform: scale(1.05);
    background: #ff7b5a;
}