/*!********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./src/styles/globals.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************/
/* ============================================
   無名氏 Blog · 全站樣式
   LUND 風格:自然寫實、照片主導、米白紙質
   ============================================ */

:root {
  --paper: #f5f1e9;
  --paper-warm: #efeae0;
  --cream: #faf7f1;

  /* 設計規範(參考 Anthropic/Webflow):12 欄網格 + 響應式邊距 */
  --site-max-width: 1240px;
  --site-margin: clamp(1.5rem, 0.5rem + 3vw, 5rem);   /* 小螢幕1.5 → 大螢幕5rem */
  --grid-gutter: clamp(1rem, 0.5rem + 1.5vw, 2rem);
  --ink: #33302a;
  --ink-soft: #6b6457;
  --ink-muted: #a59d8d;
  --forest: #3a4a3e;
  --forest-soft: #5a6b5e;
  --ember: #b5754c;
  --line: rgba(51, 48, 42, 0.08);
  --line-soft: rgba(51, 48, 42, 0.05);
  --shadow: rgba(51, 48, 42, 0.1);
  --shadow-deep: rgba(51, 48, 42, 0.2);

  /* 頭版深色選項(整組,文章可各自選用) */
  --feature-forest: #2c3a30;
  --feature-brown: #3d3128;
  --feature-ink: #2a2823;
  --feature-navy: #26313f;
  --feature-wine: #3a2730;
  --feature-slate: #313436;
  --feature-olive: #34361f;
  --feature-plum: #332a3d;
  --feature-teal: #213a39;
  --feature-current: var(--feature-forest);

  /* 後台沿用的相容別名 */
  --bg-base: var(--cream);
  --bg-glass: var(--cream);
  --bg-glass-strong: var(--paper);
  --line-strong: rgba(51, 48, 42, 0.14);
  --line-mid: rgba(51, 48, 42, 0.1);
  --ink-soft2: var(--ink-soft);
  --seal: var(--ember);
  --highlight-soft: rgba(255,255,255,0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.01em;
  font-size: 15px;
  overflow-x: clip;
  position: relative;
  width: 100%;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* 後台用的卡片(沿用 .glass 名稱) */
.glass {
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px var(--shadow);
}

/* ===== 導航 ===== */
nav.top {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.9rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(244, 242, 237, 0.85);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
  gap: 1rem;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
}
.brand-name {
  font-family: 'Cormorant', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.3em;
  color: var(--ink);
  text-indent: 0.3em;
}
@media (max-width: 360px) {
  .brand-name { font-size: 20px; letter-spacing: 0.25em; }
  .nav-links { gap: 0.9rem; }
  .nav-links a { font-size: 13px; }
}
.nav-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: 'Noto Serif TC', serif;
  font-weight: 400;
  font-size: 14px; letter-spacing: 0.12em;
  color: var(--ink-soft);
  transition: color 0.3s;
  padding: 6px 4px;
}
.nav-links a:hover, .nav-links a:active { color: var(--ember); }

/* ===== 漢堡選單 + 全螢幕選單 ===== */
.nav-burger {
  display: none;            /* 桌面隱藏 */
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav-burger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--ink); margin: 0 auto;
  transition: all 0.3s;
}
.nav-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--paper);
  display: flex; flex-direction: column;
  padding: 0.9rem 1.1rem;
}
.nav-overlay-head {
  display: flex; justify-content: space-between; align-items: center;
}
.nav-close {
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: var(--ink); line-height: 1;
}
.nav-overlay-links {
  flex: 1 1;
  display: flex; flex-direction: column; justify-content: center;
  gap: 0.5rem; padding: 0 0.5rem;
}
.nav-overlay-links a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.nav-overlay-zh {
  font-family: 'Noto Serif TC', serif;
  font-weight: 300;
  font-size: 34px; letter-spacing: 0.08em;
  color: var(--ink);
}
.nav-overlay-en {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ember);
}

/* 手機:顯示漢堡,藏桌面連結 */
@media (max-width: 767px) {
  .nav-desktop { display: none; }
  .nav-burger { display: flex; }
}


