/* 拟态二次元风格 CSS */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.xxpg-container {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	padding: 20px;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.xxpg-card {
	width: 100%;
	max-width: 600px;
	background: #f0f4f8;
	border-radius: 20px;
	box-shadow: 
		0 20px 60px rgba(0, 0, 0, 0.15),
		inset 0 1px 0 rgba(255, 255, 255, 0.6);
	padding: 40px;
	animation: slideIn 0.5s ease-out;
}

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

.xxpg-header {
	text-align: center;
	margin-bottom: 30px;
}

.xxpg-title {
	font-size: 32px;
	font-weight: 700;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 10px;
	letter-spacing: 1px;
}

.xxpg-subtitle {
	font-size: 14px;
	color: #8892b0;
	font-weight: 500;
}

.xxpg-form {
	margin-bottom: 30px;
}

.xxpg-form-group {
	margin-bottom: 25px;
}

.xxpg-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #2d3748;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.xxpg-input-wrapper {
	display: flex;
	gap: 10px;
	align-items: center;
}

.xxpg-input {
	flex: 1;
	padding: 14px 16px;
	border: none;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 
		0 4px 15px rgba(0, 0, 0, 0.08),
		inset 0 2px 4px rgba(0, 0, 0, 0.05);
	font-size: 14px;
	color: #2d3748;
	transition: all 0.3s ease;
	outline: none;
}

.xxpg-input:focus {
	box-shadow: 
		0 8px 25px rgba(102, 126, 234, 0.2),
		inset 0 2px 4px rgba(0, 0, 0, 0.05);
	transform: translateY(-2px);
}

.xxpg-input::placeholder {
	color: #cbd5e0;
}

.xxpg-link {
	color: #667eea;
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
	padding: 8px 12px;
	border-radius: 8px;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.xxpg-link:hover {
	color: #764ba2;
	background: rgba(102, 126, 234, 0.1);
}

.xxpg-btn-small {
	padding: 10px 16px;
	border: none;
	border-radius: 10px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 
		0 4px 15px rgba(102, 126, 234, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.3);
	transition: all 0.3s ease;
	white-space: nowrap;
}

.xxpg-btn-small:hover {
	transform: translateY(-2px);
	box-shadow: 
		0 8px 25px rgba(102, 126, 234, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.xxpg-btn-small:active {
	transform: translateY(0);
	box-shadow: 
		0 2px 8px rgba(102, 126, 234, 0.2),
		inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.xxpg-btn-submit {
	width: 100%;
	padding: 16px;
	border: none;
	border-radius: 14px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 
		0 8px 25px rgba(102, 126, 234, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.3);
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	letter-spacing: 0.5px;
}

.xxpg-btn-submit:hover:not(:disabled) {
	transform: translateY(-4px);
	box-shadow: 
		0 12px 35px rgba(102, 126, 234, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.xxpg-btn-submit:active:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 
		0 4px 15px rgba(102, 126, 234, 0.2),
		inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.xxpg-btn-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.xxpg-btn-icon {
	font-size: 18px;
	animation: bounce 2s infinite;
}

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

.xxpg-btn-submit:disabled .xxpg-btn-icon {
	animation: spin 1s linear infinite;
}

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

.xxpg-log-container {
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 
		0 4px 15px rgba(0, 0, 0, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.6);
	overflow: hidden;
	margin-top: 30px;
}

.xxpg-log-header {
	padding: 12px 16px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.xxpg-log-output {
	padding: 16px;
	font-size: 12px;
	font-family: 'Courier New', monospace;
	color: #2d3748;
	background: #f8f9fa;
	height: 300px;
	overflow-y: auto;
	line-height: 1.6;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.xxpg-log-output::-webkit-scrollbar {
	width: 8px;
}

.xxpg-log-output::-webkit-scrollbar-track {
	background: #e2e8f0;
	border-radius: 4px;
}

.xxpg-log-output::-webkit-scrollbar-thumb {
	background: #cbd5e0;
	border-radius: 4px;
}

.xxpg-log-output::-webkit-scrollbar-thumb:hover {
	background: #a0aec0;
}

/* 响应式设计 */
@media (max-width: 600px) {
	.xxpg-card {
		padding: 25px;
		border-radius: 16px;
	}

	.xxpg-title {
		font-size: 24px;
	}

	.xxpg-subtitle {
		font-size: 12px;
	}

	.xxpg-input-wrapper {
		flex-direction: column;
	}

	.xxpg-link,
	.xxpg-btn-small {
		width: 100%;
		text-align: center;
	}

	.xxpg-log-output {
		height: 200px;
		font-size: 11px;
	}
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
	.xxpg-container {
		background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
	}

	.xxpg-card {
		background: #2d3748;
		box-shadow: 
			0 20px 60px rgba(0, 0, 0, 0.5),
			inset 0 1px 0 rgba(255, 255, 255, 0.1);
	}

	.xxpg-subtitle {
		color: #a0aec0;
	}

	.xxpg-label {
		color: #e2e8f0;
	}

	.xxpg-input {
		background: #1a202c;
		color: #e2e8f0;
		box-shadow: 
			0 4px 15px rgba(0, 0, 0, 0.3),
			inset 0 2px 4px rgba(0, 0, 0, 0.2);
	}

	.xxpg-input::placeholder {
		color: #4a5568;
	}

	.xxpg-log-container {
		background: #1a202c;
		box-shadow: 
			0 4px 15px rgba(0, 0, 0, 0.3),
			inset 0 1px 0 rgba(255, 255, 255, 0.1);
	}

	.xxpg-log-output {
		background: #0f1419;
		color: #a0aec0;
	}

	.xxpg-log-output::-webkit-scrollbar-track {
		background: #1a202c;
	}

	.xxpg-log-output::-webkit-scrollbar-thumb {
		background: #4a5568;
	}

	.xxpg-log-output::-webkit-scrollbar-thumb:hover {
		background: #718096;
	}
}
