/* ============================================================
   名宏教育 · 官网样式
   视觉参考：民盟海曙区基层委员会官网
   配色：米色纸张底 / 品牌深蓝 #2a2c88 / 亮蓝 #4a90e2 / 浅蓝 #9ac7e0 / 墨色 #2b2622
   字体：标题 Noto Serif SC（思源宋体），正文 Noto Sans SC
   ============================================================ */

:root {
  --primary: #2a2c88;
  --primary-dark: #1e2060;
  --primary-deep: #23256e;
  --accent: #4a90e2;
  --accent-light: #9ac7e0;
  --cream: #f7f2ea;
  --cream-2: #fbf8f2;
  --paper: #f5efe2;
  --ink: #2b2622;
  --ink-soft: #5c534a;
  --line: rgba(43, 38, 34, 0.12);
  --line-strong: rgba(43, 38, 34, 0.2);
  --blue: #2b5d8a;
  --shadow-sm: 0 1px 3px rgba(43, 38, 34, 0.08);
  --shadow-md: 0 8px 24px rgba(43, 38, 34, 0.10);
  --shadow-lg: 0 18px 48px rgba(43, 38, 34, 0.16);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --radius: 14px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(74, 144, 226, 0.06), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(158, 43, 37, 0.05), transparent 40%);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-wrap {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}
.brand .logo-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.brand .name { font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: 1px; }
.brand .sub { font-size: 11px; color: var(--ink-soft); letter-spacing: 3px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--primary); background: rgba(42, 44, 136, 0.06); }
.nav-links a.active { color: var(--primary); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
  font-family: var(--sans);
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--accent); color: #3a2c10; }
.btn-gold:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.nav-cta { margin-left: 10px; }

.menu-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(154, 199, 224, 0.25), transparent 45%),
    linear-gradient(135deg, var(--primary-deep), var(--primary) 60%, #3b3d9a);
  color: #fff;
  padding: 96px 0 104px;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-text { flex: 1 1 540px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 4px;
  color: var(--accent-light);
  border: 1px solid rgba(154, 199, 224, 0.5);
  padding: 6px 16px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent-light); }
