@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=ZCOOL+KuaiLe&family=ZCOOL+QingKe+HuangYou&display=swap');

body {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    background-image: 
        radial-gradient(#fff 10%, transparent 11%),
        radial-gradient(#fff 10%, transparent 11%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    background-repeat: repeat;
    font-family: 'ZCOOL QingKe HuangYou', cursive;
    overflow: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: floatIn 1s ease-out;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

h1 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 32px;
    background: linear-gradient(
        45deg,
        #ff6b8b 0%,
        #ff8da1 25%,
        #ff6b8b 50%,
        #ff8da1 75%,
        #ff6b8b 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 
        0 2px 10px rgba(255, 107, 139, 0.3),
        0 4px 20px rgba(255, 107, 139, 0.2);
    margin: 20px 0;
    letter-spacing: 3px;
    animation: 
        titleGlow 2s ease-in-out infinite,
        gradientMove 3s linear infinite;
    position: relative;
    padding: 10px 30px;
    text-align: center;
    font-weight: 600;
}

h1::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(
        45deg,
        rgba(255, 107, 139, 0.15),
        rgba(255, 141, 161, 0.15)
    );
    filter: blur(15px);
    z-index: -1;
    opacity: 0.8;
    border-radius: 25px;
}

@keyframes gradientMove {
    to {
        background-position: 200% center;
    }
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 
            0 2px 10px rgba(255, 107, 139, 0.3),
            0 4px 20px rgba(255, 107, 139, 0.2);
        filter: brightness(1);
    }
    50% {
        text-shadow: 
            0 2px 15px rgba(255, 107, 139, 0.4),
            0 4px 25px rgba(255, 107, 139, 0.3),
            0 6px 30px rgba(255, 107, 139, 0.2);
        filter: brightness(1.1);
    }
}

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

button {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 20px;
    padding: 12px 36px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#yes {
    background: linear-gradient(45deg, #ff6b8b, #ff8e8e);
    color: white;
    box-shadow: 
        0 4px 15px rgba(255, 107, 139, 0.3),
        0 0 0 2px rgba(255, 107, 139, 0.2),
        0 0 30px rgba(255, 107, 139, 0.4);
    animation: glowing 2s ease-in-out infinite;
}

#yes::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #ff6b8b, #ff8e8e, #ff6b8b);
    border-radius: 50px;
    z-index: -1;
    filter: blur(10px);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

#yes:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(255, 107, 139, 0.4),
        0 0 0 3px rgba(255, 107, 139, 0.3),
        0 0 40px rgba(255, 107, 139, 0.5);
}

#yes:hover::before {
    opacity: 0.8;
}

#no {
    background: linear-gradient(45deg, #7986cb, #3f51b5);
    color: white;
    box-shadow: 
        0 4px 15px rgba(63, 81, 181, 0.3),
        0 0 0 2px rgba(63, 81, 181, 0.2),
        0 0 30px rgba(63, 81, 181, 0.4);
}

#no::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #7986cb, #3f51b5, #7986cb);
    border-radius: 50px;
    z-index: -1;
    filter: blur(10px);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

#no:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(63, 81, 181, 0.4),
        0 0 0 3px rgba(63, 81, 181, 0.3),
        0 0 40px rgba(63, 81, 181, 0.5);
}

#no:hover::before {
    opacity: 0.8;
}

@keyframes glowing {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(255, 107, 139, 0.3),
            0 0 0 2px rgba(255, 107, 139, 0.2),
            0 0 30px rgba(255, 107, 139, 0.4);
    }
    50% {
        box-shadow: 
            0 4px 20px rgba(255, 107, 139, 0.4),
            0 0 0 3px rgba(255, 107, 139, 0.3),
            0 0 40px rgba(255, 107, 139, 0.6);
    }
}

.heart-float {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    animation: floatHeart 6s ease-in-out forwards;
    filter: drop-shadow(0 0 5px rgba(255, 182, 193, 0.5));
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
    transform-origin: center;
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
}

@keyframes floatHeart {
    0% {
        transform: translate3d(0, 100vh, 0) scale(0.3);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
        transform: translate3d(0, 20vh, 0) scale(0.9);
    }
    100% {
        transform: translate3d(0, -20vh, 0) scale(1);
        opacity: 0;
    }
}

@keyframes colorChange {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.success-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3vh 20px;
    overflow: hidden;
    z-index: 9999;
    box-sizing: border-box;
}

/* 动态背景效果 */
.success-scene::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    animation: bgShine 8s ease-in-out infinite;
    z-index: -1;
}

