/* ===========================================================
   哇哇3C日誌  ─  Newsprint Editorial v6
   一份每日都在續刊的個人副刊
   Typography: Noto Sans TC（黑體） + Zen Maru Gothic（圓體） + Plus Jakarta Sans + IBM Plex Mono
   Palette:    純白紙 + 墨黑 + 森林綠 + 金棕點綴
   Reading:    letter-spacing 1px / line-height 1.9（中文閱讀優化）
   Hero ratio: 19:10
   =========================================================== */

/* Google Fonts 改由 _layout.php 以 <link> 平行載入（@import 會形成 render-blocking 鏈） */

/* ── Design tokens ─────────────────────────────────────────── */

:root {
  /* Paper —— 白色宣紙：純白底 + 極淡灰纖維紋 */
  --paper:        #FFFFFF;          /* 純白主背景 */
  --paper-2:      #F4F4F2;          /* 紙紋略深（中性灰） */
  --paper-3:      #FAFAF8;          /* 高亮：精選 / quote 區塊 */
  --paper-edge:   #E8E8E5;          /* 紙邊陰影 */
  --soot:         #111111;          /* 反白區塊主黑（topbar / footer / nav stamp） */
  --soot-2:       #1A1A1A;          /* 反白次黑 */

  /* Ink */
  --ink:          #14110A;          /* 墨黑帶微黃 */
  --ink-2:        #3A332A;          /* 次墨：副標 / meta */
  --ink-3:        #6E665B;          /* 墨灰：註腳 */
  --ink-faint:    #9C9388;          /* 極淡墨 */

  /* Rules */
  --rule:         #14110A;          /* 黑色細線 */
  --rule-soft:    #DAD3C3;          /* 淡米細線（白底上不刺眼） */
  --rule-mid:     #B5AC97;          /* 中度線 */

  /* Accents ── 主色：深森林綠（取代朱紅），次點綴：金棕 */
  --seal:         #2F5D3A;          /* 深森林綠（雜誌主色） */
  --seal-deep:    #1F4429;          /* 更深綠 */
  --seal-soft:    #E2EDDD;          /* 淡綠底（極輕） */
  --seal-line:    #8FA98F;          /* 中綠線 */
  --gold:         #C19A3D;          /* 金棕（topbar 點綴） */
  --gold-soft:    #E8C870;          /* 暖金 */
  --moss:         #4E5D38;          /* 苔綠（保留作次強調） */

  /* Alias（給舊 class 名稱使用） */
  --bg:           var(--paper);
  --card:         var(--paper-3);
  --border:       var(--rule);
  --border-light: var(--rule-soft);
  --muted:        var(--ink-2);
  --faint:        var(--ink-3);
  --coral:        var(--seal);
  --coral-mid:    var(--seal-deep);
  --navy-1:       var(--ink);
  --navy-4:       var(--ink-2);

  /* Type ── 中文優先，黑體為主、圓體為標題重點 */
  --font-display:  'Zen Maru Gothic', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;  /* 圓體：刊名／主視覺標題 */
  --font-rounded:  'Zen Maru Gothic', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;  /* alias */
  --font-han:      'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', 'Heiti TC', sans-serif;          /* 中文黑體 */
  --font-body:     'Noto Sans TC', 'Plus Jakarta Sans', 'PingFang TC', 'Microsoft JhengHei', sans-serif;  /* 內文：黑體 */
  --font-sans:     'Plus Jakarta Sans', 'Noto Sans TC', system-ui, sans-serif;                            /* 西文圓潤 sans */
  --font-mono:     'IBM Plex Mono', 'Courier New', monospace;

  /* Rhythm */
  --gutter:       12px;
  --max:          1200px;
  --max-narrow:   860px;

  /* Misc */
  --shadow-paper: 0 1px 0 var(--paper-edge), 0 6px 28px -16px rgba(20, 17, 10, .22);
}

/* ── Reset & base ──────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; }

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.9;
  letter-spacing: calc(1px + var(--cf-ls, 0px));
  font-feature-settings: 'kern' 1, 'palt' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
}

/* 純白背景 + 緩慢漂浮的水墨光斑動畫 */
body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
body::before {
  width: 620px; height: 620px;
  top: -180px; left: -140px;
  background: radial-gradient(circle, rgba(47, 93, 58, .14), transparent 70%);
  animation: drift-a 38s ease-in-out infinite alternate;
}
body::after {
  width: 720px; height: 720px;
  bottom: -220px; right: -180px;
  background: radial-gradient(circle, rgba(181, 57, 44, .1), transparent 70%);
  animation: drift-b 46s ease-in-out infinite alternate;
}
/* 第三個光斑用獨立元素：放在 .site-header-wrap 內 */
.site-header-wrap::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: -1;
  width: 540px; height: 540px;
  top: 30%; left: 45%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(135, 107, 44, .08), transparent 70%);
  filter: blur(70px);
  animation: drift-c 52s ease-in-out infinite alternate;
}

@keyframes drift-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(180px, 120px, 0) scale(1.12); }
  100% { transform: translate3d(80px, 220px, 0) scale(.95); }
}
@keyframes drift-b {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-140px, -100px, 0) scale(1.08); }
  100% { transform: translate3d(-220px, 60px, 0) scale(1.18); }
}
@keyframes drift-c {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-120px, 80px, 0) scale(1.1); }
  100% { transform: translate3d(160px, -90px, 0) scale(.9); }
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .site-header-wrap::after {
    animation: none;
  }
}

