
/*=====================================
  1. Base Styles & Global Utilities
  =====================================*/
/* 基础样式和全局变量 */
:root {
	--primary: #ff5722;
	--primary-dark: #e64a19;
	--secondary: #2196f3;
	--dark: #0f0f12;
	--darker: #0a0a0c;
	--light: #f5f5f7;
	--gray: #2a2a33;
	--gray-light: #3a3a44;
	--text: #ffffff;
	--text-secondary: #b0b0c0;
	--text-light: #3a3a44;
	--player-bg: #2C3E50;
}

/* 全局重置 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Montserrat', sans-serif;
	background-color: var(--dark);
	color: var(--text);
	line-height: 1.6;
	overflow-x: hidden;
	position: relative;
}

/* 字体样式 */
h1,
h2,
h3,
h4 {
	font-family: 'Orbitron', sans-serif;
	font-weight: 700;
	line-height: 1.2;
}

/* 链接样式 */
a {
	color: var(--primary);
	text-decoration: none;
	transition: all 0.3s ease;
}

a:hover {
	color: var(--primary-dark);
}

/* 容器和按钮样式 */
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.btn {
	display: inline-block;
	padding: 12px 30px;
	background: var(--primary);
	color: white;
	border: none;
	border-radius: 50px;
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.btn:hover {
	background: var(--primary-dark);
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(255, 87, 34, 0.2);
}

.btn-secondary {
	background: transparent;
	border: 2px solid var(--primary);
	color: var(--primary);
}

.btn-secondary:hover {
	background: var(--primary);
	color: white;
}

/* 粒子背景 */
.particles-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

/*=====================================
  2. Navigation
  =====================================*/
/* 导航栏 */
.main-nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: rgba(15, 15, 18, 0.95);
	backdrop-filter: blur(10px);
	z-index: 1000;
	padding: 15px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 20px;
}

.logo {
	font-family: 'Orbitron', sans-serif;
	font-weight: 700;
	font-size: 24px;
	color: var(--text);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.logo span {
	color: var(--primary);
}

.nav-menu {
	display: flex;
	list-style: none;
}

.nav-menu li {
	margin-left: 30px;
	text-align: center;
	align-items: center;
	justify-content: left;
	display: flex;
}

.nav-menu a {
	color: var(--text);
	font-weight: 500;
	font-size: 16px;
	position: relative;
	padding: 8px 0;
}

.nav-menu a:hover {
	color: var(--primary);
}

.nav-menu a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--primary);
	transition: width 0.3s ease;
}

.nav-menu a:hover::after {
	width: 100%;
}

.hamburger {
	display: none;
	cursor: pointer;
	z-index: 1001;
}

.hamburger span {
	display: block;
	width: 25px;
	height: 3px;
	background: var(--text);
	margin: 5px 0;
	transition: all 0.3s ease;
}

/* 语言切换器 */
.lang-switcher {
	position: relative;
	margin-left: 15px;
}

.current-lang {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 15px;
	cursor: pointer;
	border-radius: 4px;
	transition: all 0.3s ease;
	color: var(--text);
	background: rgba(255, 255, 255, 0.1);
	font-size: 14px;
}

.current-lang:hover {
	background: rgba(255, 255, 255, 0.2);
}

.lang-toggle {
	font-size: 0.8rem;
	color: var(--text);
	margin-left: 5px;
}

.lang-list {
	position: absolute;
	top: 100%;
	right: 0;
	background: var(--darker);
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	display: none;
	min-width: 160px;
	z-index: 100;
	list-style-type: none;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-list li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	margin: 8px 0;
}

.lang-list li:last-child {
	border-bottom: none;
}

.lang-list .lang-item {
	font-size: 13px;
	padding: 8px 15px;
	line-height: 1.4;
	font-weight: normal;
}

.lang-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 15px;
	color: var(--text);
	text-decoration: none;
	transition: all 0.3s ease;
}

.lang-item:hover {
	background: rgba(255, 255, 255, 0.05);
}

