/**
 * GamePix Style Template - 左侧导航版本
 * Modern, clean design with sidebar navigation
 */

/* ============================================
   CSS变量
   ============================================ */
:root {
	--primary-color: #ff6b35;
	--secondary-color: #004e89;
	--accent-color: #ffc857;
	--text-dark: #1a1a1a;
	--text-light: #666;
	--bg-light: #f8f9fa;
	--bg-white: #ffffff;
	--border-color: #e1e8ed;
	--shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
	--shadow-md: 0 4px 12px rgba(0,0,0,0.1);
	--shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--transition: all 0.3s ease;
	--sidebar-width: 80px;
	--sidebar-expanded: 260px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	overflow-x: hidden;
	width: 100%;
	height: 100%;
}

body {
	font-family: 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--text-dark);
	background-color: var(--bg-light);
	line-height: 1.6;
	overflow-x: hidden;
	width: 100%;
	min-height: 100%;
	touch-action: pan-y;
	-webkit-overflow-scrolling: touch;
}

.gp-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ============================================
   左侧导航栏
   ============================================ */
.gp-sidebar {
	position: fixed;
	left: 0;
	top: 0;
	height: 100vh;
	width: 60px;
	background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
	box-shadow: var(--shadow-lg);
	z-index: 1000;
	transition: all 0.3s ease;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.gp-sidebar:hover {
	width: 200px;
}

/* Logo区域 - 隐藏 */
.gp-sidebar-logo {
	display: none;
}

.gp-logo-img {
	height: 40px;
	width: auto;
	opacity: 0;
	transition: opacity 0.3s ease 0.1s;
}

.gp-sidebar:hover .gp-logo-img {
	opacity: 1;
}

.gp-logo-text {
	display: flex;
	align-items: center;
	gap: 12px;
}

.gp-logo-icon {
	font-size: 32px;
	line-height: 1;
}

.gp-logo-name {
	font-size: 24px;
	font-weight: 800;
	color: white;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.3s ease 0.1s;
}

.gp-sidebar:hover .gp-logo-name {
	opacity: 1;
}

.gp-logo-game {
	color: white;
}

.gp-logo-pix {
	color: var(--accent-color);
}

/* 侧边栏导航链接 */
.gp-sidebar-nav {
	flex: 1;
	padding: 20px 0;
	overflow-y: auto;
	overflow-x: hidden;
}

.gp-sidebar-nav::-webkit-scrollbar {
	width: 6px;
}

.gp-sidebar-nav::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,0.3);
	border-radius: 3px;
}

.gp-sidebar-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0 12px 18px;
	color: rgba(255,255,255,0.95);
	text-decoration: none;
	transition: all 0.3s ease;
	position: relative;
	border-radius: var(--radius-sm);
}

.gp-sidebar-link i {
	font-size: 20px;
	width: 24px;
	text-align: center;
	flex-shrink: 0;
	color: rgba(255,255,255,0.9);
}

.gp-sidebar-link span {
	font-family: 'Poppins', 'Nunito', sans-serif;
	font-weight: 600;
	font-size: 15px;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.3s ease 0.1s;
	color: #ffffff;
	text-shadow: 0 1px 2px rgba(0,0,0,0.1);
	letter-spacing: 0.3px;
}

.gp-sidebar:hover .gp-sidebar-link span {
	opacity: 1;
}

/* 只有鼠标经过当前链接时才显示背景 */
.gp-sidebar-link:hover {
	background: rgba(255,255,255,0.15);
	color: white;
}

.gp-sidebar-link:hover i {
	color: white;
}

/* 激活状态样式 */
.gp-sidebar-link.active {
	color: white;
}

.gp-sidebar-link.active i {
	color: var(--accent-color);
}

.gp-sidebar-link.active::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 60%;
	background: var(--accent-color);
	border-radius: 0 3px 3px 0;
}

/* 分类展开区域 */
.gp-sidebar-categories {
	margin-top: 20px;
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-top: 20px;
}

.gp-sidebar-cat-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0 12px 18px;
	color: rgba(255,255,255,0.7);
	font-weight: 700;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.gp-sidebar-cat-header i {
	font-size: 20px;
	width: 24px;
	text-align: center;
	color: rgba(255,255,255,0.7);
	flex-shrink: 0;
}

