/* ============================================
   个人引导页 - 全局样式
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #1a1a4e, #24243e);
    min-height: 100vh;
    overflow-x: hidden;
    color: #fff;
}

/* 粒子背景 */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* 主容器 */
.container {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
    padding: 60px 24px 30px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 头像区域 */
.avatar-section {
    text-align: center;
    margin-bottom: 36px;
}

.avatar-wrapper {
    margin: 0 auto 16px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 40px rgba(99,102,241,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: avatarGlow 3s ease-in-out infinite;
}

.avatar-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 50px rgba(99,102,241,0.5);
}

@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 8px 40px rgba(99,102,241,0.3); }
    50% { box-shadow: 0 8px 40px rgba(139,92,246,0.45); }
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: rgba(255,255,255,0.7);
}

.nickname {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(90deg, #c4b5fd, #a78bfa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.bio {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    font-weight: 300;
}

/* 社交链接 */
.links-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    width: 100%;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    padding: 16px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 90px;
}

.social-link:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

.social-name {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
}

/* 不同社交图标颜色 */
.social-link:nth-child(1):hover .social-icon { color: #07c160; }
.social-link:nth-child(2):hover .social-icon { color: #12b7f5; }
.social-link:nth-child(3):hover .social-icon { color: #fb7299; }
.social-link:nth-child(4):hover .social-icon { color: #2aabee; }

/* 随机一言 */
.quote-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 28px 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    width: 100%;
    position: relative;
}

.quote-mark {
    font-size: 48px;
    color: rgba(255,255,255,0.1);
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: 8px;
}

.quote-text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.65);
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.quote-text.fade-out {
    opacity: 0;
}

.quote-refresh {
    margin-top: 14px;
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quote-refresh:hover {
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}

/* 底部 */
.footer {
    margin-top: auto;
    text-align: center;
    padding: 20px 0;
    color: rgba(255,255,255,0.25);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.admin-link {
    color: rgba(255,255,255,0.2);
    text-decoration: none;
    font-size: 11px;
    transition: color 0.3s;
}

.admin-link:hover {
    color: rgba(255,255,255,0.5);
}

/* 响应式 */
@media (max-width: 480px) {
    .container {
        padding: 40px 16px 20px;
    }
    .avatar-wrapper {
        width: 100px;
        height: 100px;
    }
    .nickname {
        font-size: 24px;
    }
    .social-link {
        padding: 12px 14px;
        min-width: 70px;
    }
    .social-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
}
