/* ==========================================================================
   帮我选游戏 独立页样式（新增文件，全部使用主题 :root 变量，自动适配明暗主题）
   ========================================================================== */

.pcgh-gp-page {
	padding: 36px 0 72px;
}

/* ---------- 页头 ---------- */
.pcgh-gp-hero {
	max-width: 720px;
	margin: 0 auto 28px;
	text-align: center;
}

.pcgh-gp-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(var(--pcgh-primary-rgb, 59, 130, 246), 0.12);
	color: var(--pcgh-primary);
	font-size: 13px;
	font-weight: 600;
}

.pcgh-gp-kicker svg {
	width: 16px;
	height: 16px;
}

.pcgh-gp-hero__title {
	margin: 14px 0 8px;
	font-size: 34px;
	font-weight: 800;
	letter-spacing: 1px;
}

.pcgh-gp-hero__desc {
	margin: 0;
	color: var(--pcgh-text-2);
	font-size: 14px;
	line-height: 1.8;
}

/* ---------- 筛选条 ---------- */
.pcgh-gp-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	max-width: 720px;
	margin: 0 auto 30px;
	padding: 16px 18px;
	background: var(--pcgh-surface);
	border: 1px solid var(--pcgh-border);
	border-radius: 16px;
}

.pcgh-gp-bar__label {
	color: var(--pcgh-text-2);
	font-size: 14px;
	font-weight: 600;
}

.pcgh-gp-bar__select {
	min-width: 180px;
	padding: 10px 12px;
	border: 1px solid var(--pcgh-border);
	border-radius: 10px;
	background: var(--pcgh-surface-2);
	color: var(--pcgh-text);
	font-size: 14px;
	outline: none;
}

.pcgh-gp-bar__select:focus {
	border-color: var(--pcgh-primary);
}

.pcgh-gp-bar__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 26px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--pcgh-primary), var(--pcgh-primary-2, var(--pcgh-primary)));
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pcgh-gp-bar__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(var(--pcgh-primary-rgb, 59, 130, 246), 0.35);
}

.pcgh-gp-bar__btn svg {
	width: 16px;
	height: 16px;
}

/* ---------- 抽取结果卡片 ---------- */
.pcgh-gp-result {
	max-width: 760px;
	margin: 0 auto;
}

.pcgh-gp-card {
	display: flex;
	gap: 22px;
	overflow: hidden;
	background: var(--pcgh-surface);
	border: 1px solid var(--pcgh-border);
	border-radius: 18px;
	animation: pcgh-gp-pop 0.35s ease;
}

@keyframes pcgh-gp-pop {
	from {
		transform: scale(0.96);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.pcgh-gp-card__media {
	position: relative;
	flex: 0 0 280px;
	display: block;
	overflow: hidden;
	background: var(--pcgh-surface-2);
}

.pcgh-gp-card__media img {
	width: 100%;
	height: 100%;
	min-height: 190px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.pcgh-gp-card:hover .pcgh-gp-card__media img {
	transform: scale(1.04);
}

.pcgh-gp-card__media--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 190px;
	background: linear-gradient(135deg, rgba(var(--pcgh-primary-rgb, 59, 130, 246), 0.25), rgba(var(--pcgh-primary-rgb, 59, 130, 246), 0.08));
}

.pcgh-gp-card__placeholder {
	display: flex;
	color: var(--pcgh-primary);
	opacity: 0.7;
}

.pcgh-gp-card__placeholder svg {
	width: 42px;
	height: 42px;
}

.pcgh-gp-card__body {
	flex: 1;
	min-width: 0;
	padding: 20px 22px 20px 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pcgh-gp-card__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
}

.pcgh-gp-card__title a {
	color: var(--pcgh-text);
	text-decoration: none;
}

.pcgh-gp-card__title a:hover {
	color: var(--pcgh-primary);
}

.pcgh-gp-card__meta {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 13px;
	color: var(--pcgh-text-2);
}

.pcgh-gp-card__score {
	color: #f59e0b;
	font-weight: 700;
}

.pcgh-gp-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pcgh-gp-card__tag {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--pcgh-surface-2);
	border: 1px solid var(--pcgh-border);
	color: var(--pcgh-text-2);
	font-size: 12px;
}

.pcgh-gp-card__actions {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pcgh-gp-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 20px;
	border-radius: 999px;
	border: 1px solid var(--pcgh-border);
	background: var(--pcgh-surface-2);
	color: var(--pcgh-text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.pcgh-gp-btn:hover {
	border-color: var(--pcgh-primary);
	color: var(--pcgh-primary);
}

.pcgh-gp-btn svg {
	width: 14px;
	height: 14px;
}

.pcgh-gp-btn--primary {
	border: none;
	background: var(--pcgh-primary);
	color: #fff;
}

.pcgh-gp-btn--primary:hover {
	background: var(--pcgh-primary-2, var(--pcgh-primary));
	color: #fff;
}

/* ---------- 空状态 ---------- */
.pcgh-gp-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 48px 20px;
	background: var(--pcgh-surface);
	border: 1px dashed var(--pcgh-border);
	border-radius: 18px;
	color: var(--pcgh-text-2);
	text-align: center;
}

.pcgh-gp-empty svg {
	width: 40px;
	height: 40px;
	opacity: 0.6;
}

.pcgh-gp-empty p {
	margin: 0;
	font-size: 14px;
}

/* ---------- 最近抽到 ---------- */
.pcgh-gp-history {
	max-width: 760px;
	margin: 34px auto 0;
}

.pcgh-gp-history__title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	color: var(--pcgh-text);
}

.pcgh-gp-history__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.pcgh-gp-history__list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px;
	background: var(--pcgh-surface);
	border: 1px solid var(--pcgh-border);
	border-radius: 12px;
	font-size: 13px;
}

.pcgh-gp-history__list li a {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--pcgh-text);
	text-decoration: none;
}

.pcgh-gp-history__list li a:hover {
	color: var(--pcgh-primary);
}

.pcgh-gp-history__list li span {
	flex: none;
	color: var(--pcgh-text-3);
	font-size: 12px;
}

.pcgh-gp-history__empty {
	grid-column: 1 / -1;
	justify-content: center;
	color: var(--pcgh-text-3);
}

/* ---------- 窄屏 ---------- */
@media (max-width: 760px) {
	.pcgh-gp-hero__title {
		font-size: 26px;
	}

	.pcgh-gp-card {
		flex-direction: column;
	}

	.pcgh-gp-card__media {
		flex: none;
		width: 100%;
		aspect-ratio: 16 / 9;
	}

	.pcgh-gp-card__body {
		padding: 0 18px 18px;
	}

	.pcgh-gp-history__list {
		grid-template-columns: 1fr;
	}
}
