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

body {
    background: linear-gradient(to right, #d4d3dd, #efefbb);
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    letter-spacing: 3px;
    color: #333;
    margin-bottom: 10px;
}

.poke-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
}

.pokemon {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(100, 100, 100, 0.5);
    margin: 10px;
    padding: 20px;
    text-align: center;
    width: 200px;
    transition: transform 0.3s ease;
}

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

.pokemon .img-container {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pokemon .img-container img {
    max-width: 90%;
    max-height: 80px;
}

.pokemon .info .number {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.8em;
}

.pokemon .info .name {
    margin: 15px 0 7px;
    letter-spacing: 1px;
    text-transform: capitalize;
}

.pokemon .info .types {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.pokemon .info .type {
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.7em;
    color: white;
}

/* 类型颜色定义 */
.type.fire { background-color: #FD7D24; }
.type.grass { background-color: #9BCC50; }
.type.water { background-color: #4592C4; }
.type.electric { background-color: #EED535; color: #333; }
.type.psychic { background-color: #F366B9; }
.type.fighting { background-color: #D56723; }
.type.normal { background-color: #A4ACAF; }
.type.flying { background-color: #3DC7EF; }
.type.poison { background-color: #B97FC9; }
.type.ground { background-color: #AB9842; }
.type.rock { background-color: #A38C21; }
.type.bug { background-color: #729F3F; }
.type.ghost { background-color: #7B62A3; }
.type.steel { background-color: #9EB7B8; }
.type.dragon { background-color: #53A4CF; }
.type.dark { background-color: #707070; }
.type.fairy { background-color: #FDB9E9; color: #333; }

/* 响应式设计 */
@media (max-width: 768px) {
    .poke-container {
        padding: 0 10px;
    }
    
    .pokemon {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .pokemon {
        width: 100%;
        max-width: 250px;
    }
}