/* 朔方文境 前台
   展牆白、墨色、石灰色細節；唯一的色彩是畫廊標示「已售出」的紅點 */
:root {
  --wall: #fbfbfa;
  --ink: #1c1d1f;
  --stone: #7d7f7c;
  --rule: #e4e4e1;
  --panel: #efefec;
  --red: #c8102e;

  --serif: "Noto Serif TC", "Noto Serif CJK TC", "Source Han Serif TC", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Songti TC", "Songti SC", "PMingLiU", serif;
  --sans: "PingFang TC", "PingFang SC", "Noto Sans TC", "Noto Sans CJK TC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft JhengHei", "Microsoft YaHei", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- 頁首 / 頁尾 ---------- */
.site-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter);
}
.logo { display: inline-flex; align-items: flex-end; gap: 14px; font-family: var(--serif); font-size: 19px; letter-spacing: .32em; line-height: 1; }
.logo:hover { text-decoration: none; }
.logo .mark { width: 92px; height: auto; }
.site-head nav { display: flex; gap: 32px; font-size: 14px; letter-spacing: .12em; }
.site-head nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.site-foot {
  max-width: var(--max); margin: 120px auto 0; padding: 32px var(--gutter) 48px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  color: var(--stone); font-size: 13px;
}
.site-foot p { margin: 0; }
.site-foot p:first-child { font-family: var(--serif); letter-spacing: .32em; color: var(--ink); }

main { display: block; }
.block { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); margin-top: 104px; }
.page-top { margin-top: 40px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 36px; }
.block-head h2, .page-title {
  font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: .2em; margin: 0;
}
.page-title { font-size: 30px; margin-bottom: 48px; }
.block-head a, .muted { font-size: 13px; color: var(--stone); letter-spacing: .08em; }
.empty { color: var(--stone); padding: 40px 0; }
.empty a { text-decoration: underline; text-underline-offset: 4px; margin-left: 8px; }

/* ---------- 首頁：直書標題 ---------- */
/* 直書由右往左讀：標題在最右，說明接著往左，讀完正好接到左邊的作品 */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 0;
  display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 96px); align-items: start;
}
.hero-work { order: 1; }
.hero-text { order: 2; display: flex; flex-direction: row-reverse; gap: clamp(20px, 3vw, 40px); align-items: flex-start; }
.vertical {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(56px, 8.4vw, 124px); line-height: 1; letter-spacing: .26em;
  margin: 0;
}
.statement {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--serif); font-size: 16px; line-height: 2.3; letter-spacing: .14em;
  color: var(--stone); margin: 12px 0 0;
  max-height: 22em;
}
.hero-work { display: block; }
.hero-work:hover { text-decoration: none; }
.hero-wall {
  display: flex; align-items: center; justify-content: center;
  background: var(--panel); height: min(78vh, 760px); padding: clamp(24px, 5%, 64px);
}
.hero-wall img { width: auto; height: auto; max-width: 100%; max-height: 100%; box-shadow: 0 1px 2px rgba(28, 29, 31, .08), 0 8px 24px rgba(28, 29, 31, .06); }

/* ---------- 美術館說明牌 ---------- */
.label { display: block; padding-top: 14px; font-size: 13px; color: var(--stone); line-height: 1.65; }
.label > span { display: block; }
.label .t { font-family: var(--serif); font-size: 16px; color: var(--ink); line-height: 1.5; margin-bottom: 2px; }
/* 名字（作品、藝術家）用明體，資料用黑體 */
.label .a { font-family: var(--serif); font-size: 14px; color: var(--ink); letter-spacing: .04em; }
.label .p { margin-top: 6px; color: var(--ink); }
.price-main { display: block; letter-spacing: .02em; }
.fx { display: block; font-size: 12px; color: var(--stone); margin-top: 2px; letter-spacing: .02em; }
.work-info .price .fx { font-size: 13px; margin-top: 4px; }
.sold { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); display: inline-block; }