/* ===== 首圖 ===== */
.hero {
  position: relative;
  margin: 1rem;
  border-radius: 6px;
  overflow: hidden;
  height: 78vh;
  min-height: 460px;
}
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,46,44,0.15) 0%, transparent 30%, transparent 55%, rgba(42,46,44,0.55) 100%);
}
.hero-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-soft) 60%, var(--ember) 130%);
}
.hero-content {
  position: absolute;
  left: 0; bottom: 0;
  padding: 2rem 1.75rem;
  z-index: 2;
  color: var(--cream);
}
.hero-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 200;
  font-size: 38px;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* ===== 區塊 ===== */
section { position: relative; overflow-x: clip; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 4.5rem 0 1.75rem;
}
.sec-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 300;
  font-size: 30px;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.sec-more {
  font-family: 'Noto Serif TC', serif;
  font-size: 13px; letter-spacing: 0.1em;
  color: var(--ink-muted);
  padding: 6px 4px;
}
.sec-more:hover, .sec-more:active { color: var(--ember); }

/* ===== 手記:雜誌式圖文卡 ===== */
.notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1.25rem;
  gap: 1.25rem;
}
.note { cursor: pointer; display: block; }
.note-img {
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  position: relative;
  background: var(--paper-warm);
}
.note-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.note:hover .note-img img { transform: scale(1.04); }
.note-img-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--paper-warm), var(--paper));
  color: var(--ink-muted);
  font-family: 'Cormorant', serif; font-style: italic; font-size: 20px;
}
.note-cab {
  position: absolute;
  top: 12px; left: 12px;
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 400;
  font-size: 12px; letter-spacing: 0.1em;
  background: rgba(244,242,237,0.95);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 3px;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.note-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.note-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 6px;
}
.note-excerpt {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.see-all-row {
  margin-top: 2.5rem;
  text-align: center;
}
.see-all-row a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 12px 28px;
  border: 1px solid var(--line);
  border-radius: 2px;
  display: inline-block;
  transition: all 0.3s;
}
.see-all-row a:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }

/* ===== 陳列櫃:分類代表照 ===== */
.cabinets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1rem;
  gap: 1rem;
}
.cab {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  display: block;
  background: var(--forest);
}
.cab img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.cab:hover img { transform: scale(1.06); }
.cab-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-soft) 100%);
}
.cab::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,46,44,0.1) 0%, transparent 40%, rgba(42,46,44,0.7) 100%);
}
.cab-label {
  position: absolute;
  left: 0; bottom: 0;
  padding: 1.1rem 1rem;
  z-index: 2;
  color: var(--cream);
}
.cab-name {
  font-family: 'Noto Serif TC', serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.cab-en {
  font-family: 'Cormorant', serif;
  font-style: italic;
  font-size: 12px;
  opacity: 0.85;
  letter-spacing: 0.1em;
}
.cab-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  opacity: 0.85;
  margin-top: 4px;
}

/* ===== 引言 ===== */
.quote {
  text-align: center;
  padding: 4.5rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}
.quote-text {
  font-family: 'Noto Serif TC', serif;
  font-weight: 200;
  font-size: 22px;
  line-height: 1.7;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.quote-line { width: 40px; height: 1px; background: var(--ember); margin: 1.75rem auto 0; }

/* ===== 關於 ===== */
.about {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  margin: 0 1rem;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background: var(--forest);
}
.about-img { position: absolute; inset: 0; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(42,46,44,0.85) 100%);
}
.about-content { position: relative; z-index: 2; padding: 2.5rem 1.75rem; color: var(--cream); }
.about-name {
  font-family: 'Noto Serif TC', serif;
  font-weight: 300; font-size: 28px;
  letter-spacing: 0.15em; margin-bottom: 4px;
}
.about-sub {
  font-family: 'Cormorant', serif;
  font-style: italic; font-size: 14px;
  opacity: 0.8; margin-bottom: 1.5rem;
}
.about-text { font-size: 14px; line-height: 1.95; max-width: 560px; opacity: 0.95; }

