* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    max-width: 1200px;
    width: 100%;
}

.profile-section {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    animation: fadeIn 1s ease-in;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.profile-section h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.profile-section p {
    font-size: 1.1em;
    margin: 10px 0;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-email {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    margin-top: 15px;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.contact-email:hover {
    background: rgba(255,255,255,0.3);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card i {
    font-size: 2.8em;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    color: transparent;
}

.card h2 {
    color: #333;
    margin-bottom: 12px;
    font-size: 1.4em;
}

.card p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.4;
}

.card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.qq i { color: #12B7F5 !important; }
.wechat i { color: #07C160 !important; }
.douyin i { color: #FE2C55 !important; }
.facebook i { color: #1877F2 !important; }
.x i { color: #000000 !important; }
.youtube i { color: #FF0000 !important; }
.blog i { color: #FF6B6B !important; }
.tiktok i { color: #010101 !important; }
.discord i { color: #5865F2 !important; }
.telegram i { color: #26A5E4 !important; }
.whatsapp i { color: #25D366 !important; }
.bilibili i { color: #00A1D6 !important; }
.instagram i { color: white !important; background: linear-gradient(45deg, #833AB4, #E1306C);}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-content button {
    padding: 10px 25px;
    background: #764ba2;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-content button:hover {
    background: #667eea;
}

.footer {
    width: 100%;
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
    color: #fff;
    font-size: 0.95em;
}

.footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    margin: 0 5px;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .profile-section h1 {
        font-size: 2.2em;
    }

    .card {
        padding: 20px;
    }

    .footer {
        font-size: 0.8em;
        padding: 12px 0;
    }
}