/* =====================================================================
   模板六 · 奶油暖阳（tpl6）
   风格：奶油米底 + 陶土橘 + 鼠尾草绿，大圆角、柔和投影、圆图首屏
   适合：少儿、STEAM、美术、亲子类等需要「温度」的机构
   ===================================================================== */

body.tpl6 {
	--s-brand: #b96a3c;
	--s-brand-2: #9c5528;
	--s-brand-soft: #fbeee1;
	--s-accent: #7d9b80;
	--s-ink: #3a2e26;
	--s-ink-2: #5b4b40;
	--s-muted: #8b7969;
	--s-line: #ecdfd0;
	--s-bg: #fdfaf5;
	--s-surface: #f8f0e5;
	--s-dark: #2c231d;
	--s-radius: 22px;
	--s-radius-sm: 13px;
	--s-radius-lg: 30px;
	--s-shadow: 0 24px 48px -30px rgba(112, 78, 50, .45);
	--s-shadow-sm: 0 10px 24px -16px rgba(112, 78, 50, .4);
	--s-cta-bg: #b96a3c;
	--s-cta-ink: #fff;
}

body.tpl6 h1, body.tpl6 h2, body.tpl6 .ccard-title { letter-spacing: -.3px; }

/* ---------------- 首屏：圆形图 + 奶油色块 ---------------- */
.t6-hero {
	position: relative; overflow: hidden;
	padding: 76px 0 88px;
	background:
		radial-gradient(680px 340px at 88% 4%, #fbe6d3 0%, rgba(251, 230, 211, 0) 62%),
		radial-gradient(520px 300px at 2% 92%, #eef2e9 0%, rgba(238, 242, 233, 0) 60%),
		var(--s-bg);
}
.t6-hero-in {
	position: relative; z-index: 2;
	display: grid; grid-template-columns: 1.02fr .98fr; gap: 52px; align-items: center;
}

.t6-pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 7px 16px; border-radius: 999px;
	background: #fff; border: 1px solid var(--s-line);
	font-size: 12.5px; color: var(--s-brand-2);
	box-shadow: 0 6px 16px -12px rgba(112, 78, 50, .5);
}
.t6-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--s-accent); }

.t6-h1 {
	margin: 22px 0 0;
	font-size: clamp(30px, 4.2vw, 50px);
	line-height: 1.22; letter-spacing: -.8px;
	color: var(--s-ink);
	text-wrap: balance;
}
.t6-h1.long { font-size: clamp(27px, 3.5vw, 42px); }
.t6-h1 em { font-style: normal; color: var(--s-brand); }

.t6-sub { margin-top: 20px; max-width: 500px; font-size: 15.5px; line-height: 1.95; color: var(--s-muted); }

.t6-cta { margin-top: 32px; display: flex; gap: 13px; flex-wrap: wrap; }
.t6-cta .btn {
	border-radius: 999px; padding: 13px 28px; font-size: 14.5px;
	background: var(--s-brand); color: #fff; border: 0;
	box-shadow: 0 16px 32px -18px rgba(185, 106, 60, .9);
}
.t6-cta .btn:hover { background: var(--s-brand-2); transform: translateY(-1px); }
.t6-cta .btn.btn-ghost {
	background: #fff; color: var(--s-ink); border: 1px solid var(--s-line); box-shadow: none;
}
.t6-cta .btn.btn-ghost:hover { background: var(--s-surface); }

/* 首屏下方三个小标签 */
.t6-note { margin-top: 30px; display: flex; gap: 9px; flex-wrap: wrap; }
.t6-note span {
	padding: 6px 13px; border-radius: 999px;
	background: #fff; border: 1px solid var(--s-line);
	font-size: 12px; color: var(--s-muted);
}