.gp-sidebar-cat-header span {
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.3s ease 0.1s;
}

.gp-sidebar:hover .gp-sidebar-cat-header span {
	opacity: 1;
}

.gp-sidebar-cat-list {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.gp-sidebar:hover .gp-sidebar-cat-list {
	max-height: 600px;
}

.gp-sidebar-cat-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0 8px 30px;
	color: rgba(255,255,255,0.9);
	text-decoration: none;
	font-size: 14px;
	font-family: 'Poppins', 'Nunito', sans-serif;
	font-weight: 500;
	transition: var(--transition);
}

.gp-sidebar-cat-link:hover {
	color: white;
	background: rgba(255,255,255,0.1);
	padding-left: 35px;
}

.gp-sidebar-cat-link i {
	font-size: 12px;
	width: 20px;
}

.gp-sidebar-cat-link span {
	white-space: nowrap;
	color: #ffffff;
	text-shadow: 0 1px 2px rgba(0,0,0,0.1);
	letter-spacing: 0.2px;
}

.gp-sidebar-cat-all {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	margin: 10px;
	background: rgba(255,255,255,0.15);
	color: white;
	text-decoration: none;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 14px;
	transition: var(--transition);
}

.gp-sidebar-cat-all:hover {
	background: var(--accent-color);
	color: var(--text-dark);
}

.gp-sidebar-cat-all i {
	font-size: 16px;
	width: 40px;
	text-align: center;
}

/* 侧边栏切换按钮 */
.gp-sidebar-toggle {
	position: absolute;
	right: 10px;
	bottom: 20px;
	width: 36px;
	height: 36px;
	background: rgba(255,255,255,0.2);
	border: none;
	border-radius: 50%;
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition);
	opacity: 0;
}

.gp-sidebar:hover .gp-sidebar-toggle {
	opacity: 1;
}

.gp-sidebar-toggle:hover {
	background: rgba(255,255,255,0.3);
	transform: scale(1.1);
}

.gp-sidebar.collapsed {
	width: var(--sidebar-width) !important;
}

.gp-sidebar.collapsed .gp-sidebar-toggle i {
	transform: rotate(180deg);
}

/* ============================================
   顶部搜索栏
   ============================================ */
.gp-topbar {
	position: fixed;
	top: 0;
	left: 60px;
	right: 0;
	height: 70px;
	background: white;
	box-shadow: var(--shadow-sm);
	z-index: 900;
	transition: left 0.3s ease;
}

/* 顶部栏 - 移动端不与侧边栏重叠 */
@media (max-width: 992px) {
	.gp-topbar {
		left: 0;
	}
}

.gp-topbar-container {
	height: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.gp-topbar-logo {
	text-decoration: none;
	display: flex;
	align-items: center;
}

.gp-topbar-logo img {
	height: 40px;
	width: auto;
}

.gp-topbar-logo-text {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -1px;
}

.gp-search-form {
	max-width: 400px;
	margin-left: auto;
}

.gp-search-wrapper {
	position: relative;
	width: 100%;
}

.gp-search-icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-light);
	font-size: 16px;
}

.gp-search-input {
	width: 100%;
	padding: 14px 120px 14px 50px;
	border: 2px solid var(--border-color);
	border-radius: 30px;
	font-size: 15px;
	transition: var(--transition);
	background: var(--bg-light);
}

.gp-search-input:focus {
	outline: none;
	border-color: var(--primary-color);
	background: white;
}

.gp-search-btn {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	padding: 10px 24px;
	background: var(--primary-color);
	color: white;
	border: none;
	border-radius: 25px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
}

.gp-search-btn:hover {
	background: #ff5722;
	transform: translateY(-50%) scale(1.05);
}

.gp-mobile-menu-btn {
	display: none;
	width: 45px;
	height: 45px;
	background: var(--bg-light);
	border: 2px solid var(--border-color);
	border-radius: var(--radius-sm);
	color: var(--text-dark);
	font-size: 20px;
	cursor: pointer;
	transition: var(--transition);
	align-items: center;
	justify-content: center;
}

.gp-mobile-menu-btn:hover {
	background: var(--primary-color);
	color: white;
	border-color: var(--primary-color);
}

