/* ================================================
   CareerRoost — blog-list.css
   Blog首页/分类页/标签页 共用样式
   ================================================ */

/* ── 面包屑（分类页/标签页共用）── */
.breadcrumb-nav {
  display: flex; align-items: center; gap: 8px; padding-block: 20px 0;
  font-size: 13.5px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto; box-sizing: border-box; padding-inline: 20px;
}
.breadcrumb-nav a { color: var(--primary-dark); text-decoration: none; font-weight: 600; }
.breadcrumb-nav a:hover { text-decoration: underline; }
.breadcrumb-home { display: flex; align-items: center; color: var(--muted); }
.breadcrumb-home svg { width: 16px; height: 16px; }
.breadcrumb-sep { color: var(--border); font-size: 13px; }
.breadcrumb-current {
  color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 260px; display: inline-block; vertical-align: bottom;
}
@media (max-width: 600px) {
  .breadcrumb-current { max-width: 140px; }
}

/* ── 首屏（仅Blog首页使用）：撞色色块渲染，不放人物 ── */
.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 118px 20px 88px;
  text-align: center;
  background: #fafcfc;
}
.blog-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
}
.blob-a { width: 380px; height: 380px; background: #01c29c; top: -220px; left: -160px; opacity: 0.28; }
.blob-b { width: 300px; height: 300px; background: #a78bfa; top: -40px; right: -70px; opacity: 0.4; }
.blob-c { width: 240px; height: 240px; background: #f9a8d4; bottom: -120px; left: 38%; opacity: 0.35; }

.blog-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.blog-hero h1 {
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}
.blog-hero p { font-size: 16.5px; color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ── 分类卡片网格（Blog首页第二屏）── */
.category-section { padding: 8px 0; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 14px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.category-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,0.06); border-color: var(--primary); }
.category-card svg { width: 32px; height: 32px; color: var(--primary-dark); margin-bottom: 12px; }
.category-card .cat-name { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.3; }

@media (max-width: 760px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-hero { padding: 56px 20px 40px; }
  .blob-a { width: 240px; height: 240px; top: -120px; left: -100px; }
  .blob-b { width: 200px; height: 200px; top: -30px; right: -60px; }
  .blob-c { width: 160px; height: 160px; }
  .list-page-header h1 { font-size: 22px; }
  .list-page-header p { font-size: 13.5px; }
  .section-title { font-size: 21px; }
}

/* ── 主体两栏布局（分类页/标签页用，Blog首页不用侧边栏）── */
.bloglist-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px 70px;
}
.bloglist-main { flex: 1; min-width: 0; }
.bloglist-sidebar {
  flex: 0 0 280px;
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 960px) {
  .bloglist-layout { flex-direction: column; }
  .bloglist-sidebar { position: static; width: 100%; flex: none; }
}

/* Blog首页没有侧边栏，正文区单独走一套宽度 */
.bloglist-main-full { max-width: 900px; margin: 0 auto; padding: 40px 20px 70px; box-sizing: border-box; }

/* 分类页/标签页页头 */
.list-page-header { margin-bottom: 24px; }
.list-page-header h1 { font-size: 26px; margin-bottom: 8px; }
.list-page-header p { font-size: 14.5px; color: var(--muted); max-width: 640px; }
.list-page-header .list-count {
  font-size: 12.5px; font-weight: 700; color: var(--primary-dark);
  text-transform: uppercase; letter-spacing: 0.04em; margin-top: 8px;
}

/* ── 文章卡片列表 ── */
.blog-article-list { display: flex; flex-direction: column; gap: 16px; }
.blog-article-card {
  display: flex; gap: 18px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px; text-decoration: none; color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.blog-article-card:hover { box-shadow: 0 14px 28px rgba(0,0,0,0.05); border-color: var(--primary); }
.blog-article-thumb {
  width: 168px; height: 112px; flex-shrink: 0; border-radius: 10px; overflow: hidden;
  background: var(--primary-light);
}
.blog-article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-article-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.blog-article-meta-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 6px; flex-wrap: wrap; }
.blog-article-cat-pill {
  background: var(--primary-light); color: var(--primary-dark);
  padding: 2px 9px; border-radius: 999px; font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.03em;
}
.blog-article-title { font-size: 16.5px; font-weight: 700; margin-bottom: 5px; color: var(--text); line-height: 1.35; }
.blog-article-excerpt {
  font-size: 13.5px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 560px) {
  .blog-article-card { flex-direction: column; }
  .blog-article-thumb { width: 100%; height: 160px; }
}

.bloglist-empty { text-align: center; padding: 60px 0; color: var(--muted); font-size: 14.5px; }

.section-title {
  font-size: 26px;
  margin-bottom: 20px;
  padding-top: 8px;
  text-align: center;
}

/* ── 分页 ── */
.blog-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.page-btn {
  min-width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text);
  text-decoration: none; font-size: 13.5px; font-weight: 600; padding-inline: 4px;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary-dark); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ── 侧边栏（分类页/标签页）── */
.sidebar-block {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px;
}
.sidebar-title {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  background: var(--primary-light); color: var(--primary-dark);
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; text-decoration: none;
}
.tag-cloud a:hover { background: #c9f2e6; }
.tag-cloud a.tag-active { background: var(--primary); color: #fff; }

.sidebar-latest-list { list-style: none; }
.sidebar-latest-list li { padding-block: 10px; border-bottom: 1px solid var(--border); }
.sidebar-latest-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-latest-list a { font-size: 13.5px; font-weight: 600; color: var(--text); text-decoration: none; display: block; margin-bottom: 4px; line-height: 1.35; }
.sidebar-latest-list a:hover { color: var(--primary-dark); }
.sidebar-latest-date { font-size: 12px; color: var(--muted); }

.ad-slot-sticky {
  min-height: 250px; display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed var(--border); border-radius: 14px; color: var(--muted); font-size: 13px; background: #f7f8f8;
}
@media (max-width: 960px) { .ad-slot-sticky { display: none; } }

.ad-slot-inline {
  margin: 28px 0 0;
  padding: 26px;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: #f7f8f8;
}
