* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #00ffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.title {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00, #00ff00);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(0, 255, 255, 0.8), 0 0 80px rgba(255, 0, 255, 0.4);
    position: relative;
}

.title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00, #00ff00);
    background-size: 400% 400%;
    animation: gradientShift 4s ease-in-out infinite;
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
}

.subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-top: 10px;
    letter-spacing: 3px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 性能优化 */
* {
    will-change: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.pool, .throw-button, .coin-option {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.water-surface, .ripple, .coin {
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* 减少重绘 */
.pool-container, .controls, .stats {
    contain: layout style paint;
}

/* GPU 加速 */
.title, .throw-button, .coin-option, .pool {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

/* 优化动画性能 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 减少复杂选择器 */
.fast-render {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.pool-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    perspective: 1000px;
}

.pool {
    width: 500px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.6s ease;
}

.pool:hover {
    transform: rotateX(-5deg) rotateY(5deg) scale(1.02);
}

/* 许愿池外壁 */
.pool::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, 
            #8B7355 0%,    /* 石材色 */
            #A0956B 15%,   /* 浅石材 */
            #6B5B47 30%,   /* 深石材 */
            #8B7355 45%,   /* 石材色 */
            #5D4E37 60%,   /* 深棕 */
            #8B7355 75%,   /* 石材色 */
            #A0956B 90%,   /* 浅石材 */
            #6B5B47 100%   /* 深石材 */
        );
    border-radius: 50%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 -20px 40px rgba(0, 0, 0, 0.6),
        inset 0 20px 40px rgba(255, 255, 255, 0.1);
    z-index: 1;
}

/* 许愿池内壁 */
.pool::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    background: 
        radial-gradient(ellipse at center,
            #001a33 0%,     /* 深蓝水底 */
            #002244 20%,    /* 蓝色 */
            #003366 40%,    /* 中蓝 */
            #001122 60%,    /* 深蓝 */
            #000511 80%,    /* 极深蓝 */
            #000000 100%    /* 黑色 */
        );
    border-radius: 50%;
    box-shadow: 
        inset 0 0 100px rgba(0, 100, 200, 0.3),
        inset 0 0 200px rgba(0, 50, 100, 0.2),
        0 0 50px rgba(0, 255, 255, 0.1);
    z-index: 2;
}

/* 水面效果 */
.water-surface {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    border-radius: 50%;
    background: 
        radial-gradient(ellipse at 30% 30%, 
            rgba(0, 255, 255, 0.4) 0%, 
            rgba(0, 200, 255, 0.3) 30%,
            rgba(0, 150, 255, 0.2) 60%,
            transparent 80%
        );
    z-index: 3;
    animation: waterShimmer 6s ease-in-out infinite;
    overflow: hidden;
}

/* 水面波纹 */
.water-surface::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 40% 40%, 
            rgba(255, 255, 255, 0.1) 0%, 
            transparent 30%
        ),
        radial-gradient(circle at 60% 70%, 
            rgba(255, 255, 255, 0.08) 0%, 
            transparent 25%
        );
    border-radius: 50%;
    animation: waterRipples 8s ease-in-out infinite;
}

/* 池底装饰 */
.water-surface::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: 
        linear-gradient(90deg, 
            transparent 0%,
            rgba(139, 115, 85, 0.3) 20%,
            rgba(160, 149, 107, 0.4) 50%,
            rgba(139, 115, 85, 0.3) 80%,
            transparent 100%
        );
    border-radius: 50%;
    filter: blur(2px);
}

@keyframes waterShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.coins-container {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    z-index: 4;
    border-radius: 50%;
    overflow: hidden;
}

/* 许愿池边缘装饰 */
.pool-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: 
        radial-gradient(circle at center,
            transparent 45%,
            rgba(139, 115, 85, 0.1) 46%,
            rgba(160, 149, 107, 0.2) 48%,
            rgba(139, 115, 85, 0.3) 50%,
            rgba(107, 91, 71, 0.2) 52%,
            rgba(139, 115, 85, 0.1) 54%,
            transparent 55%
        );
    border-radius: 50%;
    z-index: 0;
    animation: poolEdgeGlow 8s ease-in-out infinite;
}

