/* =====================================================================
   模板一 · 学院蓝（tpl1）
   风格：白底 + 品牌蓝，圆角卡片，信息密度适中，适合综合类培训机构
   ===================================================================== */

body.tpl1 {
	--s-brand: #2563eb;
	--s-brand-2: #1d4ed8;
	--s-brand-soft: #eef4ff;
	--s-accent: #f59e0b;
	--s-ink: #0d1b2f;
	--s-ink-2: #3d4b61;
	--s-muted: #6b7a90;
	--s-line: #e6ebf3;
	--s-surface: #f5f8fd;
	--s-radius: 16px;
}

body.tpl1 .sec { scroll-margin-top: calc(var(--s-head-h) + 12px); }

/* ---------------- 首屏 ---------------- */
.t1-hero {
	position: relative; overflow: hidden;
	padding: 74px 0 118px;
	background:
		radial-gradient(900px 420px at 88% -8%, #dbeafe 0%, rgba(219, 234, 254, 0) 62%),
		radial-gradient(700px 360px at 4% 100%, #eff6ff 0%, rgba(239, 246, 255, 0) 60%),
		#fff;
}
.t1-hero::after {
	content: ""; position: absolute; inset: auto 0 0 0; height: 120px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
	pointer-events: none;
}
.t1-hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }
.t1-h1 { text-wrap: balance; margin-top: 18px; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.18; letter-spacing: -1.2px; }
.t1-h1 em { font-style: normal; color: var(--s-brand); position: relative; }
.t1-h1 em::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 8px;
	background: rgba(37, 99, 235, .14); border-radius: 6px; z-index: -1;
}
.t1-sub { margin-top: 20px; font-size: 16px; line-height: 1.85; color: var(--s-muted); max-width: 520px; }
.t1-cta { margin-top: 30px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.t1-trust { margin-top: 34px; display: flex; gap: 28px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--s-line); }
.t1-trust div b { display: block; font-size: 22px; color: var(--s-ink); letter-spacing: -.5px; }
.t1-trust div b em { font-style: normal; font-size: 13px; color: var(--s-brand); margin-left: 2px; }
.t1-trust div span { font-size: 12.5px; color: var(--s-muted); }

