/* 
 * Modern PC端样式 - 左右分栏布局
 * 商务风格 + 渐变色系
 */

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

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

/* 左右装饰线 */
.left-decoration,
.right-decoration {
	position: fixed;
	top: 0;
	width: 300px;
	height: 100%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.left-decoration {
	left: -150px;
	animation: float 8s ease-in-out infinite;
}

.right-decoration {
	right: -150px;
	animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-30px); }
}

/* ==================== 顶部导航 ==================== */
.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;
	background-clip: text;
	letter-spacing: -0.5px;
}

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

.nav-item {
	padding: 12px 24px;
	border-radius: 10px;
	color: white;
	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;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

.nav-item i,
.nav-item span {
	position: relative;
	z-index: 1;
}

.nav-item:hover::before {
	opacity: 1;
}

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

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

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

.nav-admin i,
.nav-admin span {
	position: relative;
	z-index: 1;
}

/* ==================== 主容器 ==================== */
.main-container {
	max-width: 750px;
	margin: 80px auto;
	padding: 0 40px;
	position: relative;
	z-index: 1;
}

/* ==================== 查询卡片 ==================== */
.query-main {
	animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(50px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.query-card {
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(20px);
	border-radius: 24px;
	box-shadow: 0 15px 60px rgba(0, 0, 0, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.5);
	overflow: hidden;
}

.query-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 50px 50px 45px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.header-decoration {
	position: absolute;
	top: -100px;
	right: -100px;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
	border-radius: 50%;
	animation: rotate 20s linear infinite;
}

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

.query-title {
	font-size: 36px;
	color: white;
	font-weight: 800;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
	position: relative;
	z-index: 1;
}

.title-icon {
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
}

.query-subtitle {
	color: rgba(255, 255, 255, 0.9);
	font-size: 16px;
	position: relative;
	z-index: 1;
}

/* ==================== 表单样式 ==================== */
.query-form {
	padding: 45px 50px 50px;
}

.form-group {
	margin-bottom: 35px;
	transition: all 0.3s ease;
}

.form-label {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #2c3e50;
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 15px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.form-label i {
	color: #667eea;
	font-size: 18px;
}

.label-required {
	color: #e74c3c;
	font-size: 16px;
}

.input-box {
	position: relative;
}

.form-control {
	width: 100%;
	padding: 18px 20px;
	border: 2px solid #e8ecef;
	border-radius: 12px;
	font-size: 17px;
	background: #f8f9fa;
	color: #2c3e50;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	outline: none;
	font-weight: 500;
}

.form-control::placeholder {
	color: #95a5a6;
}

.form-control:hover {
	background: #ffffff;
	border-color: #d0d7de;
}

.form-control:focus {
	background: #ffffff;
	border-color: #667eea;
	box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
	transform: translateY(-2px);
}

.input-underline {
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 3px;
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	transform: translateX(-50%);
	border-radius: 3px;
}

.form-group.focused .input-underline {
	width: 100%;
}

.form-group.focused .form-label {
	color: #667eea;
}

/* 验证码 */
.captcha-box {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.captcha-input {
	flex: 1;
}

.captcha-image-box {
	text-align: center;
}

.captcha-image {
	height: 56px;
	width: 140px;
	border-radius: 10px;
	cursor: pointer;
	border: 2px solid #e8ecef;
	background: white;
	transition: all 0.3s ease;
	display: block;
	margin-bottom: 8px;
}

.captcha-image:hover {
	border-color: #667eea;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
	transform: scale(1.02);
}

.refresh-hint {
	font-size: 12px;
	color: #95a5a6;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

/* 提交按钮 */
.form-actions {
	margin-top: 40px;
	margin-bottom: 25px;
}

.btn-submit {
	width: 100%;
	padding: 20px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	border-radius: 14px;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	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-icon {
	font-size: 20px;
	transition: transform 0.3s ease;
}

.btn-ripple {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.btn-submit:hover .btn-ripple {
	width: 500px;
	height: 500px;
}

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

.btn-submit:hover .btn-icon {
	transform: scale(1.2);
}

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

.btn-submit.loading {
	background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
	cursor: not-allowed;
	box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.btn-submit.loading:hover {
	transform: none;
}

/* 表单提示 */
.form-tips {
	text-align: center;
	color: #7f8c8d;
	font-size: 14px;
	padding: 18px;
	background: #f8f9fa;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.form-tips i {
	color: #667eea;
	font-size: 16px;
}

/* ==================== 页脚 ==================== */
.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);
}

/* ==================== 响应式 - 移动端 ==================== */
@media (max-width: 968px) {
	.main-container {
		padding: 0 20px;
		margin: 40px auto;
	}
	
	.nav-container {
		padding: 0 20px;
		flex-wrap: wrap;
		height: auto;
		padding-top: 15px;
		padding-bottom: 15px;
	}
	
	.nav-brand {
		width: 100%;
		justify-content: center;
		margin-bottom: 10px;
	}
	
	.brand-icon {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}
	
	.brand-text {
		font-size: 18px;
	}
	
	.nav-menu {
		width: 100%;
		justify-content: center;
		flex-wrap: wrap;
		gap: 6px;
	}
	
	.nav-item span {
		display: none;
	}
	
	.nav-item {
		padding: 10px 15px;
		font-size: 16px;
	}
	
	.nav-item i {
		font-size: 18px;
		margin: 0;
	}
	
	/* 页脚移动端优化 */
	.page-footer {
		padding: 20px 15px;
		margin-top: 40px;
		font-size: 13px;
	}
	
	.query-form {
		padding: 35px 30px 40px;
	}
	
	.query-header {
		padding: 40px 30px 35px;
	}
	
	.query-title {
		font-size: 28px;
	}
	
	.captcha-box {
		flex-direction: column;
	}
	
	.captcha-image-box {
		width: 100%;
	}
	
	.captcha-image {
		width: 100%;
	}
}

/* ==================== 小屏手机 ==================== */
@media (max-width: 480px) {
	/* 导航栏超小屏优化 */
	.nav-container {
		padding: 0 10px;
		padding-top: 10px;
		padding-bottom: 10px;
	}
	
	.brand-icon {
		width: 35px;
		height: 35px;
		font-size: 18px;
	}
	
	.brand-text {
		font-size: 16px;
	}
	
	.nav-item {
		padding: 8px 12px;
		font-size: 14px;
	}
	
	.nav-item i {
		font-size: 16px;
	}
	
	/* 页脚超小屏优化 */
	.page-footer {
		padding: 15px 10px;
		margin-top: 30px;
		font-size: 12px;
	}
	
	.main-container {
		padding: 0 15px;
		margin: 30px auto;
	}
	
	.query-card {
		border-radius: 18px;
	}
	
	.query-header {
		padding: 35px 25px 30px;
	}
	
	.query-title {
		font-size: 24px;
		flex-direction: column;
		gap: 10px;
	}
	
	.query-form {
		padding: 30px 25px 35px;
	}
	
	.form-control {
		padding: 16px 18px;
		font-size: 16px;
	}
	
	.btn-submit {
		padding: 18px;
		font-size: 17px;
	}
}

/* ==================== 动画和效果 ==================== */
.fade-in {
	animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* ==================== 打印样式 ==================== */
@media print {
	body {
		background: white;
	}
	
	.left-decoration,
	.right-decoration,
	.top-nav,
	.info-sidebar,
	.page-footer,
	.btn-submit {
		display: none;
	}
	
	.main-container {
		grid-template-columns: 1fr;
	}
	
	.query-card {
		box-shadow: none;
		border: 1px solid #ddd;
	}
}

/* ==================== 辅助类 ==================== */
.text-center {
	text-align: center;
}

.mb-20 {
	margin-bottom: 20px;
}

.mt-20 {
	margin-top: 20px;
}

