/* ==========================================================================
   FunGame 新主题 —— 浅绿 (#CCFFCC) / 柔和玻璃拟态
   覆盖 assets/0.2-9116448e/css/screen.css 的基础外观
   ========================================================================== */

:root {
	--bg-0: #CCFFCC;
	--bg-1: #C2F7C2;
	--bg-2: #B4F0B4;
	--card: rgba(255, 255, 255, .72);
	--card-strong: rgba(255, 255,255, .9);
	--stroke: rgba(28, 92, 28, .16);
	--stroke-soft: rgba(28, 92, 28, .1);
	--text: #1c331c;
	--text-dim: #4c6b4c;
	--accent: #4CAF50;
	--accent-2: #2E7D32;
	--accent-3: #8BC34A;
	--on-accent: #ffffff;
	/* 分类图标统一着色为品牌绿（图标本身有白色/深青两套，统一处理更整齐） */
	--icon-filter: brightness(0) saturate(100%) invert(21%) sepia(14%) saturate(1180%) hue-rotate(87deg) brightness(94%) contrast(92%);
	--radius: 18px;
	--shell: 1220px;
}

html {
	background: var(--bg-0);
}

body {
	font-family: "Segoe UI", "Helvetica Neue", Roboto, Helvetica, Arial, sans-serif;
	color: var(--text);
	background:
		radial-gradient(1100px 620px at 12% -8%, rgba(255, 255, 255, .75), transparent 62%),
		radial-gradient(900px 520px at 92% 4%, rgba(139, 195, 74, .28), transparent 60%),
		radial-gradient(800px 600px at 50% 108%, rgba(76, 175, 80, .22), transparent 60%),
		linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
	background-attachment: fixed;
	min-height: 100%;
	color-scheme: light;
	/* 旧样式 body{overflow-x:hidden} 会让 position:sticky 失效 */
	overflow-x: visible;
}

.app-container {
	background: transparent;
	/* 旧样式为 overflow:hidden，会破坏 sticky 头部定位 */
	overflow: visible;
}

#app {
	padding-bottom: 0;
}

/* ---------------------------------------------------------------- 通用文字 */
h1, .h1, h2, .h2, h3, .h3 {
	text-transform: none;
	text-align: left;
	color: var(--text);
	letter-spacing: -.01em;
}

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

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

/* ------------------------------------------------------------------ 顶栏 */
header.main {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(255, 255, 255, .8);
	backdrop-filter: blur(16px) saturate(140%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	border-bottom: 1px solid var(--stroke);
	box-shadow: 0 10px 30px -22px rgba(28, 92, 28, .45);
}

header.main .main-section {
	width: min(var(--shell), 100%);
	padding: 0 22px;
	display: flex;
	align-items: center;
	gap: 18px;
	height: 68px;
}

/* Logo */
header.main .logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	flex: 0 0 auto;
	order: 1;
}

header.main .logo .logo-mark {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 16px;
	color: var(--on-accent);
	letter-spacing: .5px;
	background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent) 55%, var(--accent-2) 110%);
	box-shadow: 0 8px 20px -8px rgba(46, 125, 50, .75);
}

header.main .logo .logo-text {
	font-size: 20px;
	font-weight: 800;
	color: var(--text);
	letter-spacing: -.02em;
	line-height: 1;
}

header.main .logo .logo-text em {
	font-style: normal;
	font-weight: 500;
	font-size: 12px;
	color: var(--text-dim);
	margin-left: 5px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

header.main .logo svg {
	display: none;
}

/* 语言切换 */
.language-select {
	position: relative;
	order: 3;
	right: auto;
	top: auto;
	height: 36px;
	width: 64px;
	border-radius: 999px;
	background: var(--card-strong);
	border: 1px solid var(--stroke);
	flex: 0 0 auto;
}

.language-select .value {
	background: transparent;
	padding: 9px 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--text);
	display: flex;
	align-items: center;
	justify-content: center;
}

.language-select .value:before {
	border-top-color: var(--text-dim);
	right: 8px;
	margin-top: -4px;
}

/* 导航 */
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 nav.main {
	display: block;
	position: static;
	float: none;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	background: none;
	box-shadow: none;
}

