/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    /* background: url('../background.webp') no-repeat center center fixed; */
    background-size: cover;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: background 0.5s ease;
}

.container {
    max-width: 1200px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
    transition: all 0.5s ease;
    opacity: 1;
    transform: translateY(0);
}

.container.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* 头部样式 */
header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.avatar-placeholder {
    font-size: 50px;
    color: #aaa;
}

.name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.tagline {
    font-size: 16px;
    color: #666;
}

/* 主内容区样式 */
main {
    padding: 20px 0;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.contact-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 3px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* 联系卡片样式 */
.contact-card {
    perspective: 1000px;
    height: 200px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    background-color: white;
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.icon-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    font-size: 30px;
    color: white;
    transition: all 0.3s ease;
}

.contact-card:hover .icon-container {
    transform: scale(1.1);
}

/* 各种社交媒体图标颜色 */
.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #005f8c 100%);
}

.discord {
    background: linear-gradient(135deg, #7289da 0%, #4a67cf 100%);
}

.email {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

.card-front h3 {
    font-size: 18px;
    font-weight: 500;
    margin-top: 10px;
    color: #333;
}

.card-back p {
    font-size: 16px;
    margin-bottom: 15px;
    word-break: break-all;
}

.contact-link {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* 页脚样式 */
footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: #777;
    margin-top: 20px;
}

/* 页脚样式 */
footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: #777;
    margin-top: 20px;
}

/* 预加载动画 */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    margin: 0 10px;
    animation: bounce 1.5s infinite ease-in-out;
}

.circle:nth-child(1) {
    animation-delay: 0s;
}

.circle:nth-child(2) {
    animation-delay: 0.2s;
}

.circle:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.skip-button {
    margin-top: 30px;
    padding: 8px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.skip-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 加载提示样式 */
.loading-tip {
    margin-top: 15px;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    max-width: 80%;
    line-height: 1.4;
    animation: fadeIn 0.5s ease;
}

.loading-progress {
    width: 250px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin-top: 30px;
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #00dbde 0%, #fc00ff 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .contact-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .name {
        font-size: 24px;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .avatar-placeholder {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        height: 180px;
    }
    
    .name {
        font-size: 22px;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
    }
    
    .avatar-placeholder {
        font-size: 35px;
    }
    
    .settings-panel {
        padding: 10px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* 为不同元素设置不同的动画延迟 */
.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.4s; }