#app {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Main Content */
.main-content {
	flex: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 24px 20px;
	width: 100%;
}

/* 占位盒子，在内容加载前保持页面高度 */
.content-placeholder {
	min-height: 2000px;
	width: 100%;
}

/* Category Section */
.category-section {
	margin-bottom: 32px;
	background-color: rgba(255, 255, 255, 0.6);
	border-radius: 12px;
	padding: 32px;
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
	.category-section:hover {
		transform: translateY(-2px);
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	}
}

.category-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.category-icon {
	width: 64px;
	height: 64px;
	object-fit: contain;
	flex-shrink: 0;
}

.category-title {
	font-size: 32px;
	font-weight: 700;
	color: #000;
	line-height: 1.2;
}

/* Games Grid */
.games-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
}

.game-card {
	display: block;
	text-decoration: none;
	background-color: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	cursor: pointer;
	min-height: 120px;
}

@media (hover: hover) and (pointer: fine) {
	.game-card:hover {
		transform: translateY(-8px);
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	}
}

.game-card:active {
	transform: translateY(-4px);
}

.game-card img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
	background-color: #f5f5f5;
}

.game-name {
	padding: 16px;
	font-size: 14px;
	font-weight: 500;
	color: #000;
	text-align: center;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* About Section */
.about-section {
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 12px;
	padding: 32px;
	margin: 32px 0;
	backdrop-filter: blur(10px);
}

.about-header {
	margin-bottom: 20px;
}

.about-header h3 {
	font-size: 24px;
	font-weight: 700;
	color: #000;
	line-height: 1.3;
}

.about-content p {
	margin-bottom: 16px;
	line-height: 1.8;
	color: #666;
	font-size: 15px;
}

.about-content h4 {
	font-size: 18px;
	font-weight: 600;
	margin: 24px 0 12px;
	color: #000;
	line-height: 1.4;
}

/* Prowess Banner */
.prowess-banner {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.prowess-icon {
	width: 48px;
	height: 48px;
	object-fit: contain;
	flex-shrink: 0;
}

.prowess-banner span {
	font-size: 18px;
	font-weight: 600;
	color: #000;
	line-height: 1.4;
}

/* Back to Top Button */
.back-to-top {
	position: fixed;
	bottom: 40px;
	right: 40px;
	width: 56px;
	height: 56px;
	background-color: #ff6b6b;
	color: #ffffff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
	transition: all 0.3s ease;
	opacity: 0;
	visibility: hidden;
	z-index: 999;
	touch-action: manipulation;
	min-width: 44px;
	min-height: 44px;
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
}

@media (hover: hover) and (pointer: fine) {
	.back-to-top:hover {
		background-color: #ff5252;
		transform: translateY(-4px);
		box-shadow: 0 8px 16px rgba(255, 107, 107, 0.5);
	}
}

.back-to-top:active {
	transform: translateY(-2px);
	background-color: #ff5252;
}

.back-to-top svg {
	width: 24px;
	height: 24px;
	pointer-events: none;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
	.main-content {
		padding: 20px 20px 20px;
	}

	.category-section {
		padding: 28px;
		margin-bottom: 28px;
	}

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

	.game-card img {
		height: 160px;
	}
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
	.main-content {
		max-width: 100%;
		padding: 20px 16px 20px;
	}

	.category-section {
		padding: 20px;
		margin-bottom: 24px;
		border-radius: 8px;
	}

	.category-header {
		gap: 12px;
		margin-bottom: 20px;
	}

	.category-icon {
		width: 48px;
		height: 48px;
	}

	.category-title {
		font-size: 24px;
	}

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

	.game-card img {
		height: 140px;
	}

	.game-name {
		padding: 12px 8px;
		font-size: 13px;
		line-height: 1.3;
	}

	.about-section {
		padding: 20px;
		margin: 24px 0;
		border-radius: 8px;
	}

	.about-header h3 {
		font-size: 20px;
	}

	.about-content p {
		font-size: 14px;
		line-height: 1.7;
	}

	.about-content h4 {
		font-size: 16px;
		margin: 20px 0 10px;
	}

	.prowess-banner {
		padding: 20px;
		margin: 24px 0;
		gap: 10px;
	}

	.prowess-icon {
		width: 40px;
		height: 40px;
	}

	.prowess-banner span {
		font-size: 16px;
	}

	.footer {
		padding: 24px 16px;
	}

	.footer-links {
		font-size: 13px;
		margin-bottom: 12px;
	}

	.footer-links a {
		margin: 0 4px;
		display: inline-block;
	}

	.copyright {
		font-size: 12px;
	}

	.back-to-top {
		width: 48px;
		height: 48px;
		bottom: 24px;
		right: 24px;
		min-width: 44px;
		min-height: 44px;
	}

	.back-to-top svg {
		width: 20px;
		height: 20px;
	}
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
	.main-content {
		padding: 20px 12px 20px;
	}

	.category-section {
		padding: 16px;
		margin-bottom: 20px;
	}

	.category-header {
		gap: 10px;
		margin-bottom: 16px;
	}

	.category-icon {
		width: 40px;
		height: 40px;
	}

	.category-title {
		font-size: 20px;
	}

	.games-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.game-card img {
		height: 120px;
	}

	.game-name {
		padding: 10px 6px;
		font-size: 12px;
	}

	.about-section {
		padding: 16px;
		margin: 20px 0;
	}

	.about-header h3 {
		font-size: 18px;
	}

	.about-content p {
		font-size: 13px;
	}

	.about-content h4 {
		font-size: 15px;
	}

	.prowess-banner {
		padding: 16px;
		margin: 20px 0;
		flex-direction: column;
		gap: 8px;
	}

	.prowess-banner span {
		font-size: 14px;
		text-align: center;
	}

	.footer-links {
		font-size: 12px;
	}

	.footer-links a {
		margin: 0 2px;
		line-height: 1.8;
	}

	.back-to-top {
		bottom: 20px;
		right: 20px;
	}
}

/* Large screens */
@media (min-width: 1400px) {
	.main-content {
		max-width: 1400px;
		padding: 20px 32px 20px;
	}

	.category-section {
		padding: 40px;
	}

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

	.game-card img {
		height: 200px;
	}
}

/* Print styles */
@media print {
	.header,
	.back-to-top,
	.advertisement {
		display: none;
	}

	.main-content {
		padding: 0;
	}

	.category-section,
	.about-section {
		page-break-inside: avoid;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	html {
		scroll-behavior: auto;
	}
}