@keyframes poolEdgeGlow {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* 池底硬币堆积效果 */
.coins-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 30px;
    background: 
        linear-gradient(90deg,
            transparent 0%,
            rgba(205, 127, 50, 0.3) 10%,
            rgba(192, 192, 192, 0.2) 30%,
            rgba(255, 215, 0, 0.4) 50%,
            rgba(192, 192, 192, 0.2) 70%,
            rgba(205, 127, 50, 0.3) 90%,
            transparent 100%
        );
    border-radius: 50%;
    filter: blur(1px);
    z-index: 1;
    animation: coinPileShimmer 6s ease-in-out infinite;
}

@keyframes coinPileShimmer {
    0%, 100% { 
        opacity: 0.4;
        transform: scaleX(1);
    }
    50% { 
        opacity: 0.7;
        transform: scaleX(1.1);
    }
}

.coin {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: absolute;
    animation: coinFall 2s ease-in forwards;
}

.coin-copper {
    background: linear-gradient(45deg, #cd7f32, #b87333);
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.coin-silver {
    background: linear-gradient(45deg, #c0c0c0, #a8a8a8);
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.coin-gold {
    background: linear-gradient(45deg, #ffd700, #ffb347);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes coinFall {
    0% {
        transform: translateY(-80px) translateX(0) scale(1.2) rotateY(0deg) rotateX(0deg);
        opacity: 1;
        filter: brightness(1.2);
    }
    15% {
        transform: translateY(-20px) translateX(5px) scale(1.1) rotateY(90deg) rotateX(15deg);
        opacity: 1;
        filter: brightness(1.1);
    }
    30% {
        transform: translateY(40px) translateX(-3px) scale(1) rotateY(180deg) rotateX(30deg);
        opacity: 0.95;
        filter: brightness(1);
    }
    50% {
        transform: translateY(120px) translateX(8px) scale(0.9) rotateY(270deg) rotateX(45deg);
        opacity: 0.9;
        filter: brightness(0.9);
    }
    70% {
        transform: translateY(200px) translateX(-5px) scale(0.8) rotateY(360deg) rotateX(60deg);
        opacity: 0.85;
        filter: brightness(0.8);
    }
    85% {
        transform: translateY(280px) translateX(2px) scale(0.7) rotateY(450deg) rotateX(75deg);
        opacity: 0.8;
        filter: brightness(0.7);
    }
    95% {
        transform: translateY(320px) translateX(0) scale(0.6) rotateY(540deg) rotateX(85deg);
        opacity: 0.75;
        filter: brightness(0.6);
    }
    100% {
        transform: translateY(340px) translateX(0) scale(0.5) rotateY(720deg) rotateX(90deg);
        opacity: 0.7;
        filter: brightness(0.5);
    }
}

/* 硬币入水波纹效果 */
@keyframes coinSplash {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
        border-width: 3px;
    }
    30% {
        width: 40px;
        height: 40px;
        opacity: 0.6;
        border-width: 2px;
    }
    60% {
        width: 80px;
        height: 80px;
        opacity: 0.4;
        border-width: 1px;
    }
    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
        border-width: 0;
        transform: translate(-50%, -50%);
    }
}

.ripples {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 3px solid rgba(0, 255, 255, 0.8);
    border-radius: 50%;
    animation: rippleExpand 2s ease-out forwards;
    transform: translate(-50%, -50%);
}

.ripple::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: rippleGlow 2s ease-out forwards;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rippleCenter 2s ease-out forwards;
}

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        border-width: 3px;
    }
    30% {
        width: 60px;
        height: 60px;
        opacity: 0.8;
        border-width: 2px;
    }
    60% {
        width: 150px;
        height: 150px;
        opacity: 0.5;
        border-width: 1px;
    }
    100% {
        width: 280px;
        height: 280px;
        opacity: 0;
        border-width: 0;
    }
}

