#profile-module {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 70px;
    padding: 40px 0;
    perspective: 2000px;
}

.profile-card {
    width: min(100%, 650px);
    aspect-ratio: 16 / 9.5;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
    opacity: 0;
    transform: scale(0.95);
    visibility: hidden;
}

.profile-card.visible {
    visibility: visible;
    opacity: 1;
    animation: grand-entrance 2.8s 1s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}

@keyframes grand-entrance {
    0% {
        opacity: 1;
        transform: scale(0.95) rotateY(0deg);
    }
    30% {
        transform: scale(1.05) rotateY(20deg);
    }
    60% {
        transform: scale(1.05) rotateY(180deg);
    }
    90%, 100% {
        transform: scale(1) rotateY(360deg);
    }
}

.profile-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.profile-card-inner.is-flipped {
    transform: rotateY(180deg);
}

.profile-card-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #111;
    background-image: url('../assets/logos/your-logo.svg'); /* <--- 在这里替换成你的Logo路径 */
    background-size: 80px;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    transform: rotateY(180deg);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    opacity: 1;
    transition: opacity 0.3s 0.3s ease;
    pointer-events: none;
}

.profile-card.is-interactive .profile-card-inner::after {
    opacity: 0;
}


.profile-card-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.profile-card-face::before,
.profile-card-face::after {
    content: '';
    position: absolute;
    inset: -50px;
    z-index: -1;
    background-color: var(--card-bg-color, #0a0a0a);
    filter: blur(25px);
}

.profile-card-face::before {
    background-image: radial-gradient(circle, hsla(212, 100%, 70%, 0.22), transparent 40%);
    animation: aurora-flow-1 20s infinite alternate ease-in-out;
}

.profile-card-face::after {
    background-image: radial-gradient(circle, hsla(348, 83%, 70%, 0.22), transparent 40%);
    animation: aurora-flow-2 28s infinite alternate ease-in-out;
}

@keyframes aurora-flow-1 {
    0% { transform: translateX(-20%) translateY(-20%) rotate(0deg); }
    50% { transform: translateX(20%) translateY(0%) rotate(180deg); }
    100% { transform: translateX(-20%) translateY(20%) rotate(360deg); }
}

@keyframes aurora-flow-2 {
    0% { transform: translateX(20%) translateY(20%) rotate(350deg); }
    100% { transform: translateX(-20%) translateY(-20%) rotate(0deg); }
}

.profile-card-front,
.profile-card-back {
    box-shadow: 
        inset 0 0 1px 1px rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 2px 1px -1px rgba(255, 255, 255, 0.2),
        0 4px 2px -2px rgba(255, 255, 255, 0.2),
        0 8px 4px -4px rgba(255, 255, 255, 0.2),
        0 16px 8px -8px rgba(255, 255, 255, 0.2);
}

.profile-card-front {
    background: rgba(28, 28, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.profile-card-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform-style: preserve-3d;
    transform: translateZ(40px);
}

.profile-card-glare,
.profile-card-edge-glare {
    position: absolute;
    border-radius: 20px;
    pointer-events: none;
    z-index: 5;
}

.profile-card-glare {
    inset: 0;
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.profile-card-edge-glare {
    /* ✨ --- FIX: Make the layer much larger than the card --- ✨ */
    inset: -100px;
    background: linear-gradient(0deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    will-change: transform;
}

.profile-card:hover .profile-card-glare {
    opacity: 1;
}

.profile-main-info h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin: 0 0 8px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(100, 180, 255, 0.7);
    overflow-wrap: anywhere;
}

.profile-main-info .headline {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--muted-text);
    max-width: 90%;
    overflow-wrap: anywhere;
}

.profile-details {
    margin-top: 1.5rem;
}

.profile-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    transform: translateZ(20px);
}

.profile-details li {
    margin-bottom: 0.75rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.profile-card.is-active .profile-details li:nth-child(1) {
    transition-delay: 0.2s;
}

.profile-card.is-active .profile-details li:nth-child(2) {
    transition-delay: 0.3s;
}

.profile-card.is-active .profile-details li:nth-child(3) {
    transition-delay: 0.4s;
}

.profile-card.is-active .profile-details li {
    opacity: 1;
    transform: translateY(0);
}

.profile-action-zone {
    position: absolute;
    width: 100px;
    height: 80px;
    z-index: 3;
    cursor: pointer;
    transform: translateZ(60px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-action-zone.cv {
    top: 20px;
    right: 20px;
}

.profile-action-zone.qr {
    bottom: 20px;
    right: 20px;
}

.profile-action-zone .icon {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

.profile-action-zone svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.profile-card.is-active .profile-action-zone .icon {
    opacity: 0.7;
    transform: scale(1);
}

.profile-action-zone:hover .icon {
    opacity: 1;
    transform: scale(1.1);
}

.profile-action-label {
    position: absolute;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none;
    white-space: nowrap;
}

.profile-action-zone.cv .profile-action-label {
    bottom: 0;
    transform: translateY(10px);
}

.profile-action-zone.qr .profile-action-label {
    top: 0;
    transform: translateY(-10px);
}

.profile-action-zone:hover .profile-action-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-card-back {
    transform: rotateY(180deg);
    background: rgba(220, 220, 230, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.qr-code-container {
    padding: 15px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qr-code-container canvas {
    display: block;
}

.qr-code-instructions {
    text-align: center;
}

.qr-code-instructions h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.qr-code-instructions p {
    margin: 5px 0 0;
    color: #f0f0f0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.btn-flip-back {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.btn-flip-back:hover {
    opacity: 1;
}

.btn-flip-back svg {
    width: 24px;
    height: 24px;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 60%);
    border-radius: 50%;
    filter: blur(1px);
    will-change: transform, opacity;
    animation-name: particle-float;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    transform: translateZ(10px);
}

@keyframes particle-float {
    0% { transform: translateY(0) scale(1) translateZ(10px); opacity: 0.5; }
    50% { transform: translateY(-15px) scale(1.1) translateZ(10px); opacity: 0.8; }
    100% { transform: translateY(0) scale(1) translateZ(10px); opacity: 0.5; }
}

@media (max-width: 576px) {
    .profile-card-content-wrapper {
        padding: 25px;
    }
    .profile-action-zone {
        width: 80px;
        height: 60px;
    }
    .profile-action-zone.cv {
        top: 10px;
        right: 10px;
    }
    .profile-action-zone.qr {
        bottom: 10px;
        right: 10px;
    }
    .profile-action-zone:hover .profile-action-label {
        display: none;
    }
}