/* Mobile search button (only visible on mobile) */
.gp-mobile-search-btn{
	display: none;
	width: 45px;
	height: 45px;
	background: var(--bg-light);
	border: 2px solid var(--border-color);
	border-radius: var(--radius-sm);
	color: var(--text-dark);
	font-size: 20px;
	cursor: pointer;
	transition: var(--transition);
	align-items: center;
	justify-content: center;
}
.gp-mobile-search-btn:hover{
	background: var(--primary-color);
	color: #fff;
	border-color: var(--primary-color);
}

/* Search overlay */
.gp-search-overlay{
	position: fixed;
	inset: 0;
	display: none;
	z-index: 1100;
}
.gp-search-overlay.active{ display: block; }
.gp-search-overlay-backdrop{
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.6);
	z-index: 1;
	cursor: pointer;
}
.gp-search-overlay-content{
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 2;
	pointer-events: none;
}
.gp-search-overlay-form{
	position: relative;
	width: 100%;
	max-width: 560px;
	background: #fff;
	border-radius: 28px;
	box-shadow: var(--shadow-lg);
	padding: 10px 56px 10px 44px;
	border: 2px solid var(--border-color);
	pointer-events: auto;
}
.gp-search-overlay-icon{
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-light);
}
.gp-search-overlay-input{
	width: 100%;
	border: none;
	outline: none;
	background: transparent;
	font-size: 16px;
	padding: 8px 0;
}
.gp-search-overlay-submit{
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	padding: 8px 16px;
	border: none;
	border-radius: 20px;
	background: var(--primary-color);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.gp-search-overlay-close{
	display: none;
}

/* ============================================
   主内容区域
   ============================================ */
.gp-main-wrapper {
	margin-left: 60px;
	margin-top: 70px;
	min-height: calc(100vh - 70px);
	transition: margin-left 0.3s ease;
}
/* ============================================
   移动端导�?(保留原有移动端菜�?
   ============================================ */
.gp-mobile-nav {
	display: none;
}

/* ============================================
   Hero区域
   ============================================ */
.gp-hero {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 60px 20px;
	color: white;
}

.gp-hero-content {
	text-align: center;
	margin-bottom: 40px;
}

.gp-hero-title {
	font-size: 48px;
	font-weight: 800;
	margin-bottom: 15px;
	line-height: 1.2;
}

.gp-hero-subtitle {
	font-size: 20px;
	opacity: 0.95;
	max-width: 600px;
	margin: 0 auto;
}

/* 精选游戏轮�?*/
.gp-featured-slider {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
}

.gp-slider-wrapper {
	display: flex;
	overflow: hidden;
	border-radius: var(--radius-lg);
}

.gp-featured-item {
	min-width: 100%;
	transition: var(--transition);
}

.gp-featured-image {
	position: relative;
	width: 100%;
	height: 400px;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.gp-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gp-featured-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
	padding: 40px;
	color: white;
}

.gp-featured-game-title {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 10px;
}

.gp-featured-game-desc {
	font-size: 16px;
	margin-bottom: 20px;
	opacity: 0.9;
}

.gp-play-btn-large {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	background: var(--primary-color);
	color: white;
	text-decoration: none;
	border-radius: 25px;
	font-weight: 700;
	font-size: 16px;
	transition: var(--transition);
}

.gp-play-btn-large:hover {
	background: #ff5722;
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(255,107,53,0.4);
	color: white;
}

.gp-slider-prev,
.gp-slider-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,0.9);
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: var(--text-dark);
	transition: var(--transition);
	z-index: 10;
}

.gp-slider-prev {
	left: 20px;
}

.gp-slider-next {
	right: 20px;
}

.gp-slider-prev:hover,
.gp-slider-next:hover {
	background: white;
	transform: translateY(-50%) scale(1.1);
}


/* ============================================
   页面区块
   ============================================ */
.gp-section {
	padding: 60px 0;
	background: var(--bg-white);
}

.gp-section-alt {
	background: var(--bg-light);
}

.gp-section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 35px;
}

.gp-section-title {
	font-size: 32px;
	font-weight: 800;
	color: var(--text-dark);
	position: relative;
	padding-left: 15px;
}

