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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    /* 梦幻蓝紫渐变背景，还原图片色调 */
    background: linear-gradient(135deg, #a6c0fe 0%, #c1dcf0 50%, #fbc2eb 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

/* 星空背景层 */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.star, .moon {
    position: absolute;
    user-select: none;
    opacity: 0.8;
}

.star {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.moon {
    color: #ffe600;
    text-shadow: 0 0 8px rgba(255, 230, 0, 0.6);
}

/* 主容器 */
.container {
    width: 100%;
    max-width: 480px; /* 适配手机屏幕宽度 */
    padding: 40px 20px;
    z-index: 1; /* 确保在背景之上 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 头部样式 */
.profile {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.bio {
    font-size: 0.9rem;
    color: #4a4a4a;
}

/* 链接列表样式 */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-card {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 18px 24px;
    border-radius: 16px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    animation: fadeInUp 0.8s ease backwards;
}

/* 错开按钮出现的动画时间 */
.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }
.link-card:nth-child(5) { animation-delay: 0.5s; }
.link-card:nth-child(6) { animation-delay: 0.6s; }
.link-card:nth-child(7) { animation-delay: 0.7s; }
.link-card:nth-child(8) { animation-delay: 0.8s; }
.link-card:nth-child(9) { animation-delay: 0.9s; }

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.icon {
    font-size: 1.5rem;
    width: 40px; /* 固定宽度让文字对齐 */
    text-align: center;
    margin-right: 15px;
    transition: color 0.2s ease;
}

/* SVG 图标特殊样式对齐 */
.svg-icon {
    width: 24px;
    height: 24px;
    margin-right: 23px; /* 微调间距以对齐字体图标 */
    margin-left: 8px;
}

/* 针对不同软件设置品牌色（悬停时显示） */
.link-card:hover .fa-whatsapp { color: #25D366; }
.link-card:hover .fa-line { color: #00C300; }
.link-card:hover .fa-telegram { color: #0088cc; }
.link-card:hover .fa-tiktok { color: #000000; }
.link-card:hover .fa-youtube { color: #FF0000; }
.link-card:hover .fa-facebook { color: #1877F2; }
.link-card:hover .fa-instagram { color: #E4405F; }
.link-card:hover .fa-envelope { color: #EA4335; }

/* 悬停时改变 X 图标的颜色 (X 的品牌色就是黑色，这里可以加深强调) */
.x-card:hover { color: #000; }

/* 底部样式 */
footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
    animation: fadeIn 2s ease;
}

.copyright {
    font-size: 0.75rem;
    margin-top: 5px;
    color: #777;
}

/* 动画定义 */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
