/* 首页公共布局/组件样式：容器、板块标题、按钮、图标。具体板块的专属样式在 pages/home.css。 */

.wjc-home {
	overflow-x: hidden;
}

.wjc-home img {
	max-width: 100%;
	height: auto;
	display: block;
}

.wjc-home .wjc-section {
	position: relative;
	padding-block: var(--wjc-section-pad-y);
}

/* 可替换 .ct-container 的窄版容器，最大宽度固定 1200px（Blocksy 自己的 .ct-container
   宽度是主题内置的响应式变量，随全局设置变化）。全局都能用，不挂在 .wjc-home 下面，
   哪个板块想收窄就在原来的 class="ct-container" 后面追加这个类，两个类写在同一个
   元素上，只覆盖 max-width，居中/内边距还是 Blocksy 那套 .ct-container 自己负责。 */
.ct-container.wjc-container-1200 {
	max-width: 1200px;
}

.wjc-home .wjc-section__title {
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.25;
	color: var(--wjc-ink);
	margin: 0 0 40px;
}

.wjc-home .wjc-section__title--center {
	text-align: center;
}

.wjc-home .wjc-screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.wjc-home .wjc-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	line-height: 1;
}

/* 面包屑（wjc_breadcrumb() 助手函数用）——放在这个全局共用文件里，不要放去某个
   具体页面的样式表，否则只加载了那个页面样式表的其它页面（比如"关于我们"这些走
   wjc_get_active_sections() 板块渲染的页面）里面包屑会读不到字号，退回浏览器默认字号，
   看起来明显偏大。 */
.wjc-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--wjc-ink-soft);
	margin-bottom: 28px;
}

.wjc-breadcrumb a {
	color: var(--wjc-ink-soft);
	text-decoration: none;
}

.wjc-breadcrumb a:hover {
	color: var(--wjc-primary-dark);
}

.wjc-breadcrumb__sep {
	opacity: 0.6;
}

.wjc-breadcrumb__current {
	color: var(--wjc-ink);
	font-weight: 600;
}

.wjc-home .wjc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 30px;
	min-width: 200px;
	border-radius: 0;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wjc-home .wjc-btn:hover {
	transform: translateY(-2px);
}

/* 统一在按钮末尾加一个箭头图标——用 mask 而不是 background-image，是为了让箭头颜色
   自动跟着文字颜色走（currentColor），不然 outline-light 那个按钮 hover 之后文字变深色，
   箭头还是原来写死的颜色就对不上了。 */
.wjc-home .wjc-btn::after {
	content: '';
	display: inline-block;
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	background-color: currentColor;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.wjc-home .wjc-btn--primary {
	background: var(--wjc-primary);
	color: #fff;
}

.wjc-home .wjc-btn--primary:hover {
	background: var(--wjc-primary-dark);
	color: #fff;
}

.wjc-home .wjc-btn--outline-light {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.75);
}

.wjc-home .wjc-btn--outline-light:hover {
	background: #fff;
	color: var(--wjc-primary-dark);
	border-color: #fff;
}

.wjc-home .wjc-btn--dark {
	background: var(--wjc-ink);
	color: #fff;
}

.wjc-home .wjc-btn--dark:hover {
	background: #000;
	color: #fff;
}

@media (max-width: 782px) {
	.wjc-home .wjc-section {
		padding-block: clamp(36px, 10vw, 56px);
	}

	.wjc-home .wjc-section__title {
		margin-bottom: 28px;
	}

	.wjc-home .wjc-btn {
		min-width: 0;
	}
}