.lang-item img {
	width: 20px;
	height: 15px;
	border-radius: 2px;
	object-fit: cover;
}

.lang-switcher:hover .lang-list {
	display: block;
}

/*=====================================
  3. Hero Section & Game Player
  =====================================*/
/* 主体内容和游戏播放器区域 */
.hero-section {
	padding: 150px 0 100px;
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--dark), var(--darker));
}

.hero-section .container {
	display: flex;
	gap: 40px;
}

.hero-main {
	flex: 3;
	position: relative;
	min-height: 500px;
	height: auto;
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	background-size: cover;
	background-position: center;
	flex-direction: column;
}

.game-frame-container {
	position: relative;
	width: 100%;
	height: 550px;
	overflow: hidden;
	background: #000;
}

.game-frame {
	display: block;
	width: 100%;
	height: 100%;
	border: none;
	background: #000;
}

/* 游戏控制栏 */
.game-controls {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background: rgba(15, 15, 18, 0.8);
	backdrop-filter: blur(5px);
	z-index: 10;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	transition: background-color 0.3s ease;
}

.game-frame-header {
	display: flex;
	justify-content: space-between;
	width: 100%;
	align-items: center;
}

.game-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-right: 10px;
}

.screen-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	position: relative;
}

.screen-controls button {
	background: rgba(255, 255, 255, 0.1);
	border: none;
	padding: 8px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.screen-controls button:hover {
	background: rgba(255, 255, 255, 0.2);
}

.screen-controls button svg {
	width: 24px;
	height: 24px;
	fill: var(--text);
}

.screen-controls .exit-fullscreen svg {
	transform: scale(0.8);
}

/* 全屏模式样式 */
.force-full-screen {
	position: fixed !important;
	width: 100vw !important;
	height: 100vh !important;
	z-index: 99999 !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	background: #000 !important;
	border-radius: 0 !important;
}

.exit-fullscreen {
	position: fixed !important;
	top: 15px !important;
	right: 15px !important;
	z-index: 2147483647 !important;
	width: 40px !important;
	height: 40px !important;
	padding: 8px !important;
	background: rgba(0, 0, 0, 0.65) !important;
	cursor: pointer !important;
	display: none !important;
	border-radius: 4px !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
	transition: opacity 0.3s ease !important;
}

.exit-fullscreen.show {
	display: block !important;
}

.exit-fullscreen:hover {
	background: rgba(0, 0, 0, 0.8);
}

.exit-fullscreen svg {
	width: 100%;
	height: 100%;
	fill: white;
}

/* 分享弹窗样式 */
.share-popup {
	position: absolute;
	bottom: 100%;
	right: 10px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	width: 220px;
	padding: 15px;
	display: none;
	margin-bottom: 5px;
}

.share-popup.show {
	display: block;
}

.share-header {
	font-weight: bold;
	margin-bottom: 12px;
	color: #333;
	font-size: 16px;
	text-align: center;
	padding-bottom: 8px;
	border-bottom: 1px solid #eee;
}

.share-platforms {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.share-item {
	display: flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 6px;
	text-decoration: none;
	color: #333;
	transition: background 0.2s;
	cursor: pointer;
}

.share-item:hover {
	background: #f5f5f5;
}

.share-item svg {
	margin-right: 10px;
	flex-shrink: 0;
}

/* 侧边栏样式 */
.hero-sidebar {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hero-sidebar h3 {
	font-size: 24px;
	color: var(--primary);
	border-bottom: 2px solid var(--primary);
	padding-bottom: 5px;
}

.recommended-games {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.rec-game {
	display: flex;
	align-items: center;
	gap: 15px;
	background: var(--gray);
	padding: 10px;
	border-radius: 12px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rec-game:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.rec-game img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
}

.rec-game span {
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
}

/*=====================================
  4. Game Info Section
  =====================================*/
/* 游戏详情信息版块 */
.game-info {
	padding: 100px 0;
	background: var(--dark);
}

.game-info h2 {
	text-align: center;
	margin-bottom: 60px;
	font-size: 36px;
}

.info-content {
	display: flex;
	gap: 50px;
	align-items: center;
}

.info-text {
	flex: 1;
}

.info-text p {
	margin-top: 10px;
	margin-bottom: 25px;
	font-size: 17px;
	line-height: 1.8;
	color: var(--text-secondary);
}

.game-stats {
	display: flex;
	gap: 30px;
	margin-top: 40px;
}

.stat {
	text-align: center;
}

.stat-value {
	display: block;
	font-size: 32px;
	font-weight: 700;
	color: var(--primary);
	font-family: 'Orbitron', sans-serif;
}

.stat-label {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--text-secondary);
}

.info-image {
	flex: 1;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.info-image img {
	width: 100%;
	height: auto;
	display: block;
}

/*=====================================
  5. More Games Section
  =====================================*/
/* 更多游戏版块/游戏网格 */
.more-games,
.games-grid-section {
	padding: 100px 0;
	background: var(--dark);
}

.more-games h2,
.games-grid-section h2 {
	text-align: center;
	margin-bottom: 60px;
	font-size: 36px;
}

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

.game-card {
	background: var(--gray);
	border-radius: 15px;
	overflow: hidden;
	transition: all 0.3s ease;
	display: block;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
	border-color: rgba(255, 87, 34, 0.3);
}

.game-image {
	height: 200px;
	overflow: hidden;
}

.game-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

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

.image-placeholder {
	width: 100%;
	height: 100%;
	background: var(--gray-light);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary);
	font-size: 14px;
}

.game-info {
	padding: 20px;
}

.game-card h3 {
	font-size: 18px;
	margin-bottom: 10px;
}

.game-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	font-size: 14px;
	color: var(--text-secondary);
}

.game-rating {
	color: #ffc107;
}

.play-btn {
	width: 100%;
	padding: 12px;
	background: var(--primary);
	color: white;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.play-btn:hover {
	background: var(--primary-dark);
}

/*=====================================
  6. Tips Section & Tags
  =====================================*/
/* 技巧与提示版块 */
.tips-section {
	padding: 80px 0;
	background: var(--darker);
}

.section-header {
	text-align: center;
}

.section-header h2 {
	font-size: 36px;
	position: relative;
	display: inline-block;
	padding-bottom: 15px;
}

.section-header h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 4px;
	background: var(--primary);
	border-radius: 2px;
}

.tips-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 30px;
	max-width: 1200px;
	margin: 50px auto 0 auto;
	padding: 0 20px;
}

.feature-card {
	background: var(--gray);
	border-radius: 15px;
	padding: 30px;
	transition: all 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.05);
	position: relative;
	overflow: hidden;
}

