/* ========== 统一科技感样式库 ========== */
/* 用于所有 index 目录下的视图页面 */

/* ========== 科技感动画定义 ========== */
@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}
@keyframes pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.05); opacity: 0.8; }
}
@keyframes glow {
	0%, 100% { box-shadow: 0 0 5px rgba(102,126,234,0.5), 0 0 10px rgba(102,126,234,0.3); }
	50% { box-shadow: 0 0 20px rgba(102,126,234,0.8), 0 0 30px rgba(102,126,234,0.5); }
}
@keyframes borderFlow {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}
@keyframes typing {
	from { width: 0; }
	to { width: 100%; }
}
@keyframes blink {
	50% { border-color: transparent; }
}
@keyframes slideInUp {
	from { opacity: 0; transform: translateY(50px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
	from { opacity: 0; transform: translateX(-50px); }
	to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
	from { opacity: 0; transform: translateX(50px); }
	to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
	from { opacity: 0; transform: scale(0.8); }
	to { opacity: 1; transform: scale(1); }
}
@keyframes rotateIn {
	from { opacity: 0; transform: rotate(-180deg); }
	to { opacity: 1; transform: rotate(0); }
}
@keyframes shimmer {
	0% { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}
@keyframes particle {
	0% { transform: translateY(0) rotate(0deg); opacity: 1; }
	100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}
@keyframes gridPulse {
	0%, 100% { opacity: 0.03; }
	50% { opacity: 0.08; }
}

/* 科技感渐变背景 */
.tech-gradient {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.tech-gradient-2 {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.tech-gradient-3 {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.tech-gradient-4 {
	background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
.tech-gradient-dark {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.tech-gradient-cyber {
	background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #0f0f23 100%);
}

/* 通用卡片悬浮效果 */
.hover-card {
	transition: all 0.3s ease;
}
.hover-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* 响应式容器 */
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

/* 全局字体和基础样式 */
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
	color: #333;
	overflow-x: hidden;
}

/* 图标字体代替图片 */
.iconfont {
	display: inline-block;
	vertical-align: middle;
}

/* 科技感按钮 */
.tech-btn {
	display: inline-block;
	padding: 12px 30px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: bold;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s;
	box-shadow: 0 5px 15px rgba(102,126,234,0.3);
	text-decoration: none;
}
.tech-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(102,126,234,0.4);
}
.tech-btn:active {
	transform: translateY(0);
}

/* 科技感输入框 */
.tech-input {
	width: 100%;
	padding: 12px 15px;
	margin-bottom: 15px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 14px;
	transition: all 0.3s;
	box-sizing: border-box;
}
.tech-input:focus {
	border-color: #667eea;
	outline: none;
	box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

/* 科技感卡片 */
.tech-card {
	background: #fff;
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.08);
	border-left: 4px solid #667eea;
	transition: all 0.3s;
}
.tech-card:hover {
	box-shadow: 0 8px 25px rgba(0,0,0,0.12);
	transform: translateX(5px);
}

/* 渐变文字 */
.gradient-text {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ========== 科技感特效 ========== */

/* 粒子背景容器 */
.tech-particles {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}
.tech-particle {
	position: absolute;
	width: 4px;
	height: 4px;
	background: rgba(102,126,234,0.6);
	border-radius: 50%;
	animation: particle 15s linear infinite;
}

/* 科技感网格背景 */
.tech-grid-bg {
	position: relative;
}
.tech-grid-bg::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: 
		linear-gradient(rgba(102,126,234,0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(102,126,234,0.03) 1px, transparent 1px);
	background-size: 50px 50px;
	animation: gridPulse 4s ease-in-out infinite;
	pointer-events: none;
	z-index: 0;
}

/* 玻璃态效果 */
.tech-glass {
	background: rgba(255,255,255,0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 16px;
}
.tech-glass-dark {
	background: rgba(0,0,0,0.3);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 16px;
}

/* 霓虹发光文字 */
.tech-neon-text {
	color: #fff;
	text-shadow: 
		0 0 5px #fff,
		0 0 10px #fff,
		0 0 20px #667eea,
		0 0 40px #667eea,
		0 0 80px #667eea;
}

/* 流光边框 */
.tech-border-flow {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
}
.tech-border-flow::before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe, #667eea);
	background-size: 400% 400%;
	animation: borderFlow 3s ease infinite;
	border-radius: 14px;
	z-index: -1;
}
.tech-border-flow::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	right: 2px;
	bottom: 2px;
	background: #fff;
	border-radius: 10px;
	z-index: -1;
}

/* 3D 卡片悬浮 */
.tech-card-3d {
	transition: all 0.5s ease;
	transform-style: preserve-3d;
	perspective: 1000px;
}
.tech-card-3d:hover {
	transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
	box-shadow: 
		0 25px 50px rgba(0,0,0,0.15),
		0 0 0 1px rgba(102,126,234,0.1);
}

/* 闪烁效果 */
.tech-blink {
	animation: pulse 2s ease-in-out infinite;
}

/* 浮动效果 */
.tech-float {
	animation: float 3s ease-in-out infinite;
}

/* 发光效果 */
.tech-glow {
	animation: glow 2s ease-in-out infinite;
}

/* 打字机光标 */
.tech-cursor {
	display: inline-block;
	width: 3px;
	height: 1em;
	background: #667eea;
	margin-left: 2px;
	animation: blink 1s step-end infinite;
}

/* 滚动显示动画类 */
.tech-animate {
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.6s ease-out;
}
.tech-animate.visible {
	opacity: 1;
	transform: translateY(0);
}
.tech-animate-left {
	opacity: 0;
	transform: translateX(-30px);
	transition: all 0.6s ease-out;
}
.tech-animate-left.visible {
	opacity: 1;
	transform: translateX(0);
}
.tech-animate-right {
	opacity: 0;
	transform: translateX(30px);
	transition: all 0.6s ease-out;
}
.tech-animate-right.visible {
	opacity: 1;
	transform: translateX(0);
}
.tech-animate-scale {
	opacity: 0;
	transform: scale(0.9);
	transition: all 0.6s ease-out;
}
.tech-animate-scale.visible {
	opacity: 1;
	transform: scale(1);
}

/* 数据卡片科技感 */
.tech-data-card {
	background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,0.3);
	border-radius: 20px;
	padding: 30px;
	position: relative;
	overflow: hidden;
}
.tech-data-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
	animation: shimmer 3s infinite;
}

/* 脉冲圆点 */
.tech-pulse-dot {
	width: 12px;
	height: 12px;
	background: #667eea;
	border-radius: 50%;
	position: relative;
}
.tech-pulse-dot::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	background: #667eea;
	border-radius: 50%;
	animation: pulse 2s ease-out infinite;
}

/* 科技感分隔线 */
.tech-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, #667eea, transparent);
	margin: 40px 0;
}

/* 响应式断点 */
@media (max-width: 768px) {
	.container {
		padding: 0 10px;
	}
	.hover-card:hover {
		transform: none;
	}
	.tech-card-3d:hover {
		transform: none;
	}
	.tech-particles {
		display: none;
	}
}