header.main .menuHolder nav.main ul {
	display: flex;
	align-items: center;
	gap: 6px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	padding: 4px 0;
}

header.main .menuHolder nav.main ul::-webkit-scrollbar {
	display: none;
}

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

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

header.main .menuHolder nav.main ul > li a,
header.main .menuHolder nav.main > ul > li a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 13px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--card);
	color: var(--text-dim);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	text-decoration: none;
	transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

/* 顶部导航里隐藏 tile-list 磁贴（仅 Best 静态页用到） */
header.main .menuHolder nav.main ul.tile-list {
	display: none;
}

header.main .menuHolder nav.main ul > li a img {
	height: 18px;
	width: 18px;
	padding: 0 !important;
	filter: var(--icon-filter);
}

header.main .menuHolder nav.main ul > li a i {
	font-size: 1.15em;
	margin-right: 0;
	top: 0;
}

nav.main ul > li a:before {
	display: none;
}

header.main .menuHolder nav.main ul > li a:hover {
	background: linear-gradient(135deg, rgba(139, 195, 74, .35), rgba(76, 175, 80, .22));
	border-color: rgba(76, 175, 80, .5);
	color: var(--text);
	transform: translateY(-1px);
}

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

.content .main-section {
	width: min(var(--shell), 100%);
	margin-top: 34px;
	margin-bottom: 34px;
	padding: 0 22px;
}

/* ------------------------------------------------------------ 首页 Hero */
.hero {
	position: relative;
	width: min(var(--shell), 100%);
	margin: 34px auto 10px;
	padding: 46px 22px 40px;
	border-radius: 28px;
	overflow: hidden;
	border: 1px solid var(--stroke);
	background:
		radial-gradient(700px 320px at 12% 0%, rgba(255, 255, 255, .85), transparent 65%),
		radial-gradient(620px 320px at 88% 100%, rgba(139, 195, 74, .32), transparent 62%),
		linear-gradient(135deg, rgba(255, 255, 255, .6), rgba(204, 255, 204, .45));
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 26px 50px -34px rgba(28, 92, 28, .55);
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(28, 92, 28, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(28, 92, 28, .06) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 78%);
	-webkit-mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 78%);
	pointer-events: none;
}

.hero-inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: 34px;
	align-items: center;
	max-width: 100%;
}

.hero-copy {
	min-width: 0;
}

.hero .eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(76, 175, 80, .16);
	border: 1px solid rgba(76, 175, 80, .45);
	color: var(--accent-2);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.hero .eyebrow i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 10px rgba(76, 175, 80, .8);
}

.hero h1 {
	font-size: clamp(30px, 4.6vw, 52px);
	line-height: 1.1;
	font-weight: 800;
	text-transform: none;
	text-align: left;
	margin: 18px 0 12px;
	letter-spacing: -.025em;
	color: var(--text);
}

.hero h1 span {
	background: linear-gradient(100deg, var(--accent-2), var(--accent) 55%, var(--accent-3));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero p.hero-sub {
	font-size: 16px;
	line-height: 1.65;
	color: var(--text-dim);
	margin: 0 0 24px;
	max-width: 620px;
}

.hero-search {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 560px;
	padding: 7px 7px 7px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .9);
	border: 1px solid var(--stroke);
	box-shadow: 0 18px 40px -26px rgba(28, 92, 28, .6);
}

.hero-search input {
	flex: 1 1 auto;
	margin: 0;
	padding: 10px 2px;
	background: transparent;
	border: 0;
	color: var(--text);
	font-size: 15px;
	outline: none;
}

.hero-search input::placeholder {
	color: #7d9a7d;
}

.hero-search button {
	flex: 0 0 auto;
	border: 0;
	cursor: pointer;
	padding: 10px 22px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	color: var(--on-accent);
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	box-shadow: 0 10px 24px -12px rgba(46, 125, 50, .9);
	transition: transform .16s ease, filter .16s ease;
}

.hero-search button:hover {
	transform: translateY(-1px);
	filter: brightness(1.06);
}

.hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.hero-stats .stat {
	padding: 10px 16px;
	border-radius: 14px;
	background: var(--card);
	border: 1px solid var(--stroke-soft);
}

.hero-stats .stat b {
	display: block;
	font-size: 19px;
	font-weight: 800;
	color: var(--accent-2);
	line-height: 1.2;
}

