/**
 * EJU 留考栏目样式
 *
 * 命名前缀 ej-。只在该页面加载（inc/eju.php 中条件入队）。
 * 基准字号 10px（主题 main.css），因此 1.4rem = 14px。
 */

.ej-page {
	--ej-navy: #21365c;
	--ej-blue: #6085c8;
	--ej-gold: #d99a3f;
	--ej-ink: #2b3242;
	--ej-grey: #6b7484;
	--ej-line: #e3eaf4;
	--ej-bg: #f5f8fd;
	color: var(--ej-ink);
}

.ej-page h1,
.ej-page h2,
.ej-page h3,
.ej-page p,
.ej-page ul,
.ej-page ol {
	margin: 0;
	padding: 0;
}

/* ------------------------------------------------------------------ Hero */
.ej-hero {
	background: linear-gradient(120deg, #1b2c4b 0%, #284170 55%, #34558c 100%);
	color: #fff;
	padding: 54px 0 44px;
	position: relative;
	overflow: hidden;
}
.ej-hero:after {
	content: "";
	position: absolute;
	right: -80px;
	top: -60px;
	width: 320px;
	height: 320px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
}
.ej-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 820px;
}
.ej-kicker {
	font-size: 1.3rem;
	letter-spacing: 2px;
	color: #f0c98a;
	margin-bottom: 12px;
}
.ej-hero-title {
	font-size: 3.6rem;
	line-height: 4.6rem;
	font-weight: bold;
	letter-spacing: 1px;
}
.ej-hero-sub {
	margin-top: 14px;
	font-size: 1.55rem;
	line-height: 2.7rem;
	color: rgba(255, 255, 255, 0.82);
}
.ej-hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}
.ej-stat {
	flex: 1 1 150px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 3px;
	padding: 12px 16px;
}
.ej-stat b {
	display: block;
	font-size: 2.6rem;
	line-height: 3rem;
	color: #f4d19b;
	font-weight: bold;
}
.ej-stat span {
	display: block;
	font-size: 1.25rem;
	line-height: 1.9rem;
	color: rgba(255, 255, 255, 0.75);
	margin-top: 4px;
}

/* --------------------------------------------------------------- 页内导航 */
.ej-subnav {
	position: sticky;
	top: 0;
	z-index: 30;
	background: #fff;
	border-bottom: 1px solid var(--ej-line);
	box-shadow: 0 2px 8px rgba(33, 54, 92, 0.05);
}
.ej-subnav .container {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
}
.ej-subnav a {
	display: inline-block;
	padding: 14px 16px;
	font-size: 1.4rem;
	color: var(--ej-grey);
	border-bottom: 2px solid transparent;
}
.ej-subnav a:hover,
.ej-subnav a.is-current {
	color: var(--ej-navy);
	border-bottom-color: var(--ej-gold);
}

/* ------------------------------------------------------------------ 主体 */
.ej-body {
	padding-top: 10px;
	padding-bottom: 30px;
}
.ej-section {
	padding: 46px 0 10px;
	scroll-margin-top: 62px;
}
.ej-sec-head {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin-bottom: 24px;
}
.ej-sec-no {
	flex: 0 0 auto;
	font-size: 2.4rem;
	font-weight: bold;
	line-height: 3rem;
	color: #cfdcef;
	letter-spacing: 1px;
}
.ej-sec-title {
	font-size: 2.4rem;
	line-height: 3.4rem;
	color: var(--ej-navy);
	font-weight: bold;
}
.ej-sec-desc {
	margin-top: 8px;
	font-size: 1.4rem;
	line-height: 2.4rem;
	color: var(--ej-grey);
}
.ej-fineprint {
	margin-top: 10px;
	font-size: 1.25rem;
	line-height: 2.1rem;
	color: #8b94a6;
}

