/* 全局样式 */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
}

/* 轮播图样式 */
.carousel-item img {
    height: 25vh;
    object-fit: cover;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 10px;
}

/* 卡片样式 */
.card {
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 150px;
    object-fit: cover;
}

/* 详情页样式 */
#gameDetail .rating {
    font-size: 1.2rem;
    color: #ffc107;
}

/* 游戏封面平铺样式 */
.game-cover-container {
    width: 100%;
    padding-bottom: 60%; /* 控制宽高比例 */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.game-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
	height: 100%;
    object-fit: cover; /* 确保图片平铺填充整个容器 */
}

/* 游戏截图轮播样式 */
#screenshotCarousel {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.screenshot-img {
    height: 300px;
    object-fit: cover;
    cursor: pointer; /* 指示可点击 */
}

/* Lightbox 自定义样式 */
.lb-data .lb-caption {
    font-size: 16px;
    font-weight: bold;
}

.carousel-caption p {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .carousel-item img {
        height: 20vh;
    }
    
    .carousel-caption {
        display: block !important;
        padding: 5px;
    }
    
    .carousel-caption h5 {
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    .carousel-caption p {
        font-size: 0.8rem;
        margin-bottom: 0;
    }
    
    .screenshot-img {
        height: 200px;
    }

	.card-title {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.card-text {
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2; /* 显示两行 */
	}
}