img { max-width: 100%; height: auto; display: block; }
svg { display: inline-block; vertical-align: middle; }

/* Selection */
::selection { background: var(--ink); color: var(--paper); }

/* Headings ── 中文黑體為主 */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  font-family: var(--font-han);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: calc(1px + var(--cf-ls, 0px));
  line-height: 1.35;
}
h1 { font-size: clamp(1.85rem, 3.6vw, 2.8rem); line-height: 1.28; }
h2 { font-size: clamp(1.45rem, 2.1vw, 1.85rem); line-height: 1.32; }
h3 { font-size: clamp(1.15rem, 1.4vw, 1.32rem); font-weight: 700; line-height: 1.4; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: calc(1px + var(--cf-ls, 0px)); }

p { margin: 0 0 1.1em; }

/* Links */
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color .2s, text-decoration-color .2s;
}
a:hover {
  color: var(--seal);
  text-decoration-color: var(--seal);
}
a.no-underline,
.no-underline a { text-decoration: none; }

/* Code */
code, pre, kbd, samp {
  font-family: var(--font-mono);
  font-size: .9em;
}
code:not(pre code) {
  background: rgba(20, 17, 10, .06);
  border: 1px solid var(--rule-soft);
  padding: .04em .35em;
  border-radius: 2px;
}
pre {
  position: relative;
  background: #18140C;
  color: #E8DFC4;
  padding: 1.1rem 1.2rem;
  border-radius: 0;
  border: 1px solid var(--ink);
  margin: 1.4em 0;
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.7;
}
pre code { background: none; border: 0; padding: 0; color: inherit; }

/* Blockquote 引言 */
blockquote {
  position: relative;
  margin: 1.8em 0;
  padding: .5rem 0 .5rem 1.7rem;
  border-left: 3px solid var(--ink);
  font-family: var(--font-han);
  font-weight: 500;
  font-size: 1.06em;
  line-height: 1.85;
  color: var(--ink-2);
}
blockquote::before {
  content: '「';
  position: absolute;
  left: -.7rem;
  top: -.6rem;
  font-family: var(--font-rounded);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--seal);
}
blockquote p:last-child { margin-bottom: 0; }

hr {
  border: 0;
  height: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* Lists */
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: .25em; }

/* Forms baseline */
input, button, textarea, select { font: inherit; color: inherit; }
input:focus, button:focus, textarea:focus, select:focus { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ── Layout container ──────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 640px) { .container { padding: 0 18px; } }

/* row / col grid（向後相容 Bootstrap-like 用法） */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
}
[class*="col-"] {
  width: 100%;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  min-width: 0;
}
.col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 768px) {
  .col-md-6  { flex: 0 0 50%; max-width: 50%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 992px) {
  .col-lg-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .col-lg-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-lg-12 { flex: 0 0 100%;     max-width: 100%; }
}
@media (min-width: 1200px) {
  .col-xl-3 { flex: 0 0 25%;       max-width: 25%; }
  .col-xl-4 { flex: 0 0 33.3333%;  max-width: 33.3333%; }
  .col-xl-6 { flex: 0 0 50%;       max-width: 50%; }
  .col-xl-9 { flex: 0 0 75%;       max-width: 75%; }
}

/* gy / gx */
.gy-5  { row-gap: 2.5rem; }
.gy-6  { row-gap: 3rem; }
.gx-lg-8  { --gutter: 16px; }
@media (min-width: 992px) { .gx-lg-8  { --gutter: 16px; } }
@media (min-width: 1200px){ .gx-xl-12 { --gutter: 22px; } }

/* ── Utility ───────────────────────────────────────────────── */
.d-flex { display: flex; }
.d-block { display: block; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-1 { gap: .35rem; }
.gap-2 { gap: .65rem; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .35rem !important; }
.mb-2 { margin-bottom: .65rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2.25rem !important; }
.mb-6 { margin-bottom: 3rem !important; }
.mb-8 { margin-bottom: 4rem !important; }
.mt-1 { margin-top: .35rem; }
.mt-2 { margin-top: .65rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2.25rem; }
.mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 4rem; }
.mt-10 { margin-top: 5rem; }
.ms-3 { margin-left: 1rem; }
@media (min-width: 992px){ .mt-lg-0 { margin-top: 0 !important; } }

.py-10 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
@media (min-width: 768px){ .py-md-12 { padding-top: 2rem; padding-bottom: 2rem; } }

.text-center   { text-align: center; }
.text-muted    { color: var(--ink-3); }
.link-dark     { color: var(--ink); }
.text-decoration-none, .text-decoration-none:hover { text-decoration: none; }
.text-reset    { color: inherit; }
.text-line     { display: block; }

.fs-12 { font-size: .76rem; }
.fs-13 { font-size: .82rem; }
.fs-14 { font-size: .88rem; }
.fs-16 { font-size: 1rem; }
.fs-17 { font-size: 1.06rem; }
.fs-18 { font-size: 1.12rem; }
.ls-xl { letter-spacing: calc(1px + var(--cf-ls, 0px)); }
.lh-xxs { line-height: 1.4; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.bg-light { background: transparent; }
.bg-dark  { background: var(--ink); color: var(--paper); }
.text-inverse { color: var(--paper); }

.h3 { font-size: clamp(1.25rem, 1.6vw, 1.55rem); font-family: var(--font-han); font-weight: 900; }

/* ── Site header (報頭) ────────────────────────────────────── */

.site-header-wrap {
  background: transparent;
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 50;
}

/* Topbar：版次 / 期數 / 社群 —— 反白實黑條 */
.site-topbar {
  background: var(--soot);
  color: #EFEAD9;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 0;
}
.site-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 38px;
  padding-top: 8px; padding-bottom: 8px;
}
.topbar-stamps {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  flex-wrap: wrap;
  color: rgba(239, 234, 217, .68);
}
.topbar-stamps .stamp-vol {
  color: #F4C24B;
  font-weight: 600;
  border-right: 1px solid rgba(239, 234, 217, .25);
  padding-right: 12px;
}
.topbar-stamps .stamp-issue {
  border-right: 1px solid rgba(239, 234, 217, .25);
  padding-right: 12px;
  color: #EFEAD9;
}
.topbar-date {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: #EFEAD9;
}
@media (max-width: 720px){
  .topbar-stamps .stamp-issue { display: none; }
  .topbar-stamps .stamp-vol { padding-right: 8px; }
}
.topbar-social a {
  color: rgba(239, 234, 217, .85);
}
.topbar-social a:hover {
  color: #F4C24B;
  border-bottom-color: #F4C24B;
}
.topbar-social { display: flex; gap: 14px; align-items: center; }
.topbar-social a {
  color: var(--ink-2);
  text-decoration: none;
  letter-spacing: .12em;
  font-size: .72rem;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.topbar-social a:hover { color: var(--seal); border-bottom-color: var(--seal); }
.topbar-social a i { font-size: .9rem; }

/* Masthead：縮小刊名 + 上下夾報眉雙線 */
.site-masthead {
  padding: 20px 0 25px;
  border-top: 6px solid var(--soot);
  border-bottom: 1px solid var(--rule);
  position: relative;
  background: transparent;
}
.site-masthead::before,
.site-masthead::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--rule);
}
.site-masthead::before { bottom: 5px; opacity: .35; }
.site-masthead::after  { bottom: 0; }
.site-masthead .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  position: relative;
}
.site-masthead .container::before,
.site-masthead .container::after { display: none; }
.masthead-brand {
  font-family: var(--font-rounded);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: calc(1px + var(--cf-ls, 0px));
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
  display: inline-block;
}
.masthead-brand:hover { color: var(--ink); text-decoration: none; }
.masthead-tagline { display: none; }
.masthead-tagline::before,
.masthead-tagline::after {
  content: '·';
  margin: 0 10px;
  color: var(--seal);
  font-style: normal;
}