/* -------------------------------------------------------------- 目标档位 */
.ej-tier-tabs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
.ej-tier-tab {
	text-align: left;
	background: #fff;
	border: 1px solid var(--ej-line);
	border-top: 3px solid #cfdcef;
	border-radius: 3px;
	padding: 16px 16px 14px;
	cursor: pointer;
	transition: all 0.18s ease;
	font-family: inherit;
}
.ej-tier-tab:hover {
	border-color: #b9cdea;
	border-top-color: var(--ej-blue);
	box-shadow: 0 4px 14px rgba(40, 65, 112, 0.08);
}
.ej-tier-tab.is-active {
	border-color: var(--ej-blue);
	border-top-color: var(--ej-gold);
	background: #fbfcff;
	box-shadow: 0 6px 18px rgba(40, 65, 112, 0.1);
}
.ej-tier-name {
	display: block;
	font-size: 1.6rem;
	font-weight: bold;
	color: var(--ej-navy);
}
.ej-tier-score {
	display: block;
	font-size: 2.6rem;
	line-height: 3.2rem;
	font-weight: bold;
	color: var(--ej-blue);
	margin: 4px 0 6px;
}
.ej-tier-tab.is-active .ej-tier-score {
	color: #c07f22;
}
.ej-tier-schools {
	display: block;
	font-size: 1.2rem;
	line-height: 1.9rem;
	color: #8b94a6;
}

.ej-tier-panel {
	display: none;
	margin-top: 20px;
}
.ej-tier-panel.is-active {
	display: block;
	animation: ej-fade 0.25s ease;
}
@keyframes ej-fade {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: none; }
}
.ej-score-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.ej-score-card {
	background: #fff;
	border: 1px solid var(--ej-line);
	border-radius: 3px;
	overflow: hidden;
}
.ej-score-head {
	background: var(--ej-bg);
	padding: 12px 16px;
	font-size: 1.4rem;
	color: var(--ej-navy);
	border-bottom: 1px solid var(--ej-line);
}
.ej-score-tag {
	display: inline-block;
	font-size: 1.15rem;
	line-height: 1.9rem;
	padding: 0 8px;
	margin-right: 8px;
	background: #e7eefb;
	color: #3f63a3;
	border-radius: 2px;
}
.ej-score-tag.is-ri {
	background: #fdf1e0;
	color: #a2691b;
}
.ej-score-table {
	width: 100%;
	border-collapse: collapse;
}
.ej-score-table th,
.ej-score-table td {
	padding: 11px 16px;
	font-size: 1.4rem;
	border-bottom: 1px solid #f1f5fb;
	text-align: left;
}
.ej-score-table th {
	font-weight: normal;
	color: var(--ej-ink);
}
.ej-score-table td {
	text-align: right;
	color: var(--ej-navy);
	font-weight: bold;
}
.ej-score-table tr:last-child th,
.ej-score-table tr:last-child td {
	border-bottom: 0;
}
.ej-score-table .ej-score-total th,
.ej-score-table .ej-score-total td {
	background: #fbfcff;
	font-weight: bold;
	color: #c07f22;
	border-top: 1px solid var(--ej-line);
}
.ej-tier-note {
	margin-top: 14px;
	background: #fdf8ec;
	border-left: 3px solid var(--ej-gold);
	border-radius: 0 3px 3px 0;
	padding: 12px 16px;
	font-size: 1.35rem;
	line-height: 2.3rem;
	color: #7d6320;
}
.ej-tier-note b {
	margin-right: 8px;
	color: #8a6a24;
}
.ej-tier-actions {
	margin-top: 14px;
}
.ej-link-btn {
	display: inline-block;
	font-size: 1.4rem;
	color: var(--ej-blue);
	border-bottom: 1px solid #c9d9f0;
	padding-bottom: 2px;
}
.ej-link-btn:hover {
	color: #c07f22;
	border-bottom-color: #e9cfa4;
}

/* ------------------------------------------------------------------ 表格 */
.ej-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--ej-line);
	border-radius: 3px;
}
.ej-table {
	width: 100%;
	min-width: 720px;
	border-collapse: collapse;
	background: #fff;
}
.ej-table thead th {
	background: var(--ej-bg);
	font-size: 1.3rem;
	font-weight: normal;
	color: var(--ej-navy);
	padding: 13px 14px;
	text-align: left;
	border-bottom: 1px solid var(--ej-line);
	white-space: nowrap;
}
.ej-table td {
	padding: 14px;
	font-size: 1.4rem;
	line-height: 2.2rem;
	border-bottom: 1px solid #f1f5fb;
	vertical-align: top;
}
.ej-table tbody tr:last-child td {
	border-bottom: 0;
}
.ej-table .ej-ja {
	color: var(--ej-navy);
	width: 27%;
}
.ej-table .ej-nowrap {
	white-space: nowrap;
	color: #4a5468;
}
.ej-table .ej-note {
	color: var(--ej-grey);
	font-size: 1.3rem;
}

