* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', '微软雅黑', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    width: 90%;
    text-align: center;
    padding: 20px;
}

.header {
    margin-bottom: 30px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 255, 0.3); }
    to { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.6); }
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.stats-panel {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #4a5568;
}

.muyu-container {
    position: relative;
    margin: 80px auto 50px auto;
    width: 300px;
    height: 300px;
}

.muyu {
    position: relative;
    width: 250px;
    height: 200px;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.muyu:hover {
    transform: scale(1.05);
}

.muyu.knock {
    animation: knock 0.3s ease-out forwards;
    animation-fill-mode: both;
}

@keyframes knock {
    0% { 
        transform: scale(1) rotate(0deg); 
        animation-timing-function: ease-out;
    }
    30% { 
        transform: scale(1.08) rotate(-1deg); 
        animation-timing-function: ease-in-out;
    }
    60% { 
        transform: scale(1.05) rotate(0.5deg); 
        animation-timing-function: ease-out;
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        animation-timing-function: ease-in;
    }
}

.muyu-body {
    position: relative;
    width: 200px;
    height: 150px;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(210, 180, 140, 0.8) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 69, 19, 0.6) 0%, transparent 60%),
        linear-gradient(145deg, #8B4513 0%, #A0522D 30%, #CD853F  60%, #8B4513 100%);
    border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
    margin: 0 auto;
    box-shadow: 
        inset -15px -15px 30px rgba(0, 0, 0, 0.4),
        inset 15px 15px 30px rgba(255, 255, 255, 0.1),
        inset -5px -5px 15px rgba(139, 69, 19, 0.8),
        inset 5px 5px 15px rgba(205, 133, 63, 0.6),
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 5px 15px rgba(139, 69, 19, 0.3);
    border: 4px solid #654321;
    
    /* 添加木质纹理 */
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 3px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 8px,
            rgba(0, 0, 0, 0.05) 8px,
            rgba(0, 0, 0, 0.05) 10px
        );
}

.muyu-pattern {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 80px;
    background: 
        radial-gradient(ellipse at center, rgba(255, 215, 0, 0.4) 0%, rgba(255, 215, 0, 0.2) 40%, transparent 70%),
        radial-gradient(ellipse at center, rgba(139, 69, 19, 0.3) 0%, transparent 60%);
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow: 
        inset 0 2px 8px rgba(255, 215, 0, 0.4),
        inset 0 -2px 8px rgba(139, 69, 19, 0.4);
}

.muyu-pattern::before {
    content: '卍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5em;
    font-weight: bold;
    color: rgba(255, 215, 0, 0.9);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.6),
        0 0 8px rgba(255, 215, 0, 0.5),
        inset 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.muyu-pattern::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(139, 69, 19, 0.4);
    border-radius: 50%;
}

.muyu-shine {
    position: absolute;
    top: 15px;
    left: 25px;
    width: 60px;
    height: 30px;
    background: 
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 40%, transparent 70%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
    border-radius: 60% 40% 70% 30%;
    transform: rotate(-25deg);
    filter: blur(0.5px);
}

.muyu-shine::after {
    content: '';
    position: absolute;
    top: 60px;
    right: 20px;
    width: 25px;
    height: 15px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    border-radius: 50%;
    transform: rotate(15deg);
}

.muyu-stick {
    position: absolute;
    top: -30px;
    right: -50px;
    width: 80px;
    height: 15px;
    transform-origin: 10% 50%;
    transition: transform 0.2s ease;
}

.muyu.knock .muyu-stick {
    animation: stick-knock 0.3s ease-out;
}

@keyframes stick-knock {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-30deg); }
    100% { transform: rotate(0deg); }
}

.stick-handle {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 15px;
    background: 
        linear-gradient(90deg, #8B4513 0%, #CD853F 20%, #A0522D 80%, #8B4513 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 3px
        );
    border-radius: 8px;
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.2),
        inset 0 -1px 3px rgba(0, 0, 0, 0.3);
    border: 1px solid #654321;
}