/* Nav：細線分隔的水平導覽 */
.site-nav {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 0 var(--rule-soft);
}
.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
}
.site-nav-list {
  display: flex;
  list-style: none;
  padding: 0; margin: 0;
  flex-wrap: wrap;
  gap: 0;
}
.site-nav-list li { position: relative; }
.site-nav-list li + li::before {
  content: '';
  position: absolute;
  left: 0; top: 18%; bottom: 18%;
  width: 1px;
  background: var(--rule-soft);
}
.site-nav-list a,
.site-nav-list button {
  display: inline-flex;
  align-items: center;
  padding: 13px 18px;
  font-family: var(--font-han);
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
  border: 0;
  background: none;
  cursor: pointer;
  letter-spacing: calc(1px + var(--cf-ls, 0px));
  transition: background .15s;
}
.site-nav-list a:hover,
.site-nav-list button:hover {
  background: var(--ink);
  color: var(--paper);
}

/* 下拉 */
.nav-dropdown { position: relative; }
.nav-dropdown-btn::after { content: ''; }
.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 0;
  box-shadow: 0 18px 40px -22px rgba(20,17,10,.5);
  padding: 8px 0;
  display: none;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel { display: block; }
.nav-dropdown-panel a {
  display: block;
  padding: 9px 18px;
  font-family: var(--font-han);
  font-size: .88rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: calc(1px + var(--cf-ls, 0px));
}
.nav-dropdown-panel a:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 991px){
  .desktop-only { display: none !important; }
}

/* 漢堡 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--rule);
  padding: 9px 10px;
  cursor: pointer;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
}
@media (max-width: 991px){ .mobile-menu-toggle { display: inline-flex; } }
@media (max-width: 991px){ .site-nav-list .desktop-only { display: none !important; } }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,17,10,.55);
  z-index: 100;
}
.mobile-menu.is-open { display: block; }
.mobile-menu-inner {
  width: min(92%, 360px);
  height: 100%;
  margin-left: auto;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 22px;
  box-shadow: -20px 0 50px -20px rgba(0,0,0,.4);
}
.mobile-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.mobile-menu-title {
  font-family: var(--font-han);
  font-weight: 900;
  font-size: 1.2rem;
}
.mobile-menu-close {
  background: none; border: 1px solid var(--rule);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: .9rem;
  cursor: pointer;
}
.mobile-menu-close:hover { background: var(--ink); color: var(--paper); }
.mobile-menu-links { display: flex; flex-direction: column; padding-top: 8px; }
.mobile-menu-links a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule-soft);
  font-family: var(--font-han);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
}
.mobile-menu-links a:hover { color: var(--seal); }

/* ── Content wrapper / sidebar split ──────────────────────── */

