/* =====================================================================
   模板三 · 活力橙（tpl3）
   风格：暖橙 + 紫蓝渐变、大圆角、强招生转化，适合 K12 / 技能速成 / 招生季
   ===================================================================== */

body.tpl3 {
	--s-brand: #ff5a1f;
	--s-brand-2: #f43f1e;
	--s-brand-soft: #fff1ea;
	--s-accent: #6366f1;
	--s-ink: #171412;
	--s-ink-2: #4a4038;
	--s-muted: #857a70;
	--s-line: #f0e6df;
	--s-bg: #fffdfb;
	--s-surface: #fff6f1;
	--s-radius: 20px;
	--s-radius-sm: 14px;
	--s-cta-bg: linear-gradient(120deg, #ff7a3d, #ff4d1c);
	--s-cta-ink: #fff;
}
body.tpl3 .btn:hover { box-shadow: 0 16px 30px -14px rgba(255, 90, 31, .65); }
body.tpl3 .sec { scroll-margin-top: calc(var(--s-head-h) + 20px); }

/* ---------------- 顶部：悬浮胶囊导航 ---------------- */
body.tpl3 .hd { background: transparent; border: 0; padding-top: 14px; }
body.tpl3 .hd-in {
	height: 66px; padding: 0 10px 0 16px; border-radius: 999px;
	background: rgba(255, 255, 255, .9);
	border: 1px solid rgba(255, 255, 255, .8);
	box-shadow: 0 20px 40px -30px rgba(23, 20, 18, .6);
	backdrop-filter: blur(14px);
}
body.tpl3 .hd-mark { border-radius: 14px; font-size: 18px; }
body.tpl3 .hd-name b { font-size: 16px; }
body.tpl3 .hd-sub { border-radius: 16px; }
body.tpl3 .hd-item > a { border-radius: 999px; font-size: 14.5px; }
body.tpl3 .hd-item.on > a { background: var(--s-brand-soft); }
body.tpl3 .hd-tel i { background: #fff1ea; color: var(--s-brand); }

@media (max-width: 1080px) {
	body.tpl3.nav-open .hd-nav { top: 80px; border-radius: 18px; left: 0; right: 0; }
}

/* ---------------- 首屏 ---------------- */
.t3-hero { padding: 26px 0 0; position: relative; }
.t3-hero-card {
	position: relative; overflow: hidden; border-radius: 34px;
	padding: 58px 56px; display: grid; grid-template-columns: 1.04fr .96fr; gap: 40px; align-items: center;
	background:
		radial-gradient(620px 420px at 92% 8%, #ffe3d3 0%, rgba(255, 227, 211, 0) 62%),
		radial-gradient(520px 380px at 72% 96%, #e7e6ff 0%, rgba(231, 230, 255, 0) 60%),
		linear-gradient(120deg, #fff7f2, #fdf3ff 60%, #f2f4ff);
}
.t3-blob { position: absolute; border-radius: 50%; filter: blur(6px); opacity: .5; }
.t3-blob.a { width: 190px; height: 190px; background: #ffd8c2; left: -60px; bottom: -70px; }
.t3-blob.b { width: 130px; height: 130px; background: #d9d7ff; right: 38%; top: -50px; }
.t3-hero-txt { position: relative; z-index: 2; }
.t3-pill {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
	background: #fff; border: 1px solid #ffe0d2; font-size: 12.5px; font-weight: 600; color: var(--s-brand);
	box-shadow: 0 10px 24px -18px rgba(255, 90, 31, .9);
}
.t3-pill i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.t3-h1 { margin-top: 20px; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.16; letter-spacing: -1.4px; }
.t3-h1 span {
	background: linear-gradient(120deg, #ff5a1f, #f43f1e 60%, #6366f1);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.t3-sub { margin-top: 20px; font-size: 16px; line-height: 1.9; color: #6b5f56; max-width: 480px; }
.t3-cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.t3-note { margin-top: 22px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--s-muted); }
.t3-note span { display: inline-flex; align-items: center; gap: 6px; }
.t3-note span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #ffe8dd;
	box-shadow: inset 0 0 0 2px #ff8a5c; }

.t3-hero-media { position: relative; z-index: 2; height: 420px; }
.t3-hero-media .p1, .t3-hero-media .p2 {
	position: absolute; border-radius: 22px; overflow: hidden; background: #fff;
	box-shadow: 0 40px 70px -40px rgba(23, 20, 18, .55); border: 6px solid #fff;
}
.t3-hero-media .p1 { width: 72%; height: 76%; right: 6%; top: 2%; transform: rotate(2.4deg); }
.t3-hero-media .p2 { width: 56%; height: 50%; left: 0; bottom: 0; transform: rotate(-3.4deg); }
.t3-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.t3-hero-media.single .p2 { display: none; }
.t3-hero-media.single .p1 { width: 88%; height: 100%; right: 6%; top: 0; transform: rotate(1.6deg); }
.t3-hero-media .ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	background: radial-gradient(circle at 32% 28%, #fff, transparent 58%), linear-gradient(135deg, #ffe9dd, #eef0ff); }
.t3-hero-media .ph b { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fff;
	font-size: 21px; color: var(--s-brand); box-shadow: 0 14px 28px -18px rgba(23, 20, 18, .4); }
.t3-hero-media .ph span { font-size: 11.5px; letter-spacing: 3px; color: #b6a89c; }
.t3-float {
	position: absolute; z-index: 3; padding: 10px 14px; border-radius: 14px; background: #fff;
	box-shadow: 0 20px 40px -26px rgba(23, 20, 18, .6); font-size: 12.5px; font-weight: 600; color: var(--s-ink);
	display: flex; align-items: center; gap: 8px;
}
.t3-float.a { left: -6px; top: 14%; }
.t3-float.b { right: 2%; bottom: 12%; color: var(--s-brand); }
.t3-float b { font-size: 15px; }
.t3-float .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }


.t3-h1.long { font-size: clamp(22px, 2.3vw, 32px); letter-spacing: -.4px; }

/* ---------------- 数据 ---------------- */
.t3-stats { padding: 34px 0 0; }
.t3-stats .stat-row { background: transparent; gap: 14px; }
.t3-stats .stat { background: #fff; border: 1px solid var(--s-line); border-radius: 18px; padding: 22px; text-align: center; }
.t3-stats .stat b { font-size: 30px; }
.t3-stats .stat b em { color: var(--s-brand); }

/* ---------------- 优势 ---------------- */
.t3-why .feature { border: 0; background: #fff; box-shadow: 0 20px 46px -38px rgba(23, 20, 18, .5); border-radius: 18px; }
.t3-why .feature .ico { background: #fff1ea; color: var(--s-brand); }

/* ---------------- 报名流程 ---------------- */
.t3-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.t3-step { position: relative; background: #fff; border: 1px solid var(--s-line); border-radius: 20px; padding: 28px 24px; }
.t3-step .no {
	width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
	background: linear-gradient(120deg, #ff7a3d, #ff4d1c); color: #fff; font-weight: 700; font-size: 15px;
	box-shadow: 0 12px 24px -14px rgba(255, 90, 31, .8);
}
.t3-step h4 { margin-top: 16px; font-size: 17px; }
.t3-step p { margin-top: 8px; font-size: 14px; color: var(--s-muted); }
.t3-step::after {
	content: ""; position: absolute; right: -14px; top: 48px; width: 28px; border-top: 2px dashed #ffd4c1;
}
.t3-step:last-child::after { display: none; }

/* ---------------- 课程 ---------------- */
.t3-courses .ccard { border-radius: 20px; border-color: var(--s-line); background: #fff; }
.t3-courses .ccard:hover { border-color: #ffd0bb; box-shadow: 0 26px 50px -34px rgba(255, 90, 31, .55); }
.t3-courses .ccard-tag { background: linear-gradient(120deg, #ff7a3d, #ff4d1c); border-radius: 8px; font-weight: 600; }
.t3-courses .ccard-media { aspect-ratio: 16 / 11; }
.t3-courses .price b { color: var(--s-brand); }

/* ---------------- 环境 ---------------- */
.t3-env .gallery a { border-radius: 18px; }

/* ---------------- 资讯 ---------------- */
.t3-news .grid-3 { gap: 22px; }
.t3-ncard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--s-line); border-radius: 20px; overflow: hidden; transition: .25s ease; }
.t3-ncard:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -32px rgba(23, 20, 18, .5); }
.t3-ncard .pic { aspect-ratio: 16 / 9; background: var(--s-surface); overflow: hidden; }
.t3-ncard .pic img { width: 100%; height: 100%; object-fit: cover; }
.t3-ncard .txt { padding: 18px 20px 22px; }
.t3-ncard .date { font-size: 12px; color: var(--s-brand); font-weight: 600; letter-spacing: .5px; }
.t3-ncard h3 { margin-top: 8px; font-size: 16.5px; line-height: 1.55;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t3-ncard p { margin-top: 8px; font-size: 13.5px; color: var(--s-muted); line-height: 1.7;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------- 联系 ---------------- */
.t3-contact { padding: 0 0 90px; }
.t3-contact-card {
	border-radius: 30px; overflow: hidden; padding: 52px 48px;
	display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: center;
	background:
		radial-gradient(600px 400px at 8% 0%, #ffe6d8 0%, rgba(255, 230, 216, 0) 60%),
		linear-gradient(125deg, #fff3ec, #f6f2ff 58%, #eef2ff);
	border: 1px solid #ffe4d6;
}
.t3-contact-card h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.8px; }
.t3-contact-card .lead { margin-top: 14px; font-size: 15px; line-height: 1.9; color: #6b5f56; max-width: 460px; }
.t3-contact-info { margin-top: 26px; display: grid; gap: 12px; }
.t3-contact-info div { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: #6b5f56; }
.t3-contact-info em { font-style: normal; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: #fff; color: var(--s-brand); flex: none; font-weight: 600; }
.t3-contact-info b { color: var(--s-ink); font-weight: 600; }
.t3-formbox { background: #fff; border-radius: 22px; padding: 26px; box-shadow: 0 34px 60px -44px rgba(23, 20, 18, .6); }
.t3-formbox h3 { font-size: 18px; }
.t3-formbox .sub { margin: 6px 0 18px; font-size: 12.5px; color: var(--s-muted); }
.t3-formbox .btn { width: 100%; }

/* ---------------- 内页 ---------------- */
body.tpl3 .page-head { background: linear-gradient(120deg, #fff5ef, #f6f3ff); border-bottom: 1px solid #ffe9dd; }
body.tpl3 .card-flat, body.tpl3 .side-card { border-radius: 20px; }
body.tpl3 .side-card { background: #fff7f2; border: 1px solid #ffe4d6; }
body.tpl3 .filter-bar a { border-radius: 999px; }
body.tpl3 .pager a, body.tpl3 .pager span { border-radius: 12px; }
body.tpl3 .cd-block { border-radius: 20px; }
body.tpl3 .cd-price b { color: #f43f1e; }
body.tpl3 .ft { background: #1c1815; }

@media (max-width: 1080px) {
	.t3-hero-card { grid-template-columns: 1fr; padding: 42px 32px; border-radius: 26px; }
	.t3-hero-media { height: 320px; }
	.t3-contact-card { grid-template-columns: 1fr; padding: 38px 28px; }
	.t3-steps { grid-template-columns: 1fr; }
	.t3-step::after { display: none; }
}
@media (max-width: 560px) {
	.t3-hero-card { padding: 32px 20px; border-radius: 22px; }
	.t3-hero-media { height: 240px; }
	.t3-float { display: none; }
	.t3-h1 { letter-spacing: -.6px; }
	.t3-formbox { padding: 20px; }
	.t3-contact-card { padding: 28px 20px; }
	body.tpl3 .hd-in { height: 58px; }
}
