/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Arial', sans-serif;
    color: #fff;
}

/* 容器样式 */
.container {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 背景图片样式 */
#background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* 半透明遮罩层 */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(50, 50, 50, 0.7); /* 半透明灰色 */
}

/* 内容区域样式 */
.content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    text-align: center;
    margin-top: -30vh; /* 将内容向上移动，位于顶部五分之一处 */
}

/* 个人资料区域 */
.profile {
    margin-bottom: 2rem;
}

.avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.profile h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.bio {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 链接按钮样式 */
.links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 30vh; /* 添加上边距，使按钮位于中间偏下位置 */
}

.link-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #25D366; /* WhatsApp绿色 */
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

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

.link-item:active {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

.link-item i {
    margin-right: 10px;
    font-size: 1.5rem;
}

/* 按钮悬停效果 */
.btn-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.link-item:hover .btn-hover-effect {
    transform: scale(2);
    opacity: 1;
}

/* WhatsApp按钮特殊样式 */
.whatsapp-btn {
    background-color: #25D366;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .profile h1 {
        font-size: 2rem;
    }
    
    .bio {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .profile h1 {
        font-size: 1.8rem;
    }
    
    .link-item {
        padding: 0.8rem;
    }
}