.gp-section-title::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 5px;
	height: 30px;
	background: var(--primary-color);
	border-radius: 3px;
}

.gp-view-all-link,
.gp-section-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #667eea;
	text-decoration: none;
	font-family: 'Poppins', 'Nunito', sans-serif;
	font-weight: 600;
	font-size: 16px;
	transition: var(--transition);
	position: relative;
}

.gp-view-all-link:hover,
.gp-section-link:hover {
	color: #764ba2;
	gap: 12px;
	transform: translateX(2px);
}

.gp-section-link i {
	transition: var(--transition);
}

/* ============================================
   游戏卡片网格
   ============================================ */
.gp-games-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 25px;
}

/* 5列网格（首页 推荐/热门/新游/分类区块用） */
.gp-grid-5 {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
}

@media (max-width: 1200px) {
	.gp-grid-5 {
		grid-template-columns: repeat(4, 1fr);
	}
}
@media (max-width: 992px) {
	.gp-grid-5 {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 768px) {
	.gp-grid-5 {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
}
@media (max-width: 480px) {
	.gp-grid-5 {
		grid-template-columns: 1fr;
	}
}

.gp-game-card {
	background: white;
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: var(--transition);
	box-shadow: var(--shadow-sm);
}

.gp-game-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-lg);
}

.gp-game-link {
	text-decoration: none !important;
	display: block;
	color: inherit;
}

.gp-game-link:hover {
	text-decoration: none !important;
}

.gp-game-thumb {
	position: relative;
	width: 100%;
	padding-top: 75%;
	overflow: hidden;
	background: var(--bg-light);
}

.gp-game-thumb img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.gp-game-card:hover .gp-game-thumb img {
	transform: scale(1.1);
}

.gp-game-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: var(--transition);
}

.gp-game-card:hover .gp-game-overlay {
	opacity: 1;
}

.gp-play-icon {
	width: 60px;
	height: 60px;
	background: var(--primary-color);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 24px;
	transition: var(--transition);
}

.gp-game-card:hover .gp-play-icon {
	transform: scale(1.2);
	box-shadow: 0 6px 20px rgba(255,107,53,0.5);
}

.gp-game-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 5px 12px;
	border-radius: 15px;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 5px;
	z-index: 2;
}

.gp-badge-new {
	background: var(--accent-color);
	color: var(--text-dark);
}

.gp-badge-hot {
	background: #ff4757;
	color: white;
}

.gp-game-info {
	padding: 15px;
}

.gp-game-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 8px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gp-game-category {
	font-size: 13px;
	color: var(--text-light);
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0;
}


/* ============================================
   分类卡片
   ============================================ */
.gp-categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.gp-category-card {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 20px;
	background: white;
	border-radius: var(--radius-md);
	text-decoration: none;
	transition: var(--transition);
	box-shadow: var(--shadow-sm);
	border: 2px solid transparent;
}

.gp-category-card:hover {
	border-color: var(--primary-color);
	transform: translateY(-5px);
	box-shadow: var(--shadow-md);
}

.gp-cat-card-icon {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, var(--primary-color), #ff5722);
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 28px;
	flex-shrink: 0;
}

.gp-cat-card-info {
	flex: 1;
}

.gp-cat-card-name {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 5px;
}

.gp-cat-card-count {
	font-size: 14px;
	color: var(--text-light);
	margin: 0;
}

.gp-cat-card-arrow {
	font-size: 20px;
	color: var(--primary-color);
	transition: var(--transition);
}

.gp-category-card:hover .gp-cat-card-arrow {
	transform: translateX(5px);
}

/* ============================================
   页面头部
   ============================================ */
.gp-page-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 40px 20px;
	color: white;
}

.gp-breadcrumb {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	margin-bottom: 20px;
	flex-wrap: wrap;
	font-family: 'Poppins', 'Nunito', sans-serif;
}

.gp-breadcrumb a {
	color: #667eea;
	text-decoration: none;
	transition: var(--transition);
	font-weight: 500;
	position: relative;
}

.gp-breadcrumb a:hover {
	color: #764ba2;
	text-decoration: underline;
}

.gp-breadcrumb i {
	font-size: 10px;
	color: #999;
	opacity: 0.8;
}

