/* ============================================================
   xiaoxue-add.css — 小学板块 样式补全（新增）
   由「小学」板块设计包并入；也可单独 <link> 引用。
   ============================================================ */

/* ---------- 1. 小学专属主题：童年青蓝 ---------- */
.theme-kids {
  --header-bg:       linear-gradient(135deg, #2E6E8E 0%, #3E8CA8 40%, #2E6E8E 100%);
  --nav-bg:          #1E4E66;
  --main-bg:         #F0F6F8;
  --card-bg:         #FBFDFE;
  --section-bg:      #FBFDFE;
  --section-alt:     #E6F0F4;
  --footer-bg:       #163A4E;
}

/* ---------- 2. 首页第二行：5 列布局（新增小学卡片后） ---------- */
.home-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .home-grid.cols-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .home-grid.cols-5 { grid-template-columns: 1fr; } }

/* ---------- 3. 首页「小学」卡片装饰条（青蓝） ---------- */
.home-card.card-kids::before,
.home-card.card-kids::after { background: linear-gradient(90deg, #CFE3EC, #2E6E8E, #CFE3EC); }

/* ---------- 4. 小学栏目顶边色：数学 / 语文 ---------- */
.col-math    { border-top: 4px solid #2E6E8E; }  /* 数学 · 青蓝 */
.col-chinese { border-top: 4px solid #C0392B; }  /* 语文 · 朱红 */
.col-eng     { border-top: 4px solid #1E8E6E; }  /* 英语 · 青绿 */

/* ===== 栏目建设中卡片（学科页占位美化） ===== */
.coming-card {
  margin-top: 1rem;
  padding: 2.4rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(46,110,142,0.06), rgba(46,110,142,0.02));
  border: 2px dashed rgba(46,110,142,0.38);
  border-radius: 14px;
}
.coming-icon { font-size: 2.6rem; margin-bottom: 0.5rem; }
.coming-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.9;
  max-width: 34em;
  margin: 0 auto;
}

/* ===== 系列入口大卡片（一年级数学 · 分层提问系列） ===== */
.hero-card {
  display: block;
  margin-top: 1rem;
  padding: 1.6rem 1.8rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #2E6E8E 0%, #4A9CC4 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(46,110,142,0.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(46,110,142,0.32); }
.hero-icon { font-size: 2rem; line-height: 1; }
.hero-title { font-family: var(--font-title); font-size: 1.28rem; font-weight: 700; margin: 0.45rem 0 0.3rem; }
.hero-desc  { font-family: var(--font-body); font-size: 0.98rem; opacity: 0.92; line-height: 1.7; }

/* ============================================
   小学页面整体优化（v2）
   导航吸顶 / 头部紧凑 / 内容突出 / 页脚统一
   仅作用于 .theme-kids 页面，不影响其他板块
   ============================================ */

/* ---- 头部：紧凑整齐，让内容更早进入视线 ---- */
.theme-kids .site-header { padding: 2.2rem 1rem 1.5rem; }
.theme-kids .site-title   { font-size: 2.7rem; letter-spacing: 0.12em; }
.theme-kids .page-subtitle { font-size: 1.2rem; opacity: 0.9; }
.theme-kids .shichen       { font-size: 0.95rem; opacity: 0.55; }

/* ---- 导航：吸顶固定（滚动时始终可见）+ 阴影分层 ---- */
.theme-kids .site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 12px rgba(22, 58, 78, 0.35);
}
.theme-kids .site-nav a { font-size: 1.2rem; }

/* ---- 中间内容：标题加大加色，突出已有内容 ---- */
.theme-kids .section-title {
  font-size: 2.25rem;
  color: #1E4E66;
  border-left: 6px solid #2E6E8E;
}
.theme-kids .section-title::after { color: #2E6E8E; }
.theme-kids .section-subtitle { font-size: 1.15rem; color: #4A6B7A; }

/* ---- 系列入口大卡片：进一步放大突出 ---- */
.theme-kids .hero-card { padding: 2.1rem 2rem; }
.theme-kids .hero-icon  { font-size: 2.8rem; }
.theme-kids .hero-title { font-size: 1.55rem; color: #fff; }
.theme-kids .hero-desc  { font-size: 1.05rem; opacity: 0.95; }

/* 大卡片内的「进入」按钮式提示 */
.hero-go {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.45rem 1.3rem;
  background: rgba(255, 255, 255, 0.92);
  color: #1E4E66;
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  transition: box-shadow .2s ease;
}
.hero-card:hover .hero-go { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }

/* ---- 建设中卡片：文字稍大更清晰 ---- */
.theme-kids .coming-text { font-size: 1.1rem; }

/* ---- 页脚：与头部同色系渐变，首尾呼应统一 ---- */
.theme-kids .site-footer {
  background: linear-gradient(180deg, #1E4E66 0%, #163A4E 55%, #0F2A3A 100%);
  border-top: 3px solid var(--gold);
  padding: 2.4rem 1rem 2rem;
}
.theme-kids .footer-motto { color: #E8C97A; font-size: 1.7rem; }
.theme-kids .footer-beian { opacity: 0.8; }

/* ---------- 5. 小学「相关内容」区块 ---------- */
.related {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--card-border);
}
.related-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--red-deep);
  margin-bottom: 0.6rem;
}
.related-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

/* ---------- 6. 问答 / 思考 / 脚手架 排版（一二年级教学要求文章页） ---------- */
.qs-box, .think-box {
  border-radius: var(--radius-md);
  padding: 1.3rem 1.5rem;
  margin: 0.4rem 0 0.4rem;
  line-height: 1.95;
  font-size: 1.12rem;
}
.qs-box {
  background: linear-gradient(180deg, #EAF4F9, #DCEEF6);
  border-left: 6px solid #2E6E8E;
  color: var(--text-dark);
}
.think-box {
  background: #F4F0E6;
  border-left: 6px solid var(--gold);
  color: var(--text-mid);
}
.qs-label, .think-label {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 0.55rem;
  padding: 0.18rem 0.8rem;
  border-radius: 999px;
}
.qs-label  { background: #2E6E8E; color: #fff; }
.think-label { background: var(--gold); color: #fff; }
.answer-h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--red-deep);
  margin: 1.5rem 0 0.6rem;
  padding-left: 0.7rem;
  border-left: 4px solid var(--gold);
}
.mini-title {
  font-family: var(--font-title);
  font-size: 1.18rem;
  font-weight: 600;
  color: #2E6E8E;
  margin: 1rem 0 0.3rem;
}
.scaffold-list { counter-reset: sc; list-style: none; padding: 0; margin: 0.6rem 0; }
.scaffold-list > li {
  position: relative;
  padding: 0.7rem 0 0.7rem 2.5rem;
  border-bottom: 1px dashed var(--card-border);
}
.scaffold-list > li::before {
  counter-increment: sc; content: counter(sc);
  position: absolute; left: 0; top: 0.7rem;
  width: 1.75rem; height: 1.75rem; line-height: 1.75rem;
  text-align: center; background: #2E6E8E; color: #fff;
  border-radius: 50%; font-family: var(--font-title); font-size: 0.95rem;
}
.scaffold-list strong { color: var(--red-deep); }
.sub-list { margin: 0.3rem 0 0.2rem 0.2rem; padding-left: 1.1rem; }
.sub-list li { margin: 0.25rem 0; color: var(--text-mid); }