/* 爱心雨 */
.heart-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.rain-heart {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    animation: heartRain var(--duration, 3s) linear infinite;
    top: -20px;
}

/* 漂浮气泡 */
.love-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.love-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1));
    animation: bubbleFloat var(--duration, 4s) ease-in-out infinite;
    backdrop-filter: blur(2px);
}

/* 闪烁星光 */
.success-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.success-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #ff69b4;
    animation: starTwinkle var(--duration, 2s) ease-in-out infinite;
}

/* 动画定义 */
@keyframes heartRain {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(1);
        opacity: 0;
    }
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    25% {
        opacity: 0.8;
    }
    50% {
        transform: translate(var(--moveX, 30px), var(--moveY, -30px)) scale(1.2);
        opacity: 0.5;
    }
    75% {
        opacity: 0.8;
    }
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
        filter: hue-rotate(360deg);
    }
}

@keyframes bgShine {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: twinkle 1.5s infinite;
}

.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    animation: floatUp 4s linear infinite;
    opacity: 0.6;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-20vh) rotate(360deg);
        opacity: 0;
    }
}

.yes-text {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: clamp(22px, 4vw, 32px);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin: 15px 0;
    z-index: 1;
    text-align: center;
    max-width: min(90%, 600px);
    word-break: break-word;
    letter-spacing: 2px;
}

.yes-image {
    width: clamp(100px, 20vw, 140px);
    height: auto;
    margin: 15px 0;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    z-index: 1;
    animation: floatImage 3s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.love-message-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    margin: 20px 0;
    perspective: 1000px;
}

.love-message {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: clamp(16px, 2.5vw, 20px);
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 35px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    margin: 0;
    opacity: 0;
    transform-origin: center;
    transform: translateY(30px) scale(0.8);
    will-change: transform, opacity;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 0 30px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.love-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shine 3s infinite;
    pointer-events: none;
}