.gp-breadcrumb span {
	color: #1a1a1a;
	font-weight: 600;
}

/* .gp-page-header内的面包屑使用白色样式 */
.gp-page-header .gp-breadcrumb a {
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.gp-page-header .gp-breadcrumb a:hover {
	color: #ffc857;
	text-decoration: none;
}

.gp-page-header .gp-breadcrumb i {
	color: rgba(255, 255, 255, 0.7);
	opacity: 1;
}

.gp-page-header .gp-breadcrumb span {
	color: #ffc857;
	text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.gp-page-title {
	font-size: 42px;
	font-weight: 800;
	margin-bottom: 10px;
}

.gp-page-subtitle {
	font-size: 18px;
	opacity: 0.9;
}

.gp-page-title-with-icon {
	display: flex;
	align-items: center;
	gap: 20px;
}

.gp-page-icon {
	font-size: 50px;
	opacity: 0.9;
}

/* ============================================
   游戏播放�?   ============================================ */
.gp-game-page {
	padding: 30px 0;
}

.gp-game-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin: 30px 0;
	flex-wrap: wrap;
	gap: 20px;
}

.gp-game-page-title {
	font-size: 36px;
	font-weight: 800;
	color: var(--text-dark);
	margin-bottom: 10px;
}

.gp-game-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: center;
}

.gp-meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: var(--text-light);
	padding: 6px 12px;
	background: var(--bg-light);
	border-radius: var(--radius-sm);
}

.gp-meta-item i {
	color: var(--primary-color);
}

.gp-game-actions {
	display: flex;
	gap: 10px;
}

.gp-action-btn {
	padding: 10px 20px;
	background: white;
	border: 2px solid var(--border-color);
	border-radius: var(--radius-sm);
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-dark);
}

.gp-action-btn:hover {
	border-color: var(--primary-color);
	color: var(--primary-color);
	background: rgba(255,107,53,0.05);
}

.gp-btn-fullscreen:hover {
	border-color: #4CAF50;
	color: #4CAF50;
}

.gp-btn-favorite.favorited {
	background: #ff4757;
	color: white;
	border-color: #ff4757;
}

.gp-game-player {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto 30px;
	background: #000;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.gp-game-iframe {
	width: 100%;
	height: 700px;
	display: block;
	border: none;
}

.gp-game-loading {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: white;
	z-index: 5;
}

.gp-loader {
	width: 50px;
	height: 50px;
	border: 5px solid rgba(255,255,255,0.3);
	border-top-color: white;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 20px;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.gp-game-info-section {
	max-width: 1200px;
	margin: 0 auto;
	background: white;
	border-radius: var(--radius-lg);
	padding: 30px;
	box-shadow: var(--shadow-sm);
}

.gp-tabs {
	display: flex;
	gap: 10px;
	border-bottom: 2px solid var(--border-color);
	margin-bottom: 30px;
}

.gp-tab {
	padding: 12px 24px;
	background: none;
	border: none;
	color: var(--text-light);
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	position: relative;
	transition: var(--transition);
	display: flex;
	align-items: center;
	gap: 8px;
}

.gp-tab.active {
	color: var(--primary-color);
}

.gp-tab.active::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--primary-color);
	border-radius: 3px 3px 0 0;
}

.gp-tab-content {
	display: none;
}

.gp-tab-content.active {
	display: block;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.gp-tab-content h3 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 15px;
	color: var(--text-dark);
}

.gp-tab-content p {
	font-size: 15px;
	line-height: 1.8;
	color: var(--text-light);
}

.gp-game-tags {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--border-color);
}

.gp-tag {
	display: inline-block;
	padding: 6px 12px;
	background: var(--bg-light);
	color: var(--text-dark);
	border-radius: var(--radius-sm);
	font-size: 13px;
	margin: 5px 5px 5px 0;
}


/* ============================================
   结果栏和排序
   ============================================ */
.gp-results-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	padding: 15px 20px;
	background: white;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}