.stick-head {
    position: absolute;
    right: 0;
    top: -5px;
    width: 25px;
    height: 25px;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 140, 140, 0.8) 0%, transparent 50%),
        radial-gradient(circle at center, #FF6347 0%, #DC143C 60%, #8B0000 100%);
    border-radius: 50%;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 2px 2px 6px rgba(255, 255, 255, 0.3),
        inset -2px -2px 6px rgba(0, 0, 0, 0.4);
    border: 2px solid #8B0000;
}

.stick-head::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    border-radius: 50%;
}

.ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.ripple.active {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.action-buttons {
    margin: 40px 0;
}

.btn {
    padding: 15px 30px;
    margin: 0 10px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #4ECDC4, #44A08D);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.sound-controls {
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.sound-toggle {
    margin-bottom: 15px;
}

.btn-sound {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    color: white;
    font-size: 0.9em;
    padding: 10px 20px;
}

.btn-sound:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.4);
}

.btn-sound.muted {
    background: linear-gradient(45deg, #7f8c8d, #95a5a6);
}

.btn-sound.muted:hover {
    box-shadow: 0 8px 25px rgba(127, 140, 141, 0.4);
}

.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-size: 0.9em;
}

.volume-slider {
    width: 120px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#volumeValue {
    min-width: 35px;
    text-align: center;
    font-weight: bold;
}

.merit-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1000;
}

.merit-text p {
    font-size: 2em;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
}

.merit-text.show p {
    animation: merit-float 1.5s ease-out;
}

@keyframes merit-float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.3);
    }
    20% {
        opacity: 1;
        transform: translateY(-40px) scale(1.3);
    }
    60% {
        opacity: 1;
        transform: translateY(-120px) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) scale(0.8);
    }
}

@keyframes dynamic-merit-float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.3);
    }
    15% {
        opacity: 1;
        transform: translateY(-50px) scale(1.4);
    }
    40% {
        opacity: 1;
        transform: translateY(-150px) scale(1.2);
    }
    70% {
        opacity: 0.8;
        transform: translateY(-250px) scale(1.0);
    }
    100% {
        opacity: 0;
        transform: translateY(-350px) scale(0.6);
    }
}

.footer {
    margin-top: 50px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.small-text {
    font-size: 0.9em !important;
    opacity: 0.8;
}

.beian-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.beian-text {
    font-size: 0.8em !important;
    margin-bottom: 8px !important;
    opacity: 0.7;
}

.beian-text a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.beian-text a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.beian-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.copyright {
    font-size: 0.75em !important;
    margin-top: 15px !important;
    opacity: 0.6;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2.5em;
    }
    
    .stats-panel {
        flex-direction: column;
        gap: 15px;
    }
    
    .muyu-container {
        width: 250px;
        height: 250px;
        margin: 60px auto 40px auto;
    }
    
    .muyu {
        width: 200px;
        height: 160px;
    }
    
    .muyu-body {
        width: 160px;
        height: 120px;
    }
    
    .btn {
        display: block;
        width: 80%;
        margin: 10px auto;
    }
    
    .beian-info {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .beian-text {
        font-size: 0.75em !important;
        line-height: 1.4;
    }
    
    .beian-text a {
        justify-content: center;
    }
    
    .sound-controls {
        margin: 15px 0;
        padding: 15px;
    }
    
    .volume-control {
        flex-direction: column;
        gap: 8px;
    }
    
    .volume-slider {
        width: 200px;
    }
}

/* 添加一些装饰性动画 */
.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"><animate attributeName="opacity" values="0;1;0" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="1" fill="rgba(255,255,255,0.1)"><animate attributeName="opacity" values="0;1;0" dur="4s" repeatCount="indefinite" begin="1s"/></circle><circle cx="40" cy="70" r="1.5" fill="rgba(255,255,255,0.1)"><animate attributeName="opacity" values="0;1;0" dur="2s" repeatCount="indefinite" begin="2s"/></circle></svg>') repeat;
    pointer-events: none;
    z-index: -1;
}