.hero-stats .stat small {
	font-size: 12px;
	color: var(--text-dim);
	letter-spacing: .04em;
}

/* Hero 右侧热门推荐 */
.hero-side {
	min-width: 0;
	padding: 16px;
	border-radius: 22px;
	background: rgba(255, 255, 255, .78);
	border: 1px solid var(--stroke);
	box-shadow: 0 24px 50px -30px rgba(28, 92, 28, .5);
}

.hero-side-title {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .04em;
	color: var(--text);
	padding: 2px 4px 12px;
}

.hero-picks {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hero-pick {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 10px;
	border-radius: 14px;
	background: var(--card);
	border: 1px solid var(--stroke-soft);
	text-decoration: none;
	transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.hero-pick:hover {
	text-decoration: none;
	background: var(--card-strong);
	border-color: rgba(76, 175, 80, .55);
	transform: translateX(3px);
}

.hp-rank {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 8px;
	display: grid;
	place-items: center;
	font-size: 12px;
	font-weight: 800;
	color: var(--on-accent);
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.hp-cover {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 11px;
	overflow: hidden;
	background: #d6f5d6;
}

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

.hp-name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hp-go {
	flex: 0 0 auto;
	color: var(--text-dim);
	font-size: 17px;
	line-height: 1;
}

/* --------------------------------------------------------- 分类快捷入口 */
.cat-dock {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
}

.cat-chip {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 16px;
	background: var(--card);
	border: 1px solid var(--stroke-soft);
	text-decoration: none;
	transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.cat-chip:hover {
	transform: translateY(-4px);
	background: var(--card-strong);
	border-color: rgba(76, 175, 80, .55);
	box-shadow: 0 20px 36px -24px rgba(46, 125, 50, .8);
}

.cat-chip-icon {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(139, 195, 74, .35), rgba(76, 175, 80, .22));
	border: 1px solid rgba(76, 175, 80, .4);
}

.cat-chip-icon img {
	width: 24px;
	height: 24px;
	filter: var(--icon-filter);
}

.cat-chip-body {
	flex: 1 1 auto;
	min-width: 0;
}

.cat-chip-body b {
	display: block;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--text);
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cat-chip-body small {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--text-dim);
}

.cat-chip-arrow {
	flex: 0 0 auto;
	font-size: 19px;
	color: var(--text-dim);
	line-height: 1;
	transition: transform .18s ease, color .18s ease;
}

.cat-chip:hover .cat-chip-arrow {
	color: var(--accent-2);
	transform: translateX(3px);
}

/* ------------------------------------------------------------ 横向滑轨 */
.rail {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.rail-track {
	flex: 1 1 auto;
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 16px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	padding: 4px 2px 14px;
	scrollbar-width: none;
}

.rail-track::-webkit-scrollbar {
	display: none;
}

ul.games.rail-track > li {
	flex: 0 0 auto;
	width: 172px;
	scroll-snap-align: start;
}

.rail-btn {
	flex: 0 0 auto;
	align-self: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--stroke);
	background: var(--card-strong);
	color: var(--text);
	font-size: 13px;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.rail-btn:hover {
	background: linear-gradient(135deg, rgba(139, 195, 74, .45), rgba(76, 175, 80, .28));
	border-color: rgba(76, 175, 80, .55);
	transform: scale(1.06);
}

/* ------------------------------------------------------------- 区块标题 */
.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 18px;
	flex-wrap: wrap;
}

.section-head .sec-left {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.section-head .sec-icon {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(139, 195, 74, .4), rgba(76, 175, 80, .26));
	border: 1px solid rgba(76, 175, 80, .45);
}

.section-head .sec-icon img {
	width: 20px;
	height: 20px;
	filter: var(--icon-filter);
}

.section-head h2 {
	font-size: 22px;
	font-weight: 800;
	margin: 0;
	line-height: 1.2;
	color: var(--text);
}

.section-head h2 span {
	display: block;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--text-dim);
	margin-top: 3px;
}

.section-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--card);
	border: 1px solid var(--stroke);
	color: var(--text);
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.section-more:hover {
	background: linear-gradient(135deg, rgba(139, 195, 74, .4), rgba(76, 175, 80, .22));
	border-color: rgba(76, 175, 80, .55);
	transform: translateX(2px);
}

