/* 全局样式 */
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    margin: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    background-color: #e63946; /* 宝可梦红色 */
    color: white;
    padding: 20px 0;
    text-align: center;
    border-bottom: 5px solid #3d405b; /* 深蓝色 */
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.logo {
    max-width: 100px;
    margin-bottom: 10px;
}

/* 主内容区域 */
main section {
    background-color: white;
    margin-bottom: 25px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

h2 {
    color: #3d405b;
    border-bottom: 3px solid #fca311; /* 宝可梦黄色 */
    padding-bottom: 10px;
    margin-top: 0;
}

/* 特色列表 */
#features ul {
    list-style-type: none;
    padding: 0;
}

#features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

#features li:last-child {
    border-bottom: none;
}

/* 图片画廊 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 下载区域 */
.download-list .download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.download-item h3 {
    margin: 0 0 5px 0;
    color: #e63946;
}

.download-item p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

.download-btn {
    background-color: #4caf50; /* 绿色，代表安全和下载 */
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    text-align: center;
    margin-top: 10px;
}

@media (min-width: 600px) {
    .download-btn {
        margin-top: 0;
    }
}


.download-btn:hover {
    background-color: #45a049;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #aaa;
}

.pokeball {
    width: 50px;
    height: 50px;
    background: linear-gradient(to bottom, #e63946 50%, white 50%);
    border-radius: 50%;
    border: 3px solid black;
    position: relative;
    margin: 15px auto 0;
}

.pokeball::before {
    content: '';
    position: absolute;
    height: 3px;
    left: 0;     /* <--- 新增：从左边0像素开始 */
    right: 0;    /* <--- 新增：到右边0像素结束 */
    background: black;
    top: 50%;
    transform: translateY(-50%);
    /* width: 100%; 这一行可以删掉，因为它被 left 和 right 替代了 */
}

.pokeball-button {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 3px solid black;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 图片放大镜样式 */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    animation: zoomIn 0.3s;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ccc;
}

@keyframes zoomIn {
    from { transform: scale(0.5); }
    to { transform: scale(1); }
}