.lhc-writing-nav {
	margin-top: clamp(46px, 5vw, 68px);
	padding: clamp(28px, 4vw, 50px);
	border: 1px solid rgba(22, 135, 248, 0.13);
	border-radius: 28px;
	background:
		radial-gradient(circle at 92% 8%, rgba(53, 199, 189, 0.13), transparent 30%),
		linear-gradient(145deg, #f4faff, #fbfefd 58%, #f2fbf7);
	box-shadow: 0 16px 42px rgba(18, 73, 113, 0.08);
}

.lhc-writing-nav__heading {
	max-width: 820px;
	margin: 0 auto 28px;
	text-align: center;
}

.lhc-writing-nav__heading .lhc-home-v2__eyebrow {
	margin: 0 0 9px;
	color: #1687f8;
}

.lhc-writing-nav__heading h2 {
	font-weight: 800;
	margin: 0;
	color: #06244a;
	font-family: var(--lhc-type-display-family);
	font-size: var(--lhc-type-h2-size);
	line-height: var(--lhc-type-h2-line-height);
}

.lhc-writing-nav__heading > p:last-child {
	margin: 15px 0 0;
	color: #5a6d82;
	line-height: 1.75;
}

.lhc-writing-nav__route {
	margin: 0 0 18px;
	padding: 18px 20px 16px;
	overflow-x: auto;
	border: 1px solid rgba(18, 87, 137, 0.13);
	border-radius: 18px;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 248, 255, 0.9));
	box-shadow: 0 10px 28px rgba(17, 70, 108, 0.06);
	scrollbar-color: rgba(22, 135, 248, 0.32) transparent;
	scrollbar-width: thin;
}

.lhc-writing-nav__route-meta {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 15px;
}

.lhc-writing-nav__route-meta strong {
	color: #274967;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.lhc-writing-nav__route-meta span {
	display: none;
	color: #718497;
	font-size: 12px;
}

.lhc-writing-nav__route ol {
	display: flex;
	align-items: flex-start;
	min-width: 720px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lhc-writing-nav__route li {
	--lhc-school-color: #1687f8;
	--lhc-next-color: #1687f8;
	position: relative;
	flex: 1 0 90px;
	min-width: 0;
}

.lhc-writing-nav__route li:not(:last-child)::after {
	position: absolute;
	top: 7px;
	left: 50%;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, var(--lhc-school-color), var(--lhc-next-color));
	content: "";
	opacity: 0.78;
}

.lhc-writing-nav__route a {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	flex-direction: column;
	color: #4d6377;
	text-decoration: none;
}

.lhc-writing-nav__route-dot {
	display: block;
	width: 16px;
	height: 16px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--lhc-school-color);
	box-shadow: 0 0 0 1px rgba(14, 58, 91, 0.18), 0 4px 10px rgba(18, 73, 113, 0.14);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.lhc-writing-nav__route-code {
	margin-top: 9px;
	color: var(--lhc-school-color);
	font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

.lhc-writing-nav__route a:hover .lhc-writing-nav__route-dot,
.lhc-writing-nav__route a:focus-visible .lhc-writing-nav__route-dot,
.lhc-writing-nav__route li.is-active .lhc-writing-nav__route-dot {
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--lhc-school-color) 18%, transparent), 0 5px 13px rgba(18, 73, 113, 0.18);
	transform: scale(1.16);
}

.lhc-writing-nav__route a:focus-visible {
	border-radius: 6px;
	outline: 2px solid var(--lhc-school-color);
	outline-offset: 5px;
}