.section-more i {
	font-style: normal;
	transition: transform .18s ease;
}

.section-more:hover i {
	transform: translateX(3px);
}

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

/* 覆盖旧版 float 布局的 clearfix，避免产生空的网格单元 */
ul.games:before,
ul.games:after {
	content: none;
	display: none;
}

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

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

ul.games li a:hover {
	transform: translateY(-5px);
	background: var(--card-strong);
	border-color: rgba(76, 175, 80, .55);
	box-shadow: 0 22px 40px -24px rgba(46, 125, 50, .75);
}

ul.games li .icon {
	position: relative;
	width: 100%;
	/* 保留 1px 内边距：配合 .clamp 的 margin-bottom:100% 形成正方形且防止外边距塌陷 */
	padding-bottom: 1px;
	border: 0;
	border-radius: 13px;
	overflow: hidden;
	background: linear-gradient(135deg, #e2f8e2, #c9f2c9);
	box-shadow: none;
}

ul.games li .icon .clamp {
	margin-bottom: 100%;
}

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

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

ul.games li .icon::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 13px;
	background: linear-gradient(180deg, transparent 52%, rgba(28, 92, 28, .55));
	opacity: 0;
	transition: opacity .22s ease;
	pointer-events: none;
}

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

ul.games li .icon::before {
	content: "▶";
	position: absolute;
	z-index: 3;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) scale(.8);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 15px;
	color: var(--on-accent);
	background: rgba(76, 175, 80, .94);
	box-shadow: 0 8px 20px -6px rgba(28, 92, 28, .7);
	opacity: 0;
	transition: opacity .22s ease, transform .22s ease;
	pointer-events: none;
}

ul.games li a:hover .icon::before {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

ul.games li .name-container {
	height: auto;
	padding: 11px 4px 4px;
	display: block;
}

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

ul.games li a:hover .name {
	color: var(--accent-2);
}

/* 搜索结果区块 */
.search-panel {
	display: none;
	width: min(var(--shell), 100%);
	margin: 26px auto 10px;
	padding: 0 22px;
}

.search-panel.on {
	display: block;
}

/* ----------------------------------------------------------------- 按钮 */
.btn-container {
	margin: 26px 0 10px;
	text-align: center;
}

.btn-primary {
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: var(--on-accent);
	border-radius: 999px;
	padding: 11px 34px;
	font-weight: 700;
	box-shadow: 0 14px 28px -16px rgba(46, 125, 50, .95);
	transition: transform .18s ease, filter .18s ease;
}

.btn-primary:hover {
	transform: translateY(-2px);
	filter: brightness(1.06);
}

/* --------------------------------------------------------------- 分类页 */
.page-banner {
	position: relative;
	width: min(var(--shell), 100%);
	margin: 30px auto 6px;
	padding: 34px 26px;
	border-radius: 26px;
	border: 1px solid var(--stroke);
	background:
		radial-gradient(620px 260px at 8% 0%, rgba(255, 255, 255, .85), transparent 62%),
		linear-gradient(135deg, rgba(139, 195, 74, .3), rgba(204, 255, 204, .6));
	overflow: hidden;
	box-shadow: 0 26px 50px -36px rgba(28, 92, 28, .55);
}

.page-banner h1 {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: clamp(24px, 3.4vw, 38px);
	font-weight: 800;
	margin: 0;
	text-transform: none;
	text-align: left;
	color: var(--text);
}

.page-banner h1 img {
	width: 34px;
	height: 34px;
	filter: var(--icon-filter);
}

.page-banner p {
	margin: 10px 0 0;
	font-size: 14.5px;
	color: var(--text-dim);
}

.page-banner .crumb {
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent-2);
}

/* --------------------------------------------------------- 首页 CTA 横幅 */
.cta-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	padding: 28px 30px;
	border-radius: 24px;
	border: 1px solid var(--stroke);
	background:
		radial-gradient(520px 220px at 8% 0%, rgba(255, 255, 255, .8), transparent 62%),
		linear-gradient(135deg, rgba(139, 195, 74, .3), rgba(204, 255, 204, .55));
	box-shadow: 0 26px 50px -34px rgba(28, 92, 28, .5);
}