@keyframes rippleGlow {
    0% {
        opacity: 0.6;
        transform: scale(0);
    }
    50% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

@keyframes rippleCenter {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
}

.controls {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 26, 46, 0.9) 100%);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
    backdrop-filter: blur(15px);
    position: relative;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00, #00ff00);
    background-size: 400% 400%;
    border-radius: 20px;
    padding: 2px;
    z-index: -1;
    animation: gradientShift 8s ease-in-out infinite;
}

.controls::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 26, 46, 0.9) 100%);
    border-radius: 18px;
    z-index: -1;
}

.coin-selector {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.coin-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px 20px;
    border: 3px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: 
        linear-gradient(135deg, 
            rgba(0, 0, 0, 0.4) 0%, 
            rgba(26, 26, 46, 0.6) 50%,
            rgba(0, 0, 0, 0.4) 100%
        );
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    overflow: hidden;
}

.coin-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, 
            transparent 0%,
            rgba(0, 255, 255, 0.1) 25%,
            rgba(255, 0, 255, 0.1) 50%,
            rgba(0, 255, 255, 0.1) 75%,
            transparent 100%
        );
    border-radius: 20px;
    opacity: 0;
    transition: all 0.4s ease;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) rotate(0deg); }
    50% { transform: translateX(100%) rotate(180deg); }
}