/* ===== 頁尾 ===== */
footer {
  background: var(--forest);
  color: var(--paper);
  margin-top: 5rem;
  padding: 4rem 1.5rem 2.5rem;
}
.foot-name {
  font-family: 'Cormorant', serif;
  font-weight: 500;
  font-size: 28px; letter-spacing: 0.3em;
  margin-bottom: 1rem;
  text-indent: 0.3em;
}
.foot-tag {
  font-family: 'Cormorant', serif;
  font-style: italic;
  font-size: 15px;
  opacity: 0.7;
  margin-bottom: 2.5rem;
}
.foot-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(244,242,237,0.15);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ===== 單篇文章 ===== */
.article-page { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.article-cover {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  max-width: 1100px;
  aspect-ratio: 16/9;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 2.5rem;
  background: var(--paper-warm);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.back-link {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--ink-muted); margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.back-link:hover { color: var(--ember); }
.article-page h1 {
  font-family: 'Noto Serif TC', serif;
  font-weight: 300; font-size: 32px;
  line-height: 1.3; margin-bottom: 1rem;
  letter-spacing: 0.02em; color: var(--ink);
}
.article-page .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-muted);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 2.5rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.article-body { font-size: 16px; line-height: 2; color: var(--ink-soft); }
.article-body p { margin-bottom: 1.5rem; }
.article-body h2 { font-family: 'Noto Serif TC', serif; font-weight: 400; font-size: 26px; color: var(--ink); margin: 2.5rem 0 1rem; }
.article-body h3 { font-family: 'Noto Serif TC', serif; font-weight: 400; font-size: 21px; color: var(--ink); margin: 2rem 0 0.75rem; }
.article-body h4 { font-family: 'Noto Serif TC', serif; font-weight: 500; font-size: 17px; color: var(--ink); margin: 1.5rem 0 0.5rem; }
.article-body img { max-width: 100%; height: auto; border-radius: 4px; margin: 1.5rem 0; }
.article-body a { color: var(--ember); border-bottom: 1px solid var(--ember); }
.article-body blockquote { border-left: 2px solid var(--ember); padding-left: 1.25rem; margin: 1.5rem 0; color: var(--ink-soft); font-style: italic; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.article-body mark { border-radius: 2px; padding: 0 3px; }
.article-body pre { background: var(--ink); color: var(--paper); padding: 1.25rem; border-radius: 4px; overflow-x: auto; font-family: 'JetBrains Mono', monospace; font-size: 14px; margin: 1.5rem 0; }
.article-body pre code { background: none; color: inherit; }
.article-body u { text-decoration: underline; }
.article-body s { text-decoration: line-through; }
.article-body div[data-youtube-video] { margin: 2rem 0; }
.article-body div[data-youtube-video] iframe, .article-body iframe { max-width: 100%; width: 100%; aspect-ratio: 16/9; height: auto; border-radius: 4px; border: none; }
.article-body [style*="text-align: center"] { text-align: center; }
.article-body [style*="text-align: right"] { text-align: right; }
.article-tags-row {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.article-tag-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--ember);
}

/* ===== 列表頁 ===== */
.list-page { max-width: 1240px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.list-head { margin: 1rem 0 2.5rem; }
.list-head .sec-title { display: block; margin-bottom: 4px; }
.list-head .ch-sub { font-family: 'Cormorant', serif; font-style: italic; color: var(--ink-muted); font-size: 14px; }

@media (min-width: 768px) {
  nav.top { padding: 1.3rem 2.5rem; }
  .nav-links { gap: 2rem; }
  .nav-links a { font-size: 15px; letter-spacing: 0.18em; }
  .brand-name { font-size: 28px; }
  .hero { margin: 1.5rem; height: 82vh; }
  .hero-content { padding: 3rem 3rem; }
  .hero-title { font-size: 64px; }
  .sec-title { font-size: 40px; }
  .notes-grid { grid-template-columns: repeat(4, 1fr); }
  .cabinets { grid-template-columns: repeat(4, 1fr); }
  .quote-text { font-size: 36px; }
  .about { margin: 0 1.5rem; min-height: 480px; }
  .about-content { padding: 3.5rem 3rem; }
  .about-name { font-size: 36px; }
  footer { padding: 5rem 2.5rem 3rem; }
  .article-page { padding: 3rem 2rem 5rem; }
  .article-page h1 { font-size: 42px; }
}

/* ===== 頭版卡(復刻 Anthropic Duraldar:max-width 延伸,內容不被推歪) ===== */
.feature {
  display: block;
  position: relative;
  text-decoration: none;
  margin-bottom: 5.5rem;
  --wrap-w: 100%;   /* 起始寬度=容器寬;延伸時 JS 改成 100vw */
}
/* 背景色塊:width 從容器寬→100vw。left:50%+translateX(-50%) 讓它置中且能突破容器 */
.feature-bg {
  width: 100%;
  max-width: var(--feature-start-w, 1180px);
  margin: 0 auto;
  background: var(--feature-current);
  border-radius: 14px;
  box-shadow: 0 8px 30px var(--shadow);
  overflow: hidden;
}
/* 內容:在背景內維持版面寬度(不隨背景變寬),置中 */
.feature-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 14px 0;
}
.feature-media {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-media-fallback { width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); }
.feature-body { padding: 1.5rem 1.5rem 2rem; }
.feature-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.9rem;
  display: flex; gap: 12px; align-items: center;
}
.feature-cat { color: var(--ember); }
.feature-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 300;
  font-size: clamp(24px, 5.5vw, 34px);
  line-height: 1.4;
  color: #f5f1e9;
  margin-bottom: 0.9rem;
}
.feature-excerpt {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 300;
  font-size: 15px; line-height: 1.85;
  color: rgba(245,241,233,0.75);
  margin-bottom: 1.4rem;
  max-width: 560px;
}
.feature-more {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.1em;
  color: var(--ember);
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .feature-content { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 0; gap: 0; align-items: center; }
  /* 文字在左、圖在右(像官網) */
  .feature-body { order: 1; padding: 3.5rem 3.5rem 3.5rem 4rem; display: flex; flex-direction: column; justify-content: center; }
  .feature-media {
    order: 2;
    aspect-ratio: 1 / 1;        /* 正方形(像官網) */
    height: auto;
    max-width: 560px;
    width: 100%;
    margin: 1.5rem 1.5rem 1.5rem auto;  /* 靠右,小留白(像官網) */
    border-radius: 8px;
  }
  .feature-body .feature-title {
    font-size: clamp(34px, 3.6vw, 54px);
    font-weight: 200;
    line-height: 1.15;
    margin-bottom: 1.5rem;
  }
  .feature-body .feature-excerpt {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 2rem;
    max-width: 42ch;
  }
  .feature-body .feature-meta { margin-bottom: 1.4rem; font-size: 11px; }
  .feature-body .feature-more { font-size: 13px; }
}
@media (min-width: 1024px) {
  .feature-media { max-width: 620px; margin-right: 2rem; }
  .feature-body { padding: 4rem 3rem 4rem 5rem; }
}

