/* 水平滚动容器 */
*{
    text-decoration: none;
}
.more-articles-wrapper {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    
  }
  
  /* 强制每张卡片固定宽高，不伸缩 */
  .more-articles-wrapper .post-card {
  flex: 0 0 250px !important;
  width: 250px !important;
  min-width: 250px !important;
  height: 320px !important;
  margin-top: 30px;
}
  
  /* 让整张卡片都是可点击区域 */
  .more-articles-wrapper .post-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
  }
  
  /* 图片部分 */
  .more-articles-wrapper .post-card img {
    width: 100%;
    height: 140px !important;
    object-fit: cover;
  }
  
  /* 标题部分：固定两行高度 */
  .more-articles-wrapper .post-card h3 {
    font-size: 1rem;
    margin: .5rem;
    line-height: 1.2;
    height: 2.4rem;       /* 两行文字高度 */
    overflow: hidden;
    
  }
  
  /* 悬停效果 */
  .more-articles-wrapper .post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  }
  /* 文章詳細 Container */
.article-detail {
    padding: 2rem 0;
  }
  
  /* Article Card */
  .article-card {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 10px;
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  }
  
  /* Header：標題 + Meta */
  .article-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
  }
  
  .article-title {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: #222;
  }
  
  .article-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #666;
  }
  
  .article-meta li {
    display: flex;
    align-items: center;
  }
  
  /* 精選圖片 */
  .article-thumb-wrap {
    margin: 1.5rem 0;
    text-align: center;
  }
  
  .article-thumb {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  /* 內文樣式 */
  .article-content {
    line-height: 1.8;
    color: #333;
  }
.article-content img {
  max-width: 100%;
  height: auto;
  display: block; /* 若要圖片獨佔一行並避免下方空隙 */
  /* margin: 0 auto; 若想置中圖片，可啟用此行 */
}
  .article-content h2,
  .article-content h3,
  .article-content h4 {
    margin: 1.5rem 0 1rem;
    line-height: 1.4;
    color: #222;
  }
  
  .article-content p {
    margin-bottom: 1rem;
  }
  
  .article-content ul,
  .article-content ol {
    margin: 1rem 0 1rem 1.5rem;
  }
  
  .article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #f9f9f9;
    border-left: 4px solid #ddd;
    color: #555;
  }
  
  /* 行動裝置響應 */
  @media (max-width: 600px) {
    .article-card {
      padding: 1.5rem 1rem;
    }
    .article-title {
      font-size: 1.5rem;
    }
  }
  /* 文章 Banner */
.article-banner {
  position: relative;
  width: 100%;
  height: 240px;             /* Banner 高度，可調 */
  overflow: hidden;
  margin-bottom: 1.5rem;
  margin-top: 70px;

}

.article-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 半透明文字遮罩 */
.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-text {
  color: #fff;
  font-size: 2rem;
  text-align: center;
  padding: 0 1rem;
  line-height: 1.2;
}
.article-thumbnail {
  margin-bottom: 20px;
  text-align: center;
}

.article-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-thumbnail figcaption {
  font-size: 0.85rem;
  color: #777;
  margin-top: 6px;
}

/* 小螢幕響應 */
@media (max-width: 600px) {
  .article-banner {
    height: 160px;
  }
  .banner-text {
    font-size: 1.2rem;
  }
}
