/* 
 * Modern 查询结果页面样式 - PC端专用
 * 白色卡片 + 渐变背景
 */

/* ==================== 全局设置 ==================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
	line-height: 1.6;
	color: #2c3e50;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	padding: 0;
}

/* ==================== 顶部导航 ==================== */
.top-nav {
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(20px);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
	padding: 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 3px solid transparent;
	border-image: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
	border-image-slice: 1;
}

.nav-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 75px;
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 15px;
}

.brand-icon {
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 26px;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.brand-text {
	font-size: 22px;
	font-weight: 700;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: -0.5px;
}

.nav-menu {
	display: flex;
	gap: 10px;
}

.nav-item {
	padding: 12px 24px;
	border-radius: 10px;
	color: #2c3e50;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.nav-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	transition: left 0.4s;
	z-index: -1;
}

.nav-item:hover::before {
	left: 0;
}

.nav-item:hover {
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.nav-admin {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}

.nav-admin::before {
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ==================== 页脚 ==================== */
.page-footer {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(15px);
	padding: 25px;
	text-align: center;
	color: #7f8c8d;
	font-size: 14px;
	margin-top: 60px;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==================== 容器 ==================== */
.result-container {
	max-width: 1100px;
	margin: 50px auto;
	padding: 0 20px;
	animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ==================== 结果卡片 ==================== */
.result-card {
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(20px);
	border-radius: 24px;
	box-shadow: 0 20px 70px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.5);
}

/* 卡片头部 */
.card-header {
	padding: 55px 50px;
	text-align: center;
	position: relative;
	background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
	border-bottom: 1px solid #e9ecef;
}

.status-icon {
	width: 120px;
	height: 120px;
	margin: 0 auto 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 60px;
	box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
	animation: iconPulse 2s ease-in-out infinite;
	position: relative;
}

@keyframes iconPulse {
	0%, 100% { 
		transform: scale(1); 
		box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
	}
	50% { 
		transform: scale(1.05); 
		box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	}
}

.status-icon.success {
	background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
	color: #ffffff;
}

/* 成功图标的光晕效果 */
.status-icon.success::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: inherit;
	filter: blur(20px);
	opacity: 0.4;
	z-index: -1;
}

/* 成功图标内的对号增强 */
.status-icon.success i {
	position: relative;
	text-shadow: 
		0 2px 8px rgba(0, 0, 0, 0.3),
		0 0 20px rgba(255, 255, 255, 0.5);
	filter: drop-shadow(0 4px 12px rgba(46, 204, 113, 0.6));
}

/* 在成功图标上添加动态对号 */
.status-icon.success::before {
	content: '✓';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 90px;
	color: rgba(255, 255, 255, 0.98);
	font-weight: bold;
	text-shadow: 
		0 4px 15px rgba(0, 0, 0, 0.4),
		0 0 30px rgba(255, 255, 255, 0.7),
		0 0 50px rgba(46, 204, 113, 0.5);
	animation: checkmarkPulse 2s ease-in-out infinite;
	z-index: 1;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

@keyframes checkmarkPulse {
	0%, 100% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 1;
	}
	50% {
		transform: translate(-50%, -50%) scale(1.1);
		opacity: 0.9;
		text-shadow: 
			0 4px 20px rgba(0, 0, 0, 0.5),
			0 0 40px rgba(255, 255, 255, 0.9),
			0 0 60px rgba(46, 204, 113, 0.7);
	}
}

.status-icon.error {
	background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
	color: #ffffff;
}

/* 错误图标的光晕效果 */
.status-icon.error::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: inherit;
	filter: blur(20px);
	opacity: 0.4;
	z-index: -1;
}

/* 错误图标内的叉号增强 */
.status-icon.error i {
	position: relative;
	text-shadow: 
		0 2px 8px rgba(0, 0, 0, 0.3),
		0 0 20px rgba(255, 255, 255, 0.5);
	filter: drop-shadow(0 4px 12px rgba(231, 76, 60, 0.6));
}

/* 在错误图标上添加动态叉号 */
.status-icon.error::before {
	content: '✕';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -53%);
	font-size: 90px;
	color: rgba(255, 255, 255, 0.98);
	font-weight: bold;
	text-shadow: 
		0 4px 15px rgba(0, 0, 0, 0.4),
		0 0 30px rgba(255, 255, 255, 0.7),
		0 0 50px rgba(231, 76, 60, 0.5);
	animation: crossPulse 2s ease-in-out infinite;
	z-index: 1;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

@keyframes crossPulse {
	0%, 100% {
		transform: translate(-50%, -53%) scale(1);
		opacity: 1;
	}
	50% {
		transform: translate(-50%, -53%) scale(1.1);
		opacity: 0.9;
		text-shadow: 
			0 4px 20px rgba(0, 0, 0, 0.5),
			0 0 40px rgba(255, 255, 255, 0.9),
			0 0 60px rgba(231, 76, 60, 0.7);
	}
}

.status-title {
	font-size: 36px;
	font-weight: 800;
	margin-bottom: 15px;
	letter-spacing: -0.5px;
}

.status-title.success { 
	background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.status-title.error { 
	background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.status-desc {
	color: #7f8c8d;
	font-size: 16px;
	line-height: 1.8;
	margin-bottom: 15px;
}

.query-time {
	color: #95a5a6;
	font-size: 15px;
	margin-top: 12px;
	padding-top: 15px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.query-time i {
	color: #3498db;
	font-size: 16px;
}

/* 过期/临期警告提示 */
.expiry-alert {
	margin: 20px auto 15px;
	padding: 18px 25px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
	animation: alertSlideIn 0.5s ease;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	max-width: 90%;
}

@keyframes alertSlideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 已过期警告 - 红色 */
.expiry-alert.expired {
	background: linear-gradient(135deg, #fee 0%, #fdd 100%);
	border: 2px solid #e74c3c;
	color: #c0392b;
}

.expiry-alert.expired i {
	color: #e74c3c;
	font-size: 22px;
	animation: shake 0.5s ease;
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-5px); }
	75% { transform: translateX(5px); }
}

.expiry-alert.expired strong {
	color: #c0392b;
	font-size: 17px;
	font-weight: 800;
}

/* 临期警告 - 橙色 */
.expiry-alert.near-expiry {
	background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
	border: 2px solid #f39c12;
	color: #e67e22;
}

.expiry-alert.near-expiry i {
	color: #f39c12;
	font-size: 22px;
	animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}

.expiry-alert.near-expiry strong {
	color: #d68910;
	font-size: 17px;
	font-weight: 800;
}

.expiry-detail {
	display: block;
	font-size: 14px;
	opacity: 0.9;
	margin-top: 3px;
}

/* 卡片内容 */
.card-body {
	padding: 45px 50px;
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-bottom: 35px;
}

.info-item {
	background: #f8f9fa;
	padding: 25px;
	border-radius: 14px;
	border: 2px solid #e9ecef;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.info-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 0;
	background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
	transition: height 0.3s ease;
}

.info-item:hover::before {
	height: 100%;
}

.info-item:hover {
	background: #ffffff;
	border-color: #667eea;
	transform: translateY(-5px);
	box-shadow: 0 12px 35px rgba(102, 126, 234, 0.2);
}

.info-label {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #7f8c8d;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.info-label i {
	color: #667eea;
	font-size: 16px;
}

.info-value {
	color: #2c3e50;
	font-size: 20px;
	font-weight: 700;
	word-break: break-all;
	line-height: 1.4;
}

/* 内容区域 */
.content-section {
	background: #f8f9fa;
	padding: 40px 50px;
	border-top: 1px solid #e9ecef;
	color: #2c3e50;
	line-height: 1.8;
}

.content-section h3 {
	color: #2c3e50;
	font-size: 24px;
	margin-bottom: 25px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 15px;
	border-bottom: 3px solid #667eea;
}

.content-section h3 i {
	color: #667eea;
	font-size: 26px;
}

.content-section p {
	margin: 15px 0;
	color: #5a6c7d;
}

.content-section img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 20px 0;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 代理商信息 */
.agent-info {
	background: linear-gradient(135deg, #ebf5fb 0%, #d6eaf8 100%);
	padding: 35px;
	border-radius: 16px;
	border: 2px solid #3498db;
	margin-top: 30px;
}

.agent-info h4 {
	color: #2c3e50;
	font-size: 22px;
	margin-bottom: 25px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 15px;
	border-bottom: 2px solid #3498db;
}

.agent-info h4 i {
	color: #3498db;
	font-size: 24px;
}

.agent-info p {
	color: #34495e;
	margin: 14px 0;
	padding-left: 30px;
	position: relative;
	font-size: 16px;
	font-weight: 500;
}

.agent-info p::before {
	content: '▸';
	position: absolute;
	left: 8px;
	color: #3498db;
	font-size: 18px;
}

/* 操作按钮区域（已移到下方统一样式中） */

.btn-back {
	display: inline-block;
	padding: 18px 50px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	text-decoration: none;
	border-radius: 12px;
	font-size: 17px;
	font-weight: 700;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
	position: relative;
	overflow: hidden;
}

.btn-back::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.2);
	transition: left 0.5s;
}

.btn-back:hover::before {
	left: 100%;
}

.btn-back:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
}

.btn-back i {
	margin-right: 10px;
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
	body {
		padding: 0;
	}
	
	/* 导航栏移动端优化 */
	.nav-container {
		padding: 0 15px;
		height: auto;
		padding-top: 12px;
		padding-bottom: 12px;
	}
	
	.nav-brand {
		gap: 10px;
	}
	
	.brand-icon {
		width: 40px;
		height: 40px;
		font-size: 20px;
		border-radius: 10px;
	}
	
	.brand-text {
		font-size: 18px;
	}
	
	.nav-menu {
		gap: 6px;
	}
	
	.nav-item {
		padding: 8px 12px;
		font-size: 13px;
		border-radius: 8px;
	}
	
	.nav-item span {
		display: none; /* 移动端只显示图标 */
	}
	
	.nav-item i {
		font-size: 18px;
		margin: 0;
	}
	
	/* 结果容器 */
	.result-container {
		margin: 25px auto;
		padding: 0 15px;
	}
	
	.result-card {
		border-radius: 18px;
	}
	
	.card-header {
		padding: 40px 30px;
	}
	
	.status-icon {
		width: 90px;
		height: 90px;
		font-size: 45px;
		margin-bottom: 25px;
	}
	
	/* 移动端 - 成功图标的对号 */
	.status-icon.success::before {
		font-size: 68px;
	}
	
	/* 移动端 - 错误图标的叉号 */
	.status-icon.error::before {
		font-size: 68px;
	}
	
	.status-title {
		font-size: 26px;
	}
	
	.status-desc {
		font-size: 14px;
	}
	
	/* 移动端 - 过期警告 */
	.expiry-alert {
		padding: 15px 20px;
		font-size: 14px;
		max-width: 95%;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	
	.expiry-alert i {
		font-size: 20px !important;
	}
	
	.expiry-alert strong {
		font-size: 15px !important;
	}
	
	.expiry-detail {
		font-size: 13px;
		padding-left: 0;
	}
	
	.card-body {
		padding: 35px 30px;
	}
	
	.info-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	
	.info-item {
		padding: 20px;
	}
	
	.info-value {
		font-size: 18px;
	}
	
	.content-section {
		padding: 35px 30px;
	}
	
	.content-section h3 {
		font-size: 20px;
	}
	
	.action-buttons {
		padding: 35px 30px;
	}
	
	.btn-back {
		width: 100%;
		padding: 16px 40px;
	}
	
	.agent-info {
		padding: 28px 25px;
	}
	
	.agent-info h4 {
		font-size: 20px;
	}
	
	.agent-info p {
		font-size: 15px;
	}
}

/* ==================== 小屏手机 ==================== */
@media (max-width: 480px) {
	/* 导航栏超小屏优化 */
	.nav-container {
		flex-wrap: wrap;
		justify-content: center;
		gap: 10px;
	}
	
	.nav-brand {
		width: 100%;
		justify-content: center;
		margin-bottom: 8px;
	}
	
	.nav-menu {
		width: 100%;
		justify-content: center;
	}
	
	.result-container {
		margin: 20px auto;
		padding: 0 12px;
	}
	
	.card-header {
		padding: 35px 25px;
	}
	
	.card-body {
		padding: 30px 25px;
	}
	
	.content-section {
		padding: 30px 25px;
	}
	
	.status-title {
		font-size: 24px;
	}
	
	.info-value {
		font-size: 17px;
	}
	
	/* 小屏手机 - 过期警告 */
	.expiry-alert {
		padding: 12px 15px;
		font-size: 13px;
	}
	
	.expiry-alert i {
		font-size: 18px !important;
	}
	
	.expiry-alert strong {
		font-size: 14px !important;
	}
	
	.expiry-detail {
		font-size: 12px;
	}
	
	/* 小屏手机 - 成功图标的对号 */
	.status-icon.success::before {
		font-size: 65px;
	}
	
	/* 小屏手机 - 错误图标的叉号 */
	.status-icon.error::before {
		font-size: 65px;
	}
}

/* ==================== 按钮样式 ==================== */
/* 通用按钮 */
.btn {
	display: inline-block;
	padding: 15px 35px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 12px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	border: none;
	cursor: pointer;
	text-align: center;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn i {
	margin-right: 8px;
	font-size: 18px;
}

.btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.2);
	transition: left 0.5s;
	z-index: 0;
}

.btn:hover::before {
	left: 100%;
}

.btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn:active {
	transform: translateY(-1px);
}

/* 主要按钮 */
.btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
	box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
	background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

/* 次要按钮 */
.btn-secondary {
	background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
	color: white;
	box-shadow: 0 8px 30px rgba(149, 165, 166, 0.3);
}

.btn-secondary:hover {
	box-shadow: 0 12px 40px rgba(149, 165, 166, 0.4);
	background: linear-gradient(135deg, #7f8c8d 0%, #6c7a7b 100%);
}

/* 按钮容器 */
.action-buttons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

/* 移动端按钮优化 */
@media (max-width: 768px) {
	.btn {
		padding: 14px 28px;
		font-size: 15px;
		width: 100%;
		max-width: 280px;
	}
	
	.action-buttons {
		flex-direction: column;
		gap: 15px;
		padding: 30px 20px;
	}
}

@media (max-width: 480px) {
	.btn {
		padding: 12px 24px;
		font-size: 14px;
	}
	
	.btn i {
		font-size: 16px;
	}
}

/* ==================== 打印样式 ==================== */
@media print {
	body {
		background: white;
	}
	
	.result-card {
		box-shadow: none;
		border: 1px solid #ddd;
	}
	
	.action-buttons {
		display: none;
	}
}
