/**
 * 全站主题：主色 #f7941d，统一圆角、阴影、动效与交互反馈
 * 需在页面中于各页面独立 css 之前引入
 */
:root {
	--color-primary: #f7941d;
	--color-primary-hover: #ea8a14;
	--color-primary-active: #cf7708;
	--color-primary-soft: rgba(247, 148, 29, 0.12);
	--color-primary-softer: rgba(247, 148, 29, 0.08);
	--color-text: #1a1a1a;
	--color-text-secondary: #555;
	--color-text-muted: #888;
	--color-border: #e8e8e8;
	--color-surface: #f7f7f8;
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-pill: 999px;
	--shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
	--shadow-md: 0 10px 32px rgba(0, 0, 0, 0.09);
	--shadow-card-hover: 0 14px 36px rgba(0, 0, 0, 0.11);
	--shadow-primary: 0 6px 20px rgba(247, 148, 29, 0.32);
	--ease-out: cubic-bezier(0.33, 1, 0.68, 1);
	--ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
	--duration: 0.22s;
	--duration-slow: 0.35s;
	/* 导航下通栏背景条：压低高度，优先露出正文 */
	--banner-height: 156px;
	--banner-title-size: 26px;
	--banner-title-margin: 8px;
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection {
	background: var(--color-primary-soft);
	color: var(--color-text);
}

a {
	transition: color var(--duration) var(--ease-standard),
		opacity var(--duration) var(--ease-standard);
}

a:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* Layui 分页：悬停与当前页强调 */
.layui-laypage a,
.layui-laypage span {
	transition: color var(--duration) var(--ease-standard),
		background var(--duration) var(--ease-standard),
		border-color var(--duration) var(--ease-standard),
		transform 0.12s var(--ease-standard);
}

.layui-laypage a:hover {
	color: var(--color-primary) !important;
}

.layui-laypage .layui-laypage-curr .layui-laypage-em {
	background-color: var(--color-primary) !important;
}

.layui-laypage .layui-laypage-curr em {
	color: #fff !important;
}

/* 全站顶栏：#top 内嵌导航 iframe，滚动时吸顶（凡引入 theme.css 的页面行为一致） */
body > #top {
	position: sticky;
	top: 0;
	z-index: 100100;
	width: 100%;
	background: #fff;
	box-shadow: 0 2px 0 rgba(247, 148, 29, 0.06), var(--shadow-sm);
}
body > #top iframe {
	display: block;
	vertical-align: top;
}

/* 子页通用：导航下方 banner 背景（图 + 标题叠层），高度全站一致 */
.banner {
	width: 100%;
	position: relative;
	overflow: hidden;
	max-height: var(--banner-height);
}
.banner > div:nth-child(1) {
	width: 100%;
	height: 100%;
	position: relative;
	top: 0;
	left: 0;
	line-height: 0;
}
.banner > div > img {
	width: 100%;
	height: var(--banner-height);
	max-height: 28vh;
	object-fit: cover;
	object-position: center;
	display: block;
	vertical-align: top;
}
.banner > div:nth-child(2) {
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: #fff;
	pointer-events: none;
}
.banner > div:nth-child(2) > div:nth-child(1) {
	width: 400px;
	max-width: 92%;
	text-align: center;
	color: #000;
	font-size: var(--banner-title-size);
	font-weight: bold;
	margin-bottom: var(--banner-title-margin);
	line-height: 1.2;
}
.banner > div:nth-child(2) > div:nth-child(2) {
	width: 64px;
	height: 3px;
	background: var(--color-primary);
	border-radius: 2px;
}

@media (max-width: 768px) {
	:root {
		--banner-height: 128px;
		--banner-title-size: 22px;
		--banner-title-margin: 6px;
	}
}

@media (max-width: 480px) {
	:root {
		--banner-height: 112px;
		--banner-title-size: 19px;
	}
}
