﻿.profile-card-wrapper {
    position: relative;
    width: 340px;
    height: 340px;
    perspective: 1000px;
    z-index: 10;
    margin: 0 auto;
}

.orbit-container {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: containerRotate 20s linear infinite;
    pointer-events: none; /* 避免轨道元素拦截鼠标事件 */
}

.orbit-item {
    position: absolute;
    font-size: 1.5em;
    animation: float 3s ease-in-out infinite;
    pointer-events: none; /* 单个轨道项也不应响应鼠标 */
}

.sun { top: -30px; left: 50%; transform: translateX(-50%); font-size: 2em; animation: sunGlow 4s ease-in-out infinite; }
.moon { bottom: -30px; left: 50%; transform: translateX(-50%); font-size: 1.8em; animation: moonGlow 4s ease-in-out infinite; }
.star1 { top: 30%; left: -30px; animation-delay: 0.5s; }
.star2 { top: 50%; right: -30px; animation-delay: 1s; }
.star3 { top: 70%; left: 50%; animation-delay: 1.5s; }

.profile-card {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 28px;
    padding: 28px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    perspective: 1000px;
    transform: perspective(1000px) rotateX(0) rotateY(0);
    will-change: transform;
    box-sizing: border-box;
    box-shadow: 0 20px 45px rgba(152, 101, 101, 0.14);
}

.card-content {
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    transform: translateZ(40px);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, transparent 15%, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.03) 75%, transparent 80%);
    animation: rotateLightEffect 15s linear infinite;
}

.profile-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2), rgba(255, 182, 193, 0.3), rgba(147, 112, 219, 0.3), rgba(255, 255, 255, 0.5));
    background-size: 200% 200%;
    filter: blur(4px);
    z-index: -1;
    animation: borderGlow 8s ease infinite;
}

.sparkle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    filter: blur(1px);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.3s; }
.sparkle:nth-child(3) { bottom: 15%; left: 20%; animation-delay: 0.6s; }
.sparkle:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 0.9s; }

.profile-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 50px rgba(130, 84, 84, 0.18), inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.profile-header { text-align: center; margin-bottom: 12px; }
.profile-header h2 { color: rgba(90, 70, 70, 0.9); font-size: 2em; margin: 0; text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); line-height: 1.1; }
.title { color: rgba(80, 70, 70, 0.7); font-size: 0.9em; margin-top: 6px; font-weight: 600; }
.profile-body { color: rgba(90, 80, 80, 0.9); }
.description { color: rgba(95, 85, 85, 0.88); font-size: 1rem; line-height: 1.55; text-align: center; }
.social-icons { display: flex; justify-content: center; gap: 15px; margin-top: 18px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 1.5em; border-radius: 50%; background: rgba(255, 255, 255, 0.14); transition: all 0.3s ease; }
.icon-btn:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.22); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }

/* copy toast */
.copy-toast {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.copy-toast.visible { opacity: 1; transform: translateX(-50%) scale(1); }

@keyframes containerRotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes sunGlow { 0%, 100% { text-shadow: 0 0 20px #ffd700; } 50% { text-shadow: 0 0 40px #ffd700; } }
@keyframes moonGlow { 0%, 100% { text-shadow: 0 0 20px #ffffff; } 50% { text-shadow: 0 0 40px #ffffff; } }
@keyframes rotateLightEffect { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes borderGlow { 0%, 100% { background-position: 0% 50%; opacity: 0.8; } 50% { background-position: 100% 50%; opacity: 1; } }
@keyframes sparkle { 0%, 100% { opacity: 0; transform: scale(0.5); } 50% { opacity: 1; transform: scale(1.2); } }

@media screen and (max-width: 768px) {
    .profile-card-wrapper { width: min(100%, 340px); height: 340px; margin: 0 auto; }
}
