:root {
	--primary: #cfb190;
	--secondary: #3b82f6;
	--success: #05734e;
	--warning: #b57307;
	--danger: #a70000;
	--bg: #f8fafc;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Inter', system-ui, sans-serif;
}

body {
	background: linear-gradient(45deg, #f0f4ff, #ffffff);
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
}

/* 动态网络背景 */
.network-bg {
	position: fixed;
	width: 100vw;
	height: 100vh;
	background-image:
		radial-gradient(circle at 30% 70%, rgba(37, 99, 235, 0.05) 0%, transparent 60%),
		radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.05) 0%, transparent 60%);
	z-index: 0;
}

/* 动态连接线 */
.network-bg::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 200%;
	height: 200%;
	background-image: url("../img/bg.jpg");
	/* animation: flow 20s linear infinite; */
}

@keyframes flow {
	0% {
		transform: translate(0, 0);
	}

	100% {
		transform: translate(-50%, -50%);
	}
}

.main-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 3rem 2rem;
	position: relative;
	z-index: 1;
}

/* 品牌头图 */
.brand-header {
	text-align: center;
	margin-bottom: 4rem;
}

.brand-logo {
	width: 100px;
	height: 100px;
	border-radius: 24px;
	margin: 0 auto 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	color: white;
}

.brand-title {
	font-size: 2.5rem;
	color: var(--primary);
	letter-spacing: 2px;
	margin-bottom: 0.5rem;
}

.brand-subtitle {
	color: #64748b;
	font-size: 1.1rem;
	letter-spacing: 1px;
}

/* 测速区双列布局 */
.server-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin-bottom: 3rem;
}

/* 服务器卡片 */
.server-card {
	background: white;
	border-radius: 1.5rem;
	padding: 1rem;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	overflow: hidden;
	border: 1px solid rgba(37, 99, 235, 0.1);
}

.server-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
}

/* 卡片顶部装饰条 */
.server-card::before {
	content: '';
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.server-content {
	position: relative;
	z-index: 1;
}

/* 服务器信息 */
.server-meta {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.server-icon {
	width: 56px;
	height: 56px;
	background: rgba(37, 99, 235, 0.1);
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.server-icon img {
	width: 60%;
	filter: invert(35%) sepia(98%) saturate(3250%) hue-rotate(213deg) brightness(93%) contrast(91%);
}

.server-details h3 {
	color: var(--primary);
	font-size: 1.5rem;
}

/* 延迟指示器 */
.latency-indicator {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.latency-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.good {
	color: var(--success) !important;
}

.average {
	color: var(--warning) !important;
}

.poor {
	color: var(--danger) !important;
}

.good-bg {
	background: var(--success) !important;
}

.average-bg {
	background: var(--warning) !important;
}

.poor-bg {
	background: var(--danger) !important;
}

.latency-text {
	font-size: 1.2rem;
	font-weight: 600;
}

/* 服务器链接 */
.server-link {
	display: flex;
	align-items: center;
	gap: 1rem;
	border-radius: 12px;
	margin: 1.5rem 0;
	color: #475569;
}

.server-link::before {
	content: '🌐';
	font-size: 1.2rem;
}

/* 操作按钮 */
.action-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.btn {
	padding: 1rem;
	border: none;
	border-radius: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
}

.btn-copy {
	color: #fff;
	background: linear-gradient(to top, rgb(76, 86, 108), rgb(101, 112, 133));
}

.btn-copy:hover {
	background: linear-gradient(to top, rgb(76, 86, 108), rgb(101, 112, 133));
}

.btn-enter {
	background: #cfb190;
	color: white;
}

.btn-enter:hover {
	opacity: 0.95;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.zhuangtai {
	width: 100%;
	text-align: center;
	display: flex;
	justify-content: center;
	line-height: 40px;
}

.bottom-con {
	height: 100px;
	background: #fff;
	border-radius: 30px;
}

.bottom {
	width: 100%;
	text-align: center;
	display: flex;
	justify-content: center;
	line-height: 60px;
	height: 60px;
	align-items: center;
}

.bottom .btn {
	width: 220px;
	height: 40px;
	background: #cfb190;
	border-radius: 20px;
	text-align: center;
	line-height: 40px;
	color: #fff;
	cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.server-grid {
		grid-template-columns: 1fr;
	}
	.bottom-con{
		background: rgba(37, 99, 235, 0);
	}
	.zhuangtai {
		display: none;
	}

	.bottom {
		line-height: 100px;
		height: 100px;
	}

	.brand-title {
		font-size: 2rem;
	}

	.server-meta {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* 提示容器基础样式 */
.global-toast {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	padding: 12px 24px;
	background: rgba(0, 0, 0, 0.8);
	color: white;
	border-radius: 4px;
	font-family: Arial, sans-serif;
	font-size: 14px;
	z-index: 9999;
	opacity: 0;
	animation: toastFade 2s forwards;
	display: flex;
	align-items: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 淡入淡出动画 */
@keyframes toastFade {
	0% {
		opacity: 0;
		transform: translate(-50%, -40%);
	}

	20% {
		opacity: 1;
		transform: translate(-50%, -50%);
	}

	80% {
		opacity: 1;
		transform: translate(-50%, -50%);
	}

	100% {
		opacity: 0;
		transform: translate(-50%, -60%);
	}
}

/* 可选图标样式 */
.toast-icon {
	width: 18px;
	height: 18px;
	margin-right: 8px;
}