* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background-color: #0a0a1a;
    min-height: 100vh;
    color: #e0e0e0;
    overflow-x: hidden;
}

.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.main-container {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 20px 30px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-wrap {
    margin-bottom: 20px;
    animation: avatarFloat 4s ease-in-out infinite;
}

@keyframes avatarFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.avatar-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 300%;
    animation: ringRotate 4s linear infinite;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.4), 0 0 60px rgba(118, 75, 162, 0.2);
}

@keyframes ringRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 3s ease-in-out infinite;
    letter-spacing: 2px;
    text-align: center;
}

@keyframes titleShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.visitor-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.count-icon {
    font-size: 16px;
}

.visitor-count strong {
    color: #667eea;
    font-size: 16px;
    font-weight: 700;
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
    margin-bottom: 30px;
}

.capsule-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.capsule-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.capsule-link:hover::before {
    left: 100%;
}

.capsule-link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.capsule-link:active {
    transform: translateY(0) scale(0.98);
}

.link-text {
    position: relative;
    z-index: 1;
}

.link-arrow {
    position: relative;
    z-index: 1;
    font-size: 18px;
    opacity: 0.8;
    transition: transform 0.3s;
}

.capsule-link:hover .link-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.footer-info {
    margin-top: auto;
    padding-top: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

.music-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.music-toggle:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.15);
}

.music-toggle.paused {
    opacity: 0.5;
}

.music-icon {
    font-size: 22px;
}

@keyframes musicSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.music-toggle:not(.paused) .music-icon {
    animation: musicSpin 3s linear infinite;
}

@media (max-width: 480px) {
    .main-container {
        padding: 30px 16px 20px;
    }
    .avatar-ring {
        width: 100px;
        height: 100px;
    }
    .site-title {
        font-size: 20px;
    }
    .capsule-link {
        padding: 12px 18px;
        font-size: 14px;
    }
    .links-grid {
        gap: 10px;
    }
    .visitor-count {
        font-size: 13px;
        padding: 6px 16px;
    }
}

@media (max-width: 360px) {
    .links-grid {
        grid-template-columns: 1fr;
    }
}
