@charset "UTF-8";
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
}

/* 重置 html/body */
html, body {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
}

body {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden; /* 防止意外滚动 */
	font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
	background-color: #ffffff;
}

/* 主内容区：自动填充中间空间 */
.container {
	flex: 1;
	display: flex;
	overflow: hidden; /* 防止内部溢出 */
	width: 100%;
	height: 100%;
}

.panel {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 2rem;
	text-align: center;
	opacity: 0;
	transition:
		flex 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		opacity 0.5s ease,
		transform 0.5s ease;
}

/* 初始状态：左右各占 50% */
.professional {
	background-color: #f0f4fc;
	color: #1e40af;
	transform: translateX(-100%);
	animation: none;
}

.political {
	background-color: #2563eb;
	color: white;
	transform: translateX(100%);
	animation: none;
}

/* 页面加载后触发动画 */
body.loaded .professional {
	opacity: 1;
	transform: translateX(0);
	animation-delay: 0.2s;
}

body.loaded .political {
	opacity: 1;
	transform: translateX(0);
	animation-delay: 0.4s;
}

/* 悬停效果 */
.container:hover .panel {
	/* 默认缩小 */
	flex: 0.9;
}

.container .panel:hover {
	/* 悬停时放大 */
	flex: 1.1;
}

.panel h1 {
	font-size: 2.2rem;
	margin-bottom: 1.5rem;
	font-weight: 600;
	line-height: 1.3;
	transition: transform 0.3s ease;
}

/* 悬停标题轻微上浮 */
.panel:hover h1 {
	transform: translateY(-10px);
}

.btn {
	padding: 0.8rem 2rem;
	font-size: 1.1rem;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	transition: transform 0.25s, background-color 0.25s, box-shadow 0.25s;
}

.professional .btn {
	background-color: #dbeafe;
	color: #1d4ed8;
}

.professional .btn:hover {
	background-color: #bfdbfe;
	transform: translateY(-3px);
	box-shadow: 0 4px 8px rgba(30, 64, 175, 0.15);
}

.political .btn {
	background-color: white;
	color: #2563eb;
}

.political .btn:hover {
	background-color: #f1f5ff;
	transform: translateY(-3px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 移动端：禁用悬停放大（因为无 hover） */
@media (max-width: 768px) {
	.container {
		flex-direction: column;
	}

	.panel {
        height: calc(50vh - 20px); /* 调整每个panel的高度，预留出icp-badge的空间 */
        flex: 1;
        transform: translateY(20px);
    }

    body.loaded .panel {
        opacity: 1;
        transform: translateY(0);
    }
}

.icp-badge {
	flex-shrink: 0;
	width: 100%;
	padding: 8px 0;
	background: #f8fafc;
	font-size: 0.85rem;
	text-align: center;
	border-top: 1px solid #e2e8f0;
	line-height: 1.4;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
}

.icp-badge img {
	width: 16px;
	height: 16px;
}

/* 链接样式 */
.icp-badge a {
	color: #64748b; /* 与原文字颜色一致 */
	text-decoration: none; /* 默认无下划线 */
	font-family: "Microsoft YaHei", sans-serif;
}

.icp-badge a:hover {
	color: #475569; /* 稍深一点，表示可交互 */
	text-decoration: underline; /* 悬停时显示下划线 */
}

.icp-badge img {
	width: 24px;
	height: 24px;
	vertical-align: middle;
}