/* ---------- 作品瀑布流 ---------- */
.masonry { columns: 3 300px; column-gap: clamp(24px, 3.4vw, 48px); }
.piece { display: block; break-inside: avoid; margin-bottom: clamp(40px, 5vw, 64px); }
.piece:hover { text-decoration: none; }
/* 所有作品都加一層很淡的陰影，像掛在牆上 */
.piece .frame { display: block; }
.piece .frame img {
  width: 100%; height: auto; transition: opacity .2s;
  box-shadow: 0 1px 2px rgba(28, 29, 31, .07), 0 6px 18px rgba(28, 29, 31, .06);
}
/* 瘦長作品：固定 3:4 展示框，作品置中、左右留白、不裁切 */
.piece .frame.tall {
  aspect-ratio: 3 / 4; background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  padding: 7% 0;
}
.piece .frame.tall img { width: auto; height: 100%; max-width: 86%; object-fit: contain; }
.piece:hover .frame img { opacity: .9; }
.piece:hover .t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.no-image { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; color: var(--stone); font-size: 13px; }

/* ---------- 藝術家 ---------- */
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 48px 32px; }
.artist { display: block; }
.artist:hover { text-decoration: none; }
.artist .portrait { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: var(--panel); overflow: hidden; margin-bottom: 14px; }
.artist .portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); }
.artist .initial { font-family: var(--serif); font-size: 44px; color: var(--stone); }
.artist .n { display: block; font-family: var(--serif); font-size: 17px; letter-spacing: .08em; }
.artist:hover .n { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.artist .en, .artist .loc { display: block; font-size: 13px; color: var(--stone); }

/* ---------- 個人頁輪播（展牆） ---------- */
.wall { max-width: var(--max); margin: 8px auto 0; padding: 0 var(--gutter); outline: none; }
.wall-stage { position: relative; aspect-ratio: 16 / 9; max-height: 80vh; background: var(--panel); overflow: hidden; }
.slide {
  position: absolute; inset: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 5%, 72px);
  opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease; }
.slide a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 1px 2px rgba(28, 29, 31, .08), 0 10px 30px rgba(28, 29, 31, .07); }
.wall-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; min-height: 96px; }
.wall-nav { display: flex; align-items: center; gap: 4px; padding-top: 10px; font-size: 13px; color: var(--stone); }
.wall-nav button { background: none; border: 0; font: inherit; font-size: 26px; line-height: 1; color: var(--ink); cursor: pointer; padding: 4px 12px; }
.wall-nav .count { min-width: 3.5em; text-align: center; letter-spacing: .1em; }
.wall-nav .count b { font-weight: 400; color: var(--ink); }