.gp-results-count {
	font-weight: 600;
	color: var(--text-dark);
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.gp-sort-select {
	padding: 8px 35px 8px 15px;
	border: 2px solid var(--border-color);
	border-radius: var(--radius-sm);
	font-size: 14px;
	font-weight: 600;
	color: var(--text-dark);
	cursor: pointer;
	background: white;
	appearance: none;
}

/* ============================================
   分页
   ============================================ */
.gp-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 50px;
	flex-wrap: wrap;
}

.gp-page-btn,
.gp-page-num {
	padding: 10px 16px;
	background: white;
	color: var(--text-dark);
	text-decoration: none;
	border-radius: var(--radius-sm);
	font-weight: 600;
	transition: var(--transition);
	border: 2px solid var(--border-color);
}

.gp-page-btn:hover,
.gp-page-num:hover {
	background: var(--primary-color);
	color: white;
	border-color: var(--primary-color);
}

.gp-page-num.active {
	background: var(--primary-color) !important;
	color: white !important;
	border-color: var(--primary-color) !important;
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
	pointer-events: none;
	cursor: default;
}

/* 移动端分页优化 */
@media (max-width: 768px) {
	.gp-pagination {
		gap: 6px;
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		padding: 0 10px;
		-webkit-overflow-scrolling: touch;
	}
	
	.gp-pagination::-webkit-scrollbar {
		height: 4px;
	}
	
	.gp-pagination::-webkit-scrollbar-thumb {
		background: rgba(0,0,0,0.2);
		border-radius: 2px;
	}
	
	.gp-page-btn,
	.gp-page-num {
		padding: 8px 12px;
		font-size: 14px;
		flex-shrink: 0;
	}
	
	.gp-page-num.active {
		transform: scale(1);
	}
}

/* ============================================
   页脚
   ============================================ */
.gp-footer {
	background: #2c3e50;
	color: #ecf0f1;
	padding: 50px 0 20px;
}

.gp-footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.gp-footer-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 20px;
	color: white;
}

.gp-footer-text {
	font-size: 14px;
	line-height: 1.8;
	opacity: 0.9;
	margin-bottom: 20px;
}

.gp-social-links {
	display: flex;
	gap: 10px;
}

.gp-social-btn {
	width: 40px;
	height: 40px;
	background: rgba(255,255,255,0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	text-decoration: none;
	transition: var(--transition);
}

.gp-social-btn:hover {
	background: var(--primary-color);
	color: white;
	transform: translateY(-3px);
}

.gp-footer-links {
	list-style: none;
}

.gp-footer-links li {
	margin-bottom: 12px;
}

.gp-footer-links a {
	color: #ecf0f1;
	text-decoration: none;
	font-size: 14px;
	opacity: 0.8;
	transition: var(--transition);
}

.gp-footer-links a:hover {
	opacity: 1;
	color: var(--accent-color);
	padding-left: 5px;
}

.gp-footer-bottom {
	padding-top: 30px;
	border-top: 1px solid rgba(255,255,255,0.1);
	text-align: center;
}

.gp-copyright {
	font-size: 14px;
	opacity: 0.7;
	margin: 0;
}

/* ============================================
   关于区块
   ============================================ */
.gp-about-box {
	background: white;
	padding: 40px;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

.gp-about-title {
	font-size: 32px;
	font-weight: 800;
	margin-bottom: 25px;
	color: var(--text-dark);
}

.gp-about-content h3 {
	font-size: 22px;
	font-weight: 700;
	margin-top: 25px;
	margin-bottom: 12px;
	color: var(--text-dark);
}

.gp-about-content p {
	font-size: 16px;
	line-height: 1.8;
	color: var(--text-light);
	margin-bottom: 15px;
}

/* ============================================
   回到顶部按钮
   ============================================ */
.gp-scroll-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 50px;
	height: 50px;
	background: var(--primary-color);
	color: white;
	border: none;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	box-shadow: var(--shadow-md);
	transition: var(--transition);
	opacity: 0;
	visibility: hidden;
	z-index: 999;
}

.gp-scroll-top.show {
	opacity: 1;
	visibility: visible;
}

.gp-scroll-top:hover {
	background: #ff5722;
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
}

/* ============================================
   空结�?   ============================================ */
.gp-no-results {
	text-align: center;
	padding: 80px 20px;
}

.gp-no-results-icon {
	font-size: 80px;
	color: var(--border-color);
	margin-bottom: 20px;
}

.gp-no-results h3 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 10px;
	color: var(--text-dark);
}

