/* /app/ 专题页 — SEO/内容向布局 */

.qfgame-jsq-section-intro {
	line-height: 1.65;
}

/* 游戏图标 + 攻略三栏合并区 */
.qfgame-jsq-games-matrix .qfgame-jsq-game-strip + .qfgame-jsq-game-strip {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(55, 65, 81, 0.45);
}

.qfgame-jsq-combined-matrix {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(55, 65, 81, 0.65);
}

@media (min-width: 768px) {
	.qfgame-jsq-combined-matrix {
		margin-top: 2.5rem;
		padding-top: 2.5rem;
	}
}

.qfgame-jsq-combined-matrix--solo {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

html {
	scroll-behavior: smooth;
}

/* 专题页顶栏锚点导航（参考单页落地目录） */
.qfgame-jsq-topic-nav--desktop .qfgame-jsq-topic-nav__link.is-active,
.qfgame-jsq-topic-nav--desktop .qfgame-jsq-topic-nav__link:first-child.is-active {
	color: #fff;
	font-weight: 600;
}

.qfgame-jsq-topic-nav--mobile .qfgame-jsq-topic-nav__link.is-active {
	color: #fff;
	font-weight: 600;
	padding-left: 0.5rem;
	border-left: 2px solid #38bdf8;
}

/* /app/ 加速器排行榜 — 雷神式卡片 */

.qfgame-acc-rank-grid--three {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 768px) {
	.qfgame-acc-rank-grid--three {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

@media (min-width: 1024px) {
	.qfgame-acc-rank-grid--three {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

.qfgame-acc-rank-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #2b303b;
	min-height: 0;
}

.qfgame-acc-rank-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.25rem 1.25rem 1.5rem;
	padding-top: 1.5rem;
}

/* 右上角 TOP 角标 */
.qfgame-acc-top-ribbon {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	padding: 0.35rem 0.85rem 0.4rem 1rem;
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1;
	color: #fff;
	letter-spacing: 0.04em;
	border-bottom-left-radius: 0.65rem;
	pointer-events: none;
}

.qfgame-acc-rank-card--rank-1 .qfgame-acc-top-ribbon {
	background: linear-gradient(135deg, #f97316, #ea580c);
}

.qfgame-acc-rank-card--rank-2 .qfgame-acc-top-ribbon {
	background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}

.qfgame-acc-rank-card--rank-3 .qfgame-acc-top-ribbon {
	background: linear-gradient(135deg, #d6b892, #b8956a);
	color: #1f2937;
}

/* 头部：左图右文 */
.qfgame-acc-rank-head {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	margin-bottom: 1rem;
	padding-right: 2.5rem;
}

.qfgame-acc-rank-head__logo {
	display: block;
	width: 4rem;
	height: 4rem;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 0.65rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: #1a202c;
}

.qfgame-acc-rank-title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
}

.qfgame-acc-rank-title a {
	display: block;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.qfgame-acc-rank-subtitle {
	margin: 0.35rem 0 0;
	font-size: 0.875rem;
	line-height: 1.45;
	color: #e5e7eb;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* 描述正文：固定高度对齐（参考雷神下载卡片文案区） */
.qfgame-acc-rank-desc {
	flex: 1;
	margin: 0 0 1.25rem;
	min-height: 6.75rem;
	font-size: 0.875rem;
	line-height: 1.65;
	color: #9ca3af;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}

/* /app/ 首屏三栏攻略矩阵：与图1一致固定列表高度 */
.qfgame-jsq-matrix-list--app {
	min-height: 11.5rem;
}

/* 绿色下载按钮 */
.qfgame-acc-rank-actions {
	margin-top: auto;
}

.qfgame-acc-rank-download {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	background: #3b82f6;
	box-shadow: none;
	transition: filter 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.qfgame-acc-rank-download:hover {
	filter: brightness(1.08);
	color: #fff;
	background: #2563eb;
	transform: translateY(-1px);
}

.qfgame-acc-filter-bar {
	margin-bottom: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
}

/* /app/ 资讯区块分页 */
.qfgame-jsq-news-pagination__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #d1d5db;
	text-decoration: none;
	background: #1f2937;
	border: 1px solid rgba(75, 85, 99, 0.5);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

a.qfgame-jsq-news-pagination__btn:hover {
	background: #3b82f6;
	border-color: #3b82f6;
	color: #fff;
}

.qfgame-jsq-news-pagination__btn--disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.qfgame-jsq-news-pagination__status {
	min-width: 7rem;
	text-align: center;
}
