* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 背景样式 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: 
        linear-gradient(45deg, rgba(0,0,0,0.4), rgba(0,0,0,0.2)),
        url('../images/bg1.jpg') center/cover fixed;
    animation: bgBreath 12s ease-in-out infinite;
    opacity: 0;
    transition: opacity 1s ease;
}

.background-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

@keyframes bgBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* 主内容区 */
.main-content {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #fff;
}

.content-box {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.loaded .content-box {
    opacity: 1;
    transform: translateY(0);
}

.glow-text {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式 */
.neon-button {
    padding: 12px 35px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.neon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    transition: 0.5s;
}

.neon-button:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.neon-button:hover::before {
    left: 100%;
}

/* 底部内容样式 */
.footer-content {
    width: 100%;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 社交图标样式 */
.social-links {
    display: flex;
    gap: 35px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
    animation: socialAppear 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 15px rgba(255,255,255,0.1);
    overflow: hidden;
    transform: translateZ(0);
}

.social-icon i {
    font-size: 1.6rem;
    color: rgba(255,255,255,0.9);
    transition: transform 0.3s ease;
}

.social-icon:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 0 25px rgba(255,255,255,0.2);
    z-index: 1;
}

.social-icon:hover i {
    transform: scale(1.1);
}

/* 自定义提示框样式*/
.social-icon::after {
    content: attr(title);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;

    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease-out; /* 加快过渡速度 */
    z-index: 100;
    pointer-events: none;
}

.social-icon::before {
    content: '';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease-out; /* 加快过渡速度 */
    z-index: 99;
    pointer-events: none;
}

.social-icon:hover::after,
.social-icon:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1); /* 移除Y轴平移 */
    transition-delay: 0.1s; /* 减少延迟时间 */
}

.social-icon:hover::before {
    transform: translateX(-50%) rotate(45deg);
}

/* 托管信息样式 */
.hosting-info {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1s;
    opacity: 0;
}

@keyframes socialAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .glow-text {
        font-size: 2.5rem;
    }
    
    .background-container {
        background-attachment: scroll;
        animation: none;
    }
    
    .neon-button {
        width: 100%;
        max-width: 280px;
    }
    
    .social-links {
        gap: 25px;
    }
    
    .social-icon {
        width: 48px;
        height: 48px;
        transform: scale(0.95);
    }
    
    .social-icon:hover {
        transform: translateY(-5px) scale(1);
    }
    
    .social-icon i {
        font-size: 1.4rem;
    }
    
    .hosting-info {
        font-size: 0.8rem;
        margin-top: 10px;
    }
    
    .footer-content {
        padding: 15px;
    }
    
    /* 移动设备上调整提示框位置 */
    .social-icon::after {
        bottom: 120%;
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .social-icon::before {
        bottom: 110%;
    }
}