/* 家长频道 · 电脑端
 * 与童年号首页同一套视觉：浅灰底、白卡片、橙色主色，卡片圆角 14。
 * 页面骨架由 module.js 注入，数据运行时从站内接口取。
 */

.jz {
  --jz-bg: #f2f3f7;
  --jz-card: #ffffff;
  --jz-text: #1f2329;
  --jz-sub: #868d99;
  --jz-line: #edeff3;
  --jz-main: #ff6a00;
  --jz-btn: #e85d04;
  --jz-btn-h: #c2410c;
  --jz-main-soft: #fff2e8;
  --jz-purple: #7c5cff;
  --jz-purple-soft: #f0edff;
  --jz-shadow: 0 2px 10px rgba(24, 32, 46, .05);
  background: var(--jz-bg);
  color: var(--jz-text);
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  padding-bottom: 48px;
  min-height: 60vh;
}

.jz * { box-sizing: border-box; }
.jz a { color: inherit; text-decoration: none; }
.jz img { max-width: 100%; }

.jz-wrap {
  width: 1200px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
}

/* ---------- 顶部欢迎区 ---------- */

.jz-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: 20px;
  align-items: stretch;
  padding: 24px 0 4px;
}

.jz-hero-l {
  background: var(--jz-card);
  border-radius: 16px;
  padding: 28px 30px;
  box-shadow: var(--jz-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jz-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--jz-main-soft);
  color: var(--jz-main);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  width: max-content;
}

.jz-h1 {
  margin: 14px 0 8px;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.3px;
}

.jz-sub {
  margin: 0;
  color: var(--jz-sub);
  font-size: 14px;
  max-width: 560px;
}

.jz-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.jz-quick a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: #f6f7fa;
  color: #3d434d;
  font-size: 13px;
  font-weight: 600;
  transition: .18s;
}

.jz-quick a:hover { background: #eef1f6; transform: translateY(-1px); }
.jz-quick a.on { background: var(--jz-btn); color: #fff; font-weight: 700; }
.jz-quick i { font-size: 16px; }

/* 广告位：主横幅 */
.jz-ad-main {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(120deg, #ff8a3d, #ff5f2e);
  box-shadow: 0 6px 20px rgba(255, 106, 0, .18);
  min-height: 210px;
}

.jz-ad-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jz-ad-main.jz-ad-img { min-height: 0; }
.jz-ad-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 11px;
  line-height: 20px;
}

.jz-ad-main.jz-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  color: #fff;
}
.jz-ad-main.jz-placeholder b { font-size: 20px; }
.jz-ad-main.jz-placeholder p { margin: 6px 0 0; opacity: .9; font-size: 13px; }

/* ---------- 主体两栏 ---------- */

.jz-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.jz-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.jz-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.jz-panel {
  background: var(--jz-card);
  border-radius: 14px;
  box-shadow: var(--jz-shadow);
  padding: 18px 20px 20px;
}

.jz-panel-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.jz-panel-h b {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.2px;
}

.jz-panel-h em {
  font-style: normal;
  font-size: 12px;
  color: var(--jz-sub);
  font-weight: 500;
}

.jz-panel-h .jz-more {
  margin-left: auto;
  font-size: 12px;
  color: var(--jz-sub);
}
.jz-panel-h .jz-more:hover { color: var(--jz-main); }

/* 年级导航 */
.jz-grades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 6px;
}

.jz-grade {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  border-radius: 12px;
  background: #f7f8fb;
  transition: .18s;
}

.jz-grade:hover { background: var(--jz-main-soft); transform: translateY(-2px); }
.jz-grade b { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.jz-grade span { font-size: 11px; color: var(--jz-sub); }

/* 童年智库 · 分龄知识库导航 */
.jz-zk { display: block; }
.jz-zk-g {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px dashed var(--jz-line);
}
.jz-zk-g:first-child { border-top: 0; padding-top: 0; }
.jz-zk-g:last-child { padding-bottom: 0; }
.jz-zk-t {
  flex: 0 0 80px;
  padding-top: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--jz-sub);
  letter-spacing: .2px;
}
.jz-zk-l {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.jz-zk-l a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 9px;
  background: #f7f8fb;
  font-size: 12.5px;
  color: #2b3038;
  white-space: nowrap;
  transition: .16s;
}
.jz-zk-l a:hover {
  background: var(--jz-main-soft);
  color: var(--jz-main);
  transform: translateY(-1px);
}

/* 板块卡 */
.jz-boards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.jz-board {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f8fb;
  transition: .18s;
  border: 1px solid transparent;
}