.lhc-writing-nav__official {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.lhc-writing-nav__official-card {
	--lhc-school-color: #1687f8;
	position: relative;
	display: flex;
	box-sizing: border-box;
	min-height: 190px;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	padding: 24px 16px 20px;
	border: 1px solid color-mix(in srgb, var(--lhc-school-color) 23%, #d7e5ef);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.91);
	box-shadow: 0 9px 24px rgba(17, 70, 108, 0.055);
	text-align: center;
	transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
	scroll-margin-top: 100px;
}

.lhc-writing-nav__official-card::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 5px;
	background: var(--lhc-school-color);
	content: "";
}

.lhc-writing-nav__official-card:hover,
.lhc-writing-nav__official-card:focus-within,
.lhc-writing-nav__official-card.is-active {
	border-color: var(--lhc-school-color);
	box-shadow: 0 16px 30px rgba(18, 73, 113, 0.12), 0 0 0 1px color-mix(in srgb, var(--lhc-school-color) 28%, transparent);
	transform: translateY(-4px);
}

.lhc-writing-nav__official-card h3 {
	font-weight: 700;
	display: flex;
	min-height: 49px;
	align-items: center;
	justify-content: center;
	margin: 0 0 14px;
	color: #0a315c;
	font-size: 17px;
	line-height: 1.45;
	text-align: center;
}

.lhc-writing-nav[data-lhc-writing-lang="en"] .lhc-writing-nav__official-card h3 {
	font-weight: 700;
	font-size: 15px;
}

.lhc-writing-nav__official-card div {
	display: flex;
	width: 100%;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.lhc-writing-nav__official-card a {
	color: #436078;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: color 160ms ease, transform 160ms ease;
}

.lhc-writing-nav__official-card a:hover,
.lhc-writing-nav__official-card a:focus-visible {
	color: var(--lhc-school-color);
	transform: translateX(2px);
	text-decoration: underline;
}

.lhc-writing-nav__route [data-lhc-university="hku"],
.lhc-writing-nav__official-card[data-lhc-university="hku"] { --lhc-school-color: #16705f; --lhc-next-color: #7350a0; }
.lhc-writing-nav__route [data-lhc-university="cuhk"],
.lhc-writing-nav__official-card[data-lhc-university="cuhk"] { --lhc-school-color: #7350a0; --lhc-next-color: #c94b37; }
.lhc-writing-nav__route [data-lhc-university="hkust"],
.lhc-writing-nav__official-card[data-lhc-university="hkust"] { --lhc-school-color: #c94b37; --lhc-next-color: #b9790d; }
.lhc-writing-nav__route [data-lhc-university="cityuhk"],
.lhc-writing-nav__official-card[data-lhc-university="cityuhk"] { --lhc-school-color: #b9790d; --lhc-next-color: #b13d67; }
.lhc-writing-nav__route [data-lhc-university="polyu"],
.lhc-writing-nav__official-card[data-lhc-university="polyu"] { --lhc-school-color: #b13d67; --lhc-next-color: #2b6f91; }
.lhc-writing-nav__route [data-lhc-university="hkbu"],
.lhc-writing-nav__official-card[data-lhc-university="hkbu"] { --lhc-school-color: #2b6f91; --lhc-next-color: #4f579b; }
.lhc-writing-nav__route [data-lhc-university="ln"],
.lhc-writing-nav__official-card[data-lhc-university="ln"] { --lhc-school-color: #4f579b; --lhc-next-color: #16807d; }
.lhc-writing-nav__route [data-lhc-university="eduhk"],
.lhc-writing-nav__official-card[data-lhc-university="eduhk"] { --lhc-school-color: #16807d; --lhc-next-color: #16807d; }

.lhc-writing-nav__official-note {
	margin: 14px 0 0;
	color: #6a7c8f;
	font-size: 13px;
	line-height: 1.65;
}

.lhc-writing-nav__query-heading {
	max-width: 720px;
	margin: 42px auto 22px;
	text-align: center;
}

.lhc-writing-nav__query-heading .lhc-home-v2__eyebrow {
	margin: 0 0 7px;
	color: #1687f8;
}

.lhc-writing-nav__query-heading h3 {
	font-weight: 700;
	margin: 0;
	color: #082d58;
	font-family: var(--lhc-type-display-family);
	font-size: var(--lhc-type-h3-size, 20px);
	line-height: var(--lhc-type-h3-line-height);
}

.lhc-writing-nav__query-heading > p:last-child {
	margin: 11px 0 0;
	color: #607388;
	line-height: 1.65;
}

.lhc-writing-nav__filters {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.lhc-writing-nav__filters label,
.lhc-writing-nav__filters span {
	display: block;
}

.lhc-writing-nav__filters span {
	margin: 0 0 8px;
	color: #17395f;
	font-size: 14px;
	font-weight: 700;
}

.lhc-writing-nav__filters select {
	width: 100%;
	min-height: 50px;
	padding: 0 40px 0 14px;
	border: 1px solid #cddceb;
	border-radius: 13px;
	background-color: #fff;
	color: #17395f;
	font: inherit;
}

.lhc-writing-nav__filters select:focus {
	border-color: #1687f8;
	box-shadow: 0 0 0 3px rgba(22, 135, 248, 0.12);
	outline: none;
}

.lhc-writing-nav__filters select:disabled {
	background: #f1f5f8;
	color: #8391a0;
	cursor: not-allowed;
}

.lhc-writing-nav__result {
	margin-top: 22px;
	padding: 22px;
	border: 1px solid rgba(22, 135, 248, 0.11);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.86);
	color: #4c6077;
}

.lhc-writing-nav__result > p {
	margin: 0;
}

.lhc-writing-nav__result h3 {
	font-weight: 700;
	margin: 0 0 6px;
	color: #082d58;
	font-size: clamp(20px, 1.8vw, 26px);
}

.lhc-writing-nav__result-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
}

.lhc-writing-nav__result-meta span {
	padding: 6px 10px;
	border-radius: 999px;
	background: #eaf5ff;
	color: #1765a6;
	font-size: 13px;
	font-weight: 700;
}

.lhc-writing-nav__result-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.lhc-writing-nav__result-item {
	padding: 15px 17px;
	border-radius: 14px;
	background: #f7fafc;
}

.lhc-writing-nav__result-item strong {
	font-weight: 700;
	display: block;
	margin-bottom: 5px;
	color: #17395f;
	font-size: 14px;
}

.lhc-writing-nav__result-item p {
	margin: 0;
	color: #556a80;
	font-size: 14px;
	line-height: 1.65;
	white-space: pre-line;
}

.lhc-writing-nav__service-note {
	margin: 16px 0 0;
	padding: 13px 15px;
	border-left: 3px solid #31b78c;
	border-radius: 0 10px 10px 0;
	background: #eefaf5;
	color: #466b60;
	font-size: 14px;
	line-height: 1.65;
}

.lhc-writing-nav__source {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	margin: 18px 0 0;
	padding-top: 16px;
	border-top: 1px solid #e1eaf1;
	font-size: 13px;
}

.lhc-writing-nav__source a {
	color: #087bdc;
	font-weight: 700;
	text-decoration: none;
}

.lhc-writing-nav__source .lhc-writing-nav__consult {
	color: #07845d;
}

@media (max-width: 980px) {
	.lhc-writing-nav__official {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lhc-writing-nav__filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.lhc-writing-nav {
		padding: 24px 18px;
		border-radius: 22px;
	}

	.lhc-writing-nav__filters,
	.lhc-writing-nav__result-grid,
	.lhc-writing-nav__official {
		grid-template-columns: 1fr;
	}

	.lhc-writing-nav__route {
		padding: 15px 14px 13px;
		scroll-snap-type: x proximity;
	}

	.lhc-writing-nav__route-meta span {
		display: inline;
	}

	.lhc-writing-nav__route ol {
		min-width: 680px;
	}

	.lhc-writing-nav__route li {
		scroll-snap-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lhc-writing-nav__route-dot,
	.lhc-writing-nav__official-card,
	.lhc-writing-nav__official-card a {
		transition: none;
	}

	.lhc-writing-nav__official-card:hover,
	.lhc-writing-nav__official-card:focus-within,
	.lhc-writing-nav__official-card.is-active {
		transform: none;
	}
}
