/* ===========================================================
   FunGame 新主题 (Theme v2) - 覆盖 screen.css 的视觉层
   深色街机风格 / 粘性顶栏 + 分类胶囊 / 卡片网格 / 玻璃拟态弹窗
   =========================================================== */

:root {
	--bg: #0d1020;
	--bg-soft: #141930;
	--surface: #191f38;
	--surface-2: #212945;
	--line: rgba(255, 255, 255, 0.09);
	--text: #e9edfb;
	--text-dim: #9aa3c4;
	--accent: #ff3d71;
	--accent-2: #7c5cff;
	--accent-3: #21d4fd;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* ---------- 基础 ---------- */
html {
	background: var(--bg);
}

body {
	background:
		radial-gradient(1200px 600px at 12% -10%, rgba(124, 92, 255, 0.28), transparent 60%),
		radial-gradient(1000px 520px at 92% 4%, rgba(33, 212, 253, 0.18), transparent 62%),
		var(--bg);
	color: var(--text);
	font-family: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	line-height: 1.6;
}

body,
.app-container,
#app {
	overflow-x: hidden;
}

h1, .h1 {
	color: var(--text);
	text-transform: none;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

h2, .h2 {
	color: var(--text);
	text-transform: none;
	letter-spacing: -0.01em;
}

h3, .h3,
h4, .h4 {
	color: var(--text);
}

p {
	color: var(--text-dim);
}

a {
	color: var(--accent-3);
}

p a {
	color: var(--accent);
}

::selection {
	background: var(--accent);
	color: #fff;
}

/* ---------- 顶部导航 ---------- */
header.main {
	position: sticky;
	top: 0;
	z-index: 200;
	background: rgba(13, 16, 32, 0.82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

header.main .main-section {
	display: flex;
	align-items: center;
	gap: 18px;
	width: 100%;
	max-width: 1280px;
	padding: 14px 24px;
	position: relative;
}

header.main .logo {
	display: block;
	flex: 0 0 auto;
	text-align: left;
	order: 1;
}

header.main .logo svg,
header.main .logo .brand-mark {
	width: 190px;
	max-width: 100%;
	margin: 0;
	display: block;
}

header.main .menuHolder {
	position: static;
	order: 2;
	flex: 1 1 auto;
	min-width: 0;
}

header.main .menuHolder label[for="navigationTrigger"] {
	display: none;
}

header.main .menuHolder #navigationTrigger {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

header.main .menuHolder nav.main {
	display: block;
	position: static;
	float: none;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

header.main .menuHolder nav.main ul {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-start;
	row-gap: 8px;
	gap: 8px;
	padding-bottom: 2px;
}

header.main .menuHolder nav.main ul > li {
	flex: 0 0 auto;
}

header.main .menuHolder nav.main ul > li a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--line);
	color: var(--text-dim);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1;
	transition: all 0.18s ease;
}

header.main .menuHolder nav.main ul > li a img {
	height: 18px;
	width: 18px;
	filter: brightness(1.6) saturate(0.4);
}

header.main .menuHolder nav.main ul > li a:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	transform: translateY(-1px);
}

header.main .menuHolder nav.main ul > li a.active {
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	border-color: transparent;
	color: #fff;
}

header.main .menuHolder nav.main ul.tile-list {
	display: none;
}

header.main .menuHolder nav.main ul:after {
	display: none;
}

/* 去掉旧版导航条左侧的竖条装饰 */
nav.main ul > li a:before {
	display: none;
}

nav.main ul > li a {
	border-bottom: none;
}

/* ---------- 内容容器 ---------- */
.content {
	background: transparent;
}

.main-section {
	width: 100%;
	max-width: 1280px;
	padding: 0 24px;
}

.content .main-section {
	margin-top: 28px;
	margin-bottom: 28px;
}

/* ---------- 首页 Hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	margin: 26px auto 8px;
	max-width: 1280px;
	padding: 54px 44px;
	border-radius: 28px;
	background:
		linear-gradient(135deg, rgba(124, 92, 255, 0.92), rgba(33, 212, 253, 0.55) 55%, rgba(255, 61, 113, 0.75)),
		var(--surface);
	box-shadow: var(--shadow);
}

.hero:before {
	content: "";
	position: absolute;
	inset: -40% -20% auto auto;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 62%);
}

.hero:after {
	content: "";
	position: absolute;
	left: -80px;
	bottom: -120px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 0, 0, 0.28), transparent 65%);
}

.hero-inner {
	position: relative;
	z-index: 2;
	max-width: 640px;
}

.hero-eyebrow {
	display: inline-block;
	margin-bottom: 16px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(9, 12, 24, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

.hero h1 {
	margin: 0 0 14px;
	color: #fff;
	font-size: 44px;
	line-height: 1.1;
	text-align: left;
	text-transform: none;
}

.hero p {
	margin: 0 0 26px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 17px;
	max-width: 520px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero-actions .btn {
	border-radius: 999px;
	padding: 13px 28px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 14px;
	box-shadow: none;
	background: #fff;
	color: #1b1030;
}

.hero-actions .btn-primary {
	background: #101327;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-actions .btn-primary:hover {
	background: #05070f;
}

.hero-stats {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin-top: 34px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	color: #fff;
}

.hero-stats div {
	display: flex;
	flex-direction: column;
}

.hero-stats b {
	font-size: 24px;
	line-height: 1.2;
}

.hero-stats span {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.8;
}

/* ---------- 区块标题 ---------- */
.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}