.cta-copy {
	min-width: 0;
	flex: 1 1 300px;
}

.cta-copy h3 {
	margin: 0 0 6px;
	font-size: 21px;
	font-weight: 800;
	color: var(--text);
}

.cta-copy p {
	margin: 0;
	font-size: 14px;
	color: var(--text-dim);
	line-height: 1.7;
}

.cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex: 0 0 auto;
}

.cta-btn {
	display: inline-flex;
	align-items: center;
	padding: 12px 24px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	color: var(--text);
	background: var(--card-strong);
	border: 1px solid var(--stroke);
	text-decoration: none;
	white-space: nowrap;
	transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.cta-btn:hover {
	text-decoration: none;
	transform: translateY(-2px);
	border-color: rgba(76, 175, 80, .55);
}

.cta-btn-primary {
	color: var(--on-accent);
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	border-color: transparent;
	box-shadow: 0 14px 28px -16px rgba(46, 125, 50, .95);
}

.cta-btn-primary:hover {
	box-shadow: 0 18px 34px -16px rgba(46, 125, 50, .95);
}

/* ------------------------------------------------------------ 分类标签条 */
.cat-tabs {
	display: flex;
	align-items: center;
	gap: 8px;
	width: min(var(--shell), 100%);
	margin: 18px auto 0;
	padding: 8px 22px 4px;
	overflow-x: auto;
	scrollbar-width: none;
}

.cat-tabs::-webkit-scrollbar {
	display: none;
}

.cat-tab {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 15px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--text-dim);
	background: var(--card);
	border: 1px solid var(--stroke-soft);
	text-decoration: none;
	white-space: nowrap;
	transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.cat-tab img {
	width: 17px;
	height: 17px;
	filter: var(--icon-filter);
}

.cat-tab:hover {
	color: var(--text);
	background: var(--card-strong);
	border-color: rgba(76, 175, 80, .5);
	transform: translateY(-1px);
}

.cat-tab.active {
	color: var(--on-accent);
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	border-color: transparent;
	box-shadow: 0 10px 22px -14px rgba(46, 125, 50, .95);
}

/* 分类页加载状态 */
.load-count {
	display: block;
	margin-top: 20px;
	text-align: center;
	font-size: 13px;
	color: var(--text-dim);
	letter-spacing: .04em;
}

.load-more-btn {
	display: block;
	margin: 12px auto 0;
	border: 0;
	cursor: pointer;
	font-family: inherit;
}

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

.game header .background {
	border-radius: 26px;
	border: 1px solid var(--stroke);
	background-image: linear-gradient(135deg, rgba(139, 195, 74, .45), rgba(76, 175, 80, .3)) !important;
	background-size: cover !important;
	/* 旧样式为 text-align:center，分栏布局下需还原为左对齐 */
	text-align: left;
	box-shadow: 0 26px 50px -34px rgba(28, 92, 28, .55);
}

.game header .background .backgroundDarken {
	background: rgba(255, 255, 255, .38);
	padding: 52px 0;
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.game header .background .main-section {
	width: min(var(--shell), 100%);
}

/* 详情页左右分栏 */
.game-hero {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 34px;
	align-items: center;
}

.game-hero-info {
	min-width: 0;
}

.game-kicker {
	display: inline-block;
	padding: 5px 13px;
	border-radius: 999px;
	background: rgba(46, 125, 50, .16);
	border: 1px solid rgba(46, 125, 50, .42);
	color: var(--accent-2);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* 提高特异性，覆盖旧样式 .game header h1 的居中与字号 */
.game .game-hero-info h1 {
	color: var(--text);
	text-align: left;
	font-size: clamp(24px, 3.2vw, 40px);
	font-weight: 800;
	text-transform: none;
	margin: 14px 0 10px;
}

.game-desc {
	margin: 0 0 16px;
	font-size: 14.5px;
	line-height: 1.75;
	color: var(--text-dim);
	max-width: 560px;
}

.game-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.game-tags .tag {
	padding: 6px 13px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--text-dim);
	background: rgba(255, 255, 255, .7);
	border: 1px solid var(--stroke-soft);
}

.game-tags .tag-accent {
	color: var(--accent-2);
	background: rgba(139, 195, 74, .28);
	border-color: rgba(76, 175, 80, .5);
}

.game header .icon {
	width: 220px;
	max-width: 100%;
	margin: 0;
	border: 0;
	border-radius: 24px;
	box-shadow: 0 24px 50px -22px rgba(28, 92, 28, .55);
	overflow: hidden;
	background: rgba(255, 255, 255, .7);
	position: relative;
	display: block;
}

.game header .icon .icon-play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 20px;
	color: var(--on-accent);
	background: rgba(46, 125, 50, .35);
	opacity: 0;
	transition: opacity .2s ease;
}

.game header .icon:hover .icon-play {
	opacity: 1;
}

.game header .icon img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

.game header h1 {
	color: var(--text);
	text-align: center;
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 800;
	text-transform: none;
}

.game .play-btn-container .play-btn {
	display: inline-block;
	margin: 0;
	width: auto;
	min-width: 190px;
	height: 50px;
	padding: 0 34px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--accent-3), var(--accent));
	box-shadow: 0 16px 30px -14px rgba(76, 175, 80, .95);
	color: var(--on-accent);
	font-weight: 700;
	font-size: 17px;
	line-height: 50px;
	transition: transform .18s ease, filter .18s ease;
}

