/* =========================================================
   Moldflip 倒模工作室 · BUD SEO 示範網誌
   視覺系統：水泥 / 混凝土暖灰調 · 編輯型排版
   設計原則：真實水泥作品圖、單一陶土色 accent、無 AI slop
   ========================================================= */

:root {
  --paper:        #F4F1EC;   /* 暖白底，似未漂紙 */
  --paper-2:      #ECE8E1;   /* 次級底 */
  --concrete:     #B8B2A7;   /* 水泥灰 */
  --concrete-dk:  #6E6A63;   /* 深水泥灰 */
  --ink:          #2B2A27;   /* 暖近黑 */
  --ink-soft:     #57544E;   /* 正文軟黑 */
  --ink-faint:    #8C887F;   /* 淡灰 — 日期／輔助文字 */
  --line:         #D8D3CA;   /* 分隔線 */
  --accent:       #A8552E;   /* 陶土橙 — 唯一 accent */
  --accent-dk:    #8A4421;
  --maxw:         1120px;
  --serif: "Noto Serif TC", "Songti TC", "STSong", Georgia, serif;
  --sans:  "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- 頂部導航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,241,236,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .mark {
  font-family: var(--serif); font-weight: 700; font-size: 22px;
  letter-spacing: .04em; color: var(--ink);
}
.brand .sub { font-size: 12px; letter-spacing: .22em; color: var(--concrete-dk); text-transform: uppercase; }
.nav { display: flex; gap: 26px; }
.nav a {
  font-size: 14.5px; color: var(--ink-soft); letter-spacing: .04em;
  padding: 6px 0; border-bottom: 1.5px solid transparent; transition: border-color .2s, color .2s;
}
.nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- 分類標籤 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--concrete-dk); font-weight: 600;
}
.tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
.tag.cat-renovation::before { background: var(--accent); }
.tag.cat-art::before       { background: var(--concrete-dk); }
.tag.cat-workshop::before  { background: #6F7F5A; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; min-height: 78vh; display: flex; align-items: flex-end; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,19,17,.15) 0%, rgba(20,19,17,.72) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 64px; }
.hero .eyebrow {
  font-size: 13px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.82); margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(34px, 5.4vw, 60px); line-height: 1.15;
  margin: 0 0 18px; max-width: 16ch; color: #fff;
  text-wrap: pretty;
}
.hero p { font-size: 18px; max-width: 46ch; color: rgba(255,255,255,.9); margin: 0 0 28px; }
.btn {
  display: inline-block; font-size: 15px; letter-spacing: .06em;
  padding: 13px 30px; border: 1.5px solid #fff; color: #fff;
  background: transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn.solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.solid:hover { background: var(--accent-dk); border-color: var(--accent-dk); }

/* ---------- 區塊標題 ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; gap: 20px; flex-wrap: wrap; }
.section-head h2 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(26px,3vw,36px);
  color: var(--ink); margin: 0; line-height: 1.25;
}
.section-head .lead { color: var(--ink-soft); max-width: 42ch; margin: 0; font-size: 15.5px; }

/* ---------- 文章卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { display: flex; flex-direction: column; background: transparent; }
.card .thumb { overflow: hidden; aspect-ratio: 4/3; background: var(--concrete); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.card .body { padding: 18px 2px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 {
  font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.4;
  color: var(--ink); margin: 0;
}
.card .excerpt { font-size: 15px; color: var(--ink-soft); margin: 0; }
.card .more {
  margin-top: auto; font-size: 14px; letter-spacing: .05em; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.card:hover .more { gap: 11px; }
.card .card-meta { font-size: 13px; color: var(--ink-faint); letter-spacing: .03em; }
.section-head h2 .count {
  font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: .04em;
  color: var(--ink-faint); margin-left: 12px; vertical-align: middle;
}

/* ---------- 三線介紹 ---------- */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.line { background: var(--paper); padding: 36px 30px; }
.line .num { font-family: var(--serif); font-size: 15px; color: var(--accent); letter-spacing: .1em; }
.line h3 { font-family: var(--serif); font-size: 22px; color: var(--ink); margin: 10px 0 12px; }
.line p { font-size: 14.5px; margin: 0; color: var(--ink-soft); }

/* ---------- 文章頁 ---------- */
.article-hero { position: relative; color: #fff; }
.article-hero img { width: 100%; height: 56vh; object-fit: cover; }
.article-hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,19,17,.1), rgba(20,19,17,.66));
  display: flex; align-items: flex-end;
}
.article-hero .wrap { padding-top: 40px; padding-bottom: 44px; }
.article-hero h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(28px,4vw,46px);
  line-height: 1.2; margin: 14px 0 0; max-width: 20ch; color: #fff; text-wrap: pretty;
}
.meta-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,.85); margin-top: 14px; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }

.article-body { max-width: 760px; margin: 0 auto; padding: 56px 28px 20px; }
.article-body p { font-size: 17.5px; line-height: 1.95; color: var(--ink-soft); margin: 0 0 26px; }
.article-body p.lede { font-size: 19px; color: var(--ink); }
.article-body h2 {
  font-family: var(--serif); font-size: 26px; color: var(--ink);
  margin: 44px 0 16px; padding-left: 16px; border-left: 3px solid var(--accent);
}

/* 關鍵字 — 低調文末標籤，不搶眼 */
.keywords {
  max-width: 760px; margin: 8px auto 52px; padding: 0 28px;
}
.keywords .kw-box {
  border-top: 1px solid var(--line); padding-top: 22px;
}
.keywords .kw-title {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--concrete-dk); font-weight: 600; margin: 0 0 12px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13.5px; padding: 4px 12px; background: var(--paper-2);
  border: 1px solid var(--line); color: var(--ink-soft); border-radius: 2px;
}

/* 相關文章 */
.related { border-top: 1px solid var(--line); background: var(--paper-2); }

/* ---------- 頁腳 ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 60px 0 40px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--serif); color: #fff; font-size: 16px; margin: 0 0 14px; letter-spacing: .04em; }
.site-footer p, .site-footer li { font-size: 14px; line-height: 1.9; margin: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a:hover { color: #fff; }
.foot-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12.5px; color: rgba(255,255,255,.5); }
.foot-note b { color: rgba(255,255,255,.75); font-weight: 600; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .cards, .lines { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .nav { gap: 16px; font-size: 13px; }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .nav { display: none; }
  .hero { min-height: 70vh; }
}