.hero p.lead {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-seal {
  flex: 0 0 auto;
  width: 188px; height: 188px;
  border: 2px solid rgba(154, 199, 224, 0.55);
  border-radius: 18px;
  display: grid; place-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(2px);
}
.hero-seal .vtext {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: 10px;
  color: var(--accent-light);
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section.alt { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .eyebrow {
  font-size: 13px; letter-spacing: 5px; color: var(--accent);
  font-weight: 600; text-transform: uppercase;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--ink);
  margin: 12px 0 14px;
  font-weight: 700;
  letter-spacing: 1px;
}
.section-head .divider {
  width: 64px; height: 3px;
  margin: 0 auto 16px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
}
.section-head p { color: var(--ink-soft); font-size: 16px; }

/* ---------- 数据统计条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat .num {
  font-family: var(--serif);
  font-size: 42px; font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.stat .num .unit { font-size: 20px; margin-left: 2px; color: var(--accent); }
.stat .label { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(200,161,90,0.5); }
.card:hover::before { transform: scaleX(1); }

.card .ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(42, 44, 136, 0.08);
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 22px;
  line-height: 1;
  overflow: hidden;
}
.card h3 { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15px; }
.card .tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(74, 144, 226, 0.14);
  color: #1e3a5f;
  border: 1px solid rgba(74, 144, 226, 0.35);
}

/* 关于区块两栏 */
.about-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.about-text p { color: var(--ink-soft); margin-bottom: 16px; font-size: 16px; }
.about-text .hl { color: var(--primary); font-weight: 600; }
.about-aside {
  background: linear-gradient(160deg, var(--paper), #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.about-aside h4 { font-family: var(--serif); font-size: 18px; margin-bottom: 14px; color: var(--primary); }
.about-aside ul { list-style: none; }
.about-aside li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 15px;
}
.about-aside li:last-child { border-bottom: none; }
.about-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.ico svg, .pin svg, .fab-ico svg {
  width: 22px;
  height: 22px;
  display: block;
}
.fab-ico { display: inline-flex; align-items: center; justify-content: center; }

/* ---------- 师资 ---------- */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.teacher {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.25s;
}
.teacher:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.teacher .avatar {
  width: 112px; height: 112px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 44px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(42, 44, 136, 0.25);
}
/* 有照片老师：头像放大为通栏封面（与卡片同宽，完整显示、居顶） */
.teacher .tcover {
  margin: -24px -20px 16px;
  height: 240px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--cream);
}
.teacher .tcover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.4s; }
.teacher:hover .tcover img { transform: scale(1.04); }
.teacher .tname { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.teacher .trole { font-size: 13px; color: var(--accent); margin: 4px 0 10px; font-weight: 600; }
.teacher .tschool { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 10px; }
.teacher .tsum { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; text-align: left; }

/* ---------- 校区 ---------- */
.campus {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex; gap: 16px;
  transition: transform 0.2s, box-shadow 0.25s;
}
.campus:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.campus .pin {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(43, 93, 138, 0.1);
  color: var(--blue);
  display: grid; place-items: center;
  font-size: 20px;
}
.campus h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 4px; }
.campus .caddr { font-size: 14px; color: var(--ink-soft); }
.campus .ctag {
  display: inline-block; margin-top: 8px;
  font-size: 12px; color: var(--primary);
  border: 1px solid rgba(42, 44, 136, 0.3);
  padding: 2px 10px; border-radius: 999px;
}

/* ---------- 卡片封面（升学项目 / 特色产品） ---------- */
.card.has-cover { padding-top: 0; }
.card.has-cover .cover {
  height: 168px; margin: -28px -26px 18px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--cream);
}
.card.has-cover .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card.has-cover:hover .cover img { transform: scale(1.04); }
.card.has-cover .cover.grad {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center;
}
.card.has-cover .cover.grad .ico {
  width: 56px; height: 56px; margin: 0; border-radius: 14px;
  background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 26px;
  line-height: 1;
  overflow: hidden;
}

