/*
 * 大图区域：全站搜索框 + 滚动热门文章
 * 首页顺序：站点标题 → 搜索框 → 名人名言 → 热门文章
 * 文章页顺序：文章标题 → 搜索框 → 站点名
 */

:root {
	--eeaccn-hero-h: 550px;
	--eeaccn-hero-h-sm: 18.5rem;
}

/* 所有页面头图采用同一固定高度，避免随窗口高度或模板变化忽大忽小 */
.HeaderImg.HeaderImg--home,
.HeaderImg.HeaderImg--search {
	height: var(--eeaccn-hero-h) !important;
	min-height: var(--eeaccn-hero-h) !important;
}

@media (max-width: 768px) {
	.HeaderImg.HeaderImg--home,
	.HeaderImg.HeaderImg--search {
		height: var(--eeaccn-hero-h-sm) !important;
		min-height: var(--eeaccn-hero-h-sm) !important;
	}
}

.HeaderImg .infomation {
	width: min(1120px, calc(100% - 2rem));
	padding: 0 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.5;
}

.HeaderImg .infomation .title {
	max-width: 100%;
}

.eeaccn_hero_search {
	position: relative;
	display: flex;
	align-items: center;
	width: min(680px, 100%);
	height: 3.25rem;
	margin: .35rem auto 0;
	background: rgba(255, 255, 255, .97);
	border: 1px solid rgba(255, 255, 255, .6);
	border-radius: 999px;
	box-shadow: 0 10px 34px rgba(0, 0, 0, .24);
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease;
}

.eeaccn_hero_search:focus-within {
	box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
	transform: translateY(-1px);
}

.eeaccn_hero_search__icon {
	position: absolute;
	left: 1.1rem;
	top: 50%;
	width: 1.1rem;
	height: 1.1rem;
	transform: translateY(-50%);
	fill: #7b8798;
	pointer-events: none;
}

.eeaccn_hero_search__input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 1rem 0 2.85rem;
	background: transparent;
	border: 0;
	outline: 0;
	color: #1b2432;
	font-size: 1rem;
	font-family: inherit;
	line-height: 1;
	-webkit-appearance: none;
	appearance: none;
}

.eeaccn_hero_search__input::placeholder {
	color: #7b8798;
	opacity: 1;
}

.eeaccn_hero_search__input::-webkit-search-cancel-button {
	cursor: pointer;
}

.eeaccn_hero_search__btn {
	flex: 0 0 auto;
	height: calc(100% - .6rem);
	margin-right: .3rem;
	padding: 0 1.35rem;
	background: var(--theme, #3b82f6);
	border: 0;
	border-radius: 999px;
	color: #fff;
	font-family: inherit;
	font-size: .92rem;
	font-weight: 600;
	letter-spacing: .02em;
	cursor: pointer;
	transition: filter .2s ease, opacity .2s ease;
}

.eeaccn_hero_search__btn:hover {
	filter: brightness(1.08);
}

/* 首页大图知识库五阶段 */
.eeaccn_hero_kb {
	width: min(1120px, calc(100vw - 4rem));
	margin-top: .55rem;
}

.eeaccn_hero_kb__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: .5rem;
	padding: 0 .15rem;
}

.eeaccn_hero_kb__title {
	color: rgba(255, 255, 255, .94);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-shadow: 0 .1rem .3rem rgba(0, 0, 0, .45);
}

.eeaccn_hero_kb__more {
	flex: 0 0 auto;
	color: rgba(224, 242, 254, .78);
	font-size: .72rem;
	text-decoration: none;
	transition: color .2s ease;
}

.eeaccn_hero_kb__more:hover {
	color: #fff;
}

