/* ============================================================
   廖侃 · CIO 個人站 · 新創簡約視覺（台灣風 D 套）
   純白 + 湖水藍 + 深湖藍 · 無襯線大標題 · 科技留白
   ============================================================ */

:root {
  --paper: #ffffff;
  --paper-deep: #f5f7f8;
  --ink: #1d2129;
  --ink-soft: #3f4750;
  --muted: #8a929c;
  --hairline: #e8eaee;
  --accent: #0d8a8f;          /* 湖水藍 */
  --accent-deep: #0a6d72;
  --dark: #0f565a;            /* 深湖藍底 */
  --dark-soft: #14494d;
  --paper-on-dark: #eaf7f6;
  --muted-on-dark: #c9e7e5;
  --serif: "PingFang TC", "Microsoft JhengHei", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --sans: "PingFang TC", "Microsoft JhengHei", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "SF Mono", monospace;
  --grad: linear-gradient(135deg, #14a3a9 0%, #0d8a8f 55%, #0a5e63 100%);
  --shadow-card: 0 10px 30px rgba(29, 33, 41, .08);
  --shadow-lift: 0 14px 40px rgba(13, 138, 143, .25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { padding-left: 1.4em; }
li { margin: .3em 0; }
b, strong { font-weight: 700; }

/* —— 中文排版微調：防孤字換行、標題平衡、標點規則 —— */
p, li, td, th, dd, figcaption { text-wrap: pretty; }
h1, h2, h3, h4, .post-title, .pit-head, .big-point, .pull-quote p { text-wrap: balance; }
.nw { white-space: nowrap; } /* 標題內詞組防劈開：整體移到下一行 */
.article p { text-align: justify; line-break: strict; }
.article .anon-note, .article .pull-quote p, .article .author-box p, .article .big-point { text-align: left; }
/* 短引言/導語類：兩行勻寬，避免尾行只剩兩三個字 */
.section-head p, .hero-sub, .anon-note, .author-box p, .cta-band p, .card p, .footer-col p, .tool-row p, li, td, .bal { text-wrap: balance; }
.table td, .table th, .pit-row dd { line-break: strict; }
::selection { background: rgba(13, 138, 143, .85); color: #fff; }
.hero h1, .article h1, .article h2, .section-head h2, .case-block h2, .post-title, .card h3 { letter-spacing: -.01em; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- 頂部 ---------- */
.site-header {
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(29,33,41,.04), 0 8px 28px rgba(29,33,41,.05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; flex: none;
  background: var(--grad);
  color: #fff;
  font-family: var(--serif);
  font-size: 22px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(13, 138, 143, .35);
}
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.2; }
.brand-name em { display: block; font-family: var(--sans); font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--muted); letter-spacing: .12em; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { text-decoration: none; font-size: 14.5px; color: var(--ink-soft); letter-spacing: .05em; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.site-nav .nav-cta { border: 1.5px solid var(--ink); padding: 7px 16px !important; border-radius: 999px; transition: .2s; }
.site-nav .nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- 語言切換 ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin-left: 14px; border: 1px solid var(--hairline); border-radius: 999px; padding: 2px; vertical-align: middle; }
.lang-switch button { border: none; background: none; font: inherit; font-size: 12.5px; line-height: 1; padding: 5px 10px; border-radius: 999px; cursor: pointer; color: var(--muted); transition: .2s; }
.lang-switch button.on { background: var(--accent); color: #fff; font-weight: 600; }
@media (max-width: 860px) { .lang-switch { margin-left: 0; align-self: center; } }

.nav-toggle { display: none; background: none; border: 1px solid var(--hairline); border-radius: 8px; width: 42px; height: 40px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); display: block; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(640px 320px at 82% 12%, rgba(13, 138, 143, .09), transparent 65%),
    repeating-linear-gradient(0deg, rgba(13, 138, 143, .045) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(13, 138, 143, .045) 0 1px, transparent 1px 56px);
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .2em;
  color: var(--accent); font-weight: 600;
  border: 1px solid rgba(13, 138, 143, .45);
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 26px;
  background: rgba(13, 138, 143, .05);
  font-variant-numeric: tabular-nums;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.32;
  letter-spacing: 0;
  text-wrap: wrap; /* 不做平衡換行，避免把「裝進系統」劈成兩半 */
  margin-bottom: 22px;
}
.hero h1 .rd { color: var(--accent); }
.hero-sub { font-size: 18px; color: var(--ink-soft); max-width: 640px; margin-bottom: 30px; }
.hero-flex { display: flex; align-items: center; gap: 40px; }
.hero-avatar { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; object-position: top; border: 1px solid var(--hairline); box-shadow: 0 0 0 6px var(--paper-deep); flex: none; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* 印章 */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 74px; height: 74px;
  background: var(--grad); color: #fff;
  font-family: var(--serif); font-size: 40px; font-weight: 900;
  border-radius: 12px;
  transform: rotate(-4deg);
  box-shadow: 3px 4px 0 rgba(29,33,41,.18), 0 10px 26px rgba(13,138,143,.3);
}

/* ---------- 按鈕 ---------- */
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 26px; border-radius: 999px; transition: .2s; border: 1.5px solid var(--ink); box-shadow: 0 2px 10px rgba(29, 33, 41, .07); }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 20px rgba(13, 138, 143, .3); }
.btn-primary:hover { background: var(--accent-deep); border-color: transparent; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- 數字帶（墨色深底） ---------- */
.stat-band { background: var(--dark); color: var(--paper-on-dark); border-top: 2px solid #ffd45c; }
.stat-band-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 36px 24px; max-width: 1200px; margin: 0 auto; }
.stat { padding: 6px 26px; border-left: 1px solid rgba(234,247,246,.18); }
.stat:first-child { border-left: none; }
.stat b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 900; color: #fff; line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.stat b .rd { color: #ffd45c; }
.stat span { font-size: 13px; color: var(--muted-on-dark); line-height: 1.6; display: block; margin-top: 4px; letter-spacing: .03em; }

/* ---------- 章節 ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--paper-deep); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section-dark { background: var(--dark); color: var(--paper-on-dark); border-top: 1px solid var(--dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .kicker { color: #ffd45c; }
.section-dark p { color: var(--muted-on-dark); }

.section-head { max-width: 760px; margin-bottom: 42px; }
.section-head.wide { max-width: 800px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; letter-spacing: .24em;
  color: var(--accent); font-weight: 700;
  margin-bottom: 14px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--accent); }

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 14px;
}
.section-head p { color: var(--ink-soft); font-size: 16.5px; }
/* 單行導語：字號微降，讓整句在一行內放下，避免 balance 把「每一個」這類詞劈開 */
.section-head p.keep-line { font-size: 16px; }

.sec-no {
  font-family: var(--serif);
  font-size: 13px; color: var(--muted);
  letter-spacing: .1em;
  margin-right: 10px;
}

/* ---------- 引文（金句） ---------- */
.pull-quote {
  position: relative;
  padding: 26px 30px 22px 66px;
  margin: 26px 0;
  border-left: 3px solid var(--accent);
  background: rgba(13, 138, 143, .06);
}
.pull-quote::before {
  content: "「";
  position: absolute; left: 18px; top: 8px;
  font-family: var(--serif);
  font-size: 42px; font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.pull-quote p { font-family: var(--serif); font-size: 19.5px; font-weight: 700; line-height: 1.7; }
.pull-quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 8px; letter-spacing: .06em; }
.section-dark .pull-quote { background: rgba(255, 212, 92, .12); border-left-color: #ffd45c; }
.section-dark .pull-quote::before { color: #ffd45c; }
.section-dark .pull-quote p { color: #fff; }

/* ---------- 匿名說明 ---------- */
.article .anon-note {
  font-size: 13px; color: var(--muted);
  border: 1px dashed var(--hairline);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 30px;
  line-height: 1.7;
}
.anon-note b { color: var(--ink-soft); }

/* ---------- 編輯式卡片（極簡，非彩色卡片） ---------- */
.card {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: #ffffff;
  padding: 28px 30px;
  transition: .22s ease;
}
.card:hover { border-color: rgba(13,138,143,.45); box-shadow: var(--shadow-card); transform: translateY(-3px); }
.card h3 { font-family: var(--serif); font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--ink-soft); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---------- 雙軌大字母塊 ---------- */
.track { border: 1.5px solid var(--ink); border-radius: 14px; padding: 34px 34px 30px; position: relative; background: #ffffff; }
.track-a { background: var(--paper); }
.track-b { background: #114a4e; color: var(--paper-on-dark); }
.track-b h3, .track-b b { color: #fff; }
.track-b p { color: var(--muted-on-dark); }
.track-b .more { color: #ffd45c; }
.track-letter {
  font-family: var(--serif);
  font-size: 64px; font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}
.track-b .track-letter { color: #ffd45c; }
.track h3 { font-family: var(--serif); font-size: 26px; font-weight: 900; margin-bottom: 12px; }
.track .who { font-size: 13px; letter-spacing: .14em; color: var(--muted); margin-bottom: 18px; }
.track-b .who { color: var(--muted-on-dark); }
.track ul { list-style: none; padding: 0; margin: 16px 0 6px; border-top: 1px solid var(--hairline); }
.track-b ul { border-top-color: rgba(234,247,246,.2); }
.track li { padding: 9px 0; border-bottom: 1px solid var(--hairline); font-size: 14.5px; }
.track-b li { border-bottom-color: rgba(234,247,246,.2); color: var(--paper-on-dark); }
.track li::before { content: "· "; color: var(--accent); font-weight: 900; }

.more { display: inline-block; margin-top: 16px; color: var(--accent); font-weight: 700; text-decoration: none; font-size: 14.5px; }
.more:hover { text-decoration: underline; }

/* ---------- 標籤 ---------- */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .08em;
  color: var(--accent);
  border: 1px solid rgba(13,138,143,.5);
  border-radius: 999px;
  padding: 3px 12px;
  margin: 0 8px 8px 0;
  font-variant-numeric: tabular-nums;
}
.tag-gray { color: var(--muted); border-color: var(--hairline); }
.tag-ink { color: var(--paper-on-dark); background: var(--ink); border-color: var(--ink); }

/* ---------- 案例大塊 ---------- */
.case-block { border-top: 3px solid var(--ink); padding-top: 26px; }
.case-no { font-family: var(--serif); font-size: 15px; color: var(--muted); letter-spacing: .3em; margin-bottom: 8px; }
.case-block h2 { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; line-height: 1.35; margin-bottom: 18px; }

.lbl-row { display: flex; gap: 16px; margin: 18px 0; }
.lbl {
  flex: none;
  width: 64px; text-align: center;
  font-size: 13px; font-weight: 700;
  color: #fff; background: var(--ink);
  border-radius: 6px;
  padding: 3px 0;
  height: fit-content;
  letter-spacing: .1em;
}
.lbl-red { background: var(--accent); }
.lbl-row .lbl-body { flex: 1; padding-top: 2px; }
.lbl-row .lbl-body ul { margin-top: 4px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: 12px; background: #ffffff; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th {
  text-align: left; font-family: var(--sans);
  font-size: 12.5px; letter-spacing: .1em; font-weight: 700;
  color: var(--ink-soft);
  padding: 13px 14px;
  border-bottom: 2px solid var(--ink);
  background: #f2f5f6;
  white-space: nowrap;
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; color: var(--ink-soft); line-height: 1.75; }
.table tr:last-child td { border-bottom: none; }
.table td b, .table td strong { color: var(--ink); }

/* ---------- 階梯 ---------- */
.ladder { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.ladder-step {
  flex: 1; min-width: 180px;
  border: 1.5px solid var(--ink); border-radius: 12px;
  padding: 20px 22px;
  background: #ffffff;
}
.ladder-step b { display: block; font-family: var(--serif); font-size: 17px; margin-bottom: 4px; }
.ladder-step span { font-size: 13px; color: var(--muted); }
.ladder-step.hl { background: var(--accent); border-color: var(--accent); color: #fff; }
.ladder-step.hl span { color: rgba(255,255,255,.85); }
.ladder-arrow { align-self: center; font-size: 20px; color: var(--muted); flex: none; }

/* ---------- 連載列表 ---------- */
.post-row {
  display: flex; align-items: center; gap: 22px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--hairline);
}
.post-row:first-of-type { border-top: 2px solid var(--ink); }
.post-num { font-family: var(--serif); font-size: 34px; font-weight: 900; color: rgba(29,33,41,.28); flex: none; width: 56px; font-variant-numeric: tabular-nums; }
.is-pub .post-num { color: var(--accent); }
.post-title { font-family: var(--serif); font-size: 18.5px; font-weight: 800; line-height: 1.5; }
.post-title a { text-decoration: none; }
.post-title a:hover { color: var(--accent); }
.post-hook { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.status { flex: none; font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; padding: 4px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.status-pub { color: #fff; background: var(--grad); }
.status-wip { color: var(--muted); border: 1px solid var(--hairline); }

/* ---------- NOW 狀態 ---------- */
.now-card {
  border: 1.5px solid rgba(234,247,246,.25);
  border-radius: 14px;
  background: var(--dark-soft);
  padding: 26px 30px;
  color: var(--paper-on-dark);
}
.section-dark .now-card, .now-band { border-color: var(--hairline); background: #ffffff; color: var(--ink); }
.now-head { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; letter-spacing: .14em; margin-bottom: 14px; }
.now-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(13,138,143,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(13,138,143,.05); } }
.now-card ul { list-style: none; padding: 0; }
.now-card li { padding: 5px 0; font-size: 15px; }
.now-card li::before { content: "— "; color: var(--accent); font-weight: 900; }
.section-dark .now-card li::before { color: #ffd45c; }

/* ---------- 時間線 ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--hairline); }
.tl-item { position: relative; padding-bottom: 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -33px; top: 10px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--accent);
}
.tl-time { font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--accent); margin-bottom: 6px; }
.tl-item h3 { font-family: var(--serif); font-size: 22px; font-weight: 900; margin-bottom: 10px; }
.tl-item p { max-width: 720px; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- 三流橫帶 ---------- */
.flow-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 30px 0; }
.flow-item { border-top: 2.5px solid var(--ink); padding-top: 16px; }
.flow-item b { font-family: var(--serif); font-size: 24px; font-weight: 900; display: block; margin-bottom: 6px; }
.flow-item b i { font-style: normal; color: var(--accent); font-size: 14px; letter-spacing: .2em; margin-left: 10px; vertical-align: 2px; }
.flow-item span { font-size: 14.5px; color: var(--ink-soft); }
.section-dark .flow-item { border-top-color: #ffd45c; }
.section-dark .flow-item b { color: #fff; }
.section-dark .flow-item span { color: var(--muted-on-dark); }

/* ---------- 工具行 ---------- */
.tool-row {
  display: grid; grid-template-columns: 84px 1fr 190px;
  gap: 24px; align-items: start;
  padding: 30px 6px;
  border-bottom: 1px solid var(--hairline);
}
.tool-row:first-of-type { border-top: 2.5px solid var(--ink); }
.tool-idx { font-family: var(--serif); font-size: 40px; font-weight: 900; color: rgba(29,33,41,.22); line-height: 1; }
.is-hot .tool-idx { color: var(--accent); }
.tool-row h3 { font-family: var(--serif); font-size: 21px; font-weight: 900; margin-bottom: 8px; }
.tool-row p { font-size: 14.5px; color: var(--ink-soft); }
.tool-meta { font-size: 13px; color: var(--muted); }
.tool-meta .tag { margin-right: 6px; }
.tool-act { margin-top: 14px; }

/* ---------- 文章頁 ---------- */
.article-wrap { padding: 60px 0 80px; }
.article { max-width: 860px; margin: 0 auto; }
.post-meta { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.article h1 { font-family: var(--serif); font-size: clamp(30px, 4.6vw, 44px); font-weight: 900; line-height: 1.4; margin-bottom: 26px; }
.article h2 { font-family: var(--serif); font-size: 24px; font-weight: 900; margin: 44px 0 16px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.article h2::before { content: "§ "; color: var(--accent); }
.article p { margin: 14px 0; color: var(--ink-soft); font-size: 16.5px; }
.article ul, .article ol { margin: 14px 0; color: var(--ink-soft); }
.article .big-point {
  font-family: var(--serif);
  font-size: 21px; font-weight: 900; color: var(--ink);
  border-left: 4px solid var(--accent);
  background: rgba(13, 138, 143, .055);
  border-radius: 0 12px 12px 0;
  padding: 14px 22px;
  margin: 28px 0;
  line-height: 1.7;
}
.author-box {
  margin-top: 50px; padding: 26px 28px;
  border: 1.5px solid var(--ink); border-radius: 14px;
  background: var(--paper-deep);
  font-size: 14.5px; line-height: 2;
}
.qr-hint { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--muted); border: 1px dashed var(--hairline); border-radius: 6px; padding: 3px 10px; }
.qr-img { display: inline-block; margin-top: 10px; width: 112px; height: 112px; border-radius: 10px; border: 1px solid var(--hairline); object-fit: cover; }

/* —— 避坑卡片：症狀 / 根子 / 解法 —— */
.pit { border: 1px solid var(--hairline); border-radius: 12px; margin: 20px 0; overflow: hidden; background: #f5fafa; }
.pit-head { font-family: var(--serif); font-weight: 700; font-size: 19px; padding: 12px 18px; background: var(--paper-deep); border-bottom: 1px solid var(--hairline); }
.pit-row { display: flex; gap: 14px; padding: 10px 18px; font-size: 15px; line-height: 1.75; }
.pit-row + .pit-row { border-top: 1px dashed var(--hairline); }
.pit-row dt { flex: 0 0 52px; font-weight: 700; letter-spacing: 2px; }
.pit-row dd { margin: 0; color: var(--ink-soft); }
.pit-sym dt { color: var(--muted); }
.pit-root dt { color: var(--accent-deep); }
.pit-fix { background: rgba(13, 138, 143, .06); }
.pit-fix dt { color: var(--accent); }
.next-post {
  margin-top: 30px; padding: 20px 26px;
  background: linear-gradient(135deg, #134448, #0f565a);
  color: var(--paper-on-dark);
  border-radius: 14px;
  border-left: 3px solid #ffd45c;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.next-post a { color: #ffd45c; text-decoration: none; font-weight: 700; flex: none; }
.next-post a:hover { text-decoration: underline; }

/* ---------- 聯繫頁 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.qr-box {
  width: 210px; height: 210px;
  border: 1.5px dashed var(--hairline); border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); font-size: 13px; text-align: center;
  background: #ffffff;
}
.qr-ico { font-size: 40px; color: var(--muted); }

/* ---------- CTA 帶 ---------- */
.cta-band {
  background: linear-gradient(135deg, #14a3a9 0%, #0d8a8f 50%, #0a5e63 100%);
  color: #fff;
  border-radius: 18px;
  padding: 46px 40px;
  text-align: center;
  box-shadow: var(--shadow-lift);
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(24px, 3.6vw, 36px); font-weight: 900; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 24px; }
.cta-band .btn { background: #fff; color: var(--accent-deep); border-color: #fff; }
.cta-band .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }

/* ---------- 金句牆 ---------- */
.quote-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; }
.quote-cell { padding: 26px 28px; border-bottom: 1px solid var(--hairline); }
.quote-cell:nth-child(odd) { border-right: 1px solid var(--hairline); }
.quote-cell:nth-last-child(-n+2) { border-bottom: none; }
.quote-cell p { font-family: var(--serif); font-weight: 800; font-size: 17px; line-height: 1.7; }
.quote-cell span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* ---------- 頁腳 ---------- */
.site-footer { background: var(--dark); color: var(--muted-on-dark); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 56px 24px 40px; }
.footer-brand { font-family: var(--serif); font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 14px; }
.footer-col p { font-size: 14px; line-height: 1.9; }
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: .18em; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted-on-dark); text-decoration: none; font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: #ffd45c; }
.footer-note { margin-top: 12px; font-size: 12.5px !important; color: rgba(157,196,194,.7); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 20px 24px 26px;
  border-top: 1px solid rgba(234,247,246,.12);
  font-size: 12.5px;
}

/* ---------- 響應式 ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .stat-band-inner { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .stat { border-left: none; padding: 4px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .tool-row { grid-template-columns: 56px 1fr; }
  .tool-meta { grid-column: 2; }
  .quote-wall { grid-template-columns: 1fr; }
  .quote-cell:nth-child(odd) { border-right: none; }
  .quote-cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--hairline); }
  .quote-cell:last-child { border-bottom: none; }
  .hero-flex { flex-direction: column-reverse; align-items: flex-start; gap: 26px; }
  .hero-avatar { width: 150px; height: 150px; }
}

@media (max-width: 680px) {
  .site-nav {
    display: none;
    position: absolute; top: 66px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column; align-items: stretch;
    padding: 14px 24px 20px; gap: 4px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; font-size: 16px; border-bottom: 1px solid var(--hairline); }
  .site-nav .nav-cta { border: none; text-align: center; background: var(--accent); color: #fff; margin-top: 10px; }
  .nav-toggle { display: flex; }
  .hero { padding: 52px 0 40px; }
  .section { padding: 54px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-band-inner { grid-template-columns: 1fr; }
  .stat b { font-size: 26px; }
  .flow-band { grid-template-columns: 1fr; }
  .post-row { flex-wrap: wrap; gap: 10px 16px; }
  .post-num { width: 44px; font-size: 28px; }
  .status { margin-left: 60px; }
  .pull-quote { padding: 22px 22px 18px 56px; }
  .cta-band { padding: 36px 24px; }
  .lbl-row { flex-direction: column; gap: 8px; }
  .lbl { width: auto; display: inline-block; padding: 3px 14px; }
  .track { padding: 26px 22px; }
  .next-post { flex-direction: column; align-items: flex-start; }
}
