/* 重置样式 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Arial', 'Microsoft YaHei', sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #f5f5f5;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
	background: #667eea;
	padding: 1rem 0;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	display: flex;
	align-items: center;
	color: white;
	font-size: 1.5rem;
	font-weight: bold;
}

.logo .logo-icon {
	width: 40px;
	height: 40px;
	background: linear-gradient(45deg, #667eea, #764ba2);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
	font-size: 16px;
	margin-right: 10px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo .logo-icon:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.logo img {
	height: 40px;
	margin-right: 10px;
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: 2rem;
}

.nav-menu a {
	color: white;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.nav-menu a:hover {
	color: #ffd700;
}

.hamburger {
	display: none;
	flex-direction: column;
	cursor: pointer;
}

.hamburger span {
	width: 25px;
	height: 3px;
	background: white;
	margin: 3px 0;
	transition: 0.3s;
}

/* 主页横幅 */
.hero {
	margin-top: 80px;
	padding: 100px 0;
	background: linear-gradient(135deg, #2b40fb 0%, #5af55a 100%);
	color: white;
	display: flex;
	align-items: center;
	min-height: 600px;
}

.hero-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.hero-content h1 {
	font-size: 3rem;
	margin-bottom: 1rem;
	line-height: 1.2;
}

.hero-content p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	opacity: 0.9;
}

.hero-buttons {
	display: flex;
	gap: 1rem;
}

.btn {
	padding: 12px 24px;
	border: none;
	border-radius: 50px;
	text-decoration: none;
	font-weight: bold;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-block;
}

.btn-primary {
	background: #ffd700;
	color: #333;
}

.btn-primary:hover {
	background: #ffed4e;
	transform: translateY(-2px);
}

.btn-secondary {
	background: transparent;
	color: white;
	border: 2px solid white;
}

.btn-secondary:hover {
	background: white;
	color: #333;
}

.hero-image img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image img:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* 特色功能 */
.features {
	padding: 80px 0;
	background: white;
}

.features h2 {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 3rem;
	color: #333;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.feature-card {
	text-align: center;
	padding: 2rem;
	border-radius: 10px;
	background: #f8f9fa;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card i {
	font-size: 3rem;
	color: #667eea;
	margin-bottom: 1rem;
}

.feature-card h3 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: #333;
}

.feature-card p {
	color: #666;
	line-height: 1.6;
}

/* 游戏中心 */
.games {
	padding: 80px 0;
	background: #f8f9fa;
}

.games h2 {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 3rem;
	color: #333;
}

.games-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.game-card {
	background: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.game-card:hover {
	transform: translateY(-5px);
}

.game-image {
	height: 200px;
	background: linear-gradient(45deg, #667eea, #764ba2);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 1.2rem;
}

.game-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
	transform: scale(1.05);
}

.game-info {
	padding: 1.5rem;
}

.game-info h3 {
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
	color: #333;
}

.game-info p {
	color: #666;
}

/* 关于我们 */
.about {
	padding: 80px 0;
	background: white;
}

.about-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.about-text h2 {
	font-size: 2.5rem;
	margin-bottom: 1.5rem;
	color: #333;
}

.about-text p {
	font-size: 1.1rem;
	color: #666;
	margin-bottom: 2rem;
	line-height: 1.8;
}

.about-stats {
	display: flex;
	gap: 2rem;
}

.stat-item {
	text-align: center;
}

.stat-item h3 {
	font-size: 2rem;
	color: #667eea;
	margin-bottom: 0.5rem;
}

.stat-item p {
	color: #666;
	font-size: 0.9rem;
}

.about-image img {
	width: 100%;
	height: auto;
	border-radius: 10px;
}

/* 新闻资讯 */
.news {
	padding: 80px 0;
	background: #f8f9fa;
}

.news h2 {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 3rem;
	color: #333;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.news-card {
	background: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.news-card:hover {
	transform: translateY(-5px);
}

.news-image {
	height: 150px;
	background: linear-gradient(45deg, #f093fb, #f5576c);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
}

.news-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
	transform: scale(1.05);
}

.news-content {
	padding: 1.5rem;
}

.news-content h3 {
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
	color: #333;
}

.news-content p {
	color: #666;
	margin-bottom: 1rem;
	line-height: 1.6;
}

.news-date {
	color: #999;
	font-size: 0.9rem;
}

/* 联系我们 */
.contact {
	padding: 80px 0;
	background: white;
}

.contact h2 {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 3rem;
	color: #333;
}

.contact-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
}

.contact-item {
	display: flex;
	align-items: center;
	margin-bottom: 2rem;
}

.contact-item i {
	font-size: 2rem;
	color: #667eea;
	margin-right: 1rem;
	width: 50px;
}

.contact-item h3 {
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
	color: #333;
}

.contact-item p {
	color: #666;
}

.contact-form {
	background: #f8f9fa;
	padding: 2rem;
	border-radius: 10px;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 1rem;
	transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #667eea;
}

/* 页脚 */
.footer {
	background: #2c3e50;
	color: white;
	padding: 50px 0 20px;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer-section h3 {
	margin-bottom: 1rem;
	color: #ffd700;
}

.footer-section p,
.footer-section ul {
	color: #bdc3c7;
	line-height: 1.8;
}

.footer-section ul {
	list-style: none;
}

.footer-section ul li {
	margin-bottom: 0.5rem;
}

.footer-section a {
	color: #bdc3c7;
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-section a:hover {
	color: #ffd700;
}

.social-links {
	display: flex;
	gap: 1rem;
	margin-top: 1rem;
}

.social-links a {
	display: inline-block;
	width: 40px;
	height: 40px;
	background: #34495e;
	text-align: center;
	line-height: 40px;
	border-radius: 50%;
	transition: background 0.3s ease;
}

.social-links a:hover {
	background: #ffd700;
	color: #333;
}

.footer-bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid #34495e;
	color: #95a5a6;
}

.footer-bottom p {
	margin-bottom: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.hamburger {
		display: flex;
	}

	.nav-menu {
		position: fixed;
		left: -100%;
		top: 70px;
		flex-direction: column;
		background-color: rgba(102, 126, 234, 0.95);
		width: 100%;
		text-align: center;
		transition: 0.3s;
		padding: 2rem 0;
	}

	.nav-menu.active {
		left: 0;
	}

	.nav-menu li {
		margin: 1rem 0;
	}

	.hero-content {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 2rem;
	}

	.hero-content h1 {
		font-size: 2rem;
	}

	.hero-buttons {
		justify-content: center;
		flex-wrap: wrap;
	}

	.about-content {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.about-stats {
		justify-content: center;
	}

	.contact-content {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.features-grid,
	.games-grid,
	.news-grid {
		grid-template-columns: 1fr;
	}

	.footer-content {
		grid-template-columns: 1fr;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.hero {
		padding: 50px 0;
	}

	.hero-content h1 {
		font-size: 1.5rem;
	}

	.hero-content p {
		font-size: 1rem;
	}

	.features,
	.games,
	.about,
	.news,
	.contact {
		padding: 50px 0;
	}

	.features h2,
	.games h2,
	.about h2,
	.news h2,
	.contact h2 {
		font-size: 2rem;
	}

	.about-stats {
		flex-direction: column;
		gap: 1rem;
	}
}

/* 动画效果 */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in-up {
	animation: fadeInUp 0.6s ease forwards;
}

/* 滚动效果 */
html {
	scroll-behavior: smooth;
}

/* 加载动画 */
.loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #667eea;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}