.blog-layout {
  padding: 3rem 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
}

.blog-main {
  background: #F9FAFF;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-box {
  background: #fafafa;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.sidebar-box h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #333;
}

.sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-box li {
  margin: 0.4rem 0;
}

.sidebar-box a {
  color: #0078d7;
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-box a:hover {
  color: #004a99;
}

.sidebar-box.highlight {
  border-left: 4px solid #25CDB1;
}
/* ==============================
   📄 Post Navigation with Icons
============================== */
.post-nav {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  background: #f9f9ff;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.post-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 45%;
  font-weight: 600;
  font-size: 0.95rem;
  color: #5a4fcf;
  text-decoration: none;
  line-height: 1.5;
  transition: all 0.25s ease;
}

.post-nav a:hover {
  color: #25CDB1;
  transform: translateY(-2px);
}

/* ← 左箭头 */
.icon-left::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-right: 6px;
  transition: transform 0.25s ease;
}

/* → 右箭头 */
.icon-right::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  transition: transform 0.25s ease;
}

/* Hover 动画：箭头轻轻移动 */
.prev-post:hover .icon-left::before {
  transform: rotate(-45deg) translateX(-3px);
}

.next-post:hover .icon-right::before {
  transform: rotate(45deg) translateX(3px);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .post-nav {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }
  .post-nav a {
    max-width: 100%;
    justify-content: center;
  }
}

@media (max-width: 960px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.single-head {
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}

.single-title {
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 700;
  color: #002175;
  margin-bottom: 0.4rem;
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 0.8rem;
}

.single-meta time {
  color: #4E3EC1;
  font-weight: 600;
}

.single-meta .dot {
  margin: 0 6px;
  color: rgba(0,0,0,0.3);
}

/* ----- Tags Section ----- */
.single-tags {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 20px;
  vertical-align: middle;
  margin-top: 10px;
}

.single-tags li {
  margin: 0;
  padding: 0;
}

.single-tags li a {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.85rem;
  line-height: 1.3;
  color: #1c8172;
  background-color: #e9fcf9;
  border: 1px solid #25CDB1;
  border-radius: 15px;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

.single-tags li a:hover {
  background-color: #25CDB1;
  color: #fff;
  box-shadow: 0 2px 6px rgba(37, 205, 177, 0.3);
  transform: translateY(-1px);
}

/* 小圆点样式，与 tags 视觉对齐 */
.single-meta .dot {
  margin: 0 6px;
  color: #999;
  font-weight: 600;
  user-select: none;
}

.single-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #334155;
  margin-top: 0.8rem;
}

/* ===============================
   📘 Blog Content (app-content)
=============================== */

/* 一级小标题（H2） */
.app-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.2rem;
  margin-bottom: 1.2rem;
  color: #2c2c54;
  position: relative;
  line-height: 1.4;
}

/* 在 h2 下方添加轻微的装饰线（主色） */
.app-content h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin-top: 0.6rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #25CDB1, #7E6ED5);
  opacity: 0.85;
}

/* 二级标题（H3） */
.app-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #3c3c72;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  line-height: 1.5;
  position: relative;
}

/* 在 h3 左侧加一条浅色装饰线 */
.app-content h3::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 0.4rem;
  width: 4px;
  height: 1.1rem;
  background: #25CDB1;
  border-radius: 2px;
  opacity: 0.7;
}

/* 正文段落 */
.app-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1.1rem;
  text-align: justify;
}

/* 链接样式（正文内） */
.app-content p a {
  color: #5a4fcf;
  text-decoration: none;
  border-bottom: 1px dashed rgba(122, 102, 213, 0.5);
  transition: all 0.2s ease;
}

.app-content p a:hover {
  color: #25CDB1;
  border-bottom: 1px solid #25CDB1;
}

/* 响应式排版优化 */
@media (max-width: 768px) {
  .app-content h2 {
    font-size: 1.35rem;
  }
  .app-content h3 {
    font-size: 1.1rem;
  }
  .app-content p {
    font-size: 0.96rem;
    line-height: 1.7;
  }
}

.app-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.97rem;
  line-height: 1.6;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden; /* 保证圆角生效 */
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}

/* 表头 */
.app-content table thead {
  background: #4B3EBF;
  color: #fff;
  text-align: left;
}