.game .play-btn-container {
	height: auto;
	margin: 0;
}

.game .play-btn-container:before,
.game .play-btn-container:after {
	display: none;
}

.game .play-btn-container .play-btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.06);
}

.game .similarGames h2 {
	font-size: 22px;
	font-weight: 800;
	margin-bottom: 18px;
}

/* 详情页底部的推荐位（game_box / game_item） */
.game_box {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 14px;
	padding-bottom: 0;
}

.game_box .game_item {
	display: block;
	padding: 8px;
	border-radius: 14px;
	background: var(--card);
	border: 1px solid var(--stroke-soft);
	text-decoration: none;
	transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.game_box .game_item:hover {
	transform: translateY(-4px);
	background: var(--card-strong);
	border-color: rgba(76, 175, 80, .55);
}

.game_box .game_item img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}

.game_box .game_item .game_name {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	line-height: 1.35;
}

/* ----------------------------------------------------------------- 底部 */
footer.main {
	margin-top: 56px;
	padding: 46px 0 38px;
	color: var(--text-dim);
	background: rgba(255, 255, 255, .62);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-top: 1px solid var(--stroke);
}

footer.main .footer-content {
	max-width: min(var(--shell), 100%);
	padding: 0 22px;
}

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

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

footer.main .footer-content section.tags nav.main ul li a {
	background: var(--card);
	border: 1px solid var(--stroke-soft);
	color: var(--text-dim);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	text-transform: none;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}

footer.main .footer-content section.tags nav.main ul li a img {
	height: 17px;
	width: 17px;
	filter: var(--icon-filter);
}

footer.main .footer-content section.tags nav.main ul li a:hover {
	background: linear-gradient(135deg, rgba(139, 195, 74, .38), rgba(76, 175, 80, .22));
	color: var(--text);
	border-color: rgba(76, 175, 80, .55);
}

footer.main .copyright {
	margin: 26px 0 0;
	text-align: center;
	font-size: 13px;
}

footer.main .copyright a {
	color: var(--accent-2) !important;
	text-decoration: none;
	margin: 0 3px;
}

footer.main .copyright a:hover {
	text-decoration: underline;
}

/* 页脚 tile 磁贴（仅 Best 静态页使用） */
footer.main .footer-content section.tags nav.main .tile-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 14px;
	margin: 18px 0 0;
	padding: 0;
}

footer.main .footer-content section.tags nav.main .tile-list li {
	float: none;
	width: auto;
	padding: 0;
}

footer.main .footer-content section.tags nav.main .tile-list li .tile-neutral {
	background: var(--card);
	border: 1px solid var(--stroke-soft);
	border-radius: 14px;
	margin: 0;
	padding: 14px;
	color: var(--text);
}

footer.main .footer-content section.tags nav.main .tile-list li .teaser img,
footer.main .footer-content section.tags nav.main .tile-list li .teaser svg {
	width: 44px;
	height: 44px;
	float: left;
	object-fit: contain;
	filter: var(--icon-filter);
}

