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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

header h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.built-with {
    font-size: 0.9rem;
    color: #666;
}

.built-with a {
    color: #764ba2;
    text-decoration: none;
    font-weight: bold;
}

.built-with a:hover {
    text-decoration: underline;
}

main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.scene-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.scene {
    position: relative;
    height: 400px;
    background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 60%, #90EE90 60%, #90EE90 100%);
    border-radius: 10px;
    overflow: hidden;
}

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

.building {
    position: absolute;
    right: 0;
    top: 20%;
    width: 200px;
    height: 60%;
    background: linear-gradient(to bottom, #8B7355, #A0826D);
    border-left: 3px solid #654321;
}

.building::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 20px,
        #654321 20px,
        #654321 23px
    );
}

.ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: #808080;
}

.gate {
    position: absolute;
    left: 30%;
    top: 20%;
    background: #8B4513;
    padding: 1rem 2rem;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

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

.character {
    position: absolute;
    transition: all 0.3s ease;
}

.character .body {
    width: 40px;
    height: 60px;
    background: #333;
    border-radius: 10px 10px 0 0;
    position: relative;
}

.character .head {
    width: 30px;
    height: 30px;
    background: #FDBCB4;
    border-radius: 50%;
    position: absolute;
    top: -25px;
    left: 5px;
}

.reporter {
    left: 20%;
    bottom: 40%;
}

.reporter .body {
    background: #2C3E50;
}

.reporter .microphone {
    position: absolute;
    top: -40px;
    right: -20px;
    font-size: 1.5rem;
}

.delivery-man {
    left: 40%;
    bottom: 40%;
}

.delivery-man .body {
    background: #FF6B35;
}

.e-bike {
    position: absolute;
    bottom: -40px;
    left: -20px;
    width: 80px;
    height: 40px;
    transition: all 0.5s ease;
}

.bike-body {
    width: 60px;
    height: 20px;
    background: #C0C0C0;
    border-radius: 10px;
    position: absolute;
    bottom: 10px;
}

.wheel {
    width: 20px;
    height: 20px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    border: 2px solid #666;
}

.wheel.front {
    right: 0;
}

.wheel.back {
    left: 0;
}

.delivery-box {
    position: absolute;
    top: -20px;
    left: 20px;
    background: #FFD700;
    padding: 2px 5px;
    font-size: 0.7rem;
    border-radius: 3px;
    font-weight: bold;
}

.security {
    left: 70%;
    bottom: 40%;
    opacity: 0;
}

.security .body {
    background: #1E3A8A;
}

.security .megaphone {
    position: absolute;
    top: -40px;
    right: -20px;
    font-size: 1.5rem;
}

.speech-bubble {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
    max-width: 200px;
    word-wrap: break-word;
    white-space: normal;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.speech-bubble.show {
    opacity: 1;
}

.controls {
    text-align: center;
    margin-bottom: 2rem;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
}

.btn.secondary {
    background: #e0e0e0;
    color: #333;
}

.btn.secondary:hover {
    background: #d0d0d0;
}

.story-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.story-text h2 {
    color: #333;
    margin-bottom: 1rem;
}

.story-text p {
    color: #666;
    line-height: 1.6;
}

/* 动画效果 */
@keyframes wallRide {
    0% {
        transform: rotate(0deg) translateY(0);
    }
    50% {
        transform: rotate(-90deg) translateY(-100px);
    }
    100% {
        transform: rotate(-90deg) translateY(-150px);
    }
}

.wall-riding {
    animation: wallRide 2s ease-in-out forwards;
}

@keyframes shocked {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.shocked {
    animation: shocked 0.5s ease-in-out infinite;
}

footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    text-align: center;
    color: #666;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .scene {
        height: 300px;
    }
    
    .character .body {
        width: 30px;
        height: 45px;
    }
    
    .character .head {
        width: 25px;
        height: 25px;
    }
    
    .e-bike {
        width: 60px;
        height: 30px;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}