.coin-option:hover {
    border-color: #00ffff;
    background: 
        linear-gradient(135deg, 
            rgba(0, 255, 255, 0.2) 0%, 
            rgba(26, 26, 46, 0.8) 50%,
            rgba(0, 255, 255, 0.2) 100%
        );
    transform: translateY(-8px) translateZ(10px) scale(1.08) rotateX(5deg);
    box-shadow: 
        0 15px 35px rgba(0, 255, 255, 0.3),
        0 5px 15px rgba(0, 255, 255, 0.4),
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.coin-option:hover::before {
    opacity: 1;
    animation-duration: 1.5s;
}

.coin-option.active {
    border-color: #00ffff;
    background: 
        linear-gradient(135deg, 
            rgba(0, 255, 255, 0.3) 0%, 
            rgba(26, 26, 46, 0.9) 50%,
            rgba(0, 255, 255, 0.3) 100%
        );
    transform: translateY(-5px) translateZ(8px) scale(1.05);
    box-shadow: 
        0 12px 40px rgba(0, 255, 255, 0.5),
        0 0 50px rgba(0, 255, 255, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    animation: activeGlow 2s ease-in-out infinite;
}

@keyframes activeGlow {
    0%, 100% { 
        box-shadow: 
            0 12px 40px rgba(0, 255, 255, 0.5),
            0 0 50px rgba(0, 255, 255, 0.4),
            inset 0 2px 0 rgba(255, 255, 255, 0.3),
            inset 0 0 20px rgba(0, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 
            0 15px 50px rgba(0, 255, 255, 0.7),
            0 0 70px rgba(0, 255, 255, 0.6),
            inset 0 3px 0 rgba(255, 255, 255, 0.4),
            inset 0 0 30px rgba(0, 255, 255, 0.2);
    }
}

.coin-option.active::before {
    opacity: 1;
    background: 
        linear-gradient(45deg, 
            transparent 0%,
            rgba(0, 255, 255, 0.3) 25%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(0, 255, 255, 0.3) 75%,
            transparent 100%
        );
    animation-duration: 1s;
}

.coin-option .coin {
    width: 50px;
    height: 50px;
    position: static;
    animation: coinSpin 4s linear infinite;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.2);
}

@keyframes coinSpin {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

.coin-option:hover .coin {
    animation-duration: 2s;
    transform: scale(1.1);
}

.coin-option.active .coin {
    animation-duration: 3s;
    transform: scale(1.05);
}

.coin-option span {
    color: #00ffff;
    font-size: 0.9rem;
}

.category-selector {
    margin-bottom: 20px;
    text-align: center;
}

.category-selector label {
    color: #00ffff;
    margin-right: 10px;
    font-size: 1rem;
}

.category-selector select {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ffff;
    border-radius: 8px;
    padding: 8px 15px;
    color: #00ffff;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.category-selector select option {
    background: #000;
    color: #00ffff;
}

.wish-input {
    margin-bottom: 30px;
    position: relative;
}

#wishText {
    width: 100%;
    height: 120px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 15px;
    color: #00ffff;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    outline: none;
    transition: border-color 0.3s ease;
}

#wishText:focus {
    border-color: #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

#wishText::placeholder {
    color: #666;
}

.char-count {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.char-normal { color: #888; }
.char-warning { color: #ffff00; }
.char-danger { color: #ff4444; }

.throw-button {
    width: 100%;
    height: 80px;
    background: 
        linear-gradient(135deg, 
            #00ffff 0%, 
            #0099ff 25%, 
            #0066ff 50%, 
            #ff00ff 75%, 
            #ff0099 100%
        );
    background-size: 300% 300%;
    border: none;
    border-radius: 40px;
    color: #000;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 255, 255, 0.4),
        0 4px 16px rgba(255, 0, 255, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    animation: buttonPulse 4s ease-in-out infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
}

@keyframes buttonPulse {
    0%, 100% { 
        background-position: 0% 50%;
        transform: translateZ(0) scale(1);
        opacity: 0.9;
    }
    50% { 
        background-position: 100% 50%;
        transform: translateZ(2px) scale(1.01);
        opacity: 1;
    }
}

.throw-button:hover {
    transform: translateY(-8px) translateZ(8px) scale(1.05);
    box-shadow: 
        0 25px 60px rgba(0, 255, 255, 0.8),
        0 15px 40px rgba(255, 0, 255, 0.6),
        0 5px 20px rgba(255, 255, 255, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.6),
        inset 0 -3px 0 rgba(0, 0, 0, 0.3);
    animation-duration: 1.5s;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.throw-button:active {
    transform: translateY(-4px) translateZ(4px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(0, 255, 255, 0.6),
        0 8px 20px rgba(255, 0, 255, 0.4),
        inset 0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 -2px 0 rgba(255, 255, 255, 0.2);
    animation-duration: 0.8s;
}

.button-glow {
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 255, 255, 0.3) 30%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0.3) 70%,
            transparent 100%
        );
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 40px;
}

.throw-button:hover .button-glow {
    left: 150%;
}

.throw-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: 
        radial-gradient(circle, 
            rgba(255, 255, 255, 0.9) 0%, 
            rgba(255, 255, 255, 0.6) 30%,
            rgba(255, 255, 255, 0.3) 60%,
            transparent 100%
        );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.throw-button:active::before {
    width: 120px;
    height: 120px;
}

/* 按钮文字动画 */
.button-text {
    position: relative;
    z-index: 2;
    display: inline-block;
    transition: all 0.3s ease;
}

.throw-button:hover .button-text {
    transform: translateY(-1px);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.throw-button:active .button-text {
    transform: translateY(1px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 26, 46, 0.9) 100%);
    border: 2px solid transparent;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    min-width: 140px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
    background-size: 300% 300%;
    border-radius: 15px;
    padding: 2px;
    z-index: -2;
    animation: gradientShift 6s ease-in-out infinite;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 26, 46, 0.9) 100%);
    border-radius: 13px;
    z-index: -1;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(0, 255, 255, 0.3),
        0 0 30px rgba(0, 255, 255, 0.2);
}

.stat-item:hover::before {
    animation-duration: 2s;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.memory-storage {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #ff00ff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.memory-storage h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.storage-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.storage-btn {
    padding: 10px 20px;
    background: linear-gradient(45deg, #ff00ff, #8000ff);
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.storage-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 255, 0.4);
}

.storage-btn:active {
    transform: translateY(0);
}

.storage-btn#clearBtn {
    background: linear-gradient(45deg, #ff4444, #cc0000);
}

.storage-btn#clearBtn:hover {
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.4);
}

.memory-info {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.memory-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 0, 255, 0.1);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 10px;
    flex: 1;
}

.memory-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.memory-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff00ff;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.3);
}