.app-content table thead th {
  padding: 12px 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.app-content table thead th:last-child {
  border-right: none;
}

/* 表格主体 */
.app-content table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s ease;
}
.app-content table tbody tr:hover {
  background: rgba(37,205,177,0.05);
}

.app-content table td {
  padding: 12px 16px;
  color: #374151;
  vertical-align: middle;
  border-left: 1px solid #e5e7eb;
}

/* 斑马条纹可选 */
.app-content table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

/* 窄屏响应式滚动 */
@media (max-width: 768px) {
  .app-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 6px;
  }
}

/* 控制文章中横线 <hr> 的上下间距和样式 */
.app-content hr,
.single-post hr,
article hr {
  border: none;               /* 移除默认边框样式 */
  height: 1px;                /* 控制线条粗细 */
  background-color: #ddd;     /* 设置颜色，可改为 #ccc/#e0e0e0 */
  margin: 1rem 0 3rem;        /* 上下间距：上2rem，下3rem */
}

/* ===========================
   🏷️ Tag Cloud
=========================== */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  display: inline-block;
  background: #eafbf8;
  color: #00796b;
  padding: 6px 10px;
  font-size: 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.tag-cloud a:hover {
  background: #25CDB1;
  color: #fff;
  border-color: #1aa896;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(37, 205, 177, 0.3);
}

/* ===========================
   📰 Recent Posts
=========================== */
.recent-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-posts li {
  border-bottom: 1px dashed rgba(0,0,0,0.1);
  padding: 0.5rem 0;
}

.recent-posts li:last-child {
  border-bottom: none;
}

.recent-posts a {
  text-decoration: none;
  color: #0048a5;
  font-size: 0.92rem;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.recent-posts a:hover {
  color: #7E6ED5;
}

/* ==============================
   🖼️ Post Hero Image
============================== */

.post-hero {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.post-hero img:hover {
  transform: scale(1.02);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .post-hero {
    height: 200px;
    margin-bottom: 1.4rem;
  }
}


/* ========== Blog List Page ========== */
.blogs-content.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: block !important; /* 覆盖可能的网格布局 */
}

/* === Intro Section === */
.blogs-intro {
  max-width: 1280px;
  margin: 0 auto 50px;
  text-align: left;
}

.blogs-intro h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1rem;
}

.blogs-intro p {
  color: #374151;
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.blogs-intro strong {
  color: #111827;
}

/* === Blog Cards === */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.8rem;
  align-items: stretch;
}

/* === Each Card === */
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* === Thumbnail === */
.blog-thumb {
  display: block;
  width: 100%;
  background-color: #f3f4f6;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.03);
}

/* === Blog Body === */
.blog-body {
  padding: 1.3rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.blog-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.blog-body h2 a {
  color: inherit;
  text-decoration: none;
}

.blog-body h2 a:hover {
  color: #2563eb;
}

.excerpt {
  color: #4b5563;
  font-size: 0.97rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* === Meta Section === */
.blog-meta {
  font-size: 0.85rem;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.blog-meta time {
  font-weight: 500;
}

.blog-meta .dot {
  color: #9ca3af;
}

/* === Tags === */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags li a {
  text-decoration: none;
  color: #7E6ED5;
  background-color: #f3f4f6;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.83rem;
  transition: all 0.2s ease;
}

.tags li a:hover {
  background-color: #e9eaf1;
  color: #5b4fd4;
  box-shadow: 0 0 0 2px rgba(126, 110, 213, 0.12) inset;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .blogs-intro {
    max-width: 820px;
  }
}

@media (max-width: 768px) {
  .blogs-content.container {
    padding: 28px 16px 48px;
  }
  .blogs-intro h1 {
    font-size: 1.6rem;
  }
  .blog-thumb img {
    aspect-ratio: 16 / 10;
  }
  .blog-body h2 {
    font-size: 1.05rem;
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.page-link:hover {
  background: #7E6ED5;
  color: #fff;
}

.page-link.active {
  background: #25CDB1;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(37, 205, 177, 0.25);
}

.page-link.prev,
.page-link.next {
  font-weight: 600;
  color: #5b4fd4;
  background: transparent;
}

.page-link.prev:hover,
.page-link.next:hover {
  text-decoration: underline;
}

/* Responsive tweak */
@media (max-width: 600px) {
  .pagination {
    gap: 4px;
  }
  .page-link {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}
