/* ============================================================
   Elite Education — Blog 专用样式（扩展主 styles.css）
   复用主网设计令牌：--bg / --navy / --green / --pink / --red 等
   ============================================================ */

/* 复用性小组件（主表未定义则在此补齐） */
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-14);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--pink);
  color: #7a1f28;
  white-space: nowrap;
}

/* ---------- Blog 列表页 ---------- */
.blog-wrap { padding-top: 96px; }

.blog-hero {
  padding: 56px 0 34px;
  max-width: 780px;
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, var(--fs-64));
  line-height: 1.06;
  color: var(--navy);
  margin: 0 0 18px;
}
.blog-hero p {
  font-size: var(--fs-20);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 20px 0 90px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r-card);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid rgba(8, 31, 127, .06);
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.post-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--neutral);
}
.post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.post-card:hover .post-thumb img { transform: scale(1.05); }

.post-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post-body h3 {
  font-family: var(--font-display);
  font-size: var(--fs-21);
  line-height: 1.28;
  color: var(--navy);
  margin: 2px 0 0;
}
.post-body p {
  font-size: var(--fs-16);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.post-more {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-16);
  color: var(--green);
  margin-top: 6px;
}

/* ---------- 文章详情页 ---------- */
.article-wrap { padding-top: 96px; padding-bottom: 40px; }
.article-col { max-width: 760px; }

.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: var(--fs-14);
  color: var(--muted);
  padding: 40px 0 22px;
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--green); }
.crumb span { color: rgba(0, 0, 0, .3); }
.crumb .crumb-current {
  color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 320px;
}

.article-head { margin-bottom: 30px; }
.article-head .post-tags { margin-bottom: 16px; }
.article-head h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.14;
  color: var(--navy);
  margin: 0 0 16px;
}
.article-lede {
  font-size: var(--fs-20);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

/* 正文排版 */
.article-body { font-size: 17.5px; line-height: 1.78; color: var(--ink-2); }
.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  line-height: 1.3;
  color: var(--navy);
  margin: 42px 0 14px;
}
.article-body h2 strong { color: var(--green); font-weight: 700; }
.article-body p { margin: 0 0 20px; }
.article-body strong { color: var(--navy); font-weight: 700; }
.article-body a { color: var(--green); }

.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 24px; }
.article-body li { margin: 0 0 10px; }
.article-body ul li::marker { color: var(--green); }
.article-body ol li::marker { color: var(--green); font-weight: 700; }

.article-body img {
  width: 100%;
  height: auto;
  border-radius: var(--r-card);
  margin: 14px 0 6px;
  display: block;
  box-shadow: var(--shadow-sm);
}
.article-body .fig-cap {
  display: block;
  font-size: var(--fs-14);
  color: var(--muted);
  text-align: center;
  margin: 0 0 26px;
  font-style: italic;
}

/* 文末关键词 */
.article-kw {
  margin: 36px 0 0;
  padding: 18px 22px;
  background: var(--neutral-2);
  border-left: 4px solid var(--green);
  border-radius: var(--r-sm);
  font-size: var(--fs-16);
  color: var(--ink-2);
}
.article-kw strong { color: var(--navy); }

/* CTA */
.article-cta {
  margin: 40px 0 30px;
  padding: 34px 34px 38px;
  background: var(--navy);
  border-radius: var(--r-card);
  color: #fff;
}
.article-cta h3 {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  margin: 0 0 12px;
  color: #fff;
}
.article-cta p {
  font-size: var(--fs-16);
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
  margin: 0 0 22px;
}
.article-cta .btn-primary { background: #fff; color: var(--navy); }
.article-cta .btn-primary:hover { background: var(--pink); color: var(--navy); }

.back-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  margin: 6px 0 20px;
}
.back-link:hover { color: var(--navy); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; gap: 22px; padding-bottom: 60px; }
  .blog-hero { padding: 40px 0 26px; }
  .article-body { font-size: 16.5px; }
  .article-cta { padding: 26px 22px 30px; }
  .crumb .crumb-current { max-width: 180px; }
}