.section-head h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 24px;
	font-weight: 800;
	text-align: left;
}

.section-head h2 img {
	height: 24px;
	width: 24px;
}

.section-head .section-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid var(--line);
	color: var(--text);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	transition: all 0.18s ease;
}

.section-head .section-more:hover {
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	border-color: transparent;
	color: #fff;
	transform: translateX(2px);
}

/* ---------- 分类快捷宫格 ---------- */
.cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 14px;
	margin-bottom: 12px;
}

.cat-grid a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 20px 12px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--text);
	text-align: center;
	text-decoration: none;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: all 0.2s ease;
}

.cat-grid a img {
	width: 42px;
	height: 42px;
	filter: brightness(1.7) saturate(0.5);
	transition: transform 0.2s ease;
}

.cat-grid a:hover {
	background: var(--surface-2);
	border-color: rgba(255, 255, 255, 0.22);
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.cat-grid a:hover img {
	transform: scale(1.12);
}

/* ---------- 游戏卡片网格 ---------- */
ul.games {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
}

ul.games::before,
ul.games::after {
	content: none;
}

ul.games li {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}

ul.games li a {
	display: block;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--line);
	padding: 10px;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

ul.games li a:hover {
	transform: translateY(-6px);
	border-color: rgba(255, 255, 255, 0.22);
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
}

ul.games li .icon {
	position: relative;
	width: 100%;
	padding-bottom: 0;
	border: none;
	border-radius: 12px;
	box-shadow: none;
	overflow: hidden;
	background: var(--bg-soft);
	aspect-ratio: 1 / 1;
}

ul.games li .icon .clamp {
	display: none;
}

ul.games li .icon img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

ul.games li a:hover .icon img {
	transform: scale(1.08);
}

ul.games li .icon:after {
	content: "PLAY";
	position: absolute;
	inset: auto 0 0 0;
	padding: 8px 0;
	text-align: center;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.18em;
	color: #fff;
	background: linear-gradient(0deg, rgba(255, 61, 113, 0.92), rgba(124, 92, 255, 0.0));
	opacity: 0;
	transition: opacity 0.22s ease;
}

ul.games li a:hover .icon:after {
	opacity: 1;
}

ul.games li .name-container {
	display: block;
	height: auto;
	padding: 12px 4px 6px;
	text-align: left;
}

ul.games li .name {
	color: var(--text);
	font-size: 15px;
	line-height: 1.35;
	font-weight: 700;
	text-align: left;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- 按钮 ---------- */
.btn,
.btn-highlight,
.btn-primary,
.btn-neutral,
.btn-transparent {
	border-radius: 999px;
	box-shadow: none;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 14px;
	padding: 12px 26px;
}

.btn-primary {
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
}

.btn-highlight {
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
}

.btn-neutral {
	background: var(--surface-2);
	color: var(--text);
}

.btn-container {
	margin: 28px 0 8px;
	text-align: center;
}

.btn-container .btn,
.btn-container .btn-primary {
	padding: 13px 34px;
}

/* ---------- 页脚 ---------- */
footer.main {
	margin-top: 60px;
	padding: 54px 0 26px;
	background: linear-gradient(180deg, rgba(10, 12, 26, 0.4), rgba(6, 8, 18, 0.95));
	border-top: 1px solid var(--line);
	color: var(--text);
}

footer.main a {
	color: var(--text-dim);
}

footer.main .footer-content {
	max-width: 1280px;
	min-height: 0;
	padding: 0 24px;
}

footer.main .footer-brand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: 26px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--line);
}

footer.main .footer-brand .brand-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 20px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.01em;
}

footer.main .footer-brand .brand-logo img {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	object-fit: cover;
}

footer.main .footer-brand p {
	margin: 0;
	font-size: 13px;
}

footer.main .footer-content section.tags nav.main {
	background: none;
	width: auto;
	margin: 0;
	padding: 0;
}

