/**
 * 应用范围页面样式 V2 - 工业科技有机风
 * 设计理念：精密电路板的流动美感
 */

/* ==================== 设计系统 ==================== */
:root {
	--yy-primary: #0a1628;
	--yy-primary-light: #1b263b;
	--yy-accent: #ff6b35;
	--yy-accent-glow: rgba(255, 107, 53, 0.3);
	--yy-circuit: #0066cc;
	--yy-circuit-glow: rgba(0, 102, 204, 0.2);
	--yy-surface: #f8fafc;
	--yy-text: #1e293b;
	--yy-text-muted: #64748b;
}

/* ==================== Hero区域 ==================== */
.yy-hero {
	position: relative;
	padding: 120px 0 80px;
	background: linear-gradient(135deg, #0a1628 0%, #1b263b 50%, #0066cc 100%);
	color: #fff;
	overflow: hidden;
}

.yy-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: 
		linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
	background-size: 50px 50px;
}

.yy-hero-content {
	position: relative;
	z-index: 1;
	text-align: center;
}

/* 标题 - 工业字体 */
.yy-hero h1 {
	font-size: 56px;
	font-weight: 800;
	color: #fff;
	margin: 0 0 15px;
	letter-spacing: 8px;
}

/* 标题发光效果 */
.yy-hero h1::after {
	content: attr(data-text);
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, var(--yy-accent), transparent);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: titleShine 3s linear infinite;
	opacity: 0.5;
}

@keyframes titleShine {
	0% { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}

.yy-subtitle {
	font-size: 20px;
	color: #ff6b35;
	letter-spacing: 6px;
	margin: 0 0 20px;
	text-transform: uppercase;
}

.yy-desc {
	font-size: 18px;
	color: rgba(255,255,255,0.8);
	max-width: 600px;
	margin: 0 auto;
}

/* ==================== 主体区域 ==================== */
.yy-main {
	padding: 80px 0 100px;
	background: var(--yy-surface);
	position: relative;
}

/* 英文描述 - 卡片式 */
.yy-intro {
	max-width: 1000px;
	margin: 0 auto 60px;
	padding: 40px 50px;
	background: #fff;
	border-radius: 20px;
	border: 1px solid #e2e8f0;
	position: relative;
	overflow: hidden;
}

/* 装饰角标 */
.yy-intro::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 60px;
	height: 60px;
	border-top: 3px solid var(--yy-accent);
	border-left: 3px solid var(--yy-accent);
	border-radius: 20px 0 0 0;
}

.yy-intro::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 60px;
	height: 60px;
	border-bottom: 3px solid var(--yy-circuit);
	border-right: 3px solid var(--yy-circuit);
	border-radius: 0 0 20px 0;
}

.yy-intro p {
	font-size: 16px;
	color: var(--yy-text-muted);
	line-height: 1.8;
	margin: 0;
	text-align: center;
}

/* ==================== 应用展示 - 流动卡片布局 ==================== */
.yy-showcase {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	margin-bottom: 60px;
}

.yy-app-card {
	position: relative;
	background: #fff;
	border-radius: 24px;
	padding: 40px 30px;
	text-align: center;
	border: 2px solid transparent;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
}

/* 卡片边框渐变 */
.yy-app-card::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 24px;
	padding: 2px;
	background: linear-gradient(135deg, var(--yy-circuit), var(--yy-accent));
	-webkit-mask: 
		linear-gradient(#fff 0 0) content-box, 
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.4s;
}

.yy-app-card:hover::before {
	opacity: 1;
}

.yy-app-card:hover {
	transform: translateY(-10px);
	box-shadow: 
		0 20px 40px rgba(0,0,0,0.1),
		0 0 0 1px rgba(255,107,53,0.1);
}

/* 图标容器 */
.yy-icon-wrap {
	width: 100px;
	height: 100px;
	margin: 0 auto 25px;
	background: linear-gradient(135deg, var(--yy-surface) 0%, #fff 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	border: 2px solid #e2e8f0;
	transition: all 0.4s;
}

.yy-app-card:hover .yy-icon-wrap {
	border-color: var(--yy-accent);
	box-shadow: 0 0 30px var(--yy-accent-glow);
	transform: scale(1.05);
}

.yy-icon-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
	border-radius: 50%;
}

.yy-app-card:hover .yy-icon-wrap img {
	transform: scale(1.1);
}

/* 图标发光环 */
.yy-icon-wrap::after {
	content: '';
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	border: 2px dashed var(--yy-circuit);
	opacity: 0;
	transition: opacity 0.4s;
	animation: rotate 10s linear infinite;
}

.yy-app-card:hover .yy-icon-wrap::after {
	opacity: 0.3;
}

@keyframes rotate {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.yy-app-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--yy-text);
	margin: 0 0 12px;
}

.yy-app-desc {
	font-size: 14px;
	color: var(--yy-text-muted);
	line-height: 1.6;
	margin: 0;
}

