/* 基本样式 */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(to bottom right, #1a1a2e, #16213e, #0f3460); /* */
    font-family: 'Arial', sans-serif; /* */
    height: 100vh;
    width: 100vw;
}

.container { /* */
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

canvas {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1;
    top: 0;
    left: 0;
}

/* 主标题样式 */
.main-title {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.main-title h1 {
    font-family: 'Dancing Script', cursive; /* */
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    opacity: 0.9;
}

.main-title h2.name-highlight {
    font-family: 'Dancing Script', cursive; /* */
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3); /* */
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradient 3s ease-in-out infinite; /* */
    margin-bottom: 15px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

@keyframes textGradient { /* */
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.main-title .subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    font-weight: 300;
}

.main-title .subtitle i {
    color: #ff6b6b;
    margin: 0 10px;
    animation: heartBeat 1.5s ease-in-out infinite; /* */
}

/* Note: .container is defined twice. This is the second definition from the original file. */
.container { /* */
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
}

/*---------------------- body_left -------------------------*/
.body_left {
    width: 300px;
    height: 300px;
    left: 50px;
    bottom: 110px;
    position: absolute;
    z-index: 98;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.body_left img {
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.body_left img:hover {
    transform: scale(1.05);
}

.magic-text {
    margin-top: 20px;
    color: white;
    font-size: 1.1rem;
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.magic-text i {
    color: #feca57;
    margin-right: 8px;
}

/*---------------------- body_right -------------------------*/
.body_right {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 98;
}

.floating-hearts {
    position: relative;
    width: 100px;
    height: 200px;
}

.floating-hearts i {
    position: absolute;
    color: #ff6b6b;
    font-size: 1.5rem;
    opacity: 0.7;
}

.heart-1 {
    top: 0;
    left: 20px;
    animation: float 3s ease-in-out infinite; /* */
}

.heart-2 {
    top: 40px;
    right: 10px;
    animation: float 3s ease-in-out infinite 0.5s; /* */
}

.heart-3 {
    top: 80px;
    left: 0;
    animation: float 3s ease-in-out infinite 1s; /* */
}

.heart-4 {
    top: 120px;
    right: 20px;
    animation: float 3s ease-in-out infinite 1.5s; /* */
}

.heart-5 {
    top: 160px;
    left: 30px;
    animation: float 3s ease-in-out infinite 2s; /* */
}

@keyframes float { /* */
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 1;
    }
}

/*---------------------- body_left -------------------------*/ /* Note: This comment block is duplicated. */

/* 简单标题样式 */
/* Consider if .simple-title and neonGlow are used, otherwise they could be removed. */
.simple-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.simple-title h1 {
    font-size: 5rem;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(to right, #ff6b6b, #ffb6b9, #8785a2, #7868e6); /* */
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5); /* */
    animation: neonGlow 2s ease-in-out infinite alternate; /* */
}

@keyframes neonGlow { /* */
    from {
        text-shadow: 0 0 10px rgba(255, 107, 107, 0.5), /* */
                     0 0 20px rgba(255, 107, 107, 0.3), /* */
                     0 0 30px rgba(255, 107, 107, 0.2); /* */
    }
    to {
        text-shadow: 0 0 20px rgba(255, 107, 107, 0.8), /* */
                     0 0 30px rgba(255, 107, 107, 0.5), /* */
                     0 0 40px rgba(255, 107, 107, 0.3); /* */
    }
}

/* 随机浮动爱心 */
/* .floating-heart class is defined, but JS uses .floating-element. Confirm usage. */
.floating-heart { /* */
    position: fixed;
    pointer-events: none;
    z-index: 100;
    transition: opacity 1s ease;
}

/* 爱心动画效果 */
/* JS defines elementBeat, elementFloat, elementSpin, elementPulse.
   heartBeat here is used by .main-title .subtitle i.
   Confirm if heartFloat, heartSpin, heartPulse here are used or if they are superseded by JS versions. */
@keyframes heartBeat { /* */
    0%, 100% { transform: scale(1); } /* */
    50% { transform: scale(1.2); } /* */
}

@keyframes heartFloat { /* */
    0% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(10deg); }
    66% { transform: translateY(-10px) rotate(-10deg); }
    100% { transform: translateY(-30px) rotate(0deg); }
}

@keyframes heartSpin { /* */
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.5); } /* */
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes heartPulse { /* */
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

/* The closing curly brace for the last keyframes 'heartPulse' was missing in the provided file. Added it. */