/* 左欄：身分與私訊（捲動時停在畫面上）；右欄：簡介與經歷，統一明體 */
.artist-intro { margin-top: 72px; display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(40px, 8vw, 128px); align-items: start; }
.who { position: sticky; top: 32px; }
.who .avatar { width: 100%; max-width: 220px; aspect-ratio: 1; height: auto; object-fit: cover; margin-bottom: 24px; }
.artist-name { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: .14em; margin: 0 0 8px; }
.who .en, .who .loc { margin: 0; color: var(--stone); font-size: 14px; letter-spacing: .04em; }
.who .contact { margin-top: 28px; }
.about { max-width: 40em; font-family: var(--serif); }
.bio { font-size: 16px; line-height: 2; }
.bio p { margin: 0 0 1.4em; }
.bio p:last-child { margin-bottom: 0; }
.cv-wrap { margin-top: 64px; display: grid; gap: 44px; }
.cv-wrap h2 { font-family: var(--serif); font-weight: 400; font-size: 14px; letter-spacing: .24em; color: var(--stone); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.cv { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.8; }
.cv li { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 16px; padding: 6px 0; }
.cv li.no-yr { grid-template-columns: minmax(0, 1fr); }
.cv .yr { color: var(--stone); font-variant-numeric: tabular-nums; }

/* ---------- 作品頁 ---------- */
.work {
  max-width: var(--max); margin: 16px auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start;
}
.work-main {
  display: flex; align-items: center; justify-content: center; width: 100%;
  background: var(--panel); border: 0; padding: clamp(20px, 5%, 64px); cursor: zoom-in;
  height: min(82vh, 860px);
}
.work-main img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 1px 2px rgba(28, 29, 31, .08), 0 10px 30px rgba(28, 29, 31, .07); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; padding: 0; border: 1px solid transparent; background: var(--panel); cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.work-info { position: sticky; top: 32px; padding-top: 8px; }
.work-info .by { font-family: var(--serif); font-size: 15px; letter-spacing: .1em; }
.work-info h1 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.4; letter-spacing: .06em; margin: 10px 0 4px; }
.work-info .en { margin: 0; color: var(--stone); font-style: italic; }
.work-info dl { display: grid; grid-template-columns: 4em 1fr; gap: 6px 16px; margin: 28px 0; font-size: 14px; }
.work-info dt { color: var(--stone); }
.work-info dd { margin: 0; }
.work-info .price { font-size: 17px; margin: 0; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.work-info .note { font-size: 13px; color: var(--stone); }
.desc { font-family: var(--serif); font-size: 15px; line-height: 2; margin-top: 28px; }
.desc p { margin: 0 0 1em; }

/* 放大檢視 */
.lightbox {
  position: fixed; inset: 0; z-index: 20; background: rgba(251, 251, 250, .97);
  display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; top: 16px; right: 20px; background: none; border: 0; font-size: 32px; line-height: 1; cursor: pointer; color: var(--ink); }

/* ---------- 首頁輪播 ---------- */
.hero-work { min-width: 0; }
.hero-carousel { max-width: none; margin: 0; padding: 0; }
.hero-carousel .wall-stage { aspect-ratio: auto; height: min(78vh, 760px); max-height: none; }

/* ---------- 藝術家快速揀選 ---------- */
.picker { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin: -16px 0 48px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips a { padding: 6px 16px; border: 1px solid var(--rule); font-size: 14px; letter-spacing: .08em; color: var(--stone); }
.chips a:hover { text-decoration: none; border-color: var(--ink); color: var(--ink); }
.chips a[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: var(--wall); }
.search input {
  font: inherit; font-size: 14px; padding: 8px 2px; width: 220px;
  border: 0; border-bottom: 1px solid var(--stone); background: transparent; color: var(--ink);
}
.search input:focus { outline: none; border-bottom-color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 作品篩選 ---------- */
.filters { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin: -16px 0 20px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.filters label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--stone); }
.filters select {
  font: inherit; font-size: 15px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--stone); padding: 6px 24px 6px 2px; min-width: 150px; border-radius: 0;
}
.filters select:focus { outline: none; border-bottom-color: var(--ink); }
.filters button { font: inherit; padding: 8px 18px; background: var(--ink); color: var(--wall); border: 0; }
.filters .result { margin: 0 0 6px auto; font-size: 13px; color: var(--stone); }
.filters .result a { text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }
.filter-note { font-size: 13px; color: var(--stone); margin: 0 0 32px; }
.filters + .masonry, .filters + .empty { margin-top: 40px; }

/* ---------- 私訊藝術家 ---------- */
.inquiry { margin-top: 24px; }
.inquiry summary {
  display: inline-block; cursor: pointer; list-style: none;
  padding: 12px 28px; background: var(--ink); color: var(--wall); letter-spacing: .14em; font-size: 15px;
}
.inquiry summary::-webkit-details-marker { display: none; }
.inquiry[open] summary { background: transparent; color: var(--ink); padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--ink); }
.inquiry form { margin-top: 20px; max-width: 520px; }
.inquiry .lead { font-size: 13px; color: var(--stone); margin: 0 0 18px; }
.inquiry label { display: block; font-size: 13px; color: var(--stone); margin-bottom: 16px; }
.inquiry input, .inquiry select, .inquiry textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--rule); padding: 10px 12px; border-radius: 0;
}
.inquiry textarea { resize: vertical; }
.inquiry input:focus, .inquiry select:focus, .inquiry textarea:focus { outline: none; border-color: var(--ink); }
.inquiry .pair { display: grid; grid-template-columns: 9em 1fr; gap: 12px; }
.inquiry .hp { position: absolute; left: -9999px; }
.inquiry button { font: inherit; padding: 12px 28px; background: var(--ink); color: var(--wall); border: 0; letter-spacing: .14em; cursor: pointer; }
.inquiry button:disabled { opacity: .5; cursor: wait; }
.form-msg { font-size: 14px; margin: 0 0 14px; }
.form-msg.ok { color: var(--ink); }
.form-msg.err { color: var(--red); }


/* ---------- 浮光集 ---------- */
.lede-small { color: var(--stone); margin: -28px 0 48px; font-size: 15px; }
.lede-small a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lede-small .clear { margin-left: 16px; color: var(--stone); }