.t1-media { position: relative; }
.t1-media .shot {
	position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 5 / 4;
	background: linear-gradient(135deg, #dbeafe, #eff6ff);
	box-shadow: 0 40px 80px -50px rgba(30, 64, 175, .75);
}
.t1-media .shot img { width: 100%; height: 100%; object-fit: cover; }
.t1-media .shot .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #93b4e6; font-size: 13px; letter-spacing: 3px; }
.t1-media .dot {
	position: absolute; left: -18px; bottom: -18px; width: 96px; height: 96px; border-radius: 50%;
	background: radial-gradient(circle, #c7dbff 1px, transparent 1px) 0 0 / 10px 10px;
	opacity: .8; z-index: -1;
}
.t1-floatcard {
	position: absolute; left: -26px; bottom: 30px;
	display: flex; align-items: center; gap: 12px;
	padding: 14px 18px; border-radius: 16px; background: #fff;
	box-shadow: 0 24px 44px -26px rgba(15, 23, 42, .5);
}
.t1-floatcard .n {
	width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
	background: var(--s-brand-soft); color: var(--s-brand); font-weight: 700; font-size: 15px;
}
.t1-floatcard b { display: block; font-size: 14.5px; color: var(--s-ink); }
.t1-floatcard span { font-size: 12px; color: var(--s-muted); }
.t1-badge {
	position: absolute; right: 18px; top: 18px;
	padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
	background: rgba(255, 255, 255, .92); color: var(--s-brand);
	box-shadow: 0 10px 24px -16px rgba(15, 23, 42, .6);
}


.t1-h1.long { font-size: clamp(24px, 2.9vw, 38px); letter-spacing: -.8px; }

/* ---------------- 数据条 ---------------- */
.t1-stats { margin-top: -76px; position: relative; z-index: 3; }
.t1-stats .stat-row { border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(15, 23, 42, .5); border: 1px solid var(--s-line); }
.t1-stats .stat { text-align: center; }

/* ---------------- 课程 ---------------- */
.t1-courses .grid-3 { gap: 26px; }

/* ---------------- 优势 ---------------- */
.t1-why .feature { border: 0; background: #fff; box-shadow: 0 20px 44px -36px rgba(15, 23, 42, .55); }
.t1-why .feature .ico svg { width: 22px; height: 22px; }

/* ---------------- 环境 ---------------- */
.t1-env .gallery { grid-template-columns: repeat(4, 1fr); }

/* ---------------- 资讯 ---------------- */
.t1-news { display: grid; grid-template-columns: 1.02fr .98fr; gap: 44px; align-items: start; }
.t1-news-main { position: relative; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--s-line); }
.t1-news-main .pic { aspect-ratio: 16 / 9; overflow: hidden; background: var(--s-surface); }
.t1-news-main .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.t1-news-main:hover .pic img { transform: scale(1.03); }
.t1-news-main .txt { padding: 22px 24px 26px; }
.t1-news-main .txt h3 { font-size: 20px; line-height: 1.5; }
.t1-news-main .txt p { margin-top: 10px; font-size: 14px; color: var(--s-muted);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t1-news-main .txt .meta { margin-top: 14px; font-size: 12.5px; color: var(--s-muted); }

/* ---------------- 联系 / 留言 ---------------- */
.t1-contact { position: relative; overflow: hidden; background: linear-gradient(120deg, #0b1f3f, #123a72 58%, #1d4ed8); color: rgba(255, 255, 255, .78); }
.t1-contact::before {
	content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
	border-radius: 50%; background: radial-gradient(circle, rgba(96, 165, 250, .4), transparent 65%);
}
.t1-contact-in { position: relative; display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: center; }
.t1-contact h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.6px; }
.t1-contact .lead { margin-top: 16px; font-size: 15px; line-height: 1.9; max-width: 480px; }
.t1-contact-info { margin-top: 30px; display: grid; gap: 14px; }
.t1-contact-info div { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.t1-contact-info em { font-style: normal; font-size: 11.5px; letter-spacing: .6px; padding: 3px 8px; border-radius: 6px;
	background: rgba(255, 255, 255, .13); color: #cfe0ff; flex: none; }
.t1-contact-info b { color: #fff; font-weight: 500; }
.t1-formbox { background: #fff; border-radius: 20px; padding: 26px; box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .8); }
.t1-formbox h3 { font-size: 18px; }
.t1-formbox .sub { margin: 6px 0 18px; font-size: 13px; color: var(--s-muted); }

/* ---------------- 单页模式下的图文区 ---------------- */
.t1-about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.t1-about .txt h2 { font-size: clamp(23px, 2.8vw, 32px); letter-spacing: -.5px; margin-top: 14px; }
.t1-about .txt .prose { margin-top: 18px; font-size: 15px; }
.t1-about .pic { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--s-surface); }
.t1-about .pic img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- 内页 ---------------- */
body.tpl1 .page-head { background: linear-gradient(180deg, #f5f8fd, #fff); }
body.tpl1 .prose h2 { font-size: 19px; }
body.tpl1 .ccard { background: #fff; }

@media (max-width: 1080px) {
	.t1-hero-in { grid-template-columns: 1fr; gap: 40px; }
	.t1-media { max-width: 560px; }
	.t1-contact-in { grid-template-columns: 1fr; gap: 32px; }
	.t1-news { grid-template-columns: 1fr; }
	.t1-about { grid-template-columns: 1fr; }
	.cd-top { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.t1-hero { padding: 44px 0 78px; }
	.t1-floatcard { left: 8px; bottom: 8px; padding: 10px 14px; }
	.t1-floatcard .n { width: 34px; height: 34px; }
	.t1-trust { gap: 18px; }
	.t1-trust div b { font-size: 19px; }
	.t1-formbox { padding: 20px; }
	.cd-specs, .cd-highlights { grid-template-columns: 1fr; }
	.cd-block { padding: 20px; }
}
