/* ====== Blog Articles Grid ====== */
.blog-articles {
  display: grid;
  grid-gap: 2rem;
  grid-template-columns: 1fr; /* 手機版單欄 */
}

@media screen and (min-width: 750px) {
  .blog-articles {
    grid-template-columns: repeat(2, 1fr); /* 平板以上雙欄 */
  }
}

/* ====== Article Card ====== */
.article-card {
  background-color: rgba(var(--color-foreground), 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
  border-radius: 0.5rem;
  overflow: hidden;
}

.article-card__image-wrapper {
  width: 100%;
  height: 200px; /* 固定圖片高度保持一致 */
  overflow: hidden;
}

.article-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card__image-wrapper img:hover {
  transform: scale(1.05);
}

.article-card__info {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.article-card__title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: rgb(var(--color-foreground));
  spellcheck: false; /* 關閉紅底線 */
}

.article-card__excerpt {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: rgba(var(--color-foreground), 0.8);
  spellcheck: false; /* 關閉紅底線 */
}

.article-card__link {
  font-size: 1.4rem;
  color: rgb(var(--color-link));
  text-decoration: underline;
}

.article-card__link:hover {
  color: rgb(var(--color-link));
}

/* ====== 調整閱讀更多按鈕對齊 ====== */
.article-card__footer,
.article-card__read-more-wrapper {
  margin-top: auto;
  text-align: left;
}

/* ====== 統一高度 ====== */
.blog-articles .article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ====== FAQ 區塊樣式 (可加在 blog.css) ====== */
.chat-faq {
  margin-top: 40px;
  padding-top: 8px;
}

.chat-item {
  margin-bottom: 22px;
}

.chat-item summary {
  list-style: none;
  cursor: pointer;
}

.chat-q {
  max-width: 85%;
  padding: 14px 16px;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  background: #F3F1ED;
  color: #333;
  font-size: 15px;
  line-height: 1.7;
  position: relative;
  spellcheck: false; /* FAQ 文字紅底線關閉 */
}

.chat-q::after {
  content: "＋";
  position: absolute;
  right: 14px;
  top: 12px;
  font-size: 18px;
  color: var(--bt-primary);
}

.chat-item[open] .chat-q::after {
  content: "－";
}

.chat-a {
  max-width: 85%;
  margin-left: auto;
  margin-top: 14px;
  margin-bottom: 28px;
  padding: 14px 16px;
  border-radius: 18px;
  border-bottom-right-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--bt-border-soft);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  font-size: 15px;
  line-height: 1.7;
  spellcheck: false; /* FAQ 文字紅底線關閉 */
}

.chat-label {
  font-size: 12px;
  color: var(--bt-text-light);
  margin-bottom: 6px;
}