/* 右侧：圆形主图 + 小图 */
.t6-media { position: relative; display: flex; justify-content: center; }
.t6-media .main {
	position: relative; width: 100%; max-width: 420px; aspect-ratio: 1 / 1;
	border-radius: 50%; overflow: hidden;
	background: linear-gradient(140deg, #fbe6d3, #eef2e9);
	box-shadow: 0 40px 70px -40px rgba(112, 78, 50, .55);
	border: 10px solid #fff;
}
.t6-media .main img { width: 100%; height: 100%; object-fit: cover; }
.t6-media .main .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #c9a98d; font-size: 12px; letter-spacing: 3px; }
.t6-media .sub {
	position: absolute; right: -6px; bottom: 6px; width: 128px; height: 128px;
	border-radius: 50%; overflow: hidden; border: 7px solid #fff;
	background: #fff; box-shadow: 0 22px 40px -26px rgba(112, 78, 50, .6);
}
.t6-media .sub img { width: 100%; height: 100%; object-fit: cover; }
.t6-media .float-card {
	position: absolute; left: -10px; top: 8px;
	padding: 11px 16px; border-radius: 16px;
	background: #fff; border: 1px solid var(--s-line);
	box-shadow: 0 18px 36px -24px rgba(112, 78, 50, .55);
}
.t6-media .float-card b { display: block; font-size: 20px; color: var(--s-brand); letter-spacing: -.4px; }
.t6-media .float-card span { font-size: 11.5px; color: var(--s-muted); }

/* ---------------- 通用组件微调 ---------------- */
body.tpl6 .sec { padding: 74px 0; }
body.tpl6 .sec--soft { background: var(--s-surface); }
body.tpl6 .sec-hd h2 { font-size: clamp(23px, 2.9vw, 33px); color: var(--s-ink); }
body.tpl6 .sec-hd p { color: var(--s-muted); }
body.tpl6 .eyebrow {
	font-size: 11.5px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--s-accent);
}
body.tpl6 .link-more { color: var(--s-brand); font-size: 13px; }
body.tpl6 .link-more:hover { color: var(--s-brand-2); }

body.tpl6 .ccard {
	border-radius: 22px; border: 1px solid var(--s-line); background: #fff;
	box-shadow: 0 14px 30px -24px rgba(112, 78, 50, .5);
	transition: all .2s ease;
}
body.tpl6 .ccard:hover { transform: translateY(-4px); box-shadow: 0 26px 48px -28px rgba(112, 78, 50, .6); }
body.tpl6 .ccard-media { border-radius: 18px 18px 0 0; }
body.tpl6 .ccard-title { color: var(--s-ink); font-size: 16.5px; }
body.tpl6 .ccard-desc { color: var(--s-muted); }
body.tpl6 .ccard-tag {
	background: rgba(253, 250, 245, .95); color: var(--s-brand-2);
	border-radius: 999px; font-size: 11px;
}
body.tpl6 .ccard-foot { border-top: 1px solid var(--s-line); }
body.tpl6 .ccard-go {
	padding: 4px 13px; border-radius: 999px; background: var(--s-brand-soft); color: var(--s-brand-2); font-size: 12px;
}
body.tpl6 .price b { color: var(--s-brand); }

body.tpl6 .stat-row {
	padding: 26px; border-radius: 26px; background: #fff;
	border: 1px solid var(--s-line); box-shadow: 0 18px 40px -32px rgba(112, 78, 50, .55);
}
body.tpl6 .stat b { color: var(--s-brand); font-size: 30px; }
body.tpl6 .stat b em { font-style: normal; font-size: 12.5px; color: var(--s-ink-2); margin-left: 2px; }
body.tpl6 .stat span { color: var(--s-muted); font-size: 12.5px; }

body.tpl6 .gallery { gap: 12px; }
body.tpl6 .gallery a { border-radius: 20px; }
body.tpl6 .gallery a:hover img { transform: scale(1.03); }

body.tpl6 .ncard {
	border-radius: 20px; background: #fff; border: 1px solid var(--s-line);
	box-shadow: 0 12px 26px -22px rgba(112, 78, 50, .5);
}
body.tpl6 .ncard:hover { box-shadow: 0 20px 38px -24px rgba(112, 78, 50, .55); }
body.tpl6 .ncard-title { color: var(--s-ink); }
body.tpl6 .ncard-date b { color: var(--s-brand); }
body.tpl6 .ncard-thumb { border-radius: 16px; }

