/* ============================================================
   富立傑 部落格 / 特殊案例專欄 — 共用樣式
   文章頁：photo-essay 圖文長版；列表頁：卡片式。
   配色沿用全站：沉穩黑白灰 + 原木暖色 #c8a870。
   ============================================================ */
:root {
  --blog-ink: #26221d;
  --blog-sub: #6a655c;
  --blog-wood: #c8a870;
  --blog-line: #e7e2d8;
  --blog-bg: #fbf9f5;
}
.blog-wrap { background: var(--blog-bg); color: var(--blog-ink); font-family: 'Noto Sans TC', sans-serif; }

/* ── 文章 hero ── */
.article-hero { position: relative; height: min(72vh, 620px); overflow: hidden; display: flex; align-items: flex-end; }
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.2) 45%, rgba(0,0,0,.72) 100%); }
.article-hero-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; width: 100%; padding: 0 24px 54px; box-sizing: border-box; }
.article-eyebrow { color: var(--blog-wood); letter-spacing: .28em; font-size: 12px; font-weight: 500; margin-bottom: 16px; }
.article-hero h1 { color: #fff; font-size: clamp(26px, 4.4vw, 46px); line-height: 1.28; letter-spacing: .04em; margin: 0; text-shadow: 0 4px 24px rgba(0,0,0,.4); font-weight: 700; }
.article-meta { margin-top: 18px; color: rgba(255,255,255,.82); font-size: 14px; letter-spacing: .08em; display: flex; gap: 16px; flex-wrap: wrap; }
.article-meta .dot { color: var(--blog-wood); }

/* ── 麵包屑 ── */
.blog-crumb { max-width: 760px; margin: 0 auto; padding: 22px 24px 0; font-size: 13px; letter-spacing: .06em; color: var(--blog-sub); }
.blog-crumb a { color: var(--blog-sub); text-decoration: none; }
.blog-crumb a:hover { color: var(--blog-wood); }

/* ── 文章本文 ── */
.article-body { max-width: 760px; margin: 0 auto; padding: 12px 24px 40px; }
.article-lead { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.9; color: #3a352d; margin: 28px 0 8px; font-weight: 400; }
.article-section { margin: 40px 0; }
.article-section h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: .04em; margin: 0 0 8px; position: relative; padding-left: 16px; }
.article-section h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 4px; background: var(--blog-wood); border-radius: 2px; }
.article-section p { font-size: 17px; line-height: 1.95; color: #423d34; margin: 14px 0; }

/* ── 圖片 ── */
.article-figure { margin: 26px 0; }
.article-figure img { width: 100%; height: auto; display: block; border-radius: 4px; box-shadow: 0 18px 44px rgba(38,34,29,.14); background: #eee; }
.article-figure figcaption { margin-top: 10px; font-size: 14px; line-height: 1.7; color: var(--blog-sub); letter-spacing: .04em; text-align: center; }
/* 滿版（掙脫 760 限制）*/
.article-figure--wide { width: min(100vw, 1200px); margin-left: 50%; transform: translateX(-50%); }
.article-figure--wide img { border-radius: 0; }
.article-figure--wide figcaption { padding: 0 24px; }
.article-figure--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.article-figure--pair figcaption { grid-column: 1 / -1; }

/* ── 結尾 CTA ── */
.article-cta { max-width: 760px; margin: 10px auto 60px; padding: 0 24px; }
.article-cta-box { background: #201d18; color: #f3ede1; border-radius: 6px; padding: 32px 28px; text-align: center; }
.article-cta-box h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: .06em; }
.article-cta-box p { margin: 0 auto 20px; max-width: 46ch; font-size: 16px; line-height: 1.85; color: #cbc3b4; }
.article-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.article-cta-actions a,
.article-cta-actions button { text-decoration: none; font-size: 14px; letter-spacing: .06em; padding: 12px 22px; border-radius: 3px; display: inline-block; font-family: inherit; border: 0; cursor: pointer; }
.article-cta-actions .is-primary { background: var(--blog-wood); color: #1a1712; font-weight: 500; }
.article-cta-actions .is-ghost { border: 1px solid rgba(255,255,255,.35); color: #f3ede1; }
.article-cta-actions a:hover,
.article-cta-actions button:hover { opacity: .9; }

/* ============ 列表頁 ============ */
.blog-index { max-width: 1080px; margin: 0 auto; padding: 48px 24px 72px; }
.blog-index-head { text-align: center; margin-bottom: 40px; }
.blog-index-head .article-eyebrow { color: var(--blog-wood); }
.blog-index-head h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: .06em; margin: 8px 0 12px; }
.blog-index-head p { color: var(--blog-sub); font-size: 15px; line-height: 1.8; max-width: 52ch; margin: 0 auto; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.blog-card { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--blog-line); border-radius: 6px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(38,34,29,.14); }
.blog-card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 20px 20px 24px; }
.blog-card-tag { color: var(--blog-wood); font-size: 12px; letter-spacing: .16em; }
.blog-card-body h2 { font-size: 19px; line-height: 1.5; letter-spacing: .03em; margin: 8px 0 10px; }
.blog-card-body p { color: var(--blog-sub); font-size: 14px; line-height: 1.75; margin: 0; }
.blog-card-date { margin-top: 14px; font-size: 12px; color: #9a948a; letter-spacing: .06em; }

@media (max-width: 640px) {
  .article-figure--pair { grid-template-columns: 1fr; }
  .article-hero { height: min(64vh, 480px); }
  .article-meta { display: grid; grid-template-columns: 1fr; gap: 5px; }
  .article-meta .dot { display: none; }
}