.feature-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
	border-color: rgba(255, 87, 34, 0.3);
}

.feature-card h3 {
	font-size: 22px;
	margin-bottom: 20px;
	color: var(--primary);
	position: relative;
	padding-left: 30px;
}

.feature-card h3::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	background: var(--primary);
	border-radius: 50%;
}

.feature-card p {
	color: var(--text-secondary);
	margin-bottom: 15px;
	line-height: 1.7;
}

.feature-card strong {
	color: var(--text);
	font-weight: 600;
}

.feature-card b {
	color: var(--primary);
	font-weight: 600;
}

/* 标签版块 */
.tags-section {
	padding: 20px 0;
	text-align: center;
}

.tag-list {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.tag {
	padding: 8px 16px;
	background: var(--gray);
	border-radius: 50px;
	color: var(--text-secondary);
	font-size: 14px;
	text-decoration: none;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

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

/*=====================================
  7. FAQ Section
  =====================================*/
/* 常见问题版块 */
.faq-section {
	padding: 50px 0;
}

.section-header {
	text-align: center;
	margin-bottom: 40px;
}

.section-header h2 {
	font-size: 36px;
	position: relative;
	padding-bottom: 10px;
	display: inline-block;
	text-transform: uppercase;
}

.section-header h2::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 60px;
	height: 3px;
	background: var(--primary);
	transform: translateX(-50%);
	border-radius: 2px;
}

.faq-container {
	max-width: 1200px;
	margin: 0 auto;
}

.faq-item {
	background: var(--gray-light);
	border-radius: 12px;
	margin-bottom: 20px;
	overflow: hidden;
	transition: all 0.3s ease;
}

.faq-item.active {
	background: var(--gray);
}

.faq-question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	cursor: pointer;
}