.content-wrapper { background: transparent; padding-top: 6px; }
.wrapper { padding: 36px 0 48px; }
.sidebar { padding-top: 12px; }

.entry-container { max-width: 1280px; }

/* Two column rule between content & sidebar */
@media (min-width: 992px){
  .blog-content { position: relative; }
}

/* ── Visually-hidden site name (h1 on home) already handled ──*/

/* ── Classic page header (列表頁標題) ──────────────────────── */
.classic-page-header {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0 20px;
  margin-bottom: 32px;
  position: relative;
}
.classic-page-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 5px;
  height: 1px;
  background: var(--rule);
  opacity: .35;
}
.classic-page-title {
  font-family: var(--font-han);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  margin: 0;
  letter-spacing: calc(1px + var(--cf-ls, 0px));
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.classic-page-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 1.05em;
  background: var(--seal);
  align-self: center;
  transform: translateY(.1em);
}
.classic-page-meta {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb-nav {
  margin: 0 0 1.5rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.breadcrumb-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap;
  align-items: center;
}
.breadcrumb-list li + li::before {
  content: '/';
  margin: 0 .55em;
  color: var(--ink-3);
}
.breadcrumb-list a {
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px dotted var(--ink-3);
}
.breadcrumb-list a:hover { color: var(--seal); border-color: var(--seal); }

/* ── HOME ─ Hero（頭版頭條） ───────────────────────────────── */

.post-hero-wrap {
  position: relative;
  margin: 0 0 36px;
  padding: 22px 0 28px;
  border-top: 4px double var(--rule);
  border-bottom: 1px solid var(--rule);
}
.post-hero-wrap::before {
  content: '頭條　THE LEAD';
  position: absolute;
  top: -.85em; left: 50%;
  transform: translateX(-50%);
  background: var(--seal);
  padding: 4px 16px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .35em;
  color: #fff;
  font-weight: 500;
}
.post-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  position: relative;
}
@media (max-width: 880px){
  .post-hero { grid-template-columns: 1fr; gap: 18px; }
}
.post-hero-link {
  display: contents;
  color: inherit;
  text-decoration: none;
}
.post-hero-img {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 19 / 10;
  border: 1px solid var(--rule);
}
.post-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .8s ease, transform 1s ease;
  /* 報紙印刷感：細微的黑白模擬 */
  filter: contrast(1.04) saturate(.92);
}
.post-hero-img img.is-loaded,
.post-hero-img img.loaded { opacity: 1; transform: scale(1); }
.post-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(20,17,10,.18));
  pointer-events: none;
}
.post-hero:hover .post-hero-img img {
  transform: scale(1.025);
}
.post-hero-body {
  padding: 0 4px 0 6px;
}
.post-hero .post-category {
  margin-bottom: .85rem;
}
.post-hero .post-category a {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--seal);
  text-decoration: none;
  border: 1px solid var(--seal);
  padding: 4px 9px;
}
.post-hero .post-category a:hover { background: var(--seal); color: var(--paper); }

.post-hero-title {
  font-family: var(--font-han);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.32;
  letter-spacing: calc(1px + var(--cf-ls, 0px));
  color: var(--ink);
  margin: .25rem 0 .9rem;
  text-decoration: none;
}
/* Hero title：連結在文字上，不在圖片上 */
.post-hero-title a { color: var(--ink); text-decoration: none; }
.post-hero-title a:hover,
.post-hero:hover .post-hero-title a { color: var(--seal); }
.post-hero-excerpt {
  font-family: var(--font-han);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.92;
  color: var(--ink-2);
  margin: 0 0 1.2rem;
  max-width: 38em;
  letter-spacing: calc(1px + var(--cf-ls, 0px));
}
@media (max-width: 560px){ .post-hero-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } }

.post-hero-meta {
  display: flex; gap: 1.2rem; align-items: baseline;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: .9rem;
  border-top: 1px solid var(--rule-soft);
}
.post-hero-meta time { color: var(--ink); }
.post-hero-read {
  margin-left: auto;
  color: var(--seal);
  border-bottom: 1px solid var(--seal);
}

/* ── HOME ─ 雙欄 / 三欄卡片 ────────────────────────────────── */

.blog.grid .row { margin-top: 6px; }

.post { position: relative; }
.card {
  position: relative;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* 雙欄／三欄卡片：細線分隔 + 上下留白 */
.col-md-6 > .post > .card,
.col-md-12 > .post > .card,
.col-xl-4 > .post > .card,
.col-xl-6 > .post > .card,
.col-lg-8 > .post > .card,
.col-lg-4 > .post > .card {
  padding-top: 4px;
  border-top: 1px solid var(--rule);
}

.card-body { padding: 18px 0 16px; flex: 1 1 auto; display: flex; flex-direction: column; }
.card-body .post-title { flex: 1 1 auto; }
.card-footer { padding: 12px 0 6px; border-top: 1px dashed var(--rule-soft); }

.card-img-top, figure.card-img-top {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 19 / 10;
  border: 1px solid var(--rule-soft);
  margin: 0;
}
.card-img-top img, figure.card-img-top img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease, transform .8s ease;
  filter: contrast(1.04) saturate(.9);
}
.card-img-top img.is-loaded, figure.card-img-top img.is-loaded,
.card-img-top img.loaded, figure.card-img-top img.loaded { opacity: 1; }
.card:hover .card-img-top img { transform: scale(1.02); }

.card-img-hero { aspect-ratio: 19 / 10; }