/* ---------- 图文画廊（成功案例 / 近期活动） ---------- */
.gallery { gap: 24px; }
.gallery-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.25s;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-item .gimg { height: 320px; overflow: hidden; background: var(--cream); }
.gallery-item .gimg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover .gimg img { transform: scale(1.04); }
.gallery-item .gcap { padding: 20px 24px 24px; }
.gallery-item .gcap h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 8px; }
.gallery-item .gcap p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- 可点击画廊卡片 & 详情页补充 ---------- */
a.gallery-item { display: block; color: inherit; text-decoration: none; }
a.gallery-item .gcap h3 { color: var(--ink); }
.gallery-item .more { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: 14px; }
.gallery-item:hover .more { text-decoration: underline; }
.gimg.grad-flat { display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.gimg.grad-flat .ico {
  width: 100px; height: 100px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 56px;
  line-height: 1;
  overflow: hidden;
}

/* ---------- 联系 ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .ci {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px dashed var(--line);
}
.contact-info .ci:last-child { border-bottom: none; }
.contact-info .ci .ico {
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(158,43,37,0.08); color: var(--primary);
  display: grid; place-items: center; font-size: 19px; flex: 0 0 auto;
  line-height: 1;
  overflow: hidden;
}
.contact-info .ci .k { font-size: 13px; color: var(--ink-soft); }
.contact-info .ci .v { font-size: 16px; font-weight: 600; }
.contact-info .ci .v.placeholder { color: var(--primary); opacity: 0.75; font-weight: 500; }

.form {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
}
.form .field { margin-bottom: 16px; }
.form label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--ink-soft); }
.form input, .form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--cream-2);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 44, 136, 0.12);
  background: #fff;
}
.form textarea { resize: vertical; min-height: 96px; }
.form .note { font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; }
.form-msg {
  display: none; margin-top: 14px; padding: 12px 16px;
  border-radius: 10px; background: rgba(43, 93, 138, 0.1);
  color: var(--blue); font-size: 14px;
}
.form-msg.show { display: block; }

/* ---------- 浮动预约按钮 ---------- */
.fab {
  position: fixed; right: 22px; bottom: 26px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 600; font-size: 15px; letter-spacing: 0.5px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}
.fab:hover { transform: translateY(-3px); box-shadow: 0 22px 56px rgba(43, 38, 34, 0.22); }
.fab .fab-ico { font-size: 17px; line-height: 1; }
@media (max-width: 760px) {
  .fab { right: 14px; bottom: 16px; padding: 12px 18px; font-size: 14px; }
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: linear-gradient(135deg, var(--primary-dark), #15163d);
  color: rgba(255, 255, 255, 0.82);
  padding: 56px 0 28px;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .fname { font-family: var(--serif); font-size: 22px; color: #fff; margin-bottom: 12px; }
.site-footer p { font-size: 14px; line-height: 1.9; }
.site-footer h5 { color: var(--accent-light); font-size: 15px; margin-bottom: 14px; letter-spacing: 1px; }
.site-footer ul { list-style: none; }
.site-footer ul li { padding: 5px 0; font-size: 14px; }
.site-footer ul li a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px; color: rgba(255, 255, 255, 0.6);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------- 滚动揭示动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .teacher-grid { grid-template-columns: repeat(3, 1fr); }
  .about-wrap { grid-template-columns: 1fr; gap: 32px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream-2); border-bottom: 1px solid var(--line);
    padding: 12px 24px; gap: 4px; box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 12px 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 72px; }
  .hero-seal { display: none; }
}
@media (max-width: 460px) {
  .teacher-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

/* ---------- 内页通栏标题 ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary) 70%, #3b3d9a);
  color: #fff; padding: 72px 0 56px; position: relative; overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner .eyebrow { color: var(--accent-light); letter-spacing: 4px; font-size: 13px; }
.page-banner h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); margin: 10px 0 8px; font-weight: 700; }
.page-banner p { color: rgba(255,255,255,0.88); max-width: 640px; }

/* ---------- 分类筛选 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink-soft); font-size: 14px; cursor: pointer;
  font-family: var(--sans); transition: 0.2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 案例引言 ---------- */
.gallery-item .quote {
  margin-top: 10px; padding: 10px 14px; border-left: 3px solid var(--accent);
  background: var(--cream-2); border-radius: 8px; color: var(--ink-soft); font-size: 14px;
}
.gallery-item .k { font-size: 12.5px; color: var(--accent); margin-bottom: 6px; font-weight: 600; }

/* ---------- 两栏标题块（内页通用） ---------- */
.lead-band { max-width: 760px; margin: 0 auto; }
.lead-band p { color: var(--ink-soft); font-size: 16px; }

/* ============================================================
   详情页（产品 / 活动 / 案例 共用）— 重新设计
   ============================================================ */
.detail-wrap {
  padding: 40px 0 8px;
  background:
    radial-gradient(900px 360px at 88% -8%, rgba(74,144,226,0.10), transparent 62%),
    linear-gradient(180deg, var(--cream-2), #fff 72%);
}
.crumb { margin-bottom: 22px; font-size: 14px; color: var(--ink-soft); }
.crumb a { color: var(--primary); font-weight: 600; }
.crumb a:hover { text-decoration: underline; }
.crumb .sep { margin: 0 8px; opacity: .5; }
.crumb .cur { color: var(--ink-soft); }

.detail-hero { display: grid; grid-template-columns: minmax(0, 500px) 1fr; gap: 52px; align-items: center; padding-bottom: 44px; }

.detail-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--cream);
  aspect-ratio: 4 / 5;
  max-height: 82vh;
  box-shadow: 0 24px 60px rgba(35, 37, 110, 0.18), 0 2px 6px rgba(43,38,34,0.06);
}
.detail-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.detail-media::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(43,38,34,0.06);
  border-radius: 20px; pointer-events: none;
}
.detail-media.grad {
  display: grid; place-items: center;
  aspect-ratio: 1 / 1;
  background: linear-gradient(140deg, var(--primary), var(--accent) 92%);
  box-shadow: 0 24px 60px rgba(35, 37, 110, 0.24);
}
.detail-media.grad .ico {
  width: 140px; height: 140px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: clamp(56px, 10vw, 88px);
  line-height: 1;
  overflow: hidden;
}

.detail-eyebrow { color: var(--accent); letter-spacing: 4px; font-size: 13px; font-weight: 700; }
.detail-info h1 {
  font-family: var(--serif); color: var(--ink);
  font-size: clamp(30px, 4.2vw, 46px); line-height: 1.24; margin: 12px 0 14px;
}
.detail-info .tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.detail-lead {
  position: relative; color: var(--ink-soft); font-size: 16.5px; line-height: 1.9;
  margin-bottom: 26px; padding-left: 16px; border-left: 3px solid var(--accent);
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost { background: #fff; color: var(--primary); border: 1px solid rgba(42,44,136,.22); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: #f3f5ff; color: var(--primary-dark); transform: translateY(-1px); }

/* 详情正文 */
.detail-body { padding: 58px 0 68px; }
.detail-head { text-align: center; margin-bottom: 36px; }
.detail-head .eyebrow { color: var(--accent); letter-spacing: 4px; font-size: 13px; font-weight: 700; }
.detail-head h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); margin-top: 10px; color: var(--ink); }
.detail-head .line { width: 54px; height: 3px; border-radius: 3px; margin: 16px auto 0; background: linear-gradient(90deg, var(--primary), var(--accent)); }

.detail-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-block {
  display: flex; gap: 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .25s, border-color .2s;
}
.detail-block:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(42,44,136,.28); }
.detail-block .db-num {
  flex: none; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 6px 14px rgba(42,44,136,.28);
}
.detail-block h3 { font-family: var(--serif); font-size: 17px; color: var(--primary); margin-bottom: 7px; }
.detail-block .db-body { min-width: 0; }
.detail-block .db-content { color: var(--ink-soft); font-size: 15px; line-height: 1.78; }
.detail-block .db-content p { margin: 0 0 8px; }
.detail-block .db-content p:last-child { margin-bottom: 0; }
.detail-block .db-content ul, .detail-block .db-content ol { margin: 6px 0 8px 20px; }
.detail-block .db-content li { margin-bottom: 4px; }
.detail-block .db-content strong, .detail-block .db-content b { color: var(--ink); }
.detail-block .db-content a { color: var(--accent); text-decoration: underline; }
.detail-block.db-full { grid-column: 1 / -1; }
/* 落单的末张卡片居中，避免右侧留空 */
.detail-blocks > .detail-block:last-child:nth-child(odd) {
  grid-column: 1 / -1; width: calc(50% - 10px); justify-self: center;
}
.detail-quote {
  grid-column: 1 / -1; margin: 4px 0 0; padding: 20px 26px;
  border-left: 3px solid var(--accent); background: var(--cream-2);
  border-radius: 12px; color: var(--ink-soft); font-style: italic; font-size: 15.5px; line-height: 1.8;
}

