/* ============================================================
   俊荷教育科技 · Hugo 主题样式
   品牌色：深蓝 #0b1f3a / 金色 #d4af37 / 暖白 #FAF7F2
   ============================================================ */
:root {
	--brand: #0b1f3a;
	--brand-2: #132c52;
	--gold: #d4af37;
	--gold-soft: #e8d48a;
	--paper: #FAF7F2;
	--ink: #1A1815;
	--muted: #6b6f78;
	--line: #E4DED3;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
	background: var(--paper);
	color: var(--ink);
	font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}

/* ============ 建设中模式 ============ */
.topline {
	position: fixed; top: 0; left: 0; right: 0; height: 4px;
	background: var(--gold);
	z-index: 10;
}
.wrap {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 180px;
	grid-template-rows: auto 1fr auto;
	grid-template-areas: "head side" "main side" "foot side";
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 4vw;
	width: 100%;
	gap: 0 3vw;
}
.mh-header {
	grid-area: head;
	padding-top: 7vh;
	display: flex;
	align-items: center;
	gap: 14px;
}
.mh-logo { height: 40px; width: auto; }
.mh-brand {
	font-size: 17px; font-weight: 600; letter-spacing: 1px;
	color: var(--brand);
}
.mh-main {
	grid-area: main;
	align-self: center;
	padding: 6vh 0;
}
.mh-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 12px; letter-spacing: 3px; color: var(--gold);
	text-transform: uppercase; margin-bottom: 3.2vh;
	font-weight: 600;
}
.mh-eyebrow::before {
	content: ""; width: 34px; height: 1px; background: var(--gold);
}
.mh-title {
	font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
	font-size: clamp(44px, 7.5vw, 96px);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: 2px;
	color: var(--brand);
	max-width: 12em;
}
.mh-title .mh-accent { color: var(--gold); }
.mh-desc {
	margin-top: 3.6vh;
	font-size: clamp(14px, 1.6vw, 17px);
	color: var(--muted);
	line-height: 1.9;
	max-width: 34em;
}
.mh-status {
	display: inline-block;
	margin-top: 4.5vh;
	padding: 10px 22px;
	border: 1px solid var(--brand);
	border-radius: 999px;
	font-size: 13px; letter-spacing: 2px;
	background: transparent;
	color: var(--brand);
}
.mh-side {
	grid-area: side;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 7vh 0 4vh;
	border-left: 1px solid var(--line);
}
.mh-vert {
	writing-mode: vertical-rl;
	font-size: 11px; letter-spacing: 6px;
	color: var(--muted);
	text-transform: uppercase;
}
.mh-ring { width: 84px; height: 84px; animation: mhspin 14s linear infinite; }
@keyframes mhspin { to { transform: rotate(360deg); } }
.mh-footer {
	grid-area: foot;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 3vh 0 4vh;
	border-top: 1px solid var(--line);
	font-size: 12px; color: var(--muted); letter-spacing: 1px;
}
@media (max-width: 820px) {
	.wrap { grid-template-columns: 1fr; grid-template-areas: "head" "main" "foot"; }
	.mh-side { display: none; }
}

/* ============ 正常模式（备案通过后） ============ */
.site-header {
	background: var(--brand);
	color: #fff;
}
.header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px 4vw;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 38px; width: auto; }
.brand-name { color: #fff; font-size: 18px; font-weight: 600; letter-spacing: 1px; }
.site-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.nav-link {
	color: rgba(255,255,255,0.85);
	text-decoration: none;
	font-size: 15px;
	letter-spacing: 1px;
	transition: color 0.2s;
}
.nav-link:hover { color: var(--gold-soft); }
.page-main { flex: 1; }
.page-content {
	max-width: 900px;
	margin: 0 auto;
	padding: 6vh 4vw 8vh;
	line-height: 1.9;
	font-size: 16px;
}
.page-content h1, .page-content h2, .page-content h3 { color: var(--brand); margin: 1.2em 0 0.6em; }
.page-content h1 { font-size: 34px; }
.page-content h2 { font-size: 28px; }
.page-content p { margin-bottom: 1em; }
.page-content img { max-width: 100%; height: auto; border-radius: 6px; }
.page-content a { color: var(--gold); text-decoration: underline; }
.page-title {
	font-family: "Noto Serif SC", serif;
	border-bottom: 3px solid var(--gold);
	padding-bottom: 0.5em;
	margin-bottom: 1.5em;
}
.home-content { max-width: 1200px; }
.page-list-item { margin-bottom: 2em; padding-bottom: 1em; border-bottom: 1px solid var(--line); }
.page-list-item h2 a { color: var(--brand); text-decoration: none; }
.site-footer {
	background: var(--brand);
	color: rgba(255,255,255,0.7);
	font-size: 13px;
}
.footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 22px 4vw;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.footer-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.footer-credit, .footer-addr {
	color: rgba(255,255,255,0.55);
	font-size: 12px;
}
.footer-icp a {
	color: rgba(255,255,255,0.6);
	text-decoration: none;
}
.footer-icp a:hover { color: var(--gold-soft); }
.footer-email a {
	color: rgba(255,255,255,0.6);
	text-decoration: none;
}
.footer-email a:hover { color: var(--gold-soft); }

/* ============ 迁移内容（WordPress Gutenberg 区块）兼容样式 ============ */
.has-text-align-center { text-align: center; }
.has-text-align-left { text-align: left; }
.has-text-align-right { text-align: right; }

/* 封面/英雄区 */
.wp-block-cover {
	position: relative;
	overflow: hidden;
}
.wp-block-cover__background {
	position: absolute; inset: 0;
	z-index: 0;
}
.wp-block-cover__inner-container {
	position: relative;
	z-index: 1;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 5vw;
}
.has-background-dim::after {
	content: ""; position: absolute; inset: 0;
	background: rgba(0,0,0,0.3);
	z-index: 0;
}

/* 列布局：桌面多列，移动端单列 */
.wp-block-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
}
.wp-block-column { min-width: 0; }
@media (max-width: 820px) {
	.wp-block-columns { grid-template-columns: 1fr; }
}

/* 按钮 */
.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}
.wp-block-button__link {
	display: inline-block;
	padding: 14px 34px;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.2s, box-shadow 0.2s;
}
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11,31,58,0.25); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent !important; }

/* 服务卡片图标 */
.service-icon svg {
	width: 40px; height: 40px;
	display: block;
}
.wp-block-group {
	transition: transform 0.25s ease;
}
.wp-block-group:hover { transform: translateY(-4px); }

/* 活动案例卡片 */
.cases-intro { margin-bottom: 2em; }
.cases-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}
.case-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(11,31,58,0.12); }
.case-img-link { display: block; }
.case-img {
	width: 100%;
	aspect-ratio: 3 / 4;          /* 视频号封面比例，object-fit 防拉伸 */
	object-fit: cover;
	object-position: center top;
	display: block;
}
.case-body { padding: 18px 20px 22px; }
.case-title { font-size: 17px; line-height: 1.5; margin-bottom: 8px; }
.case-title a { color: var(--brand); text-decoration: none; }
.case-title a:hover { color: var(--gold); }
.case-excerpt {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.7;
	margin-bottom: 10px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.case-date { color: var(--muted); font-size: 12px; }