/* 類別 chip：朱紅小標 */
.post-category { margin-top: 14px; margin-bottom: .35rem; }
.post-category a, .post-category a:hover {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--seal);
  padding: 2px 0;
  border-bottom: 1px solid var(--seal);
}

/* 標題 ── 無 excerpt 後加大讓視覺充實 */
.blog.grid .post-title,
.blog.classic-view .post-title,
.blog.grid-view .post-title {
  font-family: var(--font-han);
  font-weight: 900;
  font-size: clamp(1.1rem, 1.55vw, 1.36rem);
  line-height: 1.55;
  margin: .35rem 0 0;
  letter-spacing: calc(1px + var(--cf-ls, 0px));
}
.col-md-6 .post-title {
  font-family: var(--font-han);
  font-weight: 900;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  line-height: 1.45;
}
.col-xl-4 .post-title {
  font-size: clamp(1.08rem, 1.4vw, 1.26rem);
}

.blog.grid .post-title a,
.blog.grid .post-title .link-dark,
.blog.classic-view .post-title a,
.blog.grid-view .post-title a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--seal), var(--seal));
  background-position: 0 100%;
  background-size: 0% 1px;
  background-repeat: no-repeat;
  transition: background-size .35s ease, color .2s;
  padding-bottom: 3px;
}
.blog.grid .post-title a:hover,
.blog.grid .post-title .link-dark:hover,
.blog.classic-view .post-title a:hover,
.blog.grid-view .post-title a:hover {
  color: var(--seal);
  background-size: 100% 1px;
}

/* 卡片 hover 時：標題下方滑出綠色短線（補強無簡述卡片的視覺） */
.col-md-6 > .post .post-title::after,
.col-xl-4 > .post .post-title::after,
.col-12.col-md-6 > .post .post-title::after {
  content: '';
  display: block;
  width: 26px; height: 3px;
  background: var(--seal);
  margin-top: 12px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .3s ease, transform .3s ease, width .3s ease;
}
.col-md-6 > .post .card:hover .post-title::after,
.col-xl-4 > .post .card:hover .post-title::after,
.col-12.col-md-6 > .post .card:hover .post-title::after {
  opacity: 1;
  transform: translateX(0);
  width: 38px;
}

/* Excerpt */
.blog.grid .card-body .post-content p,
.blog.classic-view .card-body .post-content p,
.blog.grid-view .card-body .post-content p {
  font-family: var(--font-han);
  font-size: .94rem;
  line-height: 1.85;
  color: var(--ink-2);
  letter-spacing: calc(1px + var(--cf-ls, 0px));
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta */
.post-meta {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; gap: 1rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.post-meta li { display: inline-flex; align-items: center; }
.post-meta a, .post-meta span {
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}
.post-meta a:hover { color: var(--seal); border-bottom-color: var(--seal); }
.post-meta i { display: none; }

/* Featured 印章樣式由 site-enhancements.css 接手（右下角紅色圓章） */

/* ── Pagination ───────────────────────────────────────────── */

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 48px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.pagination .footer-meta {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--ink-3);
  letter-spacing: .16em;
  flex: 1; text-align: center;
}

.infinite-sentinel {
  text-align: center;
  padding: 28px 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--ink-3);
}
.infinite-sentinel.is-active::before {
  content: '⋯';
  display: inline-block;
  margin-right: 8px;
  font-size: 1.4rem;
  color: var(--seal);
  animation: blink 1.4s infinite;
}
.infinite-sentinel.is-done { opacity: 0; pointer-events: none; }
@keyframes blink { 50% { opacity: .25; } }

/* ── Sidebar widgets（小欄目） ────────────────────────────── */
.widget { margin-bottom: 2.4rem; }
.widget-title {
  font-family: var(--font-han);
  font-weight: 900;
  font-size: 1.08rem;
  letter-spacing: calc(1px + var(--cf-ls, 0px));
  color: var(--ink);
  padding: 0 0 10px;
  margin: 0 0 14px !important;
  border-bottom: 1px solid var(--rule);
  position: relative;
  text-transform: none;
}
.widget-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 36px; height: 3px;
  background: var(--seal);
}

/* Search form 搜尋框 */
.search-form { margin: 0; }
.form-floating { position: relative; }
.form-floating > label {
  position: absolute;
  top: 10px; left: 14px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  pointer-events: none;
  transition: opacity .2s;
}
.form-floating > .form-control:focus + label,
.form-floating > .form-control:not(:placeholder-shown) + label { opacity: 0; }
.form-control {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  padding: 10px 14px 10px 14px;
  font-family: var(--font-han);
  font-size: .98rem;
  color: var(--ink);
  border-radius: 0;
}
.form-control::placeholder { color: transparent; }
.form-control:focus { outline: none; border-color: var(--seal); }

/* 側欄文章卡片 */
.sidebar-post-cards {
  display: flex; flex-direction: column; gap: 18px;
}
.sidebar-post-card {
  border-bottom: 1px dashed var(--rule-soft);
  padding-bottom: 14px;
}
.sidebar-post-card:last-child { border-bottom: 0; }
.sidebar-card-link {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: start;
  text-decoration: none;
  color: inherit;
}
.sidebar-card-link:hover .sidebar-card-title { color: var(--seal); }
.sidebar-card-img {
  margin: 0;
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  position: relative;
}
.sidebar-card-img::after { font-size: 1rem !important; }
.sidebar-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity .6s;
  filter: contrast(1.04) saturate(.9);
}
.sidebar-card-img img.is-loaded { opacity: 1; }
.sidebar-card-body { min-width: 0; }
.sidebar-card-title {
  font-family: var(--font-han);
  font-weight: 700;
  font-size: .94rem;
  line-height: 1.55;
  letter-spacing: calc(1px + var(--cf-ls, 0px));
  color: var(--ink);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.sidebar-card-date {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--ink-3);
}