/* 富文本正文（后台单富文本框写入的 content） */
.rich-body { grid-column: 1 / -1; color: var(--ink-soft); font-size: 15.5px; line-height: 1.85; }
.rich-body h3 { font-family: var(--serif); font-size: 19px; color: var(--primary); margin: 26px 0 12px; }
.rich-body h3:first-child { margin-top: 4px; }
.rich-body p { margin: 0 0 14px; }
.rich-body ul, .rich-body ol { margin: 0 0 16px 24px; }
.rich-body li { margin: 7px 0; }
.rich-body img { max-width: 100%; border-radius: 10px; margin: 14px 0; box-shadow: var(--shadow-sm); }
.rich-body strong, .rich-body b { color: var(--ink); }
.rich-body a { color: var(--accent); text-decoration: underline; }
.rich-body blockquote { border-left: 3px solid var(--accent); background: var(--cream-2); border-radius: 12px; padding: 16px 22px; margin: 16px 0; font-style: italic; color: var(--ink-soft); }

/* 结构化详情增强（初中陪跑等：导语 / 阶段卡 / 问题-支持双栏 / 价值） */
.rich-body .cp-lead {
  font-size: 16.5px; line-height: 1.95; color: var(--ink);
  background: linear-gradient(135deg, rgba(42,44,136,.06), rgba(42,44,136,.02));
  border-left: 4px solid var(--accent);
  padding: 18px 22px; border-radius: 12px; margin: 0 0 26px;
}
.rich-body .cp-stage { margin: 28px 0; }
.rich-body .cp-stage-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rich-body .cp-badge {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 18px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 6px 14px rgba(42,44,136,.28);
}
.rich-body .cp-stage-title { font-family: var(--serif); font-size: 20px; color: var(--primary); font-weight: 700; }
.rich-body .cp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rich-body .cp-cols .cp-card:nth-last-child(1):nth-child(odd) { grid-column: 1 / -1; }
.rich-body .cp-card { border-radius: 14px; padding: 16px 18px; border: 1px solid var(--line); }
.rich-body .cp-problem { background: #fff5f4; border-color: #f6d9d5; }
.rich-body .cp-support { background: #f1f7f1; border-color: #d4e8d6; }
.rich-body .cp-cap {
  font-size: 13px; font-weight: 800; letter-spacing: 1px; margin-bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px;
}
.rich-body .cp-problem .cp-cap { color: #c0392b; }
.rich-body .cp-support .cp-cap { color: #1f8a4c; }
.rich-body .cp-card ul { margin: 0; padding-left: 0; list-style: none; }
.rich-body .cp-card li {
  position: relative; padding-left: 24px; margin: 9px 0;
  font-size: 14.5px; line-height: 1.7; color: var(--ink-soft);
}
.rich-body .cp-card li::before { position: absolute; left: 2px; top: 1px; font-weight: 700; }
.rich-body .cp-problem li::before { content: "✕"; color: #c0392b; }
.rich-body .cp-support li::before { content: "✓"; color: #1f8a4c; }
.rich-body .cp-value {
  margin: 30px 0 0; padding: 22px 24px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #3b3d9a); color: #fff;
}
.rich-body .cp-value-h { font-family: var(--serif); font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.rich-body .cp-value p { color: rgba(255,255,255,.92); margin: 0 0 10px; }
.rich-body .cp-value p:last-child { margin-bottom: 0; }
@media (max-width: 720px) { .rich-body .cp-cols { grid-template-columns: 1fr; } }

/* 底部行动条 */
.detail-cta-band { background: linear-gradient(135deg, var(--primary-deep), var(--primary) 70%, #3b3d9a); color: #fff; }
.detail-cta-band .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 40px; padding-bottom: 40px;
}
.detail-cta-band h3 { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px); margin-bottom: 6px; }
.detail-cta-band p { color: rgba(255,255,255,.86); font-size: 15px; }
.detail-cta-band .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.detail-cta-band .btn-primary:hover { background: var(--cream-2); }

@media (max-width: 880px) {
  .detail-wrap { padding-top: 30px; }
  .detail-hero { grid-template-columns: 1fr; gap: 26px; padding-bottom: 30px; }
  .detail-blocks { grid-template-columns: 1fr; }
  .detail-blocks > .detail-block:last-child:nth-child(odd) { width: 100%; }
  .detail-body { padding: 42px 0 50px; }
  .detail-cta-band .container { flex-direction: column; align-items: flex-start; }
}

/* ---------- 区块「查看全部」链接 ---------- */
.section-more { text-align: center; margin-top: 30px; }

/* ---------- 详情页图片放大（lightbox） ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 22, 40, 0.86);
  display: flex; align-items: center; justify-content: center;
  padding: 40px; cursor: zoom-out;
  animation: lb-fade .18s ease;
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  background: #fff;
}
.lightbox .lightbox-close {
  position: absolute; top: 22px; right: 26px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.16); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
}
.lightbox .lightbox-close:hover { background: rgba(255,255,255,.3); }