.love-message::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 25px;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.2)
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.love-message.animate {
    animation: messageAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes messageAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8) rotate(-2deg);
    }
    60% {
        transform: translateY(-5px) scale(1.02) rotate(1deg);
    }
    80% {
        transform: translateY(2px) scale(0.98) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@keyframes shine {
    0% {
        left: -100%;
        opacity: 0;
    }
    20% {
        opacity: 0.5;
    }
    60% {
        left: 100%;
        opacity: 0;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.love-message:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.2);
}

.love-message:hover::after {
    opacity: 1;
}

.love-message:nth-child(odd) {
    align-self: flex-start;
    transform-origin: left center;
}

.love-message:nth-child(even) {
    align-self: flex-end;
    transform-origin: right center;
}

.love-message:nth-child(1) { animation-delay: 0.1s; }
.love-message:nth-child(2) { animation-delay: 0.3s; }
.love-message:nth-child(3) { animation-delay: 0.5s; }
.love-message:nth-child(4) { animation-delay: 0.7s; }
.love-message:nth-child(5) { animation-delay: 0.9s; }
.love-message:nth-child(6) { animation-delay: 1.1s; }
.love-message:nth-child(7) { animation-delay: 1.3s; }

/* 优化版权信息样式 */
.copyright {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 20px;
    border-radius: 20px;
    box-shadow: 
        0 2px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 182, 193, 0.2);
    text-align: center;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1001;
    cursor: pointer;
    width: fit-content;
    max-width: 90%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.copyright-content {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    white-space: nowrap;
    width: 100%;
    justify-content: center;
}

.copyright .main-text {
    color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.copyright .expand-btn {
    padding: 3px 8px;
    font-size: 12px;
    color: #ff6b8b;
    background: rgba(255, 107, 139, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.copyright .expand-btn:hover {
    background: rgba(255, 107, 139, 0.2);
    transform: translateY(-1px);
}

.copyright .star-text {
    color: rgba(0, 0, 0, 0.6);
    font-size: 12px;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding-left: 0;
    margin-left: 0;
    border-left: 1px solid transparent;
    line-height: 1.6;
}

.copyright .extra-text {
    display: block;
    color: rgba(0, 0, 0, 0.5);
    font-size: 11px;
    margin-top: 4px;
}

.copyright.expanded .star-text {
    opacity: 1;
    max-width: 200px;
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.copyright a {
    color: #ff6b8b;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 2px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .copyright {
        font-size: 11px;
        padding: 6px 12px;
        max-width: 95%;
        bottom: 10px;
    }

    .copyright-content {
        gap: 4px;
    }

    .copyright .main-text {
        font-size: 11px;
    }

    .copyright .expand-btn {
        padding: 2px 6px;
        font-size: 10px;
        margin: 0 2px;
    }

    .copyright .star-text {
        font-size: 10px;
    }

    .copyright.expanded .star-text {
        margin-left: 4px;
        padding-left: 4px;
    }

    .copyright .extra-text {
        font-size: 10px;
        margin-top: 3px;
    }

    .copyright a {
        margin: 0 1px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .copyright {
        font-size: 10px;
        padding: 4px 10px;
    }

    .copyright .main-text {
        font-size: 10px;
    }

    .copyright .expand-btn {
        padding: 1px 4px;
        font-size: 9px;
    }

    .copyright .star-text {
        font-size: 9px;
    }

    .copyright.expanded .star-text {
        margin-left: 3px;
        padding-left: 3px;
    }
}

@media (min-width: 768px) {
    .success-scene {
        padding: 3vh 40px;
        gap: 1vh;
    }

    .yes-text {
        font-size: 24px;
        margin: 1vh 0;
    }

    .yes-image {
        width: 100px;
        margin: 1vh 0;
    }

    .love-message-container {
        max-width: 900px;
        margin: 1vh auto;
        padding: 1vh;
        gap: 1vh;
        height: auto;
        max-height: none;
    }

    .love-message {
        font-size: 16px;
        padding: 10px 30px;
        min-width: 180px;
        max-width: 550px;
        margin: 0.5vh 0;
        line-height: 1.3;
    }

    .copyright {
        bottom: 15px;
        padding: 8px 25px;
        font-size: 13px;
    }
}

@media (min-width: 1200px) {
    .success-scene {
        padding: 4vh 40px;
    }

    .yes-text {
        font-size: 28px;
    }

    .yes-image {
        width: 110px;
    }

    .love-message {
        font-size: 18px;
        padding: 12px 35px;
    }
}

@media (max-width: 767px) {
    .container {
        width: 90%;
        margin: auto;
        padding: 20px;
        box-sizing: border-box;
    }

    .buttons {
        width: 100%;
        justify-content: space-evenly;
    }

    button {
        padding: 8px 24px;
        font-size: 16px;
    }

    .yes-text {
        font-size: 24px;
        padding: 0 15px;
    }
    
    .yes-image {
        width: 140px;
    }
    
    .love-message {
        font-size: 16px;
        padding: 12px 25px;
        min-width: 150px;
        max-width: 85%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 24px;
        letter-spacing: 2px;
        padding: 8px 15px;
    }

    .success-scene {
        padding: 30px 15px 70px;
    }

    .yes-text {
        font-size: 20px;
        margin: 12px 0;
    }

    .yes-image {
        width: 100px;
        margin: 12px 0;
    }

    .love-message {
        font-size: 16px;
        padding: 10px 20px;
        margin: 6px 0;
        max-width: 90%;
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#musicToggle {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    box-shadow: 
        0 4px 15px rgba(255, 107, 139, 0.2),
        0 0 0 1px rgba(255, 107, 139, 0.1),
        inset 0 0 15px rgba(255, 107, 139, 0.1);
    overflow: hidden;
}

/* 发光边框效果 */
#musicToggle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b8b, #ff8da1, #ff6b8b);
    background-size: 200% 200%;
    animation: gradientBorder 3s linear infinite;
    z-index: -2;
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* 内部装饰 */
#musicToggle::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    z-index: -1;
    transition: all 0.3s ease;
}

/* 音符装饰 */
.music-notes {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
}

.music-notes::before,
.music-notes::after {
    content: '♪';
    position: absolute;
    font-size: 12px;
    background: linear-gradient(45deg, #ff6b8b, #ff4d6d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    text-shadow: 0 0 5px rgba(255, 107, 139, 0.5);
    filter: drop-shadow(0 0 3px rgba(255, 107, 139, 0.3));
}

.music-notes::before {
    top: 8px;
    right: 8px;
    transform: rotate(15deg);
}

.music-notes::after {
    bottom: 8px;
    left: 8px;
    transform: rotate(-15deg);
}

#musicToggle i {
    font-size: 18px;
    background: linear-gradient(45deg, #ff6b8b, #ff4d6d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 139, 0.2));
}

/* 播放状态 */
#musicToggle.playing {
    transform: scale(1.05);
    box-shadow: 
        0 6px 20px rgba(255, 107, 139, 0.3),
        0 0 0 2px rgba(255, 107, 139, 0.2),
        inset 0 0 20px rgba(255, 107, 139, 0.15);
}

#musicToggle.playing i {
    animation: musicIconDance 2s ease-in-out infinite;
}

#musicToggle.playing .music-notes::before {
    animation: floatNoteRight 2s ease-in-out infinite;
}

#musicToggle.playing .music-notes::after {
    animation: floatNoteLeft 2s ease-in-out infinite 0.5s;
}

/* 悬浮效果 */
#musicToggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(255, 107, 139, 0.35),
        0 0 0 2px rgba(255, 107, 139, 0.25),
        inset 0 0 25px rgba(255, 107, 139, 0.2);
}

#musicToggle:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 107, 139, 0.5));
}