/* ===== 頭版配色:用 data 屬性讓每個頭版各自指定 ===== */
.feature-bg[data-fc="forest"], .article-page[data-fc="forest"] { --fc-bg: var(--feature-forest); }
.feature-bg[data-fc="brown"],  .article-page[data-fc="brown"]  { --fc-bg: var(--feature-brown); }
.feature-bg[data-fc="ink"],    .article-page[data-fc="ink"]    { --fc-bg: var(--feature-ink); }
.feature-bg[data-fc="navy"],   .article-page[data-fc="navy"]   { --fc-bg: var(--feature-navy); }
.feature-bg[data-fc="wine"],   .article-page[data-fc="wine"]   { --fc-bg: var(--feature-wine); }
.feature-bg[data-fc="slate"],  .article-page[data-fc="slate"]  { --fc-bg: var(--feature-slate); }
.feature-bg[data-fc="olive"],  .article-page[data-fc="olive"]  { --fc-bg: var(--feature-olive); }
.feature-bg[data-fc="plum"],   .article-page[data-fc="plum"]   { --fc-bg: var(--feature-plum); }
.feature-bg[data-fc="teal"],   .article-page[data-fc="teal"]   { --fc-bg: var(--feature-teal); }
/* 套用:背景層用指定色(沒指定則 fallback 預設) */
.feature-bg[data-fc] { background: var(--fc-bg, var(--feature-current)); }