.gp-no-results p {
	font-size: 16px;
	color: var(--text-light);
	margin-bottom: 25px;
}

.gp-btn-primary {
	display: inline-block;
	padding: 12px 30px;
	background: var(--primary-color);
	color: white;
	text-decoration: none;
	border-radius: 25px;
	font-weight: 600;
	transition: var(--transition);
}

.gp-btn-primary:hover {
	background: #ff5722;
	transform: scale(1.05);
	color: white;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
	.gp-sidebar {
		transform: translateX(-100%);
		left: 0;
		top: 0;
		height: 100vh;
		border-radius: 0;
	}
	
	.gp-sidebar.mobile-active {
		transform: translateX(0);
	}
	
	.gp-topbar {
		left: 0;
	}
	
	.gp-main-wrapper {
		margin-left: 0;
	}
	
	.gp-mobile-menu-btn {
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	.gp-games-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
		gap: 20px;
	}
	
	.gp-categories-grid {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	}
}

@media (max-width: 768px) {
	.gp-topbar-container {
		max-width: none;
		padding: 0 10px;
		flex-wrap: nowrap;
		gap: 8px;
		justify-content: space-between;
	}
	
	/* 顶部同一行：Logo | 搜索 | 菜单 */
	.gp-topbar-logo { order: 1; }
	.gp-search-form {
		order: 2;
		flex: 1;
		width: auto;
		max-width: 240px; /* 缩小移动端搜索框最大宽度 */
		margin: 0 8px;
	}
	.gp-search-wrapper { width: 100%; }
	.gp-mobile-search-btn { display: flex; order: 3; margin-left: auto; }
	.gp-mobile-menu-btn { display: flex; order: 4; z-index: 1001; }
	.gp-mobile-search-btn, .gp-mobile-menu-btn { width: 40px; height: 40px; }
	
	/* 移动端隐藏顶部内联搜索框，改为按钮 + 弹层 */
	.gp-search-form{ display: none; }
	
	.gp-search-input {
		font-size: 13px;
		padding: 10px 86px 10px 36px; /* 输入更紧凑 */
		border-radius: 22px;
	}
	
	.gp-search-icon {
		left: 10px;
		font-size: 13px;
	}
	
	.gp-search-btn {
		padding: 7px 14px;
		font-size: 12px;
		right: 6px;
	}
	
	.gp-hero-title {
		font-size: 36px;
	}
	
	.gp-hero-subtitle {
		font-size: 16px;
	}
	
	.gp-featured-image {
		height: 300px;
	}
	
	.gp-section-title {
		font-size: 24px;
	}
	
	.gp-page-title {
		font-size: 32px;
	}
	
	.gp-games-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 15px;
	}
	
	.gp-game-iframe {
		height: 500px;
	}
	
	.gp-results-bar {
		flex-direction: column;
		gap: 15px;
		align-items: stretch;
	}
	
	.gp-footer-content {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.gp-game-actions {
		width: 100%;
	}
	
	.gp-action-btn {
		flex: 1;
		justify-content: center;
		font-size: 13px;
		padding: 10px;
	}
}

@media (max-width: 480px) {
	.gp-container {
		padding: 0 10px;
	}
	
	.gp-hero {
		padding: 40px 10px;
	}
	
	.gp-hero-title {
		font-size: 28px;
	}
	
	.gp-section {
		padding: 40px 0;
	}
	
	.gp-games-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	
	.gp-game-iframe {
		height: 400px;
	}
	
	.gp-featured-slider {
		margin: 0 -10px;
	}
	
	.gp-slider-prev,
	.gp-slider-next {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}
	
	.gp-slider-prev {
		left: 10px;
	}
	
	.gp-slider-next {
		right: 10px;
	}
}

/* ============================================
   GamePix Style - 新增样式
   ============================================ */

/* Most Played Games List */
.gp-games-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.gp-game-item {
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 20px;
	background: white;
	border-radius: var(--radius-md);
	text-decoration: none;
	transition: var(--transition);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-color);
	position: relative;
	overflow: hidden;
}