/* Tag list */
.tag-list, .search-list, .archive-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px 8px;
}
.tag-list li, .search-list li, .archive-list li { margin: 0; }
.tag-list a, .search-list a, .archive-list a, .entry-tag-link {
  display: inline-block;
  font-family: var(--font-han);
  font-size: 13px;
  letter-spacing: calc(1px + var(--cf-ls, 0px));
  color: var(--ink-2);
  background: transparent;
  text-decoration: none;
  border: 1px dashed #e4e3e3;
  border-radius: 8px;
  padding: 4px 10px;
  transition: background .15s, color .15s, border-color .15s;
}
.tag-list a:hover, .search-list a:hover, .archive-list a:hover, .entry-tag-link:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  border-style: solid;
}

/* 相關文章分類 ── 橫向流動的分類連結列 */
.unordered-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* related-cats-grid：橫向排列，多個分類不換行 */
.related-cats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  padding: 6px 0 2px;
  border-top: 1px solid var(--rule-soft);
}
.related-cats-grid li {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  position: static;
}
.related-cats-grid li::before { display: none; }

/* 分隔點：相鄰 li 之間插入 · */
.related-cats-grid li + li::before {
  content: '·';
  display: inline-block;
  color: var(--rule-mid);
  padding: 0 5px;
  font-size: .85em;
  line-height: 1;
}

.related-cats-grid a {
  display: inline-block;
  font-family: var(--font-han);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  letter-spacing: calc(1px + var(--cf-ls, 0px));
  padding: 4px 3px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
  line-height: 1.4;
}
.related-cats-grid a:hover {
  color: var(--seal);
  border-bottom-color: var(--seal);
}

/* 一般 unordered-list（非 related-cats-grid） */
.unordered-list:not(.related-cats-grid) li {
  padding: 7px 0 7px 14px;
  position: relative;
  border-bottom: 1px dashed var(--rule-soft);
  font-family: var(--font-han);
  font-size: .92rem;
}
.unordered-list:not(.related-cats-grid) li::before {
  content: '·';
  position: absolute;
  left: 2px; top: 7px;
  color: var(--seal);
  font-size: 1rem;
}
.unordered-list:not(.related-cats-grid) a {
  text-decoration: none;
  color: var(--ink);
}
.unordered-list:not(.related-cats-grid) a:hover { color: var(--seal); }

/* search 列頁的小 chip */
.search-list a, .text-fuchsia { color: var(--seal) !important; }

/* archive list（年月）*/
.archive-list a { font-family: var(--font-mono); letter-spacing: .12em; }

/* ── 單篇文章 ─────────────────────────────────────────────── */

.blog.single { }
.icontent + .icontent { margin-top: 64px; padding-top: 36px; border-top: 4px double var(--rule); }

.blog.single .card {
  background: transparent;
  border: 0;
  padding: 0;
}
.blog.single .card-body { padding: 0; }

.post-header {
  text-align: left;
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.post-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 1px;
  background: var(--rule);
  opacity: .35;
}
.post-header .post-category { margin-top: 0; margin-bottom: 1rem; }
.post-header .post-category a {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--seal);
  padding: 5px 12px;
  border: 0;
}
.post-header .post-category a:hover { background: var(--seal-deep); color: var(--paper); }

.display-4 {
  font-family: var(--font-han);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.35;
  letter-spacing: calc(1px + var(--cf-ls, 0px));
  margin: 0 0 1.2rem;
  color: var(--ink);
}
.display-4 a { color: inherit; text-decoration: none; }
.display-4 a:hover { color: var(--ink); }

.post-header .post-meta {
  border-top: 1px dashed var(--rule-soft);
  padding-top: 12px;
  margin-top: 14px;
}
#reading-time-wrap {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--ink-3);
}

/* TOC */
#article-toc-anchor + .article-toc,
.article-toc {
  margin: 0 0 32px;
  padding: 16px 18px;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--seal);
  font-family: var(--font-han);
}
.article-toc-title {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--seal);
  margin: 0 0 8px;
}
.article-toc ol { padding-left: 1.4em; margin: 0; }
.article-toc a { text-decoration: none; color: var(--ink); }
.article-toc a:hover { color: var(--seal); text-decoration: underline; }

/* 內文 article 排版 ── 中文閱讀優化 */
.post-content { }
.article, #article-body {
  font-family: var(--font-han);
  font-weight: 400;
  font-size: 1.06rem;          /* ≈ 17.5px，中文最舒適區間 */
  line-height: 2.0;             /* 中文需要更寬鬆 */
  letter-spacing: calc(1px + var(--cf-ls, 0px));
  color: var(--ink);
  word-break: break-word;
}
.article p, #article-body p { margin: 0 0 1.4em; }
.article strong, #article-body strong {
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(transparent 65%, rgba(47, 93, 58, .18) 65%);
  padding: 0 2px;
}