/* 动画定义 */
@keyframes musicIconDance {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-10deg);
    }
    50% {
        transform: scale(1) rotate(0deg);
    }
    75% {
        transform: scale(1.1) rotate(10deg);
    }
}

@keyframes floatNoteRight {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(15deg) scale(0.8);
    }
    30% {
        opacity: 1;
        transform: translate(10px, -15px) rotate(25deg) scale(1.2);
    }
    80% {
        opacity: 0.5;
        transform: translate(20px, -25px) rotate(35deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(25px, -30px) rotate(45deg) scale(0.8);
    }
}

@keyframes floatNoteLeft {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(-15deg) scale(0.8);
    }
    30% {
        opacity: 1;
        transform: translate(-10px, -15px) rotate(-25deg) scale(1.2);
    }
    80% {
        opacity: 0.5;
        transform: translate(-20px, -25px) rotate(-35deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-25px, -30px) rotate(-45deg) scale(0.8);
    }
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 0%;
        filter: hue-rotate(0deg);
    }
    100% {
        background-position: 200% 0%;
        filter: hue-rotate(360deg);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    #musicToggle {
        width: 36px;
        height: 36px;
    }

    #musicToggle i {
        font-size: 16px;
    }

    .music-notes::before,
    .music-notes::after {
        font-size: 10px;
    }
}

.music-tip {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 25px;
    border-radius: 20px;
    font-size: 15px;
    color: #ff6b8b;
    box-shadow: 
        0 4px 15px rgba(255, 107, 139, 0.2),
        0 0 0 1px rgba(255, 107, 139, 0.1),
        inset 0 0 20px rgba(255, 107, 139, 0.05);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(8px);
    text-align: center;
    font-family: 'Ma Shan Zheng', cursive;
    pointer-events: none;
    letter-spacing: 1px;
    will-change: transform, opacity;
    white-space: nowrap;
}

/* 添加爱心装饰 */
.music-tip::before,
.music-tip::after {
    content: '❤';
    position: absolute;
    top: 50%;
    font-size: 14px;
    color: #ff6b8b;
    opacity: 0.6;
    transform: translateY(-50%);
    animation: tipHeartBeat 1.5s ease-in-out infinite;
}

.music-tip::before {
    left: 8px;
    animation-delay: 0s;
}

.music-tip::after {
    right: 8px;
    animation-delay: 0.5s;
}

/* 添加底部小尾巴 */
.music-tip .tip-tail {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: inherit;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.music-tip.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    animation: tipBounceIn 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.music-tip.hide {
    animation: tipBounceOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes tipHeartBeat {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.2);
    }
}

@keyframes tipBounceIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8) translateY(20px);
    }
    60% {
        transform: translateX(-50%) scale(1.1) translateY(-4px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1) translateY(0);
    }
}

@keyframes tipBounceOut {
    0% {
        opacity: 1;
        transform: translateX(-50%) scale(1) translateY(0);
    }
    20% {
        transform: translateX(-50%) scale(1.1) translateY(-4px);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8) translateY(20px);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .music-tip {
        font-size: 14px;
        padding: 10px 20px;
        bottom: 80px;
    }

    .music-tip::before,
    .music-tip::after {
        font-size: 12px;
    }
}

.decorations {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 1s infinite;
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float-up 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-20vh) scale(1);
        opacity: 0;
    }
}

.firework {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: explode 1s ease-out forwards;
    z-index: 1000;
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 
            0 0 0 0 #ff69b4,
            0 0 0 0 #ff1493,
            0 0 0 0 #ff69b4;
    }
    100% {
        transform: scale(0);
        opacity: 0;
        box-shadow: 
            -50px -50px 0 20px #ff69b4,
            50px -50px 0 20px #ff1493,
            0 50px 0 20px #ff69b4,
            -50px 50px 0 20px #ff1493,
            50px 50px 0 20px #ff69b4;
    }
}

.heart-beat {
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

.sparkle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #fff 10%, transparent 60%);
    animation: sparkleMove 2s linear infinite;
}

