:root {
    --primary-color: #eef0f4;
    --secondary-color: #ffffff;
    --text-color: #404852;
    --hover-color: #e8ecf2;
    --accent-color: #4f75ad;
    --link-shadow: rgba(79, 117, 173, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(120deg, 
        #ebe6df 0%, 
        #e5e1ea 35%, 
        #e1e6ec 65%, 
        #e9e5df 100%
    );
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 1rem;
    position: relative;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.main-title {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.profile-section {
    position: absolute;
    top: 2rem;
    right: 0;
    margin-bottom: 0;
}

.profile-links {
    display: flex;
    padding-right: 3rem;
}

.profile-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #d5cec6;
    background-color: rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--link-shadow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-link i {
    font-size: 0.9rem;
}

.profile-link span {
    font-size: 0.9rem;
}

.profile-link:hover {
    background-color: rgba(255, 255, 255, 0.65);
    border-color: #4f75ad;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.025);
}

.links-container {
    display: flex;
    padding: 2rem 0.5rem;
    padding-top: 2rem;
    width: 80%;
    margin: 0 auto;
}

.link-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 4rem;
    width: 100%;
}

.link-card {
    flex: 0 0 30%;
    min-width: 320px;
    max-width: 380px;
    transform: rotate(-15deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.7rem;
    padding-top: 0.4rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.link-card:nth-child(2n) {
    transform: rotate(-15deg);
}

.link-card:hover {
    transform: rotate(0) translateY(-2px) scale(1.01);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
    z-index: 1;
}

.link-card:nth-child(2n):hover {
    transform: rotate(0) translateY(-2px) scale(1.01);
}

.card-icon {
    font-size: 2.5rem;
    margin-right: 0;
    margin-bottom: 0.2rem;
    padding: 0.15rem;
    border-radius: 12px;
    min-width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #404852;
}

.card-icon .fa-twitter {
    color: #1DA1F2;
    font-size: 2.7rem;
}

.card-icon .fa-blog {
    color: #E95420;
    font-size: 2.7rem;
}

.card-icon .fa-coins {
    color: #FFD700;
    font-size: 2.7rem;
}

.link-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-content h3 {
    font-size: 1.3rem;
    margin: 0 0 0.15rem 0;
    font-weight: 600;
    text-align: center;
}

.card-content p {
    font-size: 1rem;
    margin: 0;
    color: #666;
    opacity: 0.8;
    text-align: center;
}

.logo-container {
    text-align: center;
    margin: 1rem 0 7rem;
    padding: 0.25rem;
}

.logo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    background-color: var(--secondary-color);
}

.logo:hover {
    transform: scale(1.05);
}

@media (max-width: 1400px) {
    .links-container {
        width: 90%;
    }
    .link-group {
        gap: 3rem;
    }
}

@media (max-width: 1200px) {
    .links-container {
        width: 95%;
    }
    .link-group {
        flex-wrap: wrap;
        gap: 4rem;
    }
}

.qr-popup {
    position: fixed;
    top: -100%;
    right: 2rem;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
}

.qr-popup.show {
    top: 6rem;
    opacity: 1;
}

.qr-content {
    background: white;
    padding: 11px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.qr-content p {
    margin-top: 4px;
    margin-bottom: 5px;
    color: var(--text-color);
    font-size: 12px;
}

#qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.7);
    transform-origin: center;
    margin: -30px;
}

#qrcode canvas {
    border-radius: 8px;
}

.close-button {
    position: absolute;
    bottom: 0px;
    right: 6px;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    color: #333;
    font-size: 20px;
    font-weight: 500;
    border-radius: 50%;
    transition: all 0.2s ease;
    user-select: none;
}

.close-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #000;
}

@media (max-width: 768px) {
    .profile-section {
        position: static;
        margin-bottom: 1rem;
    }

    .profile-links {
        padding-right: 0;
        justify-content: flex-end;
        max-width: 800px;
        margin: 0 auto;
    }

    .profile-link {
        padding: 0.5rem;
    }

    .profile-link span {
        display: none;
    }

    .profile-link i {
        font-size: 1rem;
        margin: 0;
    }

    .main-title {
        margin-top: 0.5rem;
    }
}

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