/* 新增样式 */
.icon-list-container {
    margin-top: 30px;
    margin-bottom: 50px;
    padding: 20px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}
.icon-list-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}
.icon-list-container h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}
.icon-list {
    display: inline-flex;
    gap: 20px;
    padding: 10px;
}
.game-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, color 0.3s ease;
}
.game-icon-item:hover {
    transform: scale(1.1);
    color: var(--secondary-color);
}
.game-icon-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}
.game-icon-item:hover img {
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px var(--secondary-color);
}
.game-icon-item span {
    margin-top: 10px;
    font-size: 0.9em;
    white-space: normal;
    max-width: 100px;
}

/* 当父元素被选中时，a标签的样式 */
.game-icon-item.active {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.1); /* 放大整个容器 */
    position: relative;
    z-index: 10;
    transition: all 0.3s;
}

/* 当父元素被选中时，内部图片的样式 */
.game-icon-item.active img {
    /* 只在图片上添加发光效果和脉冲动画 */
    box-shadow: 0 0 25px 5px var(--secondary-color);
    animation: pulse 1.5s infinite;
}

/* 脉冲动画，让光晕有心跳效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 10px 2px var(--secondary-color);
    }
    50% {
        box-shadow: 0 0 30px 8px var(--secondary-color);
    }
    100% {
        box-shadow: 0 0 10px 2px var(--secondary-color);
    }
}

.comment-section {
    margin-top: 60px;
    padding: 30px;
    background: rgba(20, 25, 30, 0.8);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.comment-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
    margin-bottom: 25px;
}

.comment-form .form-group {
    margin-bottom: 20px;
}
.comment-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: bold;
}
.comment-form input[type="text"],
.comment-form textarea,
.comment-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background: rgba(13, 10, 15, 0.5);
    color: var(--text-color);
    border-radius: 8px;
}
.comment-form textarea {
    resize: vertical;
    min-height: 100px;
}

.comment-form .stars {
    color: #f39c12;
    font-size: 1.5rem;
}
.comment-form .stars i {
    cursor: pointer;
    transition: color 0.2s;
}
.comment-form .stars i.active {
    color: gold;
    text-shadow: 0 0 5px gold;
}

.comment-form .submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-color);
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--primary-color);
}
.comment-form .submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--primary-color), 0 0 25px var(--secondary-color);
}

.comment-list {
    margin-top: 40px;
}
.comment-item {
    display: flex;
    align-items: flex-start;
    background: rgba(20, 25, 30, 0.6);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}
.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid var(--secondary-color);
    object-fit: cover;
}
.comment-content {
    flex-grow: 1;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.comment-header .user-name {
    font-weight: bold;
    color: var(--primary-color);
}
.comment-header .user-rating {
    color: #f39c12;
}
.comment-text {
    margin-top: 5px;
    font-size: 0.95em;
}

@media (max-width: 768px) {
    .comment-section {
        padding: 20px;
    }
    .comment-section h3 {
        font-size: 1.5rem;
    }
}

.page-link {
    margin: 50px 5px 0 0;
    font-family: 'Courier New', Courier, monospace;
    color: #e6e6e6;
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(20, 25, 30, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.2);
    /* 默认隐藏短文本 */
    .short-text {
        display: none;
    }
}

.page-link:hover {
    color: #00ffff;
    border-color: #00ffff;
    background-color: rgba(0, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 15px #00ffff;
}

.page-link.active {
    color: #000;
    background-color: #00ffff;
    border-color: #00ffff;
    box-shadow: 0 0 20px #00ffff;
    font-weight: bold;
    transform: scale(1.05);
}

.page-link.active:hover {
    cursor: default;
    transform: scale(1.05);
}

.ellipsis {
    margin: 50px 5px 0 0;
    font-family: 'Courier New', Courier, monospace;
    color: #e6e6e6;
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(20, 25, 30, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.2);
}

/* --- 响应式设计：移动兼容样式 --- */
@media (max-width: 600px) {
    .pagination {
        /* 在小屏幕上允许换行以避免拥挤 */
        flex-wrap: wrap;
        gap: 8px;
    }

    .page-link {
        padding: 8px 12px; /* 减小内边距 */
        font-size: 0.9em;
    }

    .prev-next {
        /* 在小屏幕上隐藏长文本，显示短文本 */
        .long-text {
            display: none;
        }
        .short-text {
            display: inline-block;
        }
    }
}

.games-page{
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

