/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

/* 页头样式 */
header {
    background-color: #ffcc00;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo h1 {
    color: #333;
    font-size: 28px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.search-bar input {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    width: 250px;
    outline: none;
}

/* 导航栏样式 */
nav {
    background-color: #333;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-menu {
    display: flex;
    justify-content: center;
}

.main-menu li {
    position: relative;
    margin: 0 15px;
}

.main-menu a {
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    transition: color 0.3s;
}

.main-menu a:hover {
    color: #ffcc00;
}

/* 下拉菜单样式 */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-content a {
    color: #333 !important;
    padding: 12px 16px;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #333 !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* 主要内容样式 */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 图片轮播样式 */
.slider-container {
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slider {
    width: 100%;
    height: 400px;
    position: relative;
}

.slides {
    width: 100%;
    height: 100%;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 20px;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev-btn, .next-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

.slider-dots {
    display: flex;
    margin: 0 20px;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: white;
}

/* 精灵列表样式 */
.pokemon-list h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: #333;
}

.pokemon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.pokemon-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pokemon-card img {
    width: 100%;
    height: 200px; /* 设置图片高度 */
    object-fit: contain; /* 确保图片完整显示 */
    display: block;
}

.pokemon-card h3 {
    padding: 15px 15px 5px;
    font-size: 20px;
}

.pokemon-card p {
    padding: 0 15px 15px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.read-more {
    display: block;
    text-align: center;
    background-color: #ffcc00;
    color: #333;
    padding: 8px 0;
    font-weight: bold;
    transition: background-color 0.3s;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 15px 15px;
}

.view-more {
    text-align: center;
    margin: 20px 0;
}

.view-more a {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    text-decoration: none;
}

.view-more a:hover {
    background-color: #555;
}

/* 皮卡丘页面样式 */
.pokemon-banner {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.pokemon-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pokemon-banner h2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 20px;
    font-size: 32px;
}

.pokemon-info {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.info-section {
    margin-bottom: 25px;
}

.info-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 5px;
    display: inline-block;
}

.info-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
}

.skill-item {
    background-color: #f5f5f5;
    padding: 8px 15px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    min-width: 200px;
}

.skill-name {
    font-weight: bold;
    color: #333;
}

.skill-level {
    color: #666;
    font-size: 12px;
}

.related-pokemon {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.related-pokemon h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-card {
    text-align: center;
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.related-card h4 {
    margin-bottom: 10px;
}

.related-card a {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.related-card a:hover {
    background-color: #555;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ffcc00;
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ffcc00;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #555;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px;
    }

    .logo {
        margin-bottom: 10px;
    }

    .search-bar input {
        width: 100%;
    }

    .main-menu {
        flex-wrap: wrap;
    }

    .main-menu li {
        margin: 5px;
    }

    .slider {
        height: 300px;
    }

    .pokemon-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .pokemon-banner {
        height: 250px;
    }

    .pokemon-banner h2 {
        font-size: 24px;
    }
}.pokemon-card img {
    width: 100%;
    height: 200px; /* 设置图片高度 */
    object-fit: contain; /* 确保图片完整显示 */
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 添加过渡效果 */
}

.pokemon-card:hover img {
    transform: scale(1.05); /* 鼠标悬停时放大图片 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* 添加阴影 */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 1200px; /* 设定一个固定宽度 */
    margin: 0 auto; /* 居中显示 */
    min-height: 100vh; /* 至少占满整个视口高度 */
    overflow-x: hidden; /* 隐藏水平滚动条 */
}

/* 对于其他元素，指定固定宽度和高度 */
.container {
    width: 1200px;
    margin: 0 auto;
}

header, nav, main, footer {
    width: 1200px;
    margin: 0 auto;
}

/* 对于图片和媒体元素，禁用弹性盒和网格布局 */
img, video, audio {
    max-width: none; /* 允许内容超出视口 */
}

/* 禁用响应式布局 */
@media {
    display: none !important; /* 移除所有媒体查询效果 */
}