.eeaccn_hero_kb__rail {
	display: flex;
	gap: .5rem;
	padding-bottom: 2px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.eeaccn_hero_kb__rail::-webkit-scrollbar {
	display: none;
}

.eeaccn_hero_kb__card {
	position: relative;
	display: flex;
	flex: 1 0 170px;
	align-items: center;
	gap: .55rem;
	min-width: 0;
	padding: .52rem .65rem;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: .65rem;
	background: linear-gradient(145deg, rgba(15, 23, 42, .56), rgba(15, 23, 42, .32));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
	color: #fff;
	text-decoration: none;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	scroll-snap-align: start;
	transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.eeaccn_hero_kb__card::after {
	position: absolute;
	left: .65rem;
	right: .65rem;
	bottom: 0;
	height: 2px;
	border-radius: 99px;
	background: var(--kb-accent);
	opacity: .75;
	content: "";
}

.eeaccn_hero_kb__card:hover {
	border-color: rgba(255, 255, 255, .32);
	background: linear-gradient(145deg, rgba(30, 41, 59, .68), rgba(15, 23, 42, .44));
	transform: translateY(-2px);
}

.eeaccn_hero_kb__no {
	flex: 0 0 auto;
	color: var(--kb-accent);
	font-family: Georgia, serif;
	font-size: .92rem;
	font-weight: 700;
	line-height: 1;
}

.eeaccn_hero_kb__body {
	display: block;
	min-width: 0;
}

.eeaccn_hero_kb__body b {
	display: block;
	overflow: hidden;
	color: #fff;
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.eeaccn_hero_kb__body small {
	display: block;
	overflow: hidden;
	margin-top: .08rem;
	color: rgba(226, 232, 240, .64);
	font-size: .62rem;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 内容区热门文章条：去掉外层大框，只保留内部滚动胶囊 */
.eeaccn_hot_strip_section {
	margin: 0 0 1.4rem;
	padding: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}
.eeaccn_hot_strip_section__head {
	display: none;
}
.eeaccn_hot_strip_section .eeaccn_hero_hot {
	width: 100%;
	height: 2.45rem;
	margin: 0;
	border-color: rgba(148, 190, 235, .22);
	border-radius: 999px;
	background: rgba(15, 23, 42, .06);
	box-shadow: none;
}
html[data-night='night'] .eeaccn_hot_strip_section .eeaccn_hero_hot {
	background: rgba(255, 255, 255, .045);
	border-color: rgba(148, 190, 235, .18);
}
.eeaccn_hot_strip_section .eeaccn_hero_hot__label {
	color: #2563eb;
	border-right-color: rgba(37, 99, 235, .16);
}
html[data-night='night'] .eeaccn_hot_strip_section .eeaccn_hero_hot__label {
	color: #dbeafe;
	border-right-color: rgba(255, 255, 255, .18);
}
.eeaccn_hot_strip_section .eeaccn_hero_hot__item {
	height: 2.45rem;
	color: #334155;
}
.eeaccn_hot_strip_section .eeaccn_hero_hot__title { color: #334155; }
.eeaccn_hot_strip_section .eeaccn_hero_hot__views { color: #64748b; }
html[data-night='night'] .eeaccn_hot_strip_section .eeaccn_hero_hot__title { color: #dbeafe; }
html[data-night='night'] .eeaccn_hot_strip_section .eeaccn_hero_hot__views { color: rgba(219, 234, 254, .62); }


.eeaccn_hero_hot {
	display: flex;
	align-items: stretch;
	width: min(820px, 100%);
	height: 2.7rem;
	margin-top: .2rem;
	background: rgba(18, 24, 38, .38);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
	overflow: hidden;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.eeaccn_hero_hot__label {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	padding: 0 .95rem;
	border-right: 1px solid rgba(255, 255, 255, .18);
	color: #fff;
	font-size: .8rem;
	font-weight: 600;
	white-space: nowrap;
}

.eeaccn_hero_hot__viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.eeaccn_hero_hot__track {
	display: flex;
	width: max-content;
	animation: eeaccnHeroHotScroll 38s linear infinite;
	will-change: transform;
}

.eeaccn_hero_hot:hover .eeaccn_hero_hot__track,
.eeaccn_hero_hot:focus-within .eeaccn_hero_hot__track {
	animation-play-state: paused;
}

.eeaccn_hero_hot__group {
	display: flex;
	align-items: stretch;
}

.eeaccn_hero_hot__item {
	display: flex;
	align-items: center;
	gap: .45rem;
	flex: 0 0 auto;
	height: 2.7rem;
	padding: 0 1rem;
	border-right: 1px solid rgba(255, 255, 255, .13);
	color: rgba(255, 255, 255, .93);
	font-size: .8rem;
	text-decoration: none;
	white-space: nowrap;
	transition: background .25s ease, color .25s ease;
}

.eeaccn_hero_hot__item:hover {
	background: rgba(255, 255, 255, .1);
	color: #fff;
}

.eeaccn_hero_hot__no {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
	background: rgba(255, 255, 255, .16);
	border-radius: 50%;
	color: #fff;
	font-size: .66rem;
	font-weight: 700;
}

.eeaccn_hero_hot__item:nth-child(-n+3) .eeaccn_hero_hot__no {
	background: rgba(255, 103, 72, .9);
}

.eeaccn_hero_hot__title {
	max-width: 15rem;
	overflow: hidden;
	text-overflow: ellipsis;
}

.eeaccn_hero_hot__views {
	color: rgba(255, 255, 255, .62);
	font-size: .68rem;
}

@keyframes eeaccnHeroHotScroll {
	0% {
		transform: translate3d(0, 0, 0);
	}

	100% {
		transform: translate3d(-50%, 0, 0);
	}
}

@media (max-width: 768px) {
	.HeaderImg.HeaderImg--search,
	.HeaderImg.HeaderImg--home {
		height: 18.5rem;
	}

	.HeaderImg .infomation {
		width: 100%;
		padding: 0 .8rem;
	}

	.HeaderImg .infomation .title {
		font-size: 1.1rem;
		letter-spacing: .12rem;
	}

	.eeaccn_hero_search {
		width: 100%;
		height: 2.7rem;
		margin-top: .25rem;
	}

	.eeaccn_hero_search__icon {
		left: .9rem;
		width: .95rem;
		height: .95rem;
	}

	.eeaccn_hero_search__input {
		padding: 0 .6rem 0 2.35rem;
		font-size: .86rem;
	}

	.eeaccn_hero_search__btn {
		height: calc(100% - .5rem);
		padding: 0 .85rem;
		font-size: .78rem;
	}

	.eeaccn_hero_hot {
		width: 100%;
		height: 2.45rem;
	}

	.eeaccn_hero_hot__label {
		padding: 0 .6rem;
		font-size: .7rem;
	}

	.eeaccn_hero_hot__item {
		height: 2.45rem;
		padding: 0 .65rem;
		font-size: .72rem;
		gap: .3rem;
	}

	.eeaccn_hero_hot__no {
		width: 1.05rem;
		height: 1.05rem;
		font-size: .58rem;
	}

	.eeaccn_hero_hot__title {
		max-width: 11rem;
	}

	.eeaccn_hero_hot__views {
		display: none;
	}

	.eeaccn_hero_kb {
		width: 100%;
		margin-top: .35rem;
	}

	.eeaccn_hero_kb__head {
		margin-bottom: .35rem;
	}

	.eeaccn_hero_kb__title {
		font-size: .72rem;
	}

	.eeaccn_hero_kb__more {
		font-size: .64rem;
	}

	.eeaccn_hero_kb__rail {
		gap: .4rem;
		scroll-snap-type: x mandatory;
	}

	.eeaccn_hero_kb__card {
		flex: 0 0 14.5rem;
		padding: .45rem .55rem;
	}

	.eeaccn_hero_kb__body b {
		font-size: .7rem;
	}

	.eeaccn_hero_kb__body small {
		font-size: .58rem;
	}

	.eeaccn_hot_strip_section {
		padding: .8rem .75rem .85rem;
		border-radius: .8rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eeaccn_hero_hot__track {
		animation: none;
	}

	.eeaccn_hero_hot__viewport {
		overflow-x: auto;
	}

	.eeaccn_hero_search {
		transition: none;
	}
}

/* 文章 / 独立页 / 搜索页大图：与首页一致的知识库入口 */
.HeaderImg .infomation .desctitle {
	font-size: .78rem;
	line-height: 1.45;
	opacity: .92;
}
.search-header-img {
	height: auto !important;
	min-height: 48rem !important;
	padding: 5rem 0 4.2rem;
}
@media (max-width: 768px) {
	.search-header-img {
		min-height: 30rem !important;
		padding: 3.4rem 0 3.2rem;
	}
	.HeaderImg .infomation .desctitle { font-size: .72rem; }
}

/* 文章 / 独立页 / 搜索页：标题、站点名与首页同一字号层级 */
.HeaderImg .infomation .title {
	max-width: min(1000px, 92vw);
	line-height: 1.28;
}
.HeaderImg .infomation .desctitle,
.HeaderImg .infomation .desctitle .motto {
	margin-top: .35rem;
	font-size: .8rem !important;
	font-weight: 400 !important;
	letter-spacing: .02em !important;
	line-height: 1.5 !important;
	opacity: .92;
}
.search-header-img {
	height: auto !important;
	min-height: 34rem !important;
	padding: 4.4rem 0 3.2rem;
}
@media (max-width: 768px) {
	.search-header-img {
		min-height: 24rem !important;
		padding: 3rem 0 2.4rem;
	}
	.HeaderImg .infomation .desctitle,
	.HeaderImg .infomation .desctitle .motto { font-size: .72rem !important; }
}

/* ===== 2026-11 单行知识库入口 ===== */
.eeaccn_hero_kb {
	display: block;
	width: min(1120px, calc(100vw - 4rem));
	height: auto;
	margin-top: .5rem;
	padding: .34rem .42rem .4rem;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: .7rem;
	background: rgba(15, 23, 42, .34);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-sizing: border-box;
}
.eeaccn_hero_kb__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	margin-bottom: .3rem;
}
.eeaccn_hero_kb__label {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: .35rem;
	height: 1.55rem;
	padding: 0 .45rem;
	border-radius: .48rem;
	background: transparent;
	color: #fff;
	font-size: .72rem;
	font-weight: 650;
	letter-spacing: .04em;
	white-space: nowrap;
	text-decoration: none;
	transition: background .2s ease;
}
.eeaccn_hero_kb__label:hover { background: rgba(255, 255, 255, .18); }
.eeaccn_hero_kb__icon { width: .92rem; height: .92rem; flex: 0 0 auto; opacity: .9; }
.eeaccn_hero_kb__enter {
	color: rgba(255, 255, 255, .74);
	font-size: .68rem;
	white-space: nowrap;
	text-decoration: none;
}
.eeaccn_hero_kb__enter:hover { color: #fff; }
.eeaccn_hero_kb__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: .3rem;
}
.eeaccn_hero_kb__item {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	gap: .32rem;
	min-width: 0;
	height: 2.08rem;
	padding: 0 .3rem;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: .5rem;
	background: rgba(255, 255, 255, .055);
	color: rgba(255, 255, 255, .92);
	font-size: .7rem;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	overflow: hidden;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.eeaccn_hero_kb__no {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 1.05rem;
	height: 1.05rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--kb-accent) 22%, transparent);
	color: var(--kb-accent);
	font-size: .6rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
}
.eeaccn_hero_kb__name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	min-width: 0;
	overflow: hidden;
	overflow-wrap: anywhere;
}
.eeaccn_hero_kb__item::after {
	position: absolute;
	left: .22rem;
	right: .22rem;
	bottom: 0;
	height: 2px;
	border-radius: 99px;
	background: var(--kb-accent);
	opacity: .7;
	content: "";
}
.eeaccn_hero_kb__item:hover {
	border-color: rgba(255, 255, 255, .28);
	background: rgba(255, 255, 255, .12);
	color: #fff;
}

/* 文章 / 独立页长标题：按长度自适应字号，桌面最多两到三行 */
.HeaderImg .infomation .title {
	max-width: min(1000px, 92vw);
	font-size: clamp(1.55rem, 2.15vw, 2rem);
	letter-spacing: clamp(.04rem, .2vw, .16rem);
	line-height: 1.3;
	text-wrap: balance;
	overflow-wrap: anywhere;
}
.HeaderImg .infomation .title.is-long {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	margin: 0 auto;
	font-size: clamp(1.28rem, 1.8vw, 1.7rem);
	letter-spacing: .06rem;
	line-height: 1.34;
	overflow: hidden;
}
.HeaderImg .infomation .title.is-xxlong {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	margin: 0 auto;
	font-size: clamp(1.08rem, 1.5vw, 1.42rem);
	letter-spacing: .03rem;
	line-height: 1.38;
	overflow: hidden;
}

@media (max-width: 768px) {
	.eeaccn_hero_kb {
		width: 100%;
		margin-top: .38rem;
		padding: .3rem .35rem .34rem;
	}
	.eeaccn_hero_kb__head { margin-bottom: .25rem; }
	.eeaccn_hero_kb__label { height: 1.45rem; padding: 0 .4rem; font-size: .68rem; }
	.eeaccn_hero_kb__icon { width: .9rem; height: .9rem; }
	.eeaccn_hero_kb__enter { font-size: .6rem; }
	.eeaccn_hero_kb__grid { gap: .22rem; }
	.eeaccn_hero_kb__item {
		height: 1.95rem;
		padding: 0 .16rem;
		font-size: .6rem;
		line-height: 1.12;
	}
	.eeaccn_hero_kb__no { display: none; }
	.eeaccn_hero_kb__name { -webkit-line-clamp: 3; }
	.eeaccn_hero_kb__item::after { left: .18rem; right: .18rem; }
	.eeaccn_hot_strip_section .eeaccn_hero_hot__viewport,
	.eeaccn_hero_hot__viewport {
		overflow: hidden;
		scroll-snap-type: none;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.eeaccn_hot_strip_section .eeaccn_hero_hot__viewport::-webkit-scrollbar,
	.eeaccn_hero_hot__viewport::-webkit-scrollbar { display: none; }
	.eeaccn_hero_hot__track {
		width: max-content;
		animation: eeaccnHeroHotScroll 46s linear infinite;
		will-change: transform;
	}
	.eeaccn_hero_hot__group[aria-hidden="true"] { display: flex; }
	.eeaccn_hero_hot__item { scroll-snap-align: none; }
	.HeaderImg .infomation .title { max-width: 100%; font-size: 1.02rem; letter-spacing: .06rem; line-height: 1.32; }
	.HeaderImg .infomation .title.is-long { font-size: .92rem; letter-spacing: .035rem; line-height: 1.34; }
	.HeaderImg .infomation .title.is-xxlong { font-size: .82rem; letter-spacing: .015rem; line-height: 1.36; }
}
@media (prefers-reduced-motion: reduce) {
	.eeaccn_hero_hot__track { animation: none !important; }
	.eeaccn_hero_hot__viewport { overflow-x: auto; }
	.eeaccn_hero_hot__group[aria-hidden="true"] { display: none; }
}

/* ===== 独立页大图下的快捷入口 ===== */
.eeaccn_hero_links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	flex-wrap: wrap;
	margin-top: .62rem;
}
.eeaccn_hero_links__item {
	display: inline-flex;
	align-items: center;
	gap: .34rem;
	padding: .32rem .7rem;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
	background: rgba(15, 23, 42, .28);
	color: rgba(255, 255, 255, .86);
	font-size: .72rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.eeaccn_hero_links__item:hover {
	border-color: rgba(255, 255, 255, .45);
	background: rgba(255, 255, 255, .16);
	color: #fff;
}
.eeaccn_hero_links__icon { display: inline-flex; width: .95rem; height: .95rem; opacity: .82; }
.eeaccn_hero_links__icon svg { width: 100%; height: 100%; }
@media (max-width: 768px) {
	.eeaccn_hero_links { margin-top: .5rem; gap: .4rem; }
	.eeaccn_hero_links__item { padding: .26rem .58rem; font-size: .68rem; }
}

/* ===== 2026-11 文章/独立页头图：提高亮色底图上的文字对比度 ===== */
.HeaderImg.HeaderImg--search::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(180deg,
		rgba(6, 12, 22, .52) 0%,
		rgba(6, 12, 22, .26) 34%,
		rgba(6, 12, 22, .16) 58%,
		rgba(6, 12, 22, .54) 100%);
}
.HeaderImg.HeaderImg--search .infomation { position: relative; z-index: 2; }
.HeaderImg.HeaderImg--search .HeaderImg_bottom { z-index: 3; }

@media (min-width: 769px) {
	.HeaderImg.HeaderImg--search .infomation .title { font-size: clamp(2rem, 2.2vw, 2.5rem); }
	.HeaderImg.HeaderImg--search .infomation .title.is-long { font-size: clamp(1.75rem, 2.1vw, 2.1rem); }
	.HeaderImg.HeaderImg--search .infomation .title.is-xxlong { font-size: clamp(1.5rem, 1.85vw, 1.85rem); }
}
