.breadcrumb {
  font-size: 0.95rem;
}
.tag {
  color: var(--alert);
  margin: 0 2px;
}
.tag::before {
  content: ' | ';
}
.tag:hover {
  filter: brightness(130%);
}
.blog-header {
  font-size: 36px;
  line-height: 3;
  color: var(--dark);
  text-align: center;
}

.blog-section {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.article-section {
  width: 95%;
  max-width: 1000px;
  margin: 40px auto;
}

.article-header {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--dark);
  text-align: left;
  margin: 10px auto;
}

.article-section img {
  max-width: 100%;
  height: auto;
}
.article-section article {
  margin: 20px auto;
}
.article-section article ol,
.article-section article ul {
  padding-left: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  gap: 12px;
  white-space: nowrap;
  overflow-x: scroll;
}
.tabs::-webkit-scrollbar {
  display: none; /* 隱藏滾動條 */
}

.tab-btn {
  padding: 8px 16px;
  border: 1px solid #ccc;
  background: #fff;
  color: #000;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}
.tab-btn.is-active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.tab-content {
  display: none;
}
.tab-content.is-active {
  display: block;
}

.blog-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ✅ 一排四欄 */
  gap: 24px;
  margin-top: 20px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ✅ 一排四欄 */
  gap: 24px;
  margin-top: 20px;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card:hover {
  transform: translateY(-4px);
  border: 1px solid var(--main);
}
.blog-card img {
  width: 100%;
  aspect-ratio: 1 / 1; /* ✅ 正方形比例 */
  object-fit: cover;
  display: block;
}
.blog-info {
  padding: 16px;
}
.blog-info .category {
  color: var(--alert);
  font-size: 14px;
  margin-bottom: 6px;
}
.blog-info h3 {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 10px;
}
.blog-info .date {
  font-size: 13px;
  color: #888;
}

.blog-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.btn-more {
  padding: 12px 28px;
  background-color: var(--alert);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}


@media (max-width: 1024px) {

}

@media (max-width: 768px) {
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .blog-grid-3 {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (max-width: 480px) {
  
}