/* 学院介绍（含为什么选择）+ 学习资源精选页 — 内页通用 */
body.portal-layout-inner {
	--portal-accent: #27a8e1;
	--portal-accent-deep: #0875a5;
	--portal-cta: #e62e5d;
	--portal-ink: #1a1d21;
	--portal-muted: #5c636a;
	--portal-line: rgba(15, 23, 42, 0.1);
	--portal-radius: 4px;
	--portal-display: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.portal-college-page,
.portal-resources-page {
	max-width: 1120px;
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* —— 学院：为什么选择 —— */
.portal-college-why {
	margin: clamp(1.5rem, 3vw, 2.5rem) 0;
	padding: clamp(1.75rem, 3vw, 2.5rem);
	background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
	border: 1px solid var(--portal-line);
	box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.portal-college-why__intro {
	max-width: 720px;
	margin: 0 auto 2rem;
	text-align: center;
}

.portal-college-why__kicker {
	margin: 0 0 0.65rem;
	font-family: var(--portal-display);
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	font-weight: 800;
	color: var(--portal-accent-deep);
	letter-spacing: 0.04em;
}

.portal-college-why__lead {
	margin: 0 0 0.5rem;
	font-size: clamp(1.05rem, 1.8vw, 1.2rem);
	font-weight: 600;
	color: var(--portal-ink);
	line-height: 1.5;
}

.portal-college-why__site {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	color: var(--portal-muted);
}

.portal-college-why__cms {
	margin: 0 auto;
	text-align: left;
	font-size: 0.98rem;
	line-height: 1.85;
	color: var(--portal-muted);
}

.portal-college-pillars {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(12px, 2vw, 20px);
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.portal-college-pillar {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 100%;
	padding: 1.35rem 1.25rem 1.4rem;
	background: #fff;
	border: 1px solid var(--portal-line);
	transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
}

.portal-college-pillar:hover {
	transform: translateY(-3px);
	border-color: rgba(39, 168, 225, 0.35);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.portal-college-pillar__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 0.85rem;
	background: linear-gradient(135deg, rgba(39, 168, 225, 0.15) 0%, rgba(10, 162, 192, 0.12) 100%);
	color: var(--portal-accent-deep);
	font-size: 1.15rem;
}

.portal-college-pillar__title {
	margin: 0 0 0.5rem;
	font-family: var(--portal-display);
	font-size: 1.02rem;
	font-weight: 700;
	color: var(--portal-ink);
	line-height: 1.35;
}

.portal-college-pillar__desc {
	margin: 0;
	flex: 1 1 auto;
	font-size: 0.88rem;
	line-height: 1.65;
	color: var(--portal-muted);
}

.portal-college-path {
	padding: 1.5rem 1.25rem;
	background: #fff;
	border: 1px solid var(--portal-line);
	text-align: center;
}

.portal-college-path__title {
	margin: 0 0 1.25rem;
	font-family: var(--portal-display);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--portal-ink);
}

.portal-college-path__steps {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem 0;
	margin: 0 0 1.35rem;
	padding: 0;
	list-style: none;
	counter-reset: path;
}

.portal-college-path__steps li {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.35rem 0.85rem;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--portal-muted);
}

.portal-college-path__steps li + li::before {
	content: "";
	display: inline-block;
	width: 28px;
	height: 1px;
	margin-right: 0.5rem;
	background: linear-gradient(90deg, rgba(39, 168, 225, 0.5), rgba(39, 168, 225, 0.15));
	vertical-align: middle;
}

.portal-college-path__steps a {
	color: var(--portal-accent-deep);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.portal-college-path__steps a:hover {
	color: var(--portal-accent);
	border-bottom-color: rgba(39, 168, 225, 0.4);
	text-decoration: none;
}

.portal-college-path__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	font-size: 0.8rem;
	font-weight: 800;
	color: #fff;
	background: var(--portal-accent);
}

.portal-college-path__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem;
}

.portal-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.45rem;
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.portal-btn--primary {
	background: var(--portal-accent);
	color: #fff;
}

.portal-btn--primary:hover {
	background: #1e96cc;
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.portal-btn--ghost {
	background: #fff;
	color: var(--portal-accent-deep);
	border-color: rgba(39, 168, 225, 0.45);
}

.portal-btn--ghost:hover {
	background: rgba(39, 168, 225, 0.08);
	color: var(--portal-accent-deep);
	text-decoration: none;
}

.portal-college-article {
	margin-top: clamp(2rem, 4vw, 3rem);
	padding-top: clamp(1.5rem, 3vw, 2rem);
	border-top: 1px solid var(--portal-line);
}

.portal-college-article__title {
	margin-bottom: 1.25rem;
	font-family: var(--portal-display);
	font-weight: 700;
	color: var(--portal-ink);
}

.portal-college-article__body {
	font-size: 1rem;
	line-height: 1.85;
	color: var(--portal-muted);
}

/* —— 学习资源精选 —— */
.portal-resources-hub {
	margin: clamp(1.5rem, 3vw, 2.25rem) 0;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	background: #fff;
	border: 1px solid var(--portal-line);
	box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.portal-resources-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--portal-line);
}

.portal-resources-tabs__btn {
	flex: 1 1 auto;
	min-width: 7.5rem;
	padding: 0.65rem 1rem;
	font-family: var(--portal-display);
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--portal-muted);
	background: #f1f5f9;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.portal-resources-tabs__btn:hover {
	color: var(--portal-accent-deep);
	background: rgba(39, 168, 225, 0.08);
}