/* ------------------------------------------------------------------ 日程 */
.ej-schedule {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.ej-schedule-card {
	border: 1px solid var(--ej-line);
	border-radius: 3px;
	background: #fff;
	padding: 18px 20px 8px;
}
.ej-schedule-round {
	font-size: 1.7rem;
	font-weight: bold;
	color: var(--ej-navy);
	padding-bottom: 12px;
	border-bottom: 1px solid var(--ej-line);
	position: relative;
}
.ej-schedule-round:before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 16px;
	background: var(--ej-gold);
	margin-right: 8px;
	vertical-align: -2px;
	border-radius: 1px;
}
.ej-schedule-steps {
	list-style: none;
}
.ej-schedule-steps li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 0;
	border-bottom: 1px dashed #eef3fa;
	font-size: 1.4rem;
}
.ej-schedule-steps li:last-child {
	border-bottom: 0;
}
.ej-step-name {
	color: var(--ej-ink);
}
.ej-step-time {
	color: var(--ej-navy);
	font-weight: bold;
	white-space: nowrap;
}

/* ---------------------------------------------------------------- 时间轴 */
.ej-timeline {
	position: relative;
	padding-left: 6px;
}
.ej-timeline:before {
	content: "";
	position: absolute;
	left: 21px;
	top: 10px;
	bottom: 10px;
	width: 2px;
	background: #e1eaf7;
}
.ej-tl-item {
	display: flex;
	gap: 18px;
	position: relative;
	padding-bottom: 18px;
}
.ej-tl-marker {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #c9d9f0;
	color: var(--ej-blue);
	font-size: 1.2rem;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
}
.ej-tl-item:first-child .ej-tl-marker {
	background: var(--ej-navy);
	border-color: var(--ej-navy);
	color: #fff;
}
.ej-tl-body {
	flex: 1 1 auto;
	background: #fff;
	border: 1px solid var(--ej-line);
	border-radius: 3px;
	padding: 14px 18px;
}
.ej-tl-when {
	font-size: 1.2rem;
	color: #9aa4b5;
	letter-spacing: 0.5px;
}
.ej-tl-title {
	font-size: 1.6rem;
	font-weight: bold;
	color: var(--ej-navy);
	margin: 2px 0 6px;
}
.ej-tl-desc {
	font-size: 1.35rem;
	line-height: 2.2rem;
	color: #5b6474;
}
.ej-tl-tags {
	margin-top: 8px;
}
.ej-tl-tags span {
	display: inline-block;
	font-size: 1.15rem;
	color: #7b879c;
	background: #f3f6fb;
	border: 1px solid #e8eef8;
	border-radius: 2px;
	padding: 1px 7px;
	margin: 2px 6px 0 0;
}

/* ------------------------------------------------------------------- FAQ */
.ej-faq-item {
	border: 1px solid var(--ej-line);
	border-radius: 3px;
	background: #fff;
	margin-bottom: 10px;
	overflow: hidden;
}
.ej-faq-item summary {
	list-style: none;
	cursor: pointer;
	padding: 16px 44px 16px 18px;
	font-size: 1.5rem;
	color: var(--ej-navy);
	position: relative;
}
.ej-faq-item summary::-webkit-details-marker {
	display: none;
}
.ej-faq-item summary:after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 2rem;
	color: #b9c6da;
	line-height: 1;
}
.ej-faq-item[open] summary:after {
	content: "−";
	color: var(--ej-gold);
}
.ej-faq-item[open] summary {
	background: #fbfcff;
	border-bottom: 1px solid #eef3fa;
}
.ej-faq-a {
	padding: 14px 18px 16px;
	font-size: 1.4rem;
	line-height: 2.4rem;
	color: #5b6474;
}

/* -------------------------------------------------------------- 原正文区 */
.ej-legacy {
	font-size: 1.45rem;
	line-height: 2.5rem;
	color: #4a5468;
}
.ej-legacy h1,
.ej-legacy h2,
.ej-legacy h3,
.ej-legacy h4 {
	color: var(--ej-navy);
	line-height: 1.5;
	margin: 26px 0 12px;
}
.ej-legacy h1 { font-size: 2.4rem; }
.ej-legacy h2 { font-size: 2.1rem; }
.ej-legacy h3 { font-size: 1.8rem; }
.ej-legacy p {
	margin: 0 0 14px;
}
.ej-legacy img {
	max-width: 100%;
	height: auto;
}
.ej-legacy table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
	background: #fff;
}
.ej-legacy table th,
.ej-legacy table td {
	border: 1px solid var(--ej-line);
	padding: 9px 12px;
	font-size: 1.35rem;
	line-height: 2.2rem;
	vertical-align: top;
}
.ej-legacy table th {
	background: var(--ej-bg);
	color: var(--ej-navy);
	font-weight: bold;
}
.ej-legacy ul,
.ej-legacy ol {
	margin: 0 0 14px 22px;
}
.ej-legacy li {
	margin-bottom: 6px;
}