.journal-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.journal-list li { border-bottom: 1px solid var(--rule); }
.entry {
  display: grid; grid-template-columns: 11em minmax(0, 1fr) 160px; gap: clamp(20px, 4vw, 56px);
  align-items: start; padding: 28px 0;
}
.entry:hover { text-decoration: none; }
.entry:hover .ttl { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.entry .when { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--stone); padding-top: 4px; font-variant-numeric: tabular-nums; }
.entry .what { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.entry .ttl { font-family: var(--serif); font-size: 20px; line-height: 1.5; letter-spacing: .04em; }
.entry .who-by { font-family: var(--serif); font-size: 14px; }
.entry .ex { font-family: var(--serif); font-size: 15px; line-height: 1.9; color: var(--stone); }
.entry .pic { display: block; aspect-ratio: 4 / 3; background: var(--panel); overflow: hidden; }
.entry .pic img { width: 100%; height: 100%; object-fit: cover; }
.entry .pic.none { background: transparent; aspect-ratio: auto; }

.post { max-width: 44em; margin: 24px auto 0; padding: 0 var(--gutter); }
.post header { margin-bottom: 40px; }
.post .by { font-family: var(--serif); font-size: 15px; letter-spacing: .1em; }
.post h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 4vw, 36px); line-height: 1.45; letter-spacing: .06em; margin: 12px 0 10px; }
.post .meta { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; font-size: 14px; color: var(--stone); }
.post-body { font-family: var(--serif); font-size: 17px; line-height: 2.1; }
.post-body p { margin: 0 0 1.5em; }
.post-images { display: grid; gap: 40px; margin: 48px 0; }
.post-images figure { margin: 0; }
.zoomable { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
.zoomable img { width: 100%; height: auto; box-shadow: 0 1px 2px rgba(28, 29, 31, .07), 0 6px 18px rgba(28, 29, 31, .06); }
.post-images figcaption { font-size: 13px; color: var(--stone); margin-top: 10px; }
.post footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; }
.post footer a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- 響應式 ---------- */
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
  .artist-intro { grid-template-columns: 1fr; }
  .who { position: static; }
  .work { grid-template-columns: 1fr; }
  .work-info { position: static; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .site-head { padding-top: 20px; padding-bottom: 20px; }
  .site-head nav { gap: 22px; }
  .logo { gap: 10px; font-size: 17px; letter-spacing: .24em; }
  .logo .mark { width: 64px; }
  .hero { grid-template-columns: 1fr; }
  .hero-text { order: 0; justify-content: flex-start; }
  .hero-wall { height: auto; aspect-ratio: 4 / 5; }
  .wall-stage, .hero-carousel .wall-stage { aspect-ratio: 4 / 5; height: auto; max-height: none; }
  .filters { gap: 16px; }
  .filters label { flex: 1 1 40%; }
  .filters select { min-width: 0; width: 100%; }
  .filters .result { flex-basis: 100%; margin-left: 0; }
  .search input { width: 100%; }
  .search { flex: 1 1 100%; }
  .inquiry .pair { grid-template-columns: 1fr; gap: 0; }
  .entry { grid-template-columns: minmax(0, 1fr) 96px; gap: 8px 16px; padding: 22px 0; }
  .entry .when { grid-column: 1 / -1; flex-direction: row; gap: 12px; padding-top: 0; }
  .entry .ttl { font-size: 17px; }
  .entry .ex { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .lede-small { margin-top: -24px; }
  .work-main { height: auto; aspect-ratio: 4 / 5; }
  .block { margin-top: 72px; }
  .artist-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .masonry { columns: 2; column-gap: 16px; }
  .piece { margin-bottom: 32px; }
  .label .t { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active { transition: none; }
}

/* ---------- 語言切換（右下角） ---------- */
.lang-switch {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  padding: 3px;
  background: rgba(250, 249, 246, .92); border: 1px solid var(--rule);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 12px; letter-spacing: .06em;
}
.lang-switch a { display: block; min-width: 34px; padding: 6px 8px; text-align: center; color: var(--stone); line-height: 1; }
.lang-switch a:hover { color: var(--ink); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--wall); }
.site-foot { padding-bottom: 72px; } /* 不被語言切換擋住 */
.site-foot a { color: var(--stone); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.site-foot .en-name { margin-left: .6em; letter-spacing: .12em; font-size: 12px; color: var(--stone); }
.site-foot .mt-note { flex-basis: 100%; font-size: 12px; }

.inquiry .consent { font-size: 12px; color: var(--stone); margin: -4px 0 14px; }
.inquiry .consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* 隱私權聲明 */
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 19px; letter-spacing: .06em; margin: 40px 0 12px; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .5em; line-height: 1.9; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* 英文版：英文字體與字距 */
html[lang="en"] .site-head nav, html[lang="en"] .block-head h2, html[lang="en"] .page-title { letter-spacing: .04em; }
html[lang="en"] .post-body, html[lang="en"] .bio { hyphens: auto; }

/* 简体版：整頁改用簡體宋體，避免繁簡字形混在一起 */
html[lang="zh-Hans"] {
  --serif: "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "SimSun", "Noto Serif TC", serif;
  --sans: "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
}

.lang-full { display: flex; gap: 2px; }
.lang-mini { display: none; }
.lang-mini summary { list-style: none; cursor: pointer; min-width: 34px; padding: 6px 8px; text-align: center; line-height: 1; color: var(--ink); }
.lang-mini summary::-webkit-details-marker { display: none; }
.lang-menu { display: flex; flex-direction: column-reverse; gap: 2px; padding-bottom: 2px; }
@media (max-width: 640px) {
  .lang-switch { right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .lang-full { display: none; }
  .lang-mini { display: flex; flex-direction: column-reverse; }
  .lang-mini[open] summary { border-top: 1px solid var(--rule); }
}

/* 英文版：拉丁字母與標點用西文襯線字（中文宋體的引號是全形，英文裡會變成「”，“」） */
@font-face {
  font-family: 'Latin Serif';
  font-display: swap;
  src: url(./fonts/noto-serif-latin-400-normal.woff2) format('woff2'); /* Noto Serif（SIL OFL），約 14KB */
  unicode-range: U+0000-024F, U+2010-2027, U+2030-203A, U+20AC;
}
html[lang="en"] {
  --serif: 'Latin Serif', "Noto Serif TC", "Noto Serif CJK TC", serif;
}

/* ---------- 浮光集：上方圖片輪播、上一篇／下一篇 ---------- */
.post-top { max-width: 44em; margin: 24px auto 0; padding: 0 var(--gutter); }
.post-carousel { max-width: 1100px; margin-top: 16px; }
.post-carousel .wall-stage { aspect-ratio: 3 / 2; max-height: 76vh; }
/* 圖片用絕對定位置中：flex／grid 會把圖片的框撐寬，陰影就會比畫面大一圈 */
.post-carousel .slide .zoomable {
  position: relative; display: block; width: 100%; height: 100%;
  padding: 0; background: none; border: 0; cursor: zoom-in;
}
.post-carousel .wall-bar { min-height: 56px; }
.post-carousel .label .cap { display: block; padding-top: 12px; font-size: 13px; color: var(--stone); line-height: 1.7; }
.post-carousel + .post { margin-top: 32px; }

.post-nav { display: flex; justify-content: space-between; gap: 24px; font-size: 13px; }
.post-nav a { display: flex; flex-direction: column; gap: 4px; max-width: 46%; color: var(--ink); }
.post-nav a:hover { text-decoration: none; }
.post-nav a:hover .v { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.post-nav .k { color: var(--stone); letter-spacing: .08em; }
.post-nav .v { font-family: var(--serif); font-size: 15px; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-nav .next { text-align: right; margin-left: auto; }
.post-nav.top { padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.post-nav.bottom { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule); }
.post-nav.bottom + footer { border-top: 0; margin-top: 24px; padding-top: 0; }

/* 英文版首頁副標：直排時字母側躺（順時針轉 90°），比一個字母一個字母往下排好讀 */
html[lang="en"] .statement { text-orientation: mixed; letter-spacing: .03em; line-height: 2; max-height: 26em; }
@media (max-width: 640px) {
  .post-carousel .wall-stage { aspect-ratio: 4 / 5; }
  .post-nav .v { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

.post-carousel .slide .zoomable img {
  position: absolute; inset: clamp(12px, 3vw, 32px); margin: auto;
  width: auto; height: auto; max-width: calc(100% - 2 * clamp(12px, 3vw, 32px)); max-height: calc(100% - 2 * clamp(12px, 3vw, 32px));
}
.logo span { white-space: nowrap; }
@media (max-width: 640px) {
  html[lang="en"] .site-head nav { gap: 14px; font-size: 13px; letter-spacing: .02em; }
  html[lang="en"] .logo { gap: 8px; }
}