.portal-resources-tabs__btn.is-active {
	color: #fff;
	background: linear-gradient(90deg, var(--portal-accent) 0%, #0aa2c0 100%);
	border-color: transparent;
	box-shadow: 0 4px 14px rgba(39, 168, 225, 0.35);
}

.portal-resources-panel__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-bottom: 1.25rem;
}

.portal-resources-panel__title {
	margin: 0;
	font-family: var(--portal-display);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--portal-ink);
}

.portal-resources-panel__more {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--portal-accent);
	text-decoration: none;
	white-space: nowrap;
}

.portal-resources-panel__more:hover {
	text-decoration: underline;
	color: var(--portal-accent-deep);
}

.portal-resources-empty {
	margin: 0;
	padding: 2.5rem 1rem;
	text-align: center;
	color: var(--portal-muted);
	font-size: 0.95rem;
	background: #f8fafc;
	border: 1px dashed var(--portal-line);
}

.portal-res-mag-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(12px, 2vw, 18px);
}

.portal-res-mag-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: #f8fafc;
	border: 1px solid var(--portal-line);
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.portal-res-mag-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
	text-decoration: none;
	color: inherit;
}

.portal-res-mag-card__thumb {
	display: block;
	aspect-ratio: 3 / 4;
	background: #e2e8f0;
	overflow: hidden;
}

.portal-res-mag-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.portal-res-mag-card:hover .portal-res-mag-card__thumb img {
	transform: scale(1.04);
}

.portal-res-mag-card__title {
	display: block;
	padding: 0.75rem 0.85rem;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--portal-ink);
}

.portal-res-article-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.portal-res-article-list__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.75rem 1rem;
	align-items: baseline;
	padding: 0.85rem 0;
	border-bottom: 1px dashed var(--portal-line);
}

.portal-res-article-list__item:last-child {
	border-bottom: none;
}

.portal-res-article-list__item a {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--portal-ink);
	text-decoration: none;
	transition: color 0.2s ease;
}

.portal-res-article-list__item a:hover {
	color: var(--portal-accent);
}

.portal-res-article-list__item time {
	font-size: 0.82rem;
	color: var(--portal-muted);
	white-space: nowrap;
}

.portal-res-course-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(12px, 2vw, 18px);
}

.portal-res-course-card {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 0;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid var(--portal-line);
	overflow: hidden;
	transition: box-shadow 0.25s ease, border-color 0.2s ease;
}

.portal-res-course-card:hover {
	border-color: rgba(39, 168, 225, 0.35);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
	text-decoration: none;
	color: inherit;
}

.portal-res-course-card__thumb {
	display: block;
	background: #e2e8f0;
	min-height: 88px;
}

.portal-res-course-card__thumb img {
	width: 100%;
	height: 100%;
	min-height: 88px;
	object-fit: cover;
}

.portal-res-course-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0.85rem 1rem;
	min-width: 0;
}

.portal-res-course-card__title {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--portal-ink);
	line-height: 1.4;
	margin-bottom: 0.25rem;
}

.portal-res-course-card__desc {
	display: block;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--portal-muted);
}

@media (max-width: 991px) {
	.portal-college-pillars {
		grid-template-columns: repeat(2, 1fr);
	}

	.portal-res-mag-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.portal-college-pillars {
		grid-template-columns: 1fr;
	}

	.portal-college-path__steps li + li::before {
		display: none;
	}

	.portal-college-path__steps {
		flex-direction: column;
	}

	.portal-resources-tabs__btn {
		flex: 1 1 100%;
	}

	.portal-res-mag-grid,
	.portal-res-course-grid {
		grid-template-columns: 1fr;
	}

	.portal-res-course-card {
		grid-template-columns: 100px minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.portal-college-pillar:hover,
	.portal-res-mag-card:hover,
	.portal-btn--primary:hover {
		transform: none;
	}
}