@keyframes sparkleMove {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(100px, -100px) rotate(360deg); opacity: 0; }
}

@keyframes backgroundMove {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 设置按钮样式 */
.settings-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.settings-btn i {
    color: white;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.settings-btn:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.settings-btn.active i {
    transform: rotate(180deg);
}

/* 设置面板样式 */
.settings-panel {
    position: fixed;
    top: 80px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(-120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    backdrop-filter: blur(10px);
}

.settings-panel.show {
    transform: translateX(0);
}

.settings-content h3 {
    margin: 0 0 20px 0;
    color: #ff6b8b;
    font-size: 18px;
    text-align: center;
}

.settings-item {
    margin-bottom: 15px;
}

.settings-item label {
    display: block;
    margin-bottom: 8px;
    color: #666;
}

.settings-item input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.settings-item input[type="text"]:focus {
    border-color: #ff6b8b;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 107, 139, 0.2);
}

.generate-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(45deg, #ff6b8b, #ff8da1);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 139, 0.3);
}

.link-box {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.link-box input {
    flex: 1;
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.9);
}

.copy-btn {
    padding: 8px 12px;
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #e0e0e0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .settings-panel {
        width: calc(100% - 40px);
        max-width: 300px;
    }
}

/* 背景装饰效果 */
.romantic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #ffd1d1 0%, #fff1f1 50%, #ffd1d1 100%);
}

/* 漂浮的爱心 */
.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: floatHeart var(--duration, 6s) ease-in-out infinite;
    color: rgba(255, 107, 139, 0.3);
    text-shadow: 0 0 10px rgba(255, 107, 139, 0.2);
    transform-origin: center;
}

/* 光晕效果 */
.light-spots {
    position: absolute;
    width: 100%;
    height: 100%;
}

.light-spot {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.2) 0%, transparent 70%);
    animation: spotFloat 8s ease-in-out infinite;
}

/* 星星闪烁 */
.twinkling-stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #ff69b4;
    animation: twinkle var(--duration, 2s) ease-in-out infinite;
}

/* 波纹效果 */
.ripples {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ripple {
    position: absolute;
    border: 2px solid rgba(255, 107, 139, 0.1);
    border-radius: 50%;
    animation: rippleEffect 4s linear infinite;
    pointer-events: none;
}

/* 动画定义 */
@keyframes floatHeart {
    0%, 100% {
        transform: translate(0, 100vh) scale(0.2) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
        transform: translate(var(--moveX, 100px), 30vh) scale(1) rotate(var(--rotate, 45deg));
    }
    100% {
        transform: translate(var(--finalX, 200px), -50px) scale(0.2) rotate(var(--finalRotate, 90deg));
        opacity: 0;
    }
}

@keyframes spotFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(var(--moveX, 30px), var(--moveY, -30px)) scale(1.2);
        opacity: 0.5;
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
        transform: translate(-50%, -50%);
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
        transform: translate(-50%, -50%);
    }
}

.heart-effect-container {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-effect-heart {
    position: absolute;
    background-color: #ff6b8b;
    transform: rotate(45deg);
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(255, 107, 139, 0.3));
    will-change: transform, opacity;
}

.floating-effect-heart::before,
.floating-effect-heart::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 107, 139, 0.2);
}

.floating-effect-heart::before {
    left: -50%;
}

.floating-effect-heart::after {
    top: -50%;
}

@keyframes floatUp {
    0% {
        transform: translate(0, 100%) rotate(45deg) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
        transform: translate(0, 80%) rotate(45deg) scale(0.8);
    }
    80% {
        opacity: 0.8;
        transform: translate(0, var(--float-distance)) rotate(45deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(0, calc(var(--float-distance) - 20vh)) rotate(45deg) scale(0.8);
    }
}

@keyframes sway {
    0% {
        margin-left: 0;
    }
    50% {
        margin-left: var(--sway-distance);
    }
    100% {
        margin-left: 0;
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .floating-effect-heart {
        animation-duration: 2s !important;
    }
}

.music-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.music-tip-text {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.music-tip-text a {
    color: #ff6b8b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.music-tip-text a:hover {
    color: #ff4d6d;
    text-decoration: underline;
}

#musicId {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 107, 139, 0.3);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

#musicId:focus {
    outline: none;
    border-color: rgba(255, 107, 139, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 107, 139, 0.1);
}

#musicId::placeholder {
    color: #999;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .music-input-group {
        gap: 6px;
    }
    
    .music-tip-text {
        font-size: 11px;
    }
    
    #musicId {
        padding: 6px 10px;
        font-size: 13px;
    }
}