footer.main .footer-content section.tags nav.main ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-start;
}

footer.main .footer-content section.tags nav.main ul li {
	padding: 0;
	width: auto;
}

footer.main .footer-content section.tags nav.main ul li a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--line);
	padding: 9px 16px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-dim);
}

footer.main .footer-content section.tags nav.main ul li a img {
	height: 18px;
	width: 18px;
	filter: brightness(1.6) saturate(0.4);
}

footer.main .footer-content section.tags nav.main ul li a:hover {
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	border-color: transparent;
	color: #fff;
}

footer.main .footer-content section.tags nav.main ul li a:hover:before,
footer.main .footer-content section.tags nav.main ul li a.active:before {
	display: none;
}

footer.main .copyright {
	margin: 30px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	text-align: center;
}

footer.main .copyright a {
	color: var(--text-dim);
	text-decoration: underline;
}

/* ---------- 详情页 ---------- */
.game header {
	margin-bottom: 34px;
}

.game header .background {
	background: linear-gradient(135deg, rgba(124, 92, 255, 0.85), rgba(33, 212, 253, 0.45) 55%, rgba(255, 61, 113, 0.7));
	background-size: cover;
	border-radius: 26px;
}

.game header .background .backgroundDarken {
	padding: 56px 24px;
	background: transparent;
}

.game header .icon {
	width: 132px;
	border-radius: 20px;
	border: 3px solid rgba(255, 255, 255, 0.85);
	box-shadow: var(--shadow);
}

.game header h1 {
	color: #fff;
	text-align: center;
	font-size: 36px;
	text-transform: none;
}

.game .play-btn-container .play-btn {
	border-radius: 999px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: 0 12px 26px rgba(255, 61, 113, 0.35);
}

.game .game-infos {
	margin-left: 0;
	margin-right: 0;
}

.info-panel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px 28px;
}

.info-panel h3 {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent-3);
}

.info-panel h3:not(:first-child) {
	margin-top: 26px;
}

.game .game-description {
	padding: 0;
	margin-bottom: 0;
}

.game .game-description p {
	text-align: left;
	max-width: none;
	margin: 0;
	color: var(--text-dim);
	font-size: 15px;
	line-height: 1.75;
}

.game .game-categories {
	margin-top: 0;
}

.game .game-categories ul {
	margin-top: 0;
	justify-content: flex-start;
}

.game .game-categories ul li {
	background: var(--surface-2);
	border-radius: 999px;
}

.game .game-categories ul li a {
	color: var(--accent-3);
	font-weight: 700;
}

.game .similarGames h2 {
	text-align: left;
	font-size: 24px;
}

.game .for-companies {
	color: var(--text-dim);
}

/* ---------- 页脚协议链接 ---------- */
.copyright-links a {
	color: var(--accent-3);
}

/* ---------- 返回顶部 ---------- */
.backToTop {
	position: fixed;
	right: 16px;
	bottom: 56px;
	width: 54px;
	height: 54px;
	z-index: 60;
	cursor: pointer;
	border-radius: 16px;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
}

.backToTop img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- 响应式 ---------- */
@media only screen and (max-width: 750px) {
	header.main .main-section {
		flex-wrap: nowrap;
		gap: 10px;
		padding: 12px 14px;
	}

	header.main .logo svg,
	header.main .logo .brand-mark {
		width: 150px;
	}

	header.main .menuHolder {
		order: 2;
		width: auto;
		flex: 0 0 auto;
		display: flex;
		align-items: center;
	}

	header.main .menuHolder label[for="navigationTrigger"] {
		display: block;
		position: static;
		background: rgba(255, 255, 255, 0.1);
		border: 1px solid var(--line);
	}

	header.main .menuHolder nav.main {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		margin-top: -1px;
		z-index: 120;
		background: #141930;
		border-bottom: 1px solid var(--line);
		padding: 12px 14px;
		max-height: 70vh;
		overflow-y: auto;
	}

	header.main .menuHolder nav.main ul {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
	}

	header.main .menuHolder nav.main ul > li a {
		width: 100%;
		border-radius: var(--radius-sm);
		padding: 12px 14px;
	}

	header.main .menuHolder #navigationTrigger:checked ~ nav.main {
		display: block;
	}

	.hero {
		margin: 18px auto 0;
		padding: 34px 22px;
		border-radius: 22px;
	}

	.hero h1 {
		font-size: 30px;
	}

	.hero p {
		font-size: 15px;
	}

	.hero-stats b {
		font-size: 20px;
	}

	.main-section {
		padding: 0 14px;
	}

	ul.games {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 14px;
	}

	.section-head h2 {
		font-size: 20px;
	}

	.game header h1 {
		font-size: 26px;
	}
}
