/*
ThemeName=StarPay
Description=默认首页模板
Version=V1.0.1
Author=Mr.Faith
Author_Description=星影云IDC
Author_link=https://xccyidc.xyz
*/
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
	scroll-behavior: smooth;
	/* 平滑滚动 */
}

body {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	color: #fff;
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-tap-highlight-color: transparent;
	/* 移除移动端点击高亮 */
	min-height: 100vh;
	width: 100%;
}

/* 导航栏样式 */
.navbar {
	padding: 1rem 5%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
}

.logo {
	font-size: 1.8rem;
	font-weight: bold;
	background: linear-gradient(45deg, #7f00ff, #e100ff);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	white-space: nowrap;
}

/* 汉堡菜单按钮样式 */
.hamburger-menu {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	z-index: 101;
	margin-left: auto;
	/* 将按钮靠右 */
}

.hamburger-menu .bar {
	display: block;
	width: 25px;
	height: 3px;
	margin: 5px auto;
	background-color: #fff;
	transition: all 0.3s ease-in-out;
	border-radius: 3px;
}

.nav-links {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
}

.nav-links a {
	color: #fff;
	text-decoration: none;
	margin-left: 1rem;
	transition: color 0.3s;
	white-space: nowrap;
	font-size: 0.95rem;
}

.nav-links a:hover {
	color: #7f00ff;
}

.cta-button {
	display: inline-block;
	padding: 0.6rem 1.2rem;
	background: linear-gradient(45deg, #7f00ff, #e100ff);
	color: #fff !important;
	text-decoration: none;
	border-radius: 20px;
	font-weight: bold;
	transition: transform 0.3s;
	white-space: nowrap;
}

.cta-button:hover {
	transform: translateY(-3px);
}

/* 移动端导航栏样式 */
@media (max-width: 768px) {
	.navbar {
		padding: 0.8rem 4%;
		flex-wrap: wrap;
	}

	.logo {
		font-size: 1.5rem;
	}

	/* 显示汉堡菜单按钮 */
	.hamburger-menu {
		display: block;
		order: 3;
	}

	/* 设置汉堡菜单激活状态样式 */
	.hamburger-menu.active .bar:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}

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

	.hamburger-menu.active .bar:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	/* 导航链接移动端样式 */
	.nav-links {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
		flex-direction: column;
		align-items: center;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
		box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
		z-index: 100;
		padding: 0;
	}

	.nav-links.active {
		max-height: 300px;
		padding: 1rem 0;
	}

	.nav-links a {
		margin: 0.8rem 0;
		font-size: 1.1rem;
		display: block;
		text-align: center;
		padding: 0.5rem 0;
		width: 90%;
	}

	.nav-links .cta-button {
		margin-top: 0.8rem;
		padding: 0.8rem 2rem;
		width: 80%;
	}

	.hero h1 {
		font-size: 2.5rem;
	}

	.hero {
		padding: 4rem 5% 6rem;
	}

	.hero p {
		font-size: 1rem;
		margin-bottom: 1.5rem;
	}

	.features {
		padding: 3rem 5%;
		gap: 1.5rem;
	}

	.feature-card {
		padding: 1.5rem;
	}

	.feature-card h3 {
		font-size: 1.2rem;
	}

	.feature-card p {
		font-size: 0.9rem;
	}

	.feature-card:active {
		transform: scale(0.98) translateY(-5px);
		transition: transform 0.2s;
	}
}

@media (max-width: 480px) {
	.navbar {
		padding: 0.6rem 3%;
	}

	.logo {
		font-size: 1.3rem;
	}

	.hero h1 {
		font-size: 2rem;
	}

	.hero {
		padding: 3rem 5% 5rem;
	}

	.hero p {
		font-size: 0.9rem;
		margin-bottom: 1.2rem;
	}

	.hero .cta-button {
		padding: 0.8rem 1.8rem;
		font-size: 0.9rem;
	}

	.features {
		padding: 2rem 5%;
		gap: 1rem;
		grid-template-columns: 1fr;
	}

	.feature-card {
		padding: 1.2rem;
	}
}

/* 超小屏幕设备适配 */
@media (max-width: 375px) {
	.logo {
		font-size: 1.1rem;
	}

	.hero h1 {
		font-size: 1.8rem;
	}

	.hero p {
		font-size: 0.85rem;
		margin-bottom: 1rem;
	}

	.hero .cta-button {
		padding: 0.7rem 1.5rem;
		font-size: 0.85rem;
	}

	.feature-card {
		padding: 1rem;
	}

	.feature-card h3 {
		font-size: 1rem;
	}

	.feature-card p {
		font-size: 0.8rem;
	}
}

.hero {
	padding: 8rem 10%;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.hero h1 {
	font-size: 4rem;
	margin-bottom: 1.5rem;
	animation: fadeInUp 1s ease;
	display: flex;
	justify-content: center;
	position: relative;
}

/* 标题文字样式 - 添加呼吸灯效果 */
.hero h1 {
	background: none;
	-webkit-background-clip: initial;
	-webkit-text-fill-color: initial;
}

.hero h1 span {
	background: linear-gradient(45deg, #fff, #7f00ff);
	background-clip: text;
	-webkit-background-clip: text;
	-moz-background-clip: text;
	-webkit-text-fill-color: transparent;
	color: #fff;
	/* 回退颜色 */
	position: relative;
	display: inline-block;
	animation: textGlow 6s ease-in-out infinite;
}

/* 文字照映动画 */
@keyframes textGlow {

	0%,
	100% {
		filter: brightness(1);
		text-shadow: none;
	}

	40% {
		filter: brightness(1.3);
		text-shadow: 0 0 15px rgba(255, 255, 255, 0.5),
			0 0 25px rgba(127, 0, 255, 0.3);
	}
}

.hero p {
	font-size: 1.2rem;
	color: #a0a0a0;
	max-width: 600px;
	margin: 0 auto 2rem;
	animation: fadeInUp 1s 0.2s ease backwards;
}

.hero .cta-button {
	padding: 1rem 2.5rem;
	animation: fadeInUp 1s 0.4s ease backwards;
}

.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	padding: 4rem 10%;
	width: 100%;
	box-sizing: border-box;
}

.feature-card {
	background: rgba(255, 255, 255, 0.05);
	padding: 2rem;
	border-radius: 15px;
	backdrop-filter: blur(10px);
	transition: transform 0.3s, box-shadow 0.3s;
	position: relative;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.feature-card h3 {
	margin-bottom: 1rem;
	font-size: 1.4rem;
}

.feature-card p {
	line-height: 1.6;
	color: #d4d4d4;
}

.feature-card:hover,
.feature-card:active {
	transform: translateY(-10px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.feature-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(127, 0, 255, 0.1), rgba(225, 0, 255, 0.1));
	opacity: 0;
	transition: opacity 0.3s;
	pointer-events: none;
}

.feature-card:hover::after,
.feature-card:active::after {
	opacity: 1;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.stars {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	pointer-events: none;
}

.star {
	position: absolute;
	background: #fff;
	border-radius: 50%;
	animation: twinkle var(--duration) ease-in-out infinite;
}

@keyframes twinkle {

	0%,
	100% {
		opacity: 0;
	}

	50% {
		opacity: 1;
	}
}