/* 原站正文是老模板导出的（eju-contitle / eju-whatbox 等类），
   字号与居中方式是给旧版整页用的，嵌进新版块后：桌面偏大、手机直接撑爆。
   这里只把版式拉回与本页一致，保留原有的绿色数字卡。 */
.ej-legacy .container,
.ej-legacy .container-fluid {
	width: auto;
	padding-left: 0;
	padding-right: 0;
}
.ej-legacy .eju-contitle {
	font-size: 2rem;
	line-height: 2.8rem;
	text-align: left;
	color: var(--ej-navy);
	margin-top: 26px;
}
.ej-legacy .eju-contitle strong {
	font-size: inherit;
}
.ej-legacy .eju-contitle-line {
	width: 40px;
	margin: 8px 0 16px;
	background-color: var(--ej-gold);
}
.ej-legacy .eju-whatbox {
	background-color: var(--ej-bg);
	border-top: 0;
	border-left: 3px solid var(--ej-blue);
	border-radius: 0 3px 3px 0;
	text-align: left;
	font-size: 1.45rem;
	line-height: 2.5rem;
	padding: 14px 18px !important;
	margin-top: 8px;
}
.ej-legacy .eju-whatbox-img {
	display: none;
}
.ej-legacy .eju-numberbox {
	height: auto;
	min-height: 0;
	margin-bottom: 10px;
}
.ej-legacy .eju-number-school {
	margin-top: 18px;
}
.ej-legacy img {
	max-width: 100%;
	height: auto;
}