body.tpl6 .empty-box { background: #fff; border: 1px dashed var(--s-line); border-radius: 22px; }
body.tpl6 .tag, body.tpl6 .tag-gold {
	background: var(--s-brand-soft); color: var(--s-brand-2); border: 1px solid #f4ddc9; border-radius: 999px;
}
body.tpl6 .tag-gold { background: #eef2e9; color: #4f6b52; border-color: #dfe8d8; }

/* 联系段 */
body.tpl6 .t6-contact { padding: 76px 0; background: var(--s-surface); }
body.tpl6 .t6-contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
body.tpl6 .t6-contact h2 { color: var(--s-ink); font-size: clamp(23px, 2.9vw, 33px); }
body.tpl6 .t6-contact .lead { color: var(--s-muted); }
body.tpl6 .t6-formbox {
	padding: 28px; border-radius: 26px; background: #fff;
	border: 1px solid var(--s-line); box-shadow: 0 26px 50px -34px rgba(112, 78, 50, .5);
}
body.tpl6 .t6-formbox h3 { color: var(--s-ink); font-size: 18px; }
body.tpl6 .t6-formbox .sub { color: var(--s-muted); font-size: 12.5px; margin-top: 4px; }
body.tpl6 .t6-contact-info div em { color: var(--s-muted); }
body.tpl6 .t6-contact-info div b { color: var(--s-ink); }
body.tpl6 .input, body.tpl6 .textarea { border-radius: 14px; background: #fffdfa; border-color: var(--s-line); }

/* 顶栏 */
body.tpl6 .hd { background: rgba(253, 250, 245, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--s-line); }
body.tpl6 .hd-name b { color: var(--s-ink); }
body.tpl6 .hd-item a { color: var(--s-ink-2); border-radius: 999px; }
body.tpl6 .hd-item a:hover, body.tpl6 .hd-item.is-active a { background: var(--s-brand-soft); color: var(--s-brand-2); }
body.tpl6 .hd-tel { border-radius: 999px; background: var(--s-brand); color: #fff; border: 0; }
body.tpl6 .hd-sub { border-radius: 16px; border-color: var(--s-line); box-shadow: 0 20px 40px -28px rgba(112,78,50,.6); }

body.tpl6 .float a, body.tpl6 .float button { border-radius: 999px; background: #fff; border-color: var(--s-line); color: var(--s-brand); }

@media (max-width: 900px) {
	.t6-hero { padding: 56px 0 60px; }
	.t6-hero-in { grid-template-columns: 1fr; gap: 40px; }
	.t6-media .main { max-width: 300px; }
	.t6-media .sub { width: 96px; height: 96px; }
	body.tpl6 .t6-contact-in { grid-template-columns: 1fr; gap: 28px; }
}

/* 联系段两栏补全 */
body.tpl6 .t6-contact-info { margin-top: 26px; display: grid; gap: 12px; }
body.tpl6 .t6-contact-info div { display: flex; gap: 14px; font-size: 13.5px; }
body.tpl6 .t6-contact-info div em { font-style: normal; min-width: 38px; font-size: 12px; letter-spacing: 1.4px; }
body.tpl6 .t6-contact .btn { border-radius: 999px; }

/* =====================================================================
   版块：数据 / 报名流程 / 课程 / 环境 / 资讯
   ===================================================================== */

/* 数据条：奶油色块 */
body.tpl6 .t6-stats { padding: 8px 0 0; }
body.tpl6 .t6-stats .stat-row {
	gap: 0; padding: 30px 0; overflow: hidden; border-radius: var(--s-radius-lg);
	background: #fff; border: 1px solid var(--s-line);
	box-shadow: var(--s-shadow-sm);
}
body.tpl6 .t6-stats .stat { text-align: center; border-left: 1px solid var(--s-line); }
body.tpl6 .t6-stats .stat:first-child { border-left: 0; }
body.tpl6 .t6-stats .stat b { font-size: 32px; color: var(--s-brand); letter-spacing: -.6px; }
body.tpl6 .t6-stats .stat b em { font-size: 12px; color: var(--s-accent); margin-left: 3px; }
body.tpl6 .t6-stats .stat span { font-size: 12px; color: var(--s-muted); }

/* 报名流程：三张圆角卡 + 步骤圆点 */
body.tpl6 .t6-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
body.tpl6 .t6-step {
	position: relative; padding: 28px 24px 26px;
	background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-radius);
	box-shadow: var(--s-shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
body.tpl6 .t6-step:hover { transform: translateY(-3px); box-shadow: var(--s-shadow); }
body.tpl6 .t6-step .no {
	width: 38px; height: 38px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--s-brand-soft); color: var(--s-brand);
	font-size: 15px; font-weight: 600;
}
body.tpl6 .t6-step:nth-child(2) .no { background: #eef3ea; color: #6e8b70; }
body.tpl6 .t6-step:nth-child(3) .no { background: #fdf1e3; color: #c08a4a; }
body.tpl6 .t6-step h4 { margin-top: 16px; font-size: 16.5px; color: var(--s-ink); }
body.tpl6 .t6-step p { margin-top: 8px; font-size: 13px; line-height: 1.85; color: var(--s-muted); }
body.tpl6 .t6-step::after {
	content: ""; position: absolute; right: -13px; top: 44px;
	width: 6px; height: 6px; border-radius: 50%; background: #e2d3c1;
}
body.tpl6 .t6-step:last-child::after { display: none; }

/* 课程 */
body.tpl6 .t6-courses .grid-3 { gap: 24px; }
body.tpl6 .t6-courses .ccard { border-radius: var(--s-radius); }
body.tpl6 .t6-courses .ccard-media { border-radius: var(--s-radius) var(--s-radius) 0 0; }
body.tpl6 .t6-courses .ccard-body { padding: 18px 20px 14px; }
body.tpl6 .t6-courses .ccard-desc {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.8;
}
body.tpl6 .t6-courses .ccard-tag { background: var(--s-brand); color: #fff; border-radius: 999px; }
body.tpl6 .t6-courses .price b { color: var(--s-brand); font-size: 19px; }

/* 环境：圆角四格 */
body.tpl6 .t6-env .gallery {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
body.tpl6 .t6-env .gallery a {
	aspect-ratio: 1 / 1.06; border-radius: var(--s-radius); overflow: hidden; background: var(--s-surface);
}
body.tpl6 .t6-env .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
body.tpl6 .t6-env .gallery a:hover img { transform: scale(1.04); }

/* 资讯：带图三列 */
body.tpl6 .t6-news .grid-3 { gap: 22px; }
body.tpl6 .t6-ncard {
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-radius);
	box-shadow: var(--s-shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
body.tpl6 .t6-ncard:hover { transform: translateY(-3px); box-shadow: var(--s-shadow); }
body.tpl6 .t6-ncard .pic { aspect-ratio: 16 / 10; overflow: hidden; background: var(--s-surface); }
body.tpl6 .t6-ncard .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
body.tpl6 .t6-ncard:hover .pic img { transform: scale(1.04); }
body.tpl6 .t6-ncard .txt { padding: 16px 20px 20px; }
body.tpl6 .t6-ncard .date { font-size: 11.5px; letter-spacing: .6px; color: var(--s-accent); }
body.tpl6 .t6-ncard h3 {
	margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--s-ink);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body.tpl6 .t6-ncard p {
	margin-top: 8px; font-size: 12.5px; line-height: 1.8; color: var(--s-muted);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 1080px) {
	body.tpl6 .t6-steps { grid-template-columns: 1fr; }
	body.tpl6 .t6-step::after { display: none; }
	body.tpl6 .t6-env .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* 模板模式下的联系卡（index.html 用 .t6-contact-card 包两层） */
body.tpl6 .t6-contact-card {
	display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
	padding: 44px; border-radius: 32px; background: #fff;
	border: 1px solid var(--s-line); box-shadow: 0 30px 60px -42px rgba(112, 78, 50, .55);
}
body.tpl6 .t6-contact-card h2 { color: var(--s-ink); }
body.tpl6 .t6-contact-card .eyebrow { color: var(--s-accent); }
body.tpl6 .t6-contact-card .t6-formbox { padding: 0; border: 0; box-shadow: none; background: transparent; }
@media (max-width: 1080px) {
	body.tpl6 .t6-contact-card { grid-template-columns: 1fr; gap: 28px; padding: 26px; }
}