.faq-question h3 {
	font-size: 18px;
	margin: 0;
	color: var(--text);
}

.faq-toggle {
	width: 24px;
	height: 24px;
	fill: var(--text-secondary);
	transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
	transform: rotate(180deg);
}

.faq-answer {
	max-height: 0;
	padding: 0 20px;
	overflow: hidden;
	transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
	max-height: 500px;
	padding: 20px;
}

.faq-answer p {
	color: var(--text-secondary);
	margin: 0;
}

/*=====================================
  8. Footer
  =====================================*/
/* 页脚 */
.main-footer {
	background: var(--darker);
	padding: 80px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-brand .logo {
	font-size: 24px;
	margin-bottom: 20px;
	display: block;
}

.footer-brand p {
	color: var(--text-secondary);
	line-height: 1.8;
}

.footer-links h4 {
	font-size: 18px;
	margin-bottom: 25px;
	position: relative;
	padding-bottom: 10px;
}

.footer-links h4::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background: var(--primary);
}

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

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

.footer-links a {
	color: var(--text-secondary);
	transition: all 0.3s ease;
}

.footer-links a:hover {
	color: var(--primary);
	padding-left: 5px;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	padding: 30px 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}

.copyright {
	color: var(--text-secondary);
	font-size: 14px;
}

.copyright a {
	color: var(--text);
}

.copyright a:hover {
	color: var(--primary);
}

.legal-links {
	display: flex;
	gap: 20px;
}

.legal-links a {
	color: var(--text-secondary);
	font-size: 14px;
}

.legal-links a:hover {
	color: var(--primary);
}

/*=====================================
  9. Responsive Styles
  =====================================*/
/* 响应式调整 */
@media (max-width: 768px) {
	/* 导航栏 */
	.nav-menu {
		position: fixed;
		top: 0;
		right: -100%;
		width: 70%;
		height: 100vh;
		background: var(--darker);
		flex-direction: column;
		padding: 80px 20px;
		transition: right 0.3s ease-in-out;
	}

	.nav-menu.active {
		right: 0;
		box-shadow: -10px 0 20px rgba(0, 0, 0, 0.2);
	}

	.nav-menu li {
		margin: 8px 0;
	}

	.hamburger {
		display: block;
	}

	.hamburger.active span:nth-child(1) {
		transform: rotate(-45deg) translate(-5px, 6px);
	}

	.hamburger.active span:nth-child(2) {
		opacity: 0;
	}

	.hamburger.active span:nth-child(3) {
		transform: rotate(45deg) translate(-5px, -6px);
	}

	body.no-scroll {
		overflow: hidden;
	}

	/* Hero区域 */
	.hero-section {
		padding-top: 100px;
	}

	.hero-section .container {
		flex-direction: column;
	}

	.hero-main {
		width: 100%;
	}

	.hero-content {
		padding: 20px;
	}

	.hero-content h1 {
		font-size: 40px;
	}

	.hero-content .subtitle {
		font-size: 16px;
	}

	/* 游戏信息 */
	.game-info .info-content {
		flex-direction: column;
	}

	.info-image {
		order: 1;
	}

	.info-text {
		order: 2;
	}
}

@media (max-width: 500px) {
	.hero-section {
		padding-top: 80px;
		padding-bottom: 50px;
	}

	.game-frame-container {
		height: 450px;
	}

	.game-controls {
		padding: 10px 15px;
	}

	.game-title {
		font-size: 16px;
	}

	.screen-controls button {
		width: 35px;
		height: 35px;
	}

	.game-info .info-content {
		gap: 30px;
	}

	.info-text h2 {
		font-size: 28px;
	}
}