/* ------------------------------------------------------------------- CTA */
.ej-cta {
	margin: 44px 0 20px;
	background: linear-gradient(120deg, #22375c 0%, #2f4c7d 100%);
	border-radius: 4px;
	padding: 28px 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.ej-cta-title {
	font-size: 2rem;
	font-weight: bold;
	color: #fff;
}
.ej-cta-sub {
	margin-top: 6px;
	font-size: 1.35rem;
	line-height: 2.2rem;
	color: rgba(255, 255, 255, 0.78);
	max-width: 560px;
}
.ej-cta-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.ej-btn {
	display: inline-block;
	padding: 11px 22px;
	font-size: 1.45rem;
	border-radius: 2px;
	cursor: pointer;
	line-height: 2rem;
}
.ej-btn-ghost {
	border: 1px solid rgba(255, 255, 255, 0.45);
	color: #fff;
}
.ej-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}
.ej-btn-solid {
	background: var(--ej-gold);
	color: #fff;
	border: 1px solid var(--ej-gold);
}
.ej-btn-solid:hover {
	background: #c98a30;
}

/* ------------------------------------------------------------- 响应式 */
@media (max-width: 991px) {
	.ej-hero {
		padding: 42px 0 34px;
	}
	.ej-hero-title {
		font-size: 3rem;
		line-height: 4rem;
	}
	.ej-tier-tabs {
		grid-template-columns: 1fr 1fr;
	}
	.ej-score-grid,
	.ej-schedule {
		grid-template-columns: 1fr;
	}
	.ej-sec-no {
		font-size: 2rem;
	}
}

@media (max-width: 767px) {
	.ej-hero-title {
		font-size: 2.6rem;
		line-height: 3.6rem;
	}
	.ej-hero-sub {
		font-size: 1.4rem;
		line-height: 2.4rem;
	}
	.ej-hero-stats {
		gap: 10px;
	}
	.ej-stat {
		flex: 1 1 44%;
		padding: 10px 12px;
	}
	.ej-stat b {
		font-size: 2.2rem;
		line-height: 2.6rem;
	}
	.ej-subnav a {
		padding: 12px 12px;
		font-size: 1.3rem;
	}
	.ej-section {
		padding: 34px 0 6px;
	}
	.ej-sec-head {
		gap: 10px;
	}
	.ej-sec-title {
		font-size: 1.95rem;
		line-height: 2.9rem;
	}
	.ej-tier-tabs {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	.ej-tier-tab {
		padding: 13px 14px;
		display: flex;
		align-items: center;
		gap: 10px;
		flex-wrap: wrap;
	}
	.ej-tier-name {
		font-size: 1.5rem;
	}
	.ej-tier-score {
		font-size: 2rem;
		line-height: 2.4rem;
		margin: 0;
	}
	.ej-tier-schools {
		flex: 1 1 100%;
	}
	.ej-timeline {
		padding-left: 0;
	}
	.ej-timeline:before {
		left: 15px;
	}
	.ej-tl-marker {
		flex: 0 0 30px;
		width: 30px;
		height: 30px;
	}
	.ej-tl-item {
		gap: 12px;
	}
	.ej-tl-body {
		padding: 12px 14px;
	}
	.ej-cta {
		padding: 22px 20px;
	}
	.ej-cta-title {
		font-size: 1.8rem;
	}
	.ej-cta-actions {
		width: 100%;
	}
	.ej-btn {
		flex: 1 1 auto;
		text-align: center;
	}

	/* 科目表在手机上改为卡片式堆叠：五列横向滑动读起来太累 */
	.ej-table-wrap {
		overflow: visible;
		border: 0;
	}
	.ej-table {
		min-width: 0;
		background: transparent;
	}
	.ej-table thead {
		display: none;
	}
	.ej-table,
	.ej-table tbody,
	.ej-table tr,
	.ej-table td {
		display: block;
		width: 100%;
	}
	.ej-table tr {
		background: #fff;
		border: 1px solid var(--ej-line);
		border-radius: 3px;
		padding: 12px 14px 10px;
		margin-bottom: 10px;
	}
	.ej-table td {
		border: 0;
		padding: 3px 0;
		font-size: 1.35rem;
		line-height: 2.1rem;
		white-space: normal !important;
	}
	.ej-table td[data-label]:before {
		content: attr(data-label);
		display: inline-block;
		min-width: 46px;
		color: #9aa4b5;
		font-size: 1.2rem;
	}
	.ej-table td.ej-ja {
		width: 100%;
		font-size: 1.5rem;
		font-weight: bold;
		color: var(--ej-navy);
		line-height: 2.3rem;
		padding-bottom: 4px;
	}
	.ej-table td.ej-ja:before {
		display: none;
	}
	.ej-table td.ej-note {
		color: #6b7484;
		border-top: 1px dashed #eef3fa;
		margin-top: 4px;
		padding-top: 7px;
	}
}

/* ------------------------------------------------- 分数定位（联动院校库） */
.ej-locate {
	padding: 34px 0 6px;
}

.ej-locate-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 18px;
	padding: 22px 24px;
	background: #fff;
	border: 1px solid var(--ej-line);
	border-left: 4px solid var(--ej-gold);
	border-radius: 0 6px 6px 0;
}

.ej-locate-copy {
	flex: 1 1 420px;
	min-width: 0;
}

.ej-locate-title {
	font-size: 2rem;
	font-weight: 700;
	color: var(--ej-navy);
	line-height: 1.5;
}

.ej-locate-text {
	margin-top: 6px;
	font-size: 1.35rem;
	line-height: 1.7;
	color: var(--ej-grey);
}

.ej-locate-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex: 0 0 auto;
}

.ej-locate-chip {
	display: inline-block;
	padding: 7px 16px;
	border: 1px solid #dbe6f7;
	border-radius: 999px;
	background: #f2f6fd;
	color: var(--ej-navy);
	font-size: 1.3rem;
	line-height: 2.4rem;
	white-space: nowrap;
}

.ej-locate-chip b {
	font-size: 1.6rem;
	font-weight: 700;
}

.ej-locate-chip:hover {
	background: var(--ej-navy);
	border-color: var(--ej-navy);
	color: #fff;
}

@media (max-width: 767px) {
	.ej-locate {
		padding: 26px 0 4px;
	}
	.ej-locate-box {
		padding: 18px;
		gap: 14px;
	}
	.ej-locate-title {
		font-size: 1.75rem;
	}
	.ej-locate-chips {
		width: 100%;
	}
	.ej-locate-chip {
		flex: 1 1 calc(50% - 5px);
		text-align: center;
	}
}