/* Dropcap：文章第一個段落首字，圓體大字 */
.article > p:first-of-type::first-letter,
#article-body > p:first-of-type::first-letter {
  font-family: var(--font-rounded);
  font-weight: 900;
  float: left;
  font-size: 3.6em;
  line-height: 1;
  padding: .08em .15em 0 0;
  margin-right: .05em;
  color: var(--seal);
}

.article h2, #article-body h2 {
  font-family: var(--font-han);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.45;
  margin: 2.2em 0 .8em;
  padding-bottom: .45em;
  border-bottom: 2px solid var(--ink);
  position: relative;
  letter-spacing: calc(1px + var(--cf-ls, 0px));
}
.article h2::before, #article-body h2::before {
  content: '';
  display: inline-block;
  width: 6px; height: 1em;
  background: var(--seal);
  margin-right: .55em;
  transform: translateY(.12em);
}
.article h3, #article-body h3 {
  font-family: var(--font-han);
  font-weight: 900;
  font-size: 1.22rem;
  line-height: 1.5;
  margin: 1.9em 0 .7em;
  color: var(--ink);
  padding-left: .7em;
  border-left: 4px solid var(--ink);
}
.article h4, #article-body h4 {
  font-family: var(--font-han);
  font-weight: 700;
  font-size: 1.08rem;
  margin: 1.7em 0 .5em;
  letter-spacing: calc(1px + var(--cf-ls, 0px));
}

.article a, #article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--seal);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
.article a:hover, #article-body a:hover {
  color: var(--seal);
  text-decoration-thickness: 2px;
}

.article img, #article-body img {
  margin: 1.6em auto;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  max-width: 100%;
}

.article figure, #article-body figure { margin: 1.6em 0; }
.article figcaption, #article-body figcaption {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--ink-3);
  text-align: center;
  margin-top: 8px;
}

.article ul li, .article ol li,
#article-body ul li, #article-body ol li { margin-bottom: .55em; line-height: 1.95; }
.article ul, #article-body ul { list-style: none; padding-left: 0; }
.article ul li, #article-body ul li {
  padding-left: 1.5em; position: relative;
}
.article ul li::before, #article-body ul li::before {
  content: '●';
  position: absolute; left: 0; top: 0;
  color: var(--seal);
  font-size: .7em;
  line-height: 2.65;
}
.article ol, #article-body ol { padding-left: 1.5em; }
.article ol li::marker, #article-body ol li::marker {
  color: var(--seal);
  font-family: var(--font-rounded);
  font-weight: 700;
}

.article table, #article-body table {
  width: 100%; border-collapse: collapse;
  margin: 1.6em 0;
  font-family: var(--font-han);
  font-size: .95rem;
}
.article th, .article td,
#article-body th, #article-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule-soft);
  text-align: left;
}
.article th, #article-body th {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Pre / code 已上面定義 */
.copy-btn {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper);
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0; transition: opacity .2s;
}
pre:hover .copy-btn { opacity: 1; }

/* Post footer 標籤區 */
.post-footer {
  margin: 32px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.post-footer::before {
  content: '標籤　TAGS';
  position: absolute;
  top: -.85em; left: 0;
  background: var(--soot);
  color: #fff;
  padding: 4px 14px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .3em;
}

/* Post nav 上下篇 */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 50px 0 0;
  border-top: 4px double var(--rule);
  border-bottom: 1px solid var(--rule);
}
.post-nav > a, .post-nav > span {
  display: block;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
}
.post-nav > a + a {
  border-left: 1px solid var(--rule);
  text-align: right;
}
.post-nav .label {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--seal);
  margin-bottom: 6px;
}
.post-nav .title {
  font-family: var(--font-han);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-nav > a:hover { background: var(--paper-3); }
.post-nav > a:hover .title { color: var(--seal); }
@media (max-width: 640px){
  .post-nav { grid-template-columns: 1fr; }
  .post-nav > a + a { border-left: 0; border-top: 1px solid var(--rule); text-align: left; }
}

/* Related entries */
.related-entry-excerpt p {
  font-family: var(--font-han);
  font-size: .92rem;
  color: var(--ink-2);
  margin: 0;
}
section.wrapper.bg-light.mt-10 > .container > .row.mb-6 .h3,
section.wrapper.bg-light.mt-10 > .container > .row.mb-6 h2 {
  font-family: var(--font-han);
  font-weight: 900;
  font-size: 1.4rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
section.wrapper.bg-light.mt-10 > .container > .row.mb-6 .h3::before,
section.wrapper.bg-light.mt-10 > .container > .row.mb-6 h2::before {
  content: '延伸閱讀　·　RELATED';
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .3em;
  color: var(--seal);
  margin-bottom: 8px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 9px 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s;
  border-radius: 0;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 6px 11px; font-size: .68rem; }
.rounded-pill { border-radius: 999px; }

.btn-soft-ash, .btn-soft-leaf, .btn-soft-aqua {
  background: var(--paper-3);
  border-color: var(--rule);
  color: var(--ink);
}
.btn-soft-ash:hover, .btn-soft-leaf:hover, .btn-soft-aqua:hover {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
}
.bg-soft-leaf { background: var(--paper-3); border: 1px solid var(--rule); }
.text-leaf { color: var(--moss); }
.badge {
  display: inline-block;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: calc(1px + var(--cf-ls, 0px));
  margin-left: 4px;
}

.divider-icon {
  text-align: center;
  position: relative;
  margin: 24px 0 16px;
}
.divider-icon::before, .divider-icon::after {
  content: '';
  position: absolute; top: 50%;
  width: 38%; height: 1px;
  background: var(--rule-soft);
}
.divider-icon::before { left: 0; }
.divider-icon::after  { right: 0; }
.divider-icon span {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--paper);
  padding: 0 12px;
  position: relative; z-index: 1;
}

/* Card 內 tags */
.card-entry-tags {
  margin: -2px 0 6px;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.card-entry-tags .entry-tag-link {
  font-size: .66rem;
  padding: 2px 7px;
  letter-spacing: .12em;
}

/* ── Footer ───────────────────────────────────────────────── */
footer.bg-dark {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 0;
  margin-top: 80px;
  border-top: 8px solid var(--seal);
  position: relative;
}
footer.bg-dark::before {
  content: '';
  position: absolute;
  top: -16px; left: 0; right: 0;
  height: 8px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 12px, var(--paper) 12px 14px);
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px dashed rgba(242, 235, 216, .25);
}
@media (max-width: 760px){ .site-footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand-name {
  display: inline-block;
  font-family: var(--font-rounded);
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--paper);
  text-decoration: none;
  margin-bottom: 12px;
  letter-spacing: calc(1px + var(--cf-ls, 0px));
}
footer.bg-dark p {
  color: rgba(242, 235, 216, .75);
  font-family: var(--font-han);
  font-size: .92rem;
  line-height: 1.85;
  letter-spacing: calc(1px + var(--cf-ls, 0px));
}
.footer-social { display: flex; gap: 14px; margin-top: 14px; }
.footer-social a {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(242, 235, 216, .3);
}
.footer-social a:hover { border-bottom-color: var(--seal); color: var(--seal-soft); }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--seal-soft);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(242, 235, 216, .2);
}
.footer-col-links { list-style: none; padding: 0; margin: 0; }
.footer-col-links li { margin-bottom: 8px; }
.footer-col-links a {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-han);
  font-size: .92rem;
  border-bottom: 1px dashed transparent;
}
.footer-col-links a:hover { border-bottom-color: var(--seal-soft); color: var(--seal-soft); }
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(242, 235, 216, .55);
}