footer.main .footer-content section.tags nav.main .tile-list li .teaser header {
	margin-left: 56px;
	font-size: 17px;
	color: var(--text);
	text-transform: none;
}

footer.main .footer-content section.tags nav.main .tile-list li .teaser p {
	margin: 4px 0 0 56px;
	color: var(--text-dim);
	font-size: 13.5px;
	font-weight: 500;
}

footer.main .footer-content nav.meta {
	padding: 0;
	text-align: center;
	font-size: 13px;
}

footer.main .footer-content nav.meta a {
	color: var(--text-dim);
	text-decoration: none;
}

footer.main .footer-content nav.meta a:hover {
	color: var(--text);
	text-decoration: underline;
}

footer.main .powered-by-famobi {
	text-align: center;
	font-size: 80%;
	color: var(--text-dim);
}

footer.main .powered-by-famobi svg {
	display: block;
	margin: 10px auto;
	width: 70px;
	fill: var(--text-dim);
}

/* ------------------------------------------------------------ 返回顶部 */
.backToTop {
	width: 46px !important;
	height: 46px !important;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	box-shadow: 0 14px 26px -12px rgba(46, 125, 50, .9);
	display: grid !important;
	place-items: center;
	padding: 10px;
}

.backToTop img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

/* 页脚版权链接 */
.footer-links {
	margin: 0;
	font-size: 13.5px;
}

.footer-links a {
	color: var(--accent-2);
	text-decoration: none;
}

.footer-links a:hover {
	text-decoration: underline;
}

.footer-links span {
	color: var(--text-dim);
}

/* ------------------------------------------------------- 静态内容页 */
.static-page {
	max-width: 860px;
	margin: 40px auto;
	padding: 32px 30px;
	border-radius: 24px;
	background: var(--card);
	border: 1px solid var(--stroke);
	color: var(--text-dim);
	line-height: 1.8;
}

.static-page h1, .static-page h2, .static-page h3 {
	color: var(--text);
	margin: 22px 0 10px;
}

.static-page b {
	color: var(--text);
}

.static-page a {
	color: var(--accent-2);
}

/* -------------------------------------------------------------- 响应式 */
@media only screen and (max-width: 1000px) {
	.hero-inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.game-hero {
		grid-template-columns: 170px minmax(0, 1fr);
		gap: 24px;
	}

	.game header .icon {
		width: 170px;
	}
}

@media only screen and (max-width: 900px) {
	.hero {
		padding: 34px 18px 30px;
		margin-top: 22px;
	}

	.hero-search {
		flex-direction: column;
		align-items: stretch;
		border-radius: 20px;
		padding: 12px;
	}

	.hero-search input {
		padding: 8px 6px;
	}

	.hero-search button {
		width: 100%;
	}

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

	ul.games.rail-track > li {
		width: 140px;
	}

	.rail-btn {
		display: none;
	}

	.cat-dock {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 10px;
	}

	.cat-tabs {
		padding: 8px 14px 4px;
	}
}

@media only screen and (max-width: 750px) {
	header.main .main-section {
		height: auto;
		padding: 10px 14px;
		flex-wrap: wrap;
		gap: 10px;
	}

	header.main .logo .logo-text {
		font-size: 18px;
	}

	header.main .menuHolder {
		order: 3;
		width: 100%;
		flex-basis: 100%;
	}

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

	header.main .menuHolder nav.main ul {
		gap: 8px;
		padding-bottom: 6px;
	}

	.content .main-section {
		padding: 0 14px;
		margin-top: 24px;
		margin-bottom: 24px;
	}

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

	.page-banner {
		padding: 24px 18px;
	}

	footer.main .footer-content {
		padding: 0 14px;
	}

	/* 详情页在窄屏改为上下堆叠 */
	.game-hero {
		grid-template-columns: 1fr;
		gap: 18px;
		text-align: center;
	}

	.game header .icon {
		width: 150px;
		margin: 0 auto;
	}

	.game-hero-info h1,
	.game-desc {
		text-align: center;
	}

	.game-desc {
		margin-left: auto;
		margin-right: auto;
	}

	.game-tags,
	.game .play-btn-container {
		justify-content: center;
	}
}