/* ===== 文章內頁:頭版深色底(沉浸式,配色跟頭版卡一致) ===== */
.article-featured-wrap[data-fc="forest"] { --afc: var(--feature-forest); }
.article-featured-wrap[data-fc="brown"]  { --afc: var(--feature-brown); }
.article-featured-wrap[data-fc="ink"]    { --afc: var(--feature-ink); }
.article-featured-wrap[data-fc="navy"]   { --afc: var(--feature-navy); }
.article-featured-wrap[data-fc="wine"]   { --afc: var(--feature-wine); }
.article-featured-wrap[data-fc="slate"]  { --afc: var(--feature-slate); }
.article-featured-wrap[data-fc="olive"]  { --afc: var(--feature-olive); }
.article-featured-wrap[data-fc="plum"]   { --afc: var(--feature-plum); }
.article-featured-wrap[data-fc="teal"]   { --afc: var(--feature-teal); }
.article-featured-wrap {
  background: var(--afc, var(--feature-forest));
  min-height: 100vh;
}
/* 頭版文章頁:深底淺字 */
.article-page-featured { color: rgba(245,241,233,0.92); }
.article-page-featured h1 { color: #f5f1e9; }
.article-page-featured .meta { color: rgba(245,241,233,0.6); }
.article-page-featured .back-link { color: rgba(245,241,233,0.7); }
.article-page-featured .back-link:hover { color: var(--ember); }
.article-page-featured .article-body { color: rgba(245,241,233,0.85); }
.article-page-featured .article-body h2,
.article-page-featured .article-body h3,
.article-page-featured .article-body strong { color: #f5f1e9; }
.article-page-featured .article-body a { color: var(--ember); }
.article-page-featured .article-body blockquote {
  border-left-color: var(--ember);
  color: rgba(245,241,233,0.75);
}
.article-page-featured .article-tag-pill {
  background: rgba(245,241,233,0.1);
  color: rgba(245,241,233,0.8);
  border-color: rgba(245,241,233,0.2);
}

/* ===== 無首圖:頭版卡直接當開頭 ===== */
.notes-top { padding-top: 2rem; }
@media (min-width: 768px) {
  .notes-top { padding-top: 2.5rem; }
}
/* 第一個頭版:正常大小當開頭(不佔滿首屏,才有縮放空間) */
.feature-hero { margin-top: 0; }

/* ===== 文章內頁:回首頁/手記連結列 ===== */
.article-nav-links { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; }
.article-nav-links .back-link { margin-bottom: 0; }
/* 深色頭版文章頁:導航 Blog 字+連結改淺色(深底看得清) */
.article-featured-wrap .top { background: transparent; border-bottom-color: rgba(245,241,233,0.12); }
.article-featured-wrap .brand-name { color: #f5f1e9; }
.article-featured-wrap .brand-mark svg circle,
.article-featured-wrap .brand-mark svg path { stroke: var(--ember); }
.article-featured-wrap .nav-links a { color: rgba(245,241,233,0.8); }
.article-featured-wrap .nav-links a:hover { color: var(--ember); }
.article-featured-wrap .nav-burger span { background: #f5f1e9; }

/* ===== 簡介區(頭版上方,像官網 hero) ===== */
.hero-intro {
  padding: clamp(3rem, 8vh, 7rem) 0 clamp(2.5rem, 6vh, 5rem);
}
.hero-intro-grid { display: grid; grid-template-columns: 1fr; grid-gap: 1.5rem; gap: 1.5rem; }
.hero-intro-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ember); margin-bottom: 1.25rem;
}
.hero-intro-title {
  font-family: 'Noto Serif TC', serif; font-weight: 200;
  font-size: clamp(34px, 6vw, 64px); line-height: 1.18; color: var(--ink);
}
.hero-intro-text {
  font-family: 'Noto Sans TC', sans-serif; font-weight: 300;
  font-size: 16px; line-height: 2; color: var(--ink-soft); max-width: 40ch;
}
@media (min-width: 768px) {
  /* 12 欄:大標題 7 欄、簡介 5 欄(像官網) */
  .hero-intro-grid { grid-template-columns: 7fr 5fr; gap: 3rem; align-items: end; }
}

/* ===== 頭版 section:獨立全寬,背景 max-width:100% = 視窗滿版(像官網) ===== */
.feature-section {
  width: 100%;
  margin-bottom: clamp(4rem, 8vh, 7rem);   /* 下方大器留白 */
  /* 起始寬度 = 網站容器寬(對齊簡介、文章);GSAP 把它延伸到 100%(視窗滿版) */
  --feature-start-w: min(var(--site-max-width), calc(100vw - 2 * var(--site-margin)));
}
.feature-section .feature { display: block; position: relative; text-decoration: none; }