.jz-board:hover { transform: translateY(-2px); border-color: #ffd9bf; box-shadow: 0 6px 16px rgba(255, 106, 0, .1); }

.jz-board-cover {
  position: relative;
  height: 96px;
  background: #e9edf4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.jz-board-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jz-board-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .45));
}
.jz-board-cover span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

.jz-board-cover.jz-tone { align-items: center; justify-content: center; }
.jz-board-cover.jz-tone::after { display: none; }
.jz-board-cover.jz-tone span { color: #4a4f58; text-shadow: none; font-weight: 700; font-size: 13px; }
.jz-board-ico {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 26px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.t1 { background: linear-gradient(135deg, #fff4ec, #ffe4d3); }
.t2 { background: linear-gradient(135deg, #f2f4ff, #e2e7ff); }
.t3 { background: linear-gradient(135deg, #eefaf4, #d9f4e8); }
.t4 { background: linear-gradient(135deg, #fff2f6, #ffe2ec); }
.t5 { background: linear-gradient(135deg, #f6f1ff, #eadfff); }
.t6 { background: linear-gradient(135deg, #fffaef, #ffefcd); }
.t1 .jz-board-ico { background: linear-gradient(135deg, #ff9a44, #ff6a00); }
.t2 .jz-board-ico { background: linear-gradient(135deg, #7c9cff, #5b6bff); }
.t3 .jz-board-ico { background: linear-gradient(135deg, #4fd1a5, #16a97c); }
.t4 .jz-board-ico { background: linear-gradient(135deg, #ff9ec7, #f06292); }
.t5 .jz-board-ico { background: linear-gradient(135deg, #b98cff, #7c5cff); }
.t6 .jz-board-ico { background: linear-gradient(135deg, #ffc861, #f5a623); }

.jz-board-body { padding: 10px 12px 12px; }
.jz-board-body b { display: block; font-size: 13px; font-weight: 700; }
.jz-board-body .m { font-size: 11px; color: var(--jz-sub); margin-top: 2px; }
.jz-board-body p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 内容流：左文右图 */
.jz-feed { display: flex; flex-direction: column; }

.jz-post {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 2px;
  border-bottom: 1px solid var(--jz-line);
  transition: .15s;
}
.jz-post:last-child { border-bottom: 0; padding-bottom: 2px; }
.jz-post:hover .ti { color: var(--jz-main); }

.jz-post .t { flex: 1; min-width: 0; }
.jz-post .ti {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  color: #23272e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: .15s;
}
.jz-post .in {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--jz-sub);
}
.jz-post .jz-src {
  color: var(--jz-main);
  background: var(--jz-main-soft);
  padding: 1px 7px;
  border-radius: 5px;
  font-weight: 600;
}
.jz-post .jz-thumb {
  width: 132px;
  height: 86px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef0f4;
  flex: none;
}
.jz-post .jz-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.jz-feed.jz-left .jz-post { flex-direction: row-reverse; }
.jz-feed.jz-text .jz-thumb { display: none; }

/* 双栏内容 */
.jz-feed-2col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; }
.jz-feed-2col .jz-post { border-bottom: 1px solid var(--jz-line); }
.jz-feed-2col .jz-post:nth-last-child(-n+2) { border-bottom: 0; }
.jz-feed-2col .jz-thumb { width: 88px; height: 62px; }

/* ---------- 侧栏 ---------- */

.jz-ad-side {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #7c5cff, #5b6bff);
  min-height: 150px;
  box-shadow: 0 6px 18px rgba(92, 92, 255, .16);
}
.jz-ad-side img { width: 100%; height: 172px; object-fit: cover; object-position: center 42%; display: block; }
.jz-ad-side.jz-ad-img { min-height: 0; }
.jz-ad-side.jz-placeholder {
  padding: 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.jz-ad-side.jz-placeholder b { font-size: 16px; }
.jz-ad-side.jz-placeholder p { margin: 6px 0 0; font-size: 12px; opacity: .9; }

.jz-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.jz-tag {
  height: 30px;
  line-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f4f6fa;
  color: #4b5563;
  font-size: 12px;
  transition: .16s;
}
.jz-tag:hover { background: var(--jz-main); color: #fff; }
.jz-tag.hot { background: #fff4ec; color: #d95a00; font-weight: 600; }

.jz-lessons { display: flex; flex-direction: column; gap: 12px; }
.jz-lesson {
  display: flex;
  gap: 10px;
  align-items: center;
}
.jz-lesson .n {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #f4f6fa;
  color: #9aa1ac;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.jz-lesson:nth-child(1) .n { background: #fff2e8; color: #e85d04; }
.jz-lesson:nth-child(2) .n { background: #eef1ff; color: #5563d8; }
.jz-lesson:nth-child(3) .n { background: #f2fbf4; color: #2f9e56; }
.jz-lesson .x { min-width: 0; }
.jz-lesson .x b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jz-lesson .x span { font-size: 11px; color: var(--jz-sub); }
.jz-lesson .x b:hover { color: var(--jz-main); }

.jz-cta {
  background: linear-gradient(135deg, #fff7f1, #ffece0);
  border: 1px solid #ffe0cc;
  box-shadow: none;
}
.jz-cta b { font-size: 15px; display: block; }
.jz-cta p { margin: 6px 0 12px; font-size: 12px; color: #8a6a55; }
.jz-cta a.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: 9px;
  background: var(--jz-btn);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.jz-cta a.btn:hover { background: var(--jz-btn-h); }

/* 合并信息流（家长都在聊 + 校园新鲜事）
 * 纯标题、不带时间：这一屏是给孩子家长「扫一眼有什么」，不是阅读列表。
 * 标题 18px（比 21px 小一号）、常规字重——一块屏里 10 条，太粗太重反而不好扫。
 * 每条前面一个圆点、标题后面挂灰色话题名，家长一眼知道这条归哪一类。
 * 板块标题「家长关注」比其它面板的 16px 大一号（18px）。 */
.jz-flow { display: flex; flex-direction: column; }
[data-block="flow"] .jz-panel-h b { font-size: 18px; }
.jz-flow-i {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 13px 2px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--jz-text);
  text-decoration: none;
  border-bottom: 1px solid var(--jz-line);
  transition: color .15s ease;
}
.jz-flow-dot {
  flex: 0 0 6px; width: 6px; height: 6px; margin-top: 10px;
  border-radius: 50%; background: #f0955c;
}
.jz-flow-t { flex: 1; min-width: 0; }
.jz-flow-g {
  display: inline-block; margin-left: 9px;
  font-style: normal; font-size: 12.5px; font-weight: 400;
  color: var(--jz-sub); vertical-align: 2px;
}
.jz-flow-i:first-child { padding-top: 2px; }
.jz-flow-i:last-child { border-bottom: 0; }
.jz-flow-i:hover { color: var(--jz-main); }
.jz-flow-i:hover .jz-flow-dot { background: var(--jz-main); }
.jz-flow-foot { padding-top: 16px; text-align: center; }
.jz-flow-more {
  min-width: 190px; height: 44px; padding: 0 26px;
  border: 0; border-radius: 12px; cursor: pointer;
  background: var(--jz-main-soft); color: var(--jz-btn);
  font-size: 14px; font-weight: 700; font-family: inherit;
}
.jz-flow-more:hover:not(:disabled) { background: #ffe4d1; }
.jz-flow-more:disabled { background: #f4f5f8; color: var(--jz-sub); cursor: default; }

.jz-empty {
  padding: 22px 0;
  text-align: center;
  color: var(--jz-sub);
  font-size: 13px;
}

/* 骨架屏 */
.jz-skel { background: linear-gradient(90deg, #f2f4f8 25%, #f8f9fc 37%, #f2f4f8 63%); background-size: 400% 100%; animation: jzsk 1.4s ease infinite; border-radius: 8px; }
@keyframes jzsk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.jz-skel-line { height: 14px; margin: 10px 0; }

/* ---------- 窄屏 ---------- */

@media (max-width: 1100px) {
  .jz-hero { grid-template-columns: 1fr; }
  .jz-grid { grid-template-columns: 1fr; }
  .jz-side { display: grid; grid-template-columns: 1fr 1fr; }
  .jz-boards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jz-grades { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .jz-zk-g { flex-direction: column; gap: 8px; padding: 10px 0; }
  .jz-zk-t { flex: none; padding-top: 0; }
  .jz-zk-l { gap: 6px; }
  .jz-zk-l a { padding: 6px 10px; font-size: 12px; }
  .jz-wrap { max-width: calc(100% - 24px); }
  .jz-hero { padding-top: 14px; gap: 14px; }
  .jz-hero-l { padding: 20px; }
  .jz-h1 { font-size: 22px; }
  .jz-ad-main { min-height: 150px; }
  .jz-side { grid-template-columns: 1fr; }
  .jz-boards { grid-template-columns: 1fr 1fr; }
  .jz-grades { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .jz-feed-2col { grid-template-columns: 1fr; }
  .jz-feed-2col .jz-post:nth-last-child(-n+2) { border-bottom: 1px solid var(--jz-line); }
  .jz-feed-2col .jz-post:last-child { border-bottom: 0; }
  .jz-panel { padding: 16px; }
}
