/* ==========================================================
   课程体系详情页样式（依赖 style.css 的设计变量）
   ========================================================== */

/* 顶部导航（子页面） */
.cnav {
	height: 72px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 2px 16px rgba(18, 41, 75, 0.06);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 5%;
}

.cnav .menu a { margin-left: 26px; }

.cnav .menu a.active {
	color: var(--accent, var(--blue));
}

.cnav .menu a.active::after {
	width: 100%;
	background: var(--accent, var(--blue));
}

/* Hero */
.chero {
	margin-top: 72px;
	padding: 70px 0 60px;
	color: #fff;
	position: relative;
	overflow: hidden;
}

.chero::before {
	content: "";
	position: absolute;
	right: -80px;
	top: -100px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
}

.chero::after {
	content: "";
	position: absolute;
	left: -60px;
	bottom: -120px;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
}

.chero-green,
.chero-blue,
.chero-orange { background: linear-gradient(135deg, #0280c4, #35bdf7); }

.chero-inner {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.crumbs {
	font-size: 13.5px;
	opacity: 0.9;
	margin-bottom: 18px;
}

.crumbs a { color: #fff; text-decoration: none; opacity: 0.85; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }

.chero h1 {
	font-size: 38px;
	font-weight: 900;
	letter-spacing: 2px;
	margin-bottom: 12px;
}

.chero .chero-sub {
	font-size: 16.5px;
	opacity: 0.92;
	margin-bottom: 26px;
}

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-chips span {
	font-size: 13.5px;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 999px;
	padding: 8px 18px;
	font-weight: 600;
}

/* 通用段落标题 */
.csec {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 70px 0 0;
}

.csec:last-of-type { padding-bottom: 70px; }

.csec-head { text-align: center; margin-bottom: 40px; }

.csec-head .en {
	display: inline-block;
	font-size: 13px;
	letter-spacing: 4px;
	color: var(--accent, var(--blue));
	background: var(--accent-soft, var(--sky));
	border-radius: 999px;
	padding: 4px 18px;
	font-weight: 700;
	margin-bottom: 12px;
}

.csec-head h2 {
	font-size: 28px;
	color: var(--navy);
	font-weight: 800;
}

/* 阶段路线图 */
.stage-road {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 18px;
}

/* 仅 3 张阶段卡时（Python 页）占满三列 */
.stage-road.cols-3 { grid-template-columns: repeat(3, 1fr); }

.stage-card {
	background: #fff;
	border: 1px solid #e9eff8;
	border-radius: 16px;
	padding: 22px 18px;
	position: relative;
	box-shadow: 0 4px 16px rgba(18, 41, 75, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stage-card .stage-img {
	display: block;
	width: calc(100% + 36px);
	margin: -22px -18px 16px;
	aspect-ratio: 16 / 8;
	object-fit: cover;
	border-radius: 16px 16px 0 0;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.stage-card .stage-img.loaded { opacity: 1; }

.stage-card:hover .stage-img.loaded { transform: scale(1.0); }

.stage-card .age { z-index: 1; }

.stage-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 30px rgba(18, 41, 75, 0.12);
}

.stage-card .age {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 700;
	color: #fff;
	background: var(--accent, var(--blue));
	border-radius: 999px;
	padding: 4px 14px;
	margin-bottom: 12px;
}

.stage-card h3 {
	font-size: 16.5px;
	color: var(--navy);
	margin-bottom: 12px;
	font-weight: 800;
	line-height: 1.4;
}

.stage-card ul {
	list-style: none;
}

.stage-card ul li {
	font-size: 13px;
	color: var(--gray);
	line-height: 1.7;
	padding-left: 16px;
	position: relative;
	margin-bottom: 6px;
}

.stage-card ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent, var(--blue));
	opacity: 0.6;
}

/* 特色 / 成果 */
.feat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

/* 6 张特色卡用 3 列（3+3 更均衡） */
.feat-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.feat-card {
	background: #fff;
	border: 1px solid #e9eff8;
	border-radius: 16px;
	padding: 26px 20px;
	text-align: center;
	box-shadow: 0 4px 16px rgba(18, 41, 75, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feat-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(18, 41, 75, 0.12); }

.feat-card .ico {
	width: 52px;
	height: 52px;
	margin: 0 auto 14px;
	border-radius: 16px;
	background: var(--accent-soft, var(--sky));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
}

.feat-card h3 { font-size: 15.5px; color: var(--navy); margin-bottom: 8px; }
.feat-card p { font-size: 13px; color: var(--gray); line-height: 1.7; }

/* 成果出口 */
.outcome-band {
	background: var(--accent-soft, var(--sky));
	border-radius: 20px;
	padding: 34px 38px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.outcome-item { text-align: center; }

.outcome-item b {
	display: block;
	font-size: 15.5px;
	color: var(--navy);
	margin-bottom: 6px;
	font-weight: 800;
}

.outcome-item span { font-size: 13px; color: var(--gray); line-height: 1.6; display: block; }

/* 官方课纲 */
.syllabus-note {
	margin-top: 26px;
	background: #fff;
	border: 1px dashed #bcd4f2;
	border-radius: 14px;
	padding: 18px 24px;
	font-size: 14px;
	color: var(--gray);
	line-height: 1.8;
}

.syllabus-note a {
	color: var(--accent, var(--blue));
	font-weight: 700;
	text-decoration: none;
}

.syllabus-note a:hover { text-decoration: underline; }

/* 考级竞赛路径阶梯 */
.ladder {
	max-width: 880px;
	margin: 0 auto;
	position: relative;
	padding: 10px 0 10px 34px;
}

.ladder::before {
	content: "";
	position: absolute;
	left: 10px;
	top: 20px;
	bottom: 20px;
	width: 3px;
	border-radius: 2px;
	background: linear-gradient(to bottom, var(--accent, var(--blue)), var(--accent-soft, var(--sky)));
}

.ladder-item {
	position: relative;
	background: #fff;
	border: 1px solid #e9eff8;
	border-radius: 16px;
	padding: 20px 24px;
	margin-bottom: 18px;
	box-shadow: 0 4px 16px rgba(18, 41, 75, 0.05);
	display: flex;
	gap: 20px;
	align-items: flex-start;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ladder-item:hover {
	transform: translateX(6px);
	box-shadow: 0 12px 26px rgba(18, 41, 75, 0.12);
}

.ladder-item::before {
	content: "";
	position: absolute;
	left: -31px;
	top: 26px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: var(--accent, var(--blue));
	border: 3px solid var(--accent-soft, var(--sky));
}

.ladder-item .lv {
	flex-shrink: 0;
	background: var(--accent-soft, var(--sky));
	color: var(--accent-deep, var(--accent, var(--blue)));
	font-weight: 800;
	font-size: 13px;
	border-radius: 10px;
	padding: 9px 14px;
	min-width: 118px;
	text-align: center;
	line-height: 1.5;
}

.ladder-item .lv small {
	display: block;
	font-size: 11.5px;
	color: #9aa7ba;
	font-weight: 600;
	margin-top: 4px;
}

.ladder-item h3 {
	font-size: 16px;
	color: var(--navy);
	margin-bottom: 6px;
	font-weight: 800;
}

.ladder-item h3 em {
	font-style: normal;
	font-size: 12.5px;
	color: var(--accent, var(--blue));
	background: var(--accent-soft, var(--sky));
	border-radius: 999px;
	padding: 2px 12px;
	margin-left: 10px;
	vertical-align: 2px;
	font-weight: 700;
}

.ladder-item p {
	font-size: 13.5px;
	color: var(--gray);
	line-height: 1.8;
}

/* 深色质感板块 */
.dark-band {
	background: var(--navy);
	border-radius: 24px;
	padding: 48px 46px;
	color: #fff;
	position: relative;
	overflow: hidden;
}

.dark-band::before {
	content: "";
	position: absolute;
	right: -60px;
	top: -80px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: rgba(255, 217, 74, 0.12);
}

.dark-band::after {
	content: "";
	position: absolute;
	left: -40px;
	bottom: -90px;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
}

.dark-band h3 {
	font-size: 24px;
	margin-bottom: 14px;
	color: var(--yellow);
	position: relative;
}

.dark-band p {
	font-size: 14.5px;
	color: rgba(255, 255, 255, 0.82);
	line-height: 2.1;
	max-width: 860px;
	position: relative;
}

.dark-band p b { color: #fff; }

/* 作品链 */
.work-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.work-chips span {
	font-size: 13.5px;
	color: var(--navy);
	background: #fff;
	border: 1px solid #e9eff8;
	border-radius: 12px;
	padding: 11px 20px;
	box-shadow: 0 3px 10px rgba(18, 41, 75, 0.05);
	font-weight: 700;
	display: flex;
	align-items: center;
}

.work-chips span i {
	color: var(--accent, var(--blue));
	font-style: normal;
	margin-right: 9px;
	font-weight: 800;
}

/* CTA */
.cta-band {
	margin: 70px auto 0;
	width: 90%;
	max-width: 1200px;
	background: linear-gradient(120deg, var(--accent, var(--blue)), var(--accent-2, var(--blue-deep)));
	border-radius: 24px;
	padding: 44px 40px;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	position: relative;
	overflow: hidden;
}

.cta-band::before {
	content: "";
	position: absolute;
	right: -50px;
	top: -70px;
	width: 190px;
	height: 190px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
}

.cta-band h3 { font-size: 24px; margin-bottom: 8px; position: relative; }
.cta-band p { font-size: 14.5px; opacity: 0.9; position: relative; }

.cta-btns { display: flex; gap: 14px; flex-wrap: wrap; position: relative; }

.cta-btns .btn-main {
	background: #fff;
	color: var(--accent-deep, var(--blue-deep));
	padding: 13px 32px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 15.5px;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
	transition: transform 0.25s ease;
}

.cta-btns .btn-ghost {
	border: 2px solid rgba(255, 255, 255, 0.75);
	color: #fff;
	padding: 11px 30px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15.5px;
	text-decoration: none;
	transition: background 0.25s ease;
}

.cta-btns .btn-main:hover { transform: translateY(-3px); }
.cta-btns .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* 页脚（子页简化版） */
.cfooter {
	margin-top: 70px;
	background: var(--navy);
	color: rgba(255, 255, 255, 0.75);
	padding: 26px 0;
	text-align: center;
	font-size: 13px;
}

.cfooter a { color: var(--yellow); text-decoration: none; margin: 0 8px; }
.cfooter a:hover { text-decoration: underline; }
.cfooter .copy { margin-top: 10px; color: rgba(255, 255, 255, 0.5); }

/* 咨询悬浮 */
.consult {
	position: fixed;
	right: 20px;
	bottom: 50px;
	width: 64px;
	height: 64px;
	background: linear-gradient(135deg, var(--coral), #f4692e);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: bold;
	z-index: 99;
	flex-direction: column;
	box-shadow: 0 8px 20px rgba(244, 105, 46, 0.4);
	transition: transform 0.25s ease;
}

.consult:hover { transform: scale(1.08); }
.consult a { color: #fff; text-decoration: none; }

/* 手机适配 */
@media (max-width: 992px) {
	.stage-road { grid-template-columns: repeat(2, 1fr); }
	.stage-road.cols-3 { grid-template-columns: repeat(3, 1fr); }
	.feat-grid { grid-template-columns: repeat(2, 1fr); }
	.feat-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
	.outcome-band { grid-template-columns: repeat(2, 1fr); }
	.chero h1 { font-size: 30px; }
	.cnav .menu { display: none; }

	.ladder { padding-left: 26px; }
	.ladder-item { flex-direction: column; gap: 10px; padding: 18px 20px; }
	.ladder-item::before { left: -24px; }
	.ladder-item .lv { min-width: 0; align-self: flex-start; }
	.dark-band { padding: 34px 26px; }
}

@media (max-width: 600px) {
	.stage-road { grid-template-columns: 1fr; }
	.stage-road.cols-3 { grid-template-columns: 1fr; }
	.feat-grid { grid-template-columns: 1fr; }
	.feat-grid.cols-3 { grid-template-columns: 1fr; }
	.outcome-band { grid-template-columns: 1fr; }
	.chero { padding: 50px 0 44px; }
	.chero h1 { font-size: 26px; }
	.cta-band { flex-direction: column; text-align: center; padding: 34px 22px; }
}

/* ==========================================================
   图文混排 / 成果画廊 / 大纲 Tabs / 动效
   ========================================================== */

/* ---------------- 图文混排（左右交替） ---------------- */
.duo { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 42px; }

.duo-row {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 36px;
	align-items: center;
	background: #fff;
	border: 1px solid #e9eff8;
	border-radius: 20px;
	padding: 22px;
	box-shadow: 0 4px 16px rgba(18, 41, 75, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.duo-row:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(18, 41, 75, 0.12); }

.duo-row.flip .duo-img { order: 2; }
.duo-row.flip .duo-txt { order: 1; }

.duo-img {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	min-height: 240px;
}

.duo-img img {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.duo-row:hover .duo-img img { transform: scale(1.05); }

.duo-img .duo-tag {
	position: absolute;
	left: 12px;
	top: 12px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: var(--accent, var(--blue));
	border-radius: 999px;
	padding: 4px 14px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.duo-txt h3 {
	font-size: 19px;
	color: var(--navy);
	font-weight: 800;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.duo-txt h3 .lv-badge {
	font-size: 12px;
	color: var(--accent, var(--blue));
	background: var(--accent-soft, var(--sky));
	border-radius: 999px;
	padding: 3px 13px;
	font-weight: 700;
}

.duo-txt p { font-size: 14px; color: var(--gray); line-height: 1.9; margin-bottom: 12px; }

.duo-txt .mini-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.duo-txt .mini-chips span {
	font-size: 12px;
	color: var(--accent-deep, var(--accent, var(--blue)));
	background: var(--accent-soft, var(--sky));
	border-radius: 999px;
	padding: 4px 13px;
	font-weight: 600;
}

/* ---------------- 成果画廊 ---------------- */
.gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.g-item {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	cursor: zoom-in;
	box-shadow: 0 4px 16px rgba(18, 41, 75, 0.08);
	aspect-ratio: 4 / 3;
	background: var(--accent-soft, var(--sky));
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.g-item:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(18, 41, 75, 0.16); }

.g-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.g-item:hover img { transform: scale(1.07); }

.g-item figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 26px 14px 12px;
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	background: linear-gradient(to top, rgba(10, 30, 60, 0.85), rgba(10, 30, 60, 0));
	text-align: left;
}

.g-item figcaption small {
	display: block;
	font-size: 11.5px;
	font-weight: 500;
	opacity: 0.85;
	margin-top: 2px;
}

/* 画廊大图灯箱 */
.g-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(10, 22, 41, 0.78);
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 30px;
}

.g-lightbox.show { display: flex; animation: popIn 0.3s ease; }

.g-lightbox img { max-width: 90vw; max-height: 76vh; border-radius: 12px; box-shadow: 0 12px 44px rgba(0, 0, 0, 0.45); }

.g-lightbox p { color: #fff; font-size: 15px; margin-top: 14px; font-weight: 600; }

.g-lightbox .g-close {
	position: absolute;
	top: 22px;
	right: 34px;
	font-size: 34px;
	color: #fff;
	background: none;
	border: none;
	cursor: pointer;
	line-height: 1;
}

/* ---------------- 大纲 Tabs（三级大纲） ---------------- */
.syl-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }

.syl-tab {
	font-size: 15px;
	font-weight: 700;
	color: var(--gray);
	background: #fff;
	border: 1.5px solid #e2eaf5;
	border-radius: 999px;
	padding: 10px 26px;
	cursor: pointer;
	transition: all 0.25s ease;
	font-family: inherit;
}

.syl-tab:hover { color: var(--accent, var(--blue)); border-color: var(--accent, var(--blue)); }

.syl-tab.active {
	color: #fff;
	background: var(--accent, var(--blue));
	border-color: var(--accent, var(--blue));
	box-shadow: 0 6px 16px rgba(18, 41, 75, 0.18);
}

.syl-tab small { display: block; font-size: 11px; font-weight: 500; opacity: 0.8; }

.syl-panel { display: none; }

.syl-panel.active { display: block; animation: cdIn 0.4s ease; }

.syl-mods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.syl-mod {
	background: #fff;
	border: 1px solid #e9eff8;
	border-radius: 16px;
	padding: 22px 24px;
	box-shadow: 0 4px 16px rgba(18, 41, 75, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.syl-mod:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(18, 41, 75, 0.1); }

.syl-mod h4 {
	font-size: 15.5px;
	color: var(--navy);
	font-weight: 800;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.syl-mod h4::before {
	content: "";
	width: 4px;
	height: 16px;
	border-radius: 2px;
	background: var(--accent, var(--blue));
}

.syl-mod p { font-size: 13px; color: var(--gray); line-height: 2; }

/* ---------------- 动效增强 ---------------- */
/* 网格子项交错入场：给父容器加 data-stagger */
[data-stagger] > * {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-stagger].in > * { opacity: 1; transform: none; }

[data-stagger].in > *:nth-child(1) { transition-delay: 0.05s; }
[data-stagger].in > *:nth-child(2) { transition-delay: 0.14s; }
[data-stagger].in > *:nth-child(3) { transition-delay: 0.23s; }
[data-stagger].in > *:nth-child(4) { transition-delay: 0.32s; }
[data-stagger].in > *:nth-child(5) { transition-delay: 0.41s; }
[data-stagger].in > *:nth-child(6) { transition-delay: 0.5s; }

/* Hero 徽章浮动 */
.hero-chips span { animation: chipFloat 4s ease-in-out infinite; }
.hero-chips span:nth-child(2n) { animation-delay: 0.6s; }
.hero-chips span:nth-child(3n) { animation-delay: 1.2s; }

@keyframes chipFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-5px); }
}

/* 画廊图片缓动入场 */
.g-item { opacity: 0; transform: scale(0.94); transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.3s ease; }
.g-item.in { opacity: 1; transform: scale(1); }

/* 页面顶部渐变进度条 */
.read-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0;
	background: linear-gradient(90deg, var(--accent, var(--blue)), var(--yellow));
	z-index: 1001;
	transition: width 0.1s linear;
}

/* 六大模块教学体系 */
.teach-mod { position: relative; padding-left: 66px; }

.teach-mod .t-num {
	position: absolute;
	left: 16px;
	top: 16px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 5px 12px rgba(0, 0, 0, 0.14);
}

/* 动画演示区 */
.demo-wrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	margin-top: 26px;
}

.demo-panel {
	background: #fff;
	border: 1px solid #f0e2d8;
	border-radius: 16px;
	padding: 20px 22px;
	box-shadow: var(--shadow);
}

.demo-panel h4 { font-size: 15.5px; color: var(--navy); margin-bottom: 16px; }

.demo-panel > p { font-size: 12.5px; color: var(--gray); margin-top: 14px; text-align: center; }

/* 冒泡排序动画 */
.demo-bars {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 14px;
	height: 150px;
	padding: 10px 6px 0;
	background: linear-gradient(180deg, #fdf8f4, #fbeee4);
	border-radius: 10px;
	overflow: hidden;
}

.demo-bars .bar {
	width: 42px;
	border-radius: 6px 6px 0 0;
	position: relative;
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
	background: linear-gradient(180deg, var(--accent-2), var(--accent));
	display: flex;
	align-items: flex-start;
	justify-content: center;
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	padding-top: 5px;
	box-sizing: border-box;
}

.demo-bars .bar.cmp { background: linear-gradient(180deg, #ffb14a, #f4692e); transform: translateY(-8px); }

/* 循环执行动画 */
.demo-code {
	background: #1e2430;
	border-radius: 10px;
	padding: 14px 16px;
	font-family: Consolas, Monaco, monospace;
	font-size: 13px;
	line-height: 2.05;
	min-height: 170px;
}

.demo-code span {
	display: block;
	color: #c8d3e0;
	border-radius: 5px;
	padding: 0 8px;
	transition: background 0.25s ease, color 0.25s ease;
}

.demo-code span.hl { background: rgba(244, 105, 46, 0.35); color: #fff; }

.demo-code .demo-out { color: #6ee7a0; }

@media (max-width: 800px) {
	.demo-wrap { grid-template-columns: 1fr; }
	.teach-mod { padding-left: 60px; }
	.teach-mod .t-num { left: 12px; }
}

/* 课程安排信息条（Python 页 6 年路线） */
.sched-strip {
	margin-top: 18px;
	display: flex;
	align-items: stretch;
	justify-content: center;
	background: #fff;
	border: 1px solid #e3eefb;
	border-radius: 16px;
	padding: 18px 10px;
	box-shadow: 0 6px 18px rgba(31, 64, 104, 0.06);
	max-width: 920px;
	margin-left: auto;
	margin-right: auto;
	flex-wrap: wrap;
	row-gap: 14px;
}

.sched-item {
	flex: 1 1 0;
	min-width: 150px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 4px 14px;
	gap: 3px;
}

.sched-item .ico { font-size: 22px; line-height: 1; }

.sched-item b {
	font-size: 15px;
	color: var(--accent-deep, #1b5fd0);
}

.sched-item i {
	font-style: normal;
	font-size: 12px;
	color: #7d8ea3;
}

.sched-sep {
	width: 1px;
	background: linear-gradient(to bottom, rgba(4, 163, 240, 0), rgba(4, 163, 240, 0.35), rgba(4, 163, 240, 0));
	flex-shrink: 0;
}

@media (max-width: 700px) {
	.sched-strip { flex-direction: column; padding: 16px 18px; }
	.sched-sep { display: none; }
	.sched-item { flex-direction: row; text-align: left; justify-content: flex-start; padding: 4px 2px; }
	.sched-item .ico { font-size: 18px; }
}

/* 新组件响应式 */
@media (max-width: 992px) {
	.duo-row { grid-template-columns: 1fr; gap: 18px; padding: 16px; }
	.duo-row.flip .duo-img { order: 0; }
	.duo-img { min-height: 210px; }
	.gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.syl-mods { grid-template-columns: 1fr; }
	.syl-tab { padding: 9px 18px; font-size: 13.5px; }
}

@media (max-width: 480px) {
	.gallery { grid-template-columns: 1fr; }
}

/* ---------------- 竞赛规划与成果（Python 页） ---------------- */
.race-band {
	display: grid;
	grid-template-columns: 360px 1fr;
	gap: 24px;
	margin-bottom: 26px;
	align-items: stretch;
}

/* 左侧：竞赛集训营深色卡 */
.race-intro {
	background: linear-gradient(160deg, var(--navy), #0b1f3f);
	color: #fff;
	border-radius: 24px;
	padding: 36px 32px;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.race-intro::before {
	content: "";
	position: absolute;
	right: -70px;
	top: -80px;
	width: 210px;
	height: 210px;
	border-radius: 50%;
	background: rgba(255, 217, 74, 0.14);
}

.race-intro::after {
	content: "";
	position: absolute;
	left: -50px;
	bottom: -80px;
	width: 170px;
	height: 170px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
}

.race-guard {
	display: inline-block;
	align-self: flex-start;
	background: var(--yellow);
	color: var(--navy);
	font-size: 12.5px;
	font-weight: 800;
	border-radius: 999px;
	padding: 6px 16px;
	position: relative;
	z-index: 1;
}

.race-intro h3 {
	font-size: 23px;
	line-height: 1.45;
	font-weight: 800;
	margin: 18px 0 12px;
	position: relative;
	z-index: 1;
}

.race-intro > p {
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.9;
	position: relative;
	z-index: 1;
}

.race-camp {
	list-style: none;
	margin-top: auto;
	padding-top: 22px;
	display: grid;
	gap: 10px;
	position: relative;
	z-index: 1;
}

.race-camp li {
	font-size: 13.5px;
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	padding: 11px 14px 11px 36px;
	position: relative;
	font-weight: 600;
}

.race-camp li::before {
	content: "✓";
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--yellow);
	font-weight: 800;
}

/* 右侧：年级竞赛时间线 */
.race-line {
	display: grid;
	gap: 14px;
	align-content: center;
}

.race-step {
	display: flex;
	gap: 18px;
	align-items: center;
	background: #fff;
	border: 1px solid #e9eff8;
	border-radius: 16px;
	padding: 16px 22px;
	box-shadow: 0 4px 16px rgba(18, 41, 75, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.race-step:hover {
	transform: translateX(6px);
	box-shadow: 0 12px 26px rgba(18, 41, 75, 0.12);
}

.race-step .grade {
	flex-shrink: 0;
	min-width: 128px;
	text-align: center;
	background: var(--sky);
	color: var(--blue);
	font-weight: 800;
	font-size: 13.5px;
	border-radius: 10px;
	padding: 11px 14px;
}

.race-step:nth-child(2n) .grade {
	background: rgba(255, 217, 74, 0.28);
	color: #8a6400;
}

.race-target b {
	display: block;
	font-size: 15px;
	color: var(--navy);
	font-weight: 800;
}

.race-target p {
	font-size: 13px;
	color: var(--gray);
	margin-top: 4px;
}

/* 下方：赛事荣誉卡 */
.race-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.race-card {
	background: #fff;
	border: 1px solid #e9eff8;
	border-top: 3px solid var(--blue);
	border-radius: 18px;
	padding: 22px 22px 20px;
	box-shadow: 0 4px 16px rgba(18, 41, 75, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.race-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 30px rgba(18, 41, 75, 0.12);
}

.race-tag {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 800;
	color: var(--blue);
	background: var(--sky);
	border-radius: 999px;
	padding: 3px 12px;
}

.race-tag.gold {
	background: var(--yellow);
	color: var(--navy);
}

.race-card h4 {
	font-size: 15.5px;
	color: var(--navy);
	font-weight: 800;
	margin: 12px 0 6px;
	line-height: 1.5;
}

.race-card p {
	font-size: 12.5px;
	color: var(--gray);
	line-height: 1.7;
}

@media (max-width: 992px) {
	.race-band { grid-template-columns: 1fr; }
	.race-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.race-intro { padding: 28px 22px; }
	.race-grid { grid-template-columns: 1fr; }
	.race-step { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px; }
	.race-step .grade { min-width: 0; align-self: flex-start; }
}
