/* Steam 商城购买框 - 前端样式 */
.steam-buy-box {
	background: #1b2838;
	background: linear-gradient(135deg, #223c57 0%, #1b2838 55%, #16202d 100%);
	border-radius: 8px;
	padding: 20px 24px 18px;
	margin: 24px 0;
	color: #c6d4df;
	font-family: "Motiva Sans", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

/* 标题行 */
.steam-buy-box .sbb-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.steam-buy-box .sbb-title {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 22px;
	font-weight: 400;
	color: #8f98a0;
	line-height: 1.35;
}

.steam-buy-box .sbb-name {
	color: #e9eef2;
	font-weight: 500;
}

.steam-buy-box .sbb-steam {
	color: #c6d4df;
}

.steam-buy-box .sbb-logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.steam-buy-box .sbb-logo em {
	font-style: normal;
	color: #8f98a0;
	font-size: 13px;
	letter-spacing: 2px;
	font-weight: 700;
}

.steam-buy-box .sbb-logo sup {
	font-size: 7px;
}

/* 主体：图 + 简介 */
.steam-buy-box .sbb-body {
	display: flex;
	gap: 18px;
	align-items: flex-start;
}

.steam-buy-box .sbb-thumb {
	flex: 0 0 auto;
	max-width: 240px;
	display: block;
	border-radius: 3px;
	overflow: hidden;
}

.steam-buy-box .sbb-thumb img {
	display: block;
	width: 100%;
	max-width: 240px;
	height: auto;
	border-radius: 3px;
}

.steam-buy-box .sbb-thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 240px;
	height: 90px;
	background: #2a475e;
	color: #c6d4df;
	border-radius: 3px;
	font-size: 14px;
	text-align: center;
	padding: 6px;
	box-sizing: border-box;
}

.steam-buy-box .sbb-desc {
	margin: 0;
	flex: 1 1 auto;
	color: #c6d4df;
	font-size: 14.5px;
	line-height: 1.75;
	text-align: justify;
}

/* 底部：平台图标 + 价格/按钮 */
.steam-buy-box .sbb-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 18px;
}

.steam-buy-box .sbb-platform {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
}

.steam-buy-box .sbb-buy {
	display: flex;
	align-items: stretch;
	text-decoration: none !important;
	border-radius: 3px;
	overflow: hidden;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
	margin-left: auto;
}

.steam-buy-box .sbb-discount {
	display: flex;
	align-items: center;
	background: #4c6b22;
	color: #beee11;
	font-size: 19px;
	font-weight: 700;
	padding: 6px 10px;
}

.steam-buy-box .sbb-prices {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
	background: #000;
	background: rgba(0, 0, 0, 0.55);
	padding: 4px 10px;
	min-width: 86px;
}

.steam-buy-box .sbb-original {
	color: #7c8b95;
	font-size: 12px;
	text-decoration: line-through;
	line-height: 1.3;
}

.steam-buy-box .sbb-final {
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
}

.steam-buy-box .sbb-btn {
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, #75b022 5%, #588a1b 95%);
	color: #d2efa9 !important;
	font-size: 15px;
	font-weight: 500;
	padding: 10px 16px;
	text-decoration: none !important;
	white-space: nowrap;
	transition: filter 0.15s ease, color 0.15s ease;
}

.steam-buy-box .sbb-buy:hover .sbb-btn {
	filter: brightness(1.15);
	color: #fff !important;
}

/* 移动端适配 */
@media (max-width: 640px) {
	.steam-buy-box {
		padding: 16px;
	}
	.steam-buy-box .sbb-title {
		font-size: 18px;
	}
	.steam-buy-box .sbb-body {
		flex-direction: column;
	}
	.steam-buy-box .sbb-thumb,
	.steam-buy-box .sbb-thumb img,
	.steam-buy-box .sbb-thumb-fallback {
		max-width: 100%;
		width: 100%;
	}
	.steam-buy-box .sbb-foot {
		flex-direction: column;
		align-items: flex-end;
	}
}