/* 编号标签 */
.yy-app-number {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 36px;
	height: 36px;
	background: var(--yy-surface);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'JetBrains Mono', monospace;
	font-size: 14px;
	font-weight: 700;
	color: var(--yy-circuit);
	border: 2px solid #e2e8f0;
}

.yy-app-card:hover .yy-app-number {
	background: var(--yy-accent);
	color: #fff;
	border-color: var(--yy-accent);
}

/* ==================== 核心应用 - 中央展示 ==================== */
.yy-core-section {
	margin: 80px 0;
	padding: 60px;
	background: linear-gradient(135deg, var(--yy-primary) 0%, var(--yy-primary-light) 100%);
	border-radius: 30px;
	position: relative;
	overflow: hidden;
}

.yy-core-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: 
		radial-gradient(circle at 30% 40%, var(--yy-circuit-glow) 0%, transparent 50%),
		radial-gradient(circle at 70% 60%, var(--yy-accent-glow) 0%, transparent 40%);
}

.yy-core-header {
	text-align: center;
	margin-bottom: 50px;
	position: relative;
	z-index: 1;
}

.yy-core-header h2 {
	font-size: 36px;
	font-weight: 800;
	color: #fff;
	margin: 0 0 15px;
}

.yy-core-header p {
	font-size: 16px;
	color: rgba(255,255,255,0.7);
}

.yy-core-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 25px;
	position: relative;
	z-index: 1;
}

.yy-core-item {
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 16px;
	padding: 30px 20px;
	text-align: center;
	transition: all 0.3s;
}

.yy-core-item:hover {
	background: rgba(255,255,255,0.1);
	border-color: var(--yy-accent);
	transform: translateY(-5px);
}

.yy-core-icon {
	width: 70px;
	height: 70px;
	margin: 0 auto 15px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: #fff;
	position: relative;
	overflow: hidden;
	transition: all 0.3s;
}

/* 图标背景渐变 */
.yy-icon-home { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.yy-icon-attendance { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.yy-icon-pcba { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.yy-icon-pos { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.yy-icon-wifi { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.yy-icon-industry { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }

/* 图标发光效果 */
.yy-core-icon::before {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: 18px;
	background: inherit;
	filter: blur(10px);
	opacity: 0;
	transition: opacity 0.3s;
	z-index: -1;
}

.yy-core-item:hover .yy-core-icon::before {
	opacity: 0.5;
}

/* 图标内部装饰 */
.yy-core-icon::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 16px;
	border: 2px solid rgba(255,255,255,0.3);
}

.yy-core-icon i {
	position: relative;
	z-index: 1;
	text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.yy-core-item span {
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

/* ==================== 应用领域标签 - 胶囊式 ==================== */
.yy-tags-section {
	margin-top: 80px;
}

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

.yy-tags-header h3 {
	font-size: 28px;
	font-weight: 700;
	color: var(--yy-text);
	margin: 0 0 10px;
}

.yy-tags-header p {
	font-size: 15px;
	color: var(--yy-text-muted);
}

.yy-tags-cloud {
	display: flex;
	justify-content: center;
	gap: 15px;
	flex-wrap: wrap;
}

.yy-tag {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 28px;
	background: #fff;
	border: 2px solid #e2e8f0;
	border-radius: 50px;
	font-size: 15px;
	font-weight: 600;
	color: var(--yy-text);
	transition: all 0.3s;
	cursor: pointer;
}

.yy-tag:hover {
	border-color: var(--yy-accent);
	color: var(--yy-accent);
	transform: translateY(-3px);
	box-shadow: 0 10px 25px rgba(255,107,53,0.15);
}

.yy-tag i {
	font-size: 18px;
	color: var(--yy-circuit);
	transition: color 0.3s;
}

.yy-tag:hover i {
	color: var(--yy-accent);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1200px) {
	.yy-showcase {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.yy-core-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 992px) {
	.yy-hero h1 {
		font-size: 48px;
		letter-spacing: 6px;
	}
	
	.yy-showcase {
		grid-template-columns: repeat(2, 1fr);
		gap: 25px;
	}
	
	.yy-core-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.yy-core-section {
		padding: 40px;
	}
}

@media (max-width: 768px) {
	.yy-hero {
		padding: 100px 0 60px;
	}
	
	.yy-hero h1 {
		font-size: 36px;
		letter-spacing: 4px;
	}
	
	.yy-subtitle {
		font-size: 14px;
		letter-spacing: 4px;
	}
	
	.yy-intro {
		padding: 30px;
	}
	
	.yy-showcase {
		grid-template-columns: 1fr;
	}
	
	.yy-core-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
	
	.yy-core-item {
		padding: 20px 15px;
	}
	
	.yy-tags-cloud {
		gap: 10px;
	}
	
	.yy-tag {
		padding: 12px 20px;
		font-size: 14px;
	}
}