.wish-categories {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #ffff00;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.wish-categories h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffff00;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 15px;
    background: rgba(255, 255, 0, 0.1);
    border: 1px solid rgba(255, 255, 0, 0.3);
    border-radius: 20px;
    color: #ffff00;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: rgba(255, 255, 0, 0.2);
    transform: translateY(-1px);
}

.category-btn.active {
    background: rgba(255, 255, 0, 0.3);
    border-color: #ffff00;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.3);
}

.wishes-display {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ffff;
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.wishes-display h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #00ffff;
}

.wishes-list {
    max-height: 400px;
    overflow-y: auto;
}

.wish-item {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    animation: wishAppear 0.6s ease-out;
    position: relative;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.wish-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.1));
    border-radius: 15px;
    padding: 2px;
    z-index: -2;
}

.wish-item::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: 13px;
    z-index: -1;
}

.wish-item:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
    transform: translateX(8px) translateY(-2px);
    box-shadow: 
        0 10px 30px rgba(0, 255, 255, 0.2),
        0 0 20px rgba(0, 255, 255, 0.1);
}

.wish-item.fulfilled {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.15) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.wish-item.fulfilled::before {
    background: linear-gradient(45deg, rgba(0, 255, 0, 0.3), rgba(0, 255, 255, 0.1));
}

.wish-item.fulfilled::after {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.15) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.wish-item .fulfill-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
    border-radius: 15px;
    padding: 5px 10px;
    color: #00ff00;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wish-item .fulfill-btn:hover {
    background: rgba(0, 255, 0, 0.3);
}

@keyframes wishAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.wish-text {
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
    padding-right: 80px;
}

.wish-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
    align-items: center;
}

.wish-category {
    background: rgba(255, 255, 0, 0.2);
    border: 1px solid rgba(255, 255, 0, 0.5);
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.7rem;
    color: #ffff00;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ffff;
    border-radius: 50%;
    animation: particleFloat 10s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10px) translateX(100px);
        opacity: 0;
    }
}

.sound-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sound-toggle:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.1);
}

.sound-toggle span {
    font-size: 1.5rem;
}

/* 用户认证区域 */
.user-auth {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.auth-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ffff;
    border-radius: 25px;
    padding: 8px 15px;
    backdrop-filter: blur(10px);
}

#userInfo {
    color: #00ffff;
    font-size: 0.9rem;
    font-weight: bold;
}

.auth-btn {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    border: none;
    border-radius: 15px;
    color: #000;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

/* 认证模态框 */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 46, 0.95) 100%);
    border: 2px solid #00ffff;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.3);
    position: relative;
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.auth-header h3 {
    color: #00ffff;
    margin: 0;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.close-btn {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    transform: scale(1.1);
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.tab-btn {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #888;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.tab-btn.active {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form input {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 12px 15px;
    color: #00ffff;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.auth-form input::placeholder {
    color: #666;
}

.submit-btn {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    border: none;
    border-radius: 10px;
    color: #000;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.link-btn {
    background: none;
    border: none;
    color: #00ffff;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.link-btn:hover {
    color: #ff00ff;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: #666;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 255, 255, 0.2);
    z-index: -1;
}

.auth-divider span {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 46, 0.95) 100%);
    padding: 0 15px;
}

.oauth-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.oauth-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .pool {
        width: 300px;
        height: 300px;
    }
    
    .coin-selector {
        gap: 15px;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .category-filters {
        gap: 5px;
    }
    
    .category-btn {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    .storage-controls {
        gap: 10px;
    }
    
    .storage-btn {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
}

/* 滚动条样式 */
.wishes-list::-webkit-scrollbar {
    width: 8px;
}

.wishes-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.wishes-list::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.5);
    border-radius: 4px;
}

.wishes-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.7);
}