.gp-game-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--primary-color), #ff5722);
	opacity: 0;
	transition: var(--transition);
}

.gp-game-item:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-md);
	border-color: var(--primary-color);
	background: white;
}

.gp-game-item:hover::before {
	opacity: 1;
}

.gp-game-item-rank {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--primary-color), #ff5722);
	color: white;
	font-weight: 800;
	font-size: 16px;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(255,107,53,0.3);
	z-index: 2;
}

.gp-game-item-thumb {
	width: 100%;
	height: 180px;
	flex-shrink: 0;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--bg-light);
	position: relative;
	box-shadow: var(--shadow-sm);
}

.gp-game-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.gp-game-item-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: var(--transition);
}

.gp-game-item-overlay i {
	color: white;
	font-size: 32px;
	transform: scale(0.8);
	transition: var(--transition);
}

.gp-game-item:hover .gp-game-item-thumb img {
	transform: scale(1.1);
}

.gp-game-item:hover .gp-game-item-overlay {
	opacity: 1;
}

.gp-game-item:hover .gp-game-item-overlay i {
	transform: scale(1);
}

.gp-game-item-info {
	flex: 1;
	min-width: 0;
	text-align: left;
}

.gp-game-item-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-dark);
	margin: 0 0 10px 0;
	transition: var(--transition);
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	min-height: 50px;
}

.gp-game-item:hover .gp-game-item-title {
	color: var(--primary-color);
}

.gp-game-item-meta {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
	margin-top: auto;
}

.gp-game-item-plays,
.gp-game-item-category {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: var(--text-light);
}

.gp-game-item-plays i {
	color: var(--primary-color);
	font-size: 16px;
}

.gp-game-item-category i {
	color: #667eea;
	font-size: 14px;
}

.gp-game-item-arrow {
	display: none;
}

/* Section First */
.gp-section-first {
	padding-top: 100px;
}

/* About Section */
.gp-about-section {
	padding: 60px 0;
	background: white;
	margin-top: 40px;
}

.gp-about-title {
	font-size: 36px;
	font-weight: 800;
	color: var(--text-dark);
	margin-bottom: 20px;
}

.gp-about-subtitle {
	font-size: 24px;
	font-weight: 700;
	color: var(--text-dark);
	margin-top: 30px;
	margin-bottom: 15px;
}

.gp-about-text {
	font-size: 16px;
	line-height: 1.8;
	color: var(--text-light);
	margin-bottom: 15px;
}

.gp-about-text strong {
	color: var(--text-dark);
	font-weight: 600;
}

/* Game Description */
.gp-game-description {
	margin-top: 30px;
	padding: 30px;
	background: white;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}

.gp-game-description h3 {
	font-size: 24px;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 15px;
}

.gp-game-description p {
	font-size: 16px;
	line-height: 1.8;
	color: var(--text-light);
}

/* No Results */
.gp-no-results {
	text-align: center;
	padding: 60px 20px;
	background: white;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}

.gp-no-results-icon {
	font-size: 64px;
	color: var(--text-light);
	margin-bottom: 20px;
}

.gp-no-results h3 {
	font-size: 24px;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 10px;
}

.gp-no-results p {
	font-size: 16px;
	color: var(--text-light);
	margin-bottom: 30px;
}

/* Responsive Updates */
@media (max-width: 1024px) {
	.gp-games-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
}

@media (max-width: 768px) {
	.gp-games-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	
	.gp-game-item {
		padding: 15px;
		gap: 12px;
	}
	
	.gp-game-item-rank {
		width: 32px;
		height: 32px;
		font-size: 14px;
		top: 12px;
		right: 12px;
	}
	
	.gp-game-item-thumb {
		height: 160px;
	}
	
	.gp-game-item-title {
		font-size: 16px;
		margin-bottom: 8px;
		min-height: 44px;
	}
	
	.gp-game-item-meta {
		gap: 12px;
		font-size: 12px;
	}
}
	
@media (max-width: 480px) {
	.gp-games-list {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}
	.gp-about-section {
		padding: 40px 0;
	}
	
	.gp-about-title {
		font-size: 28px;
	}
	
	.gp-about-subtitle {
		font-size: 20px;
	}
	
	.gp-game-description {
		padding: 20px;
	}
}

