:root {
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --background: linear-gradient(135deg, #3f3249 20%, #1f1d3a 100%); /* 更浅的渐变 */
}

/*:root {*/
/*    --primary-color: #6366f1;*/
/*    --secondary-color: #a855f7;*/
/*    --background: linear-gradient(135deg, #32324d 50%, #2d2b55  100%); !* 更浅的渐变 *!*/
/*}*/

body {
    font-family: 'Poppins', sans-serif;
    /* 动态紫粉色渐变背景 */
    background: linear-gradient(-45deg, #5a3f6b, #3d2957, #40429a, #723185);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    box-sizing: border-box;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#sakuraCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.container {
    text-align: center;
    max-width: 800px;
    width: 90%;
    padding: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    position: relative;
    z-index: 1;
}

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

.avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
}

.links-error {
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
}

.link-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 0; /* 让内边距交给 link-button 控制 */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    /* 保证 link-button 绝对定位时，卡片有高度 */
    min-height: 70px; /* 可根据实际调整 */
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    transition: 0.5s;
}

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

.link-card:hover::before {
    left: 100%;
}

.link-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    /* 新增以下内容，让按钮撑满卡片 */
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    padding: 1.2rem;
    box-sizing: border-box;
    z-index: 2;
}

.link-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-note {
    color: #666;
    font-size: 0.8em;
    text-align: center;
    z-index: 2;
    opacity: 0.8;
    font-family: 'Poppins', sans-serif;
    padding: 0 0 15px;
}

.footer-note a {
    color: inherit; /* 继承父级颜色 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-note a:hover {
    color: var(--primary-color); /* 使用主题色 */
    text-decoration: underline;
}

.container {
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 1rem;
    }

    .avatar-wrapper {
        display: block;
    }

    .avatar {
        width: 140px;
        height: 140px;
    }

    h1 {
        font-size: 2rem;
    }
}

.custom-icon-blog {
    background-image: url('/static/images/icons/blog.ico');
    width: 32px;
    height: 32px;
}

.custom-icon-booth {
    background-image: url('/static/images/icons/booth.ico');
    width: 32px;
    height: 32px;
}

.custom-icon-vrchat {
    background-image: url('/static/images/icons/vrchat.ico');
    width: 32px;
    height: 32px;
}
