* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --text-color: #2d3436;
    --bg-color: rgba(255, 255, 255, 0.85);
    --card-bg: rgba(255, 255, 255, 0.5);
    --link-hover: #4834d4;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.loliapi.com/acg/');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    color: #fff;
    margin-top: 20px;
    font-size: 1.1em;
    letter-spacing: 2px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.persons-container {
    text-align: center;
    margin-bottom: 25px;
}

.persons-container .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ff69b4;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
    transition: transform 0.3s ease;
}

.persons-container .avatar:hover {
    transform: scale(1.1);
}

.persons-container .name {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 15px;
}

.persons-container .bio {
    font-size: 0.95em;
    color: #636e72;
    margin-top: 8px;
}

.typing-container {
    text-align: center;
    min-height: 40px;
    margin-bottom: 25px;
}

#typed {
    font-size: 1.1em;
    color: var(--primary-color);
    font-weight: 500;
}

.typed-cursor {
    color: var(--primary-color);
    font-weight: bold;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.links a:hover {
    background: linear-gradient(135deg, #87ceeb 0%, #00bfff 100%);
    color: #fff;
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(135, 206, 235, 0.4);
}

.links a i {
    width: 30px;
    font-size: 1.3em;
    margin-right: 12px;
    text-align: center;
}

.friend-links {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.friend-links h3 {
    text-align: center;
    color: var(--text-color);
    font-size: 1.1em;
    margin-bottom: 20px;
    position: relative;
}

.friend-links h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.friend-links-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.friend-links-container a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.friend-links-container a:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #fff;
}

.friend-links-container a img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
}

.friend-links-container a i {
    margin-right: 8px;
    font-size: 1.1em;
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
    }
    
    .persons-container .avatar {
        width: 80px;
        height: 80px;
    }
    
    .persons-container .name {
        font-size: 1.5em;
    }
    
    .friend-links-container {
        grid-template-columns: 1fr;
    }
}