/* ============================================================
   云竹涧 · 首页搜索建议下拉
   ============================================================ */

.yzg-search { position: relative; }

.yzg-search-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 1000;
	background: #151d2e;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
	max-height: 420px;
	overflow-y: auto;
	text-align: left;
}
.yzg-search-dropdown[hidden] { display: none; }

.yzg-search-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	color: #e8eef7;
	text-decoration: none;
	transition: background 0.15s;
}
.yzg-search-item + .yzg-search-item { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.yzg-search-item:hover,
.yzg-search-item.active { background: rgba(255, 255, 255, 0.06); }

.yzg-search-item img {
	width: 44px;
	height: 21px;
	object-fit: cover;
	border-radius: 3px;
	flex-shrink: 0;
	background: #1c2740;
}
.yzg-s-noimg {
	width: 44px;
	height: 21px;
	border-radius: 3px;
	flex-shrink: 0;
	background: #1c2740;
}

.yzg-search-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.yzg-search-name {
	font-size: 14px;
	color: #e8eef7;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.yzg-search-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
}
.yzg-search-price {
	color: #3ddc84;
	font-weight: 600;
}
.yzg-search-rating {
	color: #3ddc84;
	background: rgba(61, 220, 132, 0.12);
	padding: 2px 7px;
	border-radius: 20px;
}

.yzg-s-name {
	flex: 1;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.yzg-search-item em {
	font-style: normal;
	font-size: 13px;
	color: #9fb0c9;
	white-space: nowrap;
}
.yzg-search-item em s { color: #5a6a84; text-decoration: line-through; }
.yzg-s-free { color: #3ddc84 !important; }
.yzg-s-rate {
	font-style: normal;
	font-size: 12px;
	color: #3ddc84;
	background: rgba(61, 220, 132, 0.12);
	padding: 2px 7px;
	border-radius: 20px;
	flex-shrink: 0;
}

.yzg-search-empty {
	padding: 16px;
	text-align: center;
	color: #7c8aa5;
	font-size: 13px;
}

@media (max-width: 768px) {
	.yzg-search-dropdown {
		left: -12px;
		right: -12px;
		max-height: 60vh;
	}
	.yzg-search-item { padding: 12px 14px; }
}

/* 下拉底部「进入游戏库查看全部」入口 */
.yzg-search-more {
	display: block;
	padding: 10px 16px;
	color: #3ddc84;
	text-align: center;
	font-size: 13px;
	text-decoration: none;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: #151d2e;
	position: sticky;
	bottom: 0;
	transition: background 0.15s;
}
.yzg-search-more:hover { background: rgba(255, 255, 255, 0.06); }
