/* =======================================================================
 *  文章分享 — 樣式（深藍 × 金色 × 米色）
 * ======================================================================= */

.articles-hero { text-align: center; padding: 46px 0 24px; }
.articles-hero .eyebrow {
  color: var(--gold-dark); font-weight: 700; letter-spacing: 3px;
  font-size: .82rem; margin: 0 0 10px; text-transform: uppercase;
}
.articles-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; }
.articles-hero h1::after {
  content: ""; display: block; width: 64px; height: 3px; margin: 16px auto 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft)); border-radius: 3px;
}
.articles-hero .lead { max-width: 620px; margin: 16px auto 0; color: #5b6376; }

.articles { padding: 20px 0 70px; }
.articles .wrap { max-width: 920px; }

/* 分類篩選 */
.article-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 6px 0 28px; }
.cat-btn {
  background: var(--white); border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 8px 16px; font-family: inherit; font-size: .92rem; font-weight: 700;
  cursor: pointer; transition: .15s;
}
.cat-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.cat-btn.active { background: var(--coral); border-color: var(--coral); color: #fff; }
.cat-btn .cat-n { font-size: .8rem; opacity: .7; font-weight: 500; }

/* 文章卡上的分類標籤 */
.article-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.article-cat {
  background: var(--gold-soft); color: var(--gold-dark); font-size: .76rem; font-weight: 700;
  padding: 2px 10px; border-radius: 999px;
}

/* 文章卡片 */
.article-card {
  display: flex; gap: 26px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.article-img {
  flex-shrink: 0; width: 280px; display: block; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--gold-soft);
}
.article-img img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.article-main { flex: 1; min-width: 0; }

.article-date { color: var(--gold-dark); font-weight: 700; font-size: .82rem; letter-spacing: .5px; }
.article-title {
  font-family: var(--serif); color: var(--ink); font-size: 1.25rem; font-weight: 700;
  margin: 6px 0 12px; line-height: 1.45;
}

/* 內文：預設收合，漸層淡出 */
.article-text { color: #45506a; line-height: 1.95; position: relative; }
.article-text p { margin: 0 0 .9em; }
.article-text p:last-child { margin-bottom: 0; }
.article-text.collapsed {
  max-height: 168px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 64%, transparent);
          mask-image: linear-gradient(180deg, #000 64%, transparent);
}

.article-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.article-toggle {
  background: var(--coral); color: #fff; border: none; border-radius: 999px;
  padding: 8px 18px; font-family: inherit; font-size: .9rem; font-weight: 700; cursor: pointer;
  transition: .16s;
}
.article-toggle:hover { background: var(--coral-dark); }
.article-fb-link { color: var(--gold-dark); font-weight: 700; font-size: .9rem; }
.article-fb-link:hover { text-decoration: underline; }

/* 諮商・督導頁 — 預約卡片 */
.counsel-card {
  background: linear-gradient(160deg, #fffdf8 0%, #f3ead2 100%);
  border: 1px solid var(--gold-soft); border-radius: 18px;
  padding: 30px 32px; margin: 0 0 30px; box-shadow: var(--shadow-sm);
}
.counsel-card h2 { font-family: var(--serif); color: var(--ink); font-size: 1.4rem; margin: 0 0 8px; }
.counsel-card p { color: #4b5266; line-height: 1.85; margin: 0 0 18px; }
.counsel-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.articles-loadbar { text-align: center; margin: 8px 0 6px; }
.articles-count { color: var(--muted); font-size: .9rem; margin: 12px 0 0; }
.articles-more { text-align: center; color: var(--muted); margin-top: 30px; }

@media (max-width: 720px) {
  .article-card { flex-direction: column; gap: 16px; padding: 20px; }
  .article-img { width: 100%; }
  .article-img img { aspect-ratio: 16 / 10; }
}