/* ── Skeleton（載入中） ──────────────────────────────────── */
.skeleton {
  display: block;
  background:
    linear-gradient(90deg, rgba(20,17,10,.06), rgba(20,17,10,.13), rgba(20,17,10,.06));
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 0;
}
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
.skeleton-line { height: 14px; margin-bottom: 8px; }
.skeleton-line.tight { height: 11px; margin-bottom: 6px; }
.skeleton-line.w-90 { width: 90%; }
.skeleton-line.w-70 { width: 70%; }
.skeleton-line.w-55 { width: 55%; }
.skeleton-meta { display: flex; gap: 10px; margin-top: 10px; }
.skeleton.date   { height: 11px; width: 90px; }
.skeleton.author { height: 11px; width: 60px; }

.media-placeholder {
  background:
    repeating-linear-gradient(135deg,
      rgba(20,17,10,.025) 0 8px,
      rgba(20,17,10,.05) 8px 16px);
  position: relative;
}
.media-placeholder::after {
  content: '哇'; /* 紙質佔位文字 */
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-han);
  font-weight: 900;
  font-size: 2rem;
  color: rgba(20, 17, 10, .12);
  pointer-events: none;
}
.media-placeholder img.is-loaded ~ ::after,
.media-placeholder:has(img.is-loaded)::after,
.media-placeholder:has(img.loaded)::after { display: none; }

/* Lazy fade */
.lazy-img { opacity: 0; }
.lazy-img.is-loaded, .lazy-img.loaded { opacity: 1; transition: opacity .6s; }

/* ── Notice / 404 ─────────────────────────────────────────── */
.notice {
  border: 2px solid var(--ink);
  padding: 32px;
  margin: 24px 0;
  background: var(--paper-3);
  position: relative;
}
.notice::before {
  content: '號外　STOP PRESS';
  position: absolute;
  top: -.85em; left: 16px;
  background: var(--seal);
  color: #fff;
  padding: 4px 14px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .3em;
}
.notice-title {
  font-family: var(--font-han);
  font-weight: 900;
  font-size: 1.6rem;
  margin-bottom: .8rem;
}

/* ── AdSense 和諧（白底融合） ────────────────────────────── */
ins.adsbygoogle {
  display: block;
  background: transparent;
  margin: 28px 0;
  min-height: 0;
}

/* ── overlay 設定（卡片圖片懸停） ─────────────────────────── */
.overlay { position: relative; }
.overlay.overlay-1::before { content: ''; }
.hover-scale { overflow: hidden; }
.hover-scale img { transition: transform .8s; }
.hover-scale:hover img { transform: scale(1.04); }

/* ── 顯示輔助 ─────────────────────────────────────────────── */
@media (max-width: 540px){
  .post-hero-meta { flex-wrap: wrap; gap: .5rem 1rem; }
  .post-hero-read { margin-left: 0; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  body { background: #fff; color: #000; }
  .site-header-wrap, footer.bg-dark, .sidebar, .pagination, .infinite-sentinel, .post-nav { display: none !important; }
  .article a { text-decoration: underline; }
  .article a::after { content: ' (' attr(href) ')'; font-size: .8em; color: #555; }
}
