/* =========================================================
   聖地文化出版社 — 設計系統
   ========================================================= */

:root {
  /* 色彩 */
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-soft: #f3eee5;
  --ink: #2c2823;
  --ink-soft: #5e574e;
  --ink-muted: #8c8478;
  --accent: #3f8da6;
  --accent-soft: #ddeaef;
  --accent-deep: #2c6c81;
  --maroon: #8a3a31;
  --jade: #3f6b52;
  --gold: #c2a25e;
  --line: #e6ded2;

  /* 字體 */
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", system-ui, -apple-system, sans-serif;
  --tibetan: "Noto Serif Tibetan", "Noto Sans Tibetan", serif;

  /* 版面 */
  --gutter: 64px;
  --maxw: 1440px;

  /* 主題色（依頁面切換） */
  --theme: var(--accent);
  --theme-deep: var(--accent-deep);
}

[data-theme="sainty"] { --theme: #8a3a31; --theme-deep: #8a3a31; }
[data-theme="tripitaka"] { --theme: #3f6b52; --theme-deep: #3f6b52; }
[data-theme="hanyi"] { --theme: #3f8da6; --theme-deep: #2c6c81; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- 共用排版 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 80px 0 88px; }
.section--surface { background: var(--surface); }
.section--soft { background: var(--surface-soft); }

.kicker {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--theme);
  margin: 0 0 12px;
  text-transform: uppercase;
}

.h-sec {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}

.h-sub {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin: 0;
}

.lede {
  max-width: 640px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-muted);
  margin: 12px 0 0;
}

.body-text { font-size: 14.5px; line-height: 2.2; color: var(--ink-soft); margin: 0 0 20px; }
.body-text:last-child { margin-bottom: 0; }

.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 40px; }
.sec-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.oop { font-size: 0.72em; letter-spacing: 0.08em; color: var(--ink-muted); font-weight: 400; margin-left: 2px; white-space: nowrap; }
.oop-note { align-self: center; font-size: 13px; letter-spacing: 0.06em; color: var(--ink-muted); border: 1px dashed var(--line); border-radius: 3px; padding: 12px 18px; }
.thanks-en { font-style: normal; font-size: 11.5px; color: var(--ink-muted); }
/* 書籍欄位樣式表（與雲端教室的文章樣式表同一套外觀） */
.sg-item { border-top: 1px solid var(--line); padding: 36px 0 0; margin-top: 36px; }
.sg-item:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.sg-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.sg-head h3 { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: 0.1em; margin: 0; }
.sg-head code { background: var(--surface-soft, var(--bg)); border: 1px solid var(--line); border-radius: 3px; padding: 3px 9px; font-size: 12px; color: var(--theme-deep); }
.sg-head > span:last-child { font-size: 12.5px; color: var(--ink-muted); flex: 1 1 260px; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.block-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 18px;
}
.block-head .h-sub { flex: 0 0 auto; }
.block-head .meta { font-size: 11.5px; letter-spacing: 0.1em; color: var(--ink-muted); white-space: nowrap; }
.block-head::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 24px;
  border: 1px solid transparent;
  background: var(--theme);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: opacity 0.2s, background 0.2s;
}
.btn:hover { opacity: 0.86; }
.btn--ghost { background: transparent; border-color: var(--theme); color: var(--theme-deep); }
.btn--ghost:hover { background: color-mix(in srgb, var(--theme) 8%, transparent); opacity: 1; }
.btn--light { background: #fff; color: var(--accent-deep); }
.btn--block { width: 100%; justify-content: center; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--theme);
}
.link-more::after { content: "→"; }

/* ---------- 頁首導覽 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 18px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--maroon); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 16px;
}
.brand-name { font-family: var(--serif); font-size: 18px; letter-spacing: 0.1em; display: block; white-space: nowrap; }
.brand-latin { font-size: 8px; letter-spacing: 0.18em; color: var(--ink-muted); display: block; white-space: nowrap; }

.main-nav { display: flex; gap: 34px; flex: 0 1 auto; }
.main-nav a {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding-bottom: 9px;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 18px; height: 2px; border-radius: 1px;
  background: var(--accent);
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.2s;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.is-active { color: var(--accent-deep); }
.main-nav a.is-active::after { transform: translateX(-50%) scaleX(1); }

.search {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 20px;
  background: var(--surface-soft);
  width: 150px;
  color: var(--ink-muted);
  font-size: 13px;
}
.search input {
  border: 0; background: transparent; outline: none;
  width: 100%; font: inherit; color: var(--ink);
}
.nav-toggle { display: none; background: none; border: 0; padding: 6px; color: var(--ink-soft); }

/* ---------- 首頁 Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
  background: url("images/hero-greenhills.jpg") center/cover no-repeat;
  color: #fff;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(30, 46, 30, 0.45); }
.hero-inner { position: relative; display: grid; gap: 24px; justify-items: center; }
.hero-kicker { font-size: 11.5px; letter-spacing: 0.42em; color: rgba(255,255,255,0.9); }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: 0.14em;
  line-height: 1.55;
  margin: 0;
  font-weight: 500;
}
.hero-sub { font-size: 14px; letter-spacing: 0.16em; color: rgba(255,255,255,0.86); margin: 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero .btn--outline-light {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

/* ---------- 兩家出版社 ---------- */
.houses { display: grid; grid-template-columns: 1fr 1fr; }
.house { padding-right: 72px; }
.house + .house { padding: 0 0 0 72px; border-left: 1px solid var(--line); }
.house-logo { height: 88px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; margin-bottom: 18px; }
.house h3 { font-family: var(--serif); font-size: 27px; letter-spacing: 0.12em; margin: 0 0 6px; font-weight: 500; }
.house .est { font-size: 11px; letter-spacing: 0.16em; color: var(--ink-muted); margin: 0 0 18px; }
.house p { font-size: 14px; line-height: 2.2; color: var(--ink-soft); margin: 0 0 22px; }

/* ---------- 書籍卡 ---------- */
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

.book-card { display: block; }
.book-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 14px;
  border-radius: 2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.book-card:hover .book-cover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(44,40,35,0.18); }
/* 實際書影：不裁切，置中於淺色底 */
.book-cover--img {
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 16px;
}
.book-cover--img img { width: 100%; height: 100%; object-fit: contain; }

.book-cover-inner {
  height: 100%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  justify-content: flex-end;
  padding: 16px;
}
.book-cover-title {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.12em;
  line-height: 1.25;
  color: #f6efe2;
  max-height: 100%;
}
.book-info { margin-top: 14px; }
.book-title { font-family: var(--serif); font-size: 16px; line-height: 1.6; margin: 0 0 6px; font-weight: 500; }
.book-author { font-size: 12px; line-height: 1.7; color: var(--ink-muted); margin: 0; }
.book-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.book-price { font-family: var(--serif); font-size: 16px; color: var(--accent-deep); }

/* ---------- 篩選 chip ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  padding: 9px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.chip.is-active { background: var(--theme); border-color: var(--theme); color: #fff; }

/* ---------- 頁首（內頁） ---------- */
.page-head { background: var(--surface); padding: 70px 0 58px; }
.page-head-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; }
.crumb { font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-muted); margin: 0 0 16px; }
.page-logo { height: 88px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; margin-bottom: 14px; }
.page-title { font-family: var(--serif); font-size: 46px; letter-spacing: 0.2em; margin: 0 0 12px; font-weight: 500; }
.page-latin { font-size: 11.5px; letter-spacing: 0.16em; color: var(--ink-muted); margin: 0 0 16px; }
.page-desc { max-width: 620px; font-size: 14px; line-height: 2.2; color: var(--ink-soft); margin: 0; }

.stats { display: flex; gap: 40px; }
.stat { text-align: right; }
.stat b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--theme-deep); }
.stat span { font-size: 11px; letter-spacing: 0.08em; color: var(--ink-muted); }

.strip { height: 280px; background: var(--surface-soft) center/cover no-repeat; }

/* ---------- 理念 / 兩欄 ---------- */
.split { display: grid; grid-template-columns: 330px 1fr; gap: 80px; align-items: start; }
.split--narrow { grid-template-columns: 300px 1fr; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 34px; }
.value h4 { font-family: var(--serif); font-size: 17px; letter-spacing: 0.1em; margin: 10px 0 8px; font-weight: 500; }
.value p { font-size: 12.5px; line-height: 1.9; color: var(--ink-muted); margin: 0; }
.value .ico { font-size: 20px; color: var(--theme); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 30px; }
.fact { border-left: 2px solid var(--theme); padding-left: 18px; }
.fact b { display: block; font-size: 11.5px; letter-spacing: 0.12em; color: var(--theme-deep); font-weight: 400; }
.fact span { font-size: 12.5px; line-height: 1.95; color: var(--ink-soft); white-space: pre-line; }

/* ---------- 作者 ---------- */
.authors { display: grid; grid-template-columns: repeat(4, 1fr); }
.authors--3 { grid-template-columns: repeat(3, 1fr); }
.author { padding: 0 32px; }
.author:first-child { padding-left: 0; }
.author + .author { border-left: 1px solid var(--line); }
.authors--3 .author:nth-child(4) { border-left: 0; padding-left: 0; }
.authors--3 .author:nth-child(n+4) { padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--line); }
.avatar {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line);
  margin-bottom: 16px;
}
.avatar--glyph {
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 28px;
  width: 76px; height: 76px;
}
.author h4 { font-family: var(--serif); font-size: 20px; letter-spacing: 0.1em; margin: 0 0 6px; font-weight: 500; }
.author .role { font-size: 11px; letter-spacing: 0.05em; color: var(--ink-muted); margin: 0 0 14px; }
.author p { font-size: 13px; line-height: 2.1; color: var(--ink-soft); margin: 0 0 14px; }
.author .works { font-size: 11.5px; letter-spacing: 0.08em; }

/* 主打作者 */
.featured-author { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: start; }
.featured-portrait { width: 100%; aspect-ratio: 300 / 340; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; }
.featured-author h3 { font-family: var(--serif); font-size: 28px; letter-spacing: 0.12em; margin: 22px 0 7px; font-weight: 500; }
.featured-author .role { font-size: 11.5px; line-height: 1.8; color: var(--ink-muted); margin: 0 0 20px; }

.deflist { display: grid; }
.deflist div { display: grid; grid-template-columns: 118px 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.deflist div:first-child { border-top: 0; }
.deflist dt { font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-muted); margin: 0; }
.deflist dd { font-size: 12.5px; line-height: 1.75; color: var(--ink-soft); margin: 0; }

.panel { background: var(--surface-soft); border-radius: 3px; padding: 28px 30px; }
.panel h4 { font-family: var(--serif); font-size: 17px; letter-spacing: 0.12em; margin: 0 0 12px; font-weight: 500; }
.panel p { font-size: 13.5px; line-height: 2.1; color: var(--ink-soft); margin: 0 0 16px; }

/* ---------- 購買書籍 ---------- */
.buy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 30px 32px;
}
.card h4 { font-family: var(--serif); font-size: 18px; letter-spacing: 0.1em; margin: 0 0 14px; font-weight: 500; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { border-left: 2px solid var(--theme); padding-left: 18px; }
.step b { display: block; font-family: var(--serif); font-size: 12px; letter-spacing: 0.16em; color: var(--theme); }
.step h4 { font-family: var(--serif); font-size: 17px; letter-spacing: 0.1em; margin: 8px 0; font-weight: 500; }
.step p { font-size: 12.5px; line-height: 1.95; color: var(--ink-soft); margin: 0; }

.store-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tile {
  display: grid; place-items: center;
  padding: 14px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
}
.tile--inline { display: inline-flex; gap: 10px; align-items: center; padding: 12px 20px; }
textarea.is-prefilled { border-color: var(--theme); background: color-mix(in srgb, var(--theme) 4%, transparent); }
a.tile { transition: border-color 0.25s ease, color 0.25s ease; }
a.tile:hover { border-color: var(--theme); color: var(--theme-deep); }
.tile em { font-style: normal; font-size: 11.5px; letter-spacing: 0.08em; color: var(--theme); }

.pay-row { display: grid; grid-template-columns: 1fr 1fr 440px; gap: 24px; align-items: start; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11.5px; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { border-color: var(--theme); }
.field textarea { min-height: 92px; resize: vertical; line-height: 1.8; }
.form-note { font-size: 11px; letter-spacing: 0.08em; color: var(--ink-muted); margin: 0 0 14px; }
.form-msg { font-size: 12px; line-height: 1.8; color: var(--theme-deep); margin: 10px 0 0; min-height: 20px; }
.form-msg.is-bad { color: #A6482E; }
.form-msg.is-bad a { text-decoration: underline; }
.form-msg.is-ok { color: #3F6B52; }
/* 郵遞區號只需要放得下幾個數字 */
.field--zip input { max-width: 160px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
/* 郵件軟體沒開起來時的備援：把信件內容擺出來讓人複製 */
.form-copy { margin-top: 12px; }
.form-copy pre {
  white-space: pre-wrap; word-break: break-word;
  font-family: inherit; font-size: 12px; line-height: 1.9; color: var(--ink-soft);
  background: var(--bg); border: 1px solid var(--line); border-radius: 3px;
  padding: 12px 14px; margin: 0 0 10px;
}
.form-copy .btn { padding: 8px 16px; font-size: 11.5px; }

.notes { display: grid; grid-template-columns: 1fr 320px; gap: 56px; padding-top: 30px; border-top: 1px solid var(--line); }
.notes h5 { font-size: 12.5px; letter-spacing: 0.12em; margin: 0 0 9px; font-weight: 400; }
.notes p { font-size: 12px; line-height: 1.95; color: var(--ink-muted); margin: 0; white-space: pre-line; }

/* ---------- 特色 / 地圖 ---------- */
.feature { display: grid; grid-template-columns: 600px 1fr; gap: 64px; align-items: center; }
.feature img { width: 100%; height: 420px; object-fit: cover; border-radius: 3px; }
.feature-stats { display: flex; gap: 44px; margin: 22px 0; }
.feature-stats b { display: block; font-family: var(--serif); font-size: 30px; color: var(--accent-deep); font-weight: 500; }
.feature-stats span { font-size: 11.5px; color: var(--ink-muted); }

.band { background: var(--accent-deep); color: #fff; text-align: center; padding: 96px 24px; }
.band blockquote { font-family: var(--serif); font-size: clamp(22px, 3vw, 32px); letter-spacing: 0.14em; line-height: 1.7; margin: 0 0 20px; }
.band p { font-size: 13.5px; line-height: 2; color: rgba(255,255,255,0.8); max-width: 640px; margin: 0 auto 24px; }

.map-band {
  display: grid; grid-template-columns: 360px 1fr; gap: 44px; align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 36px 40px;
}
.map-band img { width: 100%; height: 220px; object-fit: cover; border-radius: 2px; }

/* ---------- 宗喀巴大師 ---------- */
.master { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
.master-portrait {
  width: 100%; height: 360px; object-fit: contain;
  background: rgba(194,162,94,0.08);
  border: 1px solid rgba(194,162,94,0.25);
  border-radius: 2px;
}
.tibetan { font-family: var(--tibetan); font-size: 20px; line-height: 2; color: var(--ink-soft); margin: 0 0 18px; }
.master-stats { display: flex; gap: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.master-stats b { display: block; font-family: var(--serif); font-size: 28px; color: #8a6b22; font-weight: 500; }
.master-stats span { font-size: 11px; color: var(--ink-muted); }

.dotlist { list-style: none; margin: 0; padding: 0; }
.dotlist li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }
.dotlist li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }

/* ---------- 表格式列表 ---------- */
.table { display: grid; }
.table-row {
  display: grid;
  grid-template-columns: 120px 1fr 260px 92px;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.table-row .no { font-size: 11.5px; line-height: 1.9; color: var(--theme); }
.table-row .ti { font-family: var(--serif); font-size: 15px; line-height: 1.9; }
.table-row .au { font-size: 12px; line-height: 1.9; color: var(--ink-muted); }
.table-row .yr { font-size: 12px; line-height: 1.9; color: var(--ink-muted); text-align: right; }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.list { display: grid; }
.list-item { padding: 13px 0; border-top: 1px solid var(--line); }
.list-item:first-child { border-top: 0; }
.list-item h5 { font-family: var(--serif); font-size: 14.5px; line-height: 1.8; margin: 0 0 5px; font-weight: 500; }
.list-item span { font-size: 11.5px; line-height: 1.8; color: var(--ink-muted); }
.list-item--inline { display: grid; grid-template-columns: 118px 1fr; gap: 20px; align-items: start; }
.list-item--inline b { font-size: 11.5px; line-height: 1.8; color: var(--theme); font-weight: 400; }
.list-item--inline span { font-size: 12.5px; color: var(--ink-soft); }

.thesis { display: grid; grid-template-columns: 86px 1fr 96px; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); align-items: start; }
.thesis b { font-size: 12px; line-height: 1.75; font-weight: 400; }
.thesis span { font-size: 11.5px; line-height: 1.75; color: var(--ink-muted); }
.thesis em { font-style: normal; font-size: 11px; line-height: 1.75; color: var(--ink-muted); text-align: right; }
.group-title { font-size: 11.5px; letter-spacing: 0.12em; color: var(--theme); margin: 26px 0 10px; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.course {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--line); border-radius: 3px;
  padding: 18px 20px;
}
.course .ico { color: var(--theme); font-size: 16px; line-height: 1.5; }
.course h5 { font-size: 12.5px; line-height: 1.8; margin: 0 0 5px; font-weight: 400; }
.course span { font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-muted); }

/* ---------- 最新發行 ---------- */
.release { display: grid; grid-template-columns: 300px 1fr; gap: 56px; padding: 26px 0 48px; border-top: 1px solid var(--line); align-items: start; }
.release:last-child { padding-bottom: 0; }
.release .cover-wrap { display: grid; gap: 14px; }
.release .book-cover { aspect-ratio: 3 / 4; box-shadow: 0 10px 28px rgba(44,40,35,0.15); }
.release .no { font-size: 11.5px; letter-spacing: 0.08em; color: var(--theme); }
.release h3 { font-family: var(--serif); font-size: 28px; line-height: 1.6; letter-spacing: 0.06em; margin: 0 0 16px; font-weight: 500; }
.release .en { font-size: 12.5px; line-height: 1.9; color: var(--ink-muted); margin: 0 0 8px; }

.keywords { display: grid; gap: 10px; margin: 20px 0; }
.keyword { display: flex; gap: 14px; align-items: flex-start; }
.keyword b { flex: 0 0 auto; padding: 6px 12px; border-radius: 14px; font-size: 11px; letter-spacing: 0.08em; font-weight: 400; }
.keyword span { font-size: 12.5px; line-height: 2.2; color: var(--ink-soft); }

.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 22px 26px; margin: 20px 0; }
.groups h5 { font-family: var(--serif); font-size: 15px; letter-spacing: 0.1em; margin: 0 0 9px; font-weight: 500; }
.groups p { font-size: 12px; line-height: 1.85; color: var(--ink-soft); margin: 0 0 6px; }

.qa { padding: 16px 0; border-top: 1px solid var(--line); }
.qa dt, .qa dd { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin: 0; }
.qa dt { font-family: var(--serif); font-size: 15px; line-height: 1.8; margin-bottom: 8px; }
.qa dd { font-size: 13px; line-height: 2.1; color: var(--ink-soft); }
.qa .mark { font-family: var(--serif); font-size: 12px; }
.qa dt .mark { color: var(--theme); }
.qa dd .mark { color: var(--ink-muted); }

/* ---------- 書籍詳細 ---------- */
.crumb-bar { background: var(--surface); border-bottom: 1px solid var(--line); padding: 20px 0; }
.detail-hero { background: var(--surface); padding: 60px 0 76px; }
.detail-grid { display: grid; grid-template-columns: 400px 1fr; gap: 72px; align-items: start; }
.detail-grid .book-cover { aspect-ratio: 400 / 540; box-shadow: 0 10px 30px rgba(44,40,35,0.15); }
.detail-title { font-family: var(--serif); font-size: 36px; line-height: 1.5; letter-spacing: 0.08em; margin: 16px 0; font-weight: 500; }
.detail-author { font-size: 13.5px; letter-spacing: 0.05em; color: var(--ink-soft); margin: 0 0 16px; }
.price-row { display: flex; align-items: center; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.price-row .label { font-size: 11px; letter-spacing: 0.12em; color: var(--ink-muted); display: block; }
.price-row .price { font-family: var(--serif); font-size: 32px; color: var(--theme); }
.price-row .price:not(:only-child) { display: inline-block; }
.price-row .price--note { font-size: 17px; letter-spacing: 0.05em; white-space: nowrap; }
.price-row .buy-note { display: block; font-size: 11px; letter-spacing: 0.08em; color: var(--ink-muted); }
.table-row .ti a:hover, .footer-col a:hover { color: var(--theme-deep); text-decoration: underline; }
.price-row .actions { margin-left: auto; display: flex; gap: 12px; }
/* 作者與譯者：兩人以上並排，單獨一人時用大版面 */
.byline-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.byline { display: flex; gap: 26px; align-items: flex-start; }
.byline--lead { gap: 44px; }
.byline .avatar { flex: 0 0 auto; margin: 0; }
.byline-text { flex: 1 1 auto; min-width: 0; }
/* 單人時整塊靠左：頭像在左、文字在右，行寬另外收斂 */
.byline--lead .byline-text { max-width: 680px; }
.byline .kicker { margin-bottom: 9px; }
.byline-name { font-family: var(--serif); font-size: 23px; letter-spacing: 0.1em; margin: 0 0 9px; font-weight: 500; }
.byline--lead .byline-name { font-size: 24px; margin: 0 0 8px; }
.byline-roman { font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-muted); margin: -4px 0 10px; }
.byline-role { font-size: 11.5px; line-height: 1.8; color: var(--ink-muted); margin: 0 0 12px; }
.byline-bio { font-size: 13px; line-height: 2.1; margin: 0; }
.byline-bio + .byline-bio { margin-top: 14px; }
.byline--lead .byline-bio { font-size: 13.5px; }

.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.channel { border-left: 2px solid var(--theme); padding-left: 20px; }
.channel h4 { font-family: var(--serif); font-size: 16px; letter-spacing: 0.08em; margin: 0 0 8px; font-weight: 500; }
.channel p { font-size: 12.5px; line-height: 1.9; color: var(--ink-muted); margin: 0; }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--surface-soft); padding: 56px 0 36px; }
.footer-top { display: grid; grid-template-columns: 340px repeat(3, 1fr); gap: 60px; margin-bottom: 38px; }
.footer-brand h4 { font-family: var(--serif); font-size: 19px; letter-spacing: 0.12em; margin: 0 0 14px; font-weight: 500; }
.footer-brand .tag { font-size: 11.5px; letter-spacing: 0.06em; line-height: 1.8; color: var(--ink-muted); margin: 0 0 14px; }
.footer-brand p { font-size: 12.5px; line-height: 2; color: var(--ink-soft); margin: 0; }
.footer-col h5 { font-family: var(--serif); font-size: 14px; letter-spacing: 0.12em; margin: 0 0 14px; font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { font-size: 12.5px; line-height: 1.9; color: var(--ink-soft); }
.footer-col a:hover { color: var(--accent-deep); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-muted); }

/* ---------- 分頁切換 ---------- */
.page { display: none; }
.page.is-active { display: block; animation: fade 0.35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* =========================================================
   RWD
   ========================================================= */
@media (max-width: 1320px) {
  .main-nav { gap: 22px; }
  .main-nav a { font-size: 13px; }
  .search { width: 120px; }
}

@media (max-width: 1200px) {
  :root { --gutter: 40px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 40px; }
  .feature img { height: 340px; }
  .detail-grid { grid-template-columns: 320px 1fr; gap: 48px; }
  .pay-row { grid-template-columns: 1fr 1fr; }
  .pay-row .card--form { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* 導覽列在 1080px 以下收成漢堡選單 */
@media (max-width: 1080px) {
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .search { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
    z-index: 30;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .main-nav a::after { display: none; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  body { font-size: 13px; }
  .section { padding: 52px 0 60px; }

  .header-inner { padding: 14px var(--gutter); gap: 16px; }
  .brand-latin { display: none; }
  .brand-name { font-size: 15px; }
  .brand-mark { width: 28px; height: 28px; font-size: 13px; }
  .search { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }

  .hero { min-height: 460px; padding: 64px 28px; }
  .h-sec { font-size: 26px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 28px; }

  .houses { grid-template-columns: 1fr; gap: 32px; }
  .house { padding: 0; }
  .house + .house { padding: 32px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .house-logo { height: 74px; }

  .book-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .book-cover-title { font-size: 15px; }
  .book-title { font-size: 14px; }

  .page-head { padding: 40px 0 36px; }
  .page-head-inner { flex-direction: column; align-items: stretch; gap: 24px; }
  .page-title { font-size: 34px; }
  .page-logo { height: 74px; }
  .page-desc { max-width: none; }
  .stats { justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); }
  .stat { text-align: left; flex: 1; }
  .stat b { font-size: 20px; }
  .strip { height: 200px; }

  .split, .split--narrow { grid-template-columns: 1fr; gap: 20px; }
  .values { grid-template-columns: 1fr; gap: 20px; }
  .facts { grid-template-columns: 1fr; gap: 18px; }

  .authors, .authors--3 { grid-template-columns: 1fr; }
  .author { padding: 26px 0; border-left: 0 !important; border-top: 1px solid var(--line); }
  .author:first-child { padding-top: 0; border-top: 0; }
  .authors--3 .author:nth-child(n+4) { padding-top: 26px; margin-top: 0; }
  .featured-author { grid-template-columns: 1fr; gap: 20px; }
  .featured-portrait { aspect-ratio: 4 / 3; }

  .buy-grid, .pay-row, .cols-2, .notes { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .store-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 24px 22px; }

  .feature { grid-template-columns: 1fr; }
  .feature img { height: 230px; }
  .feature-stats { gap: 16px; }
  .feature-stats b { font-size: 24px; }
  .band { padding: 64px 28px; }

  .master { grid-template-columns: 1fr; gap: 20px; }
  .master-portrait { height: 280px; }
  .master-stats { gap: 12px; }
  .master-stats b { font-size: 20px; }
  .map-band { grid-template-columns: 1fr; padding: 24px 22px; gap: 14px; }
  .map-band img { height: 180px; }

  .table-row { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .table-row .no { grid-row: 1; }
  .table-row .yr { grid-row: 1; text-align: right; }
  .table-row .ti { grid-column: 1 / -1; font-size: 14px; }
  .table-row .au { grid-column: 1 / -1; }

  .thesis { grid-template-columns: 1fr auto; gap: 2px 10px; }
  .thesis span { grid-column: 1 / -1; }

  .course-grid { grid-template-columns: 1fr; }
  .release { grid-template-columns: 1fr; gap: 16px; }
  .release h3 { font-size: 22px; }
  .groups { grid-template-columns: 1fr; gap: 16px; }
  .keyword { flex-direction: column; gap: 6px; }
  .keyword b { align-self: flex-start; }

  .detail-grid { grid-template-columns: 1fr; gap: 20px; }
  .price-row { flex-wrap: wrap; }
  .price-row .actions { margin-left: 0; width: 100%; }
  .price-row .actions .btn { flex: 1; justify-content: center; }
  .byline-grid { grid-template-columns: 1fr; gap: 18px; }
  .byline, .byline--lead { flex-direction: column; gap: 18px; }
  .byline--lead .byline-text { max-width: none; }
  .channels { grid-template-columns: 1fr; gap: 22px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 420px) {
  .hero-title { letter-spacing: 0.1em; }
  .store-row { grid-template-columns: 1fr; }
}

/* =========================================================
   聖地西藏系列頁面
   ========================================================= */

[data-theme="tibet"] { --theme: #3f8da6; --theme-deep: #2c6c81; }

.page-sub { font-family: var(--serif); font-size: 18px; letter-spacing: 0.1em; color: var(--accent-deep); margin: 0 0 12px; }
.sec-sub { font-family: var(--serif); font-size: 16px; letter-spacing: 0.15em; color: var(--theme-deep); margin: 12px 0 0; }
.sec-note { max-width: 520px; font-size: 13.5px; line-height: 2.1; color: var(--ink-muted); margin: 0; border-left: 2px solid var(--theme); padding-left: 20px; }
.sec-head--tight { margin-bottom: 20px; align-items: center; }
.sec-head + .t-cards, .sec-head + .gallery { margin-top: 0; }

.pill {
  display: inline-block; align-self: center;
  padding: 6px 13px; border-radius: 999px;
  background: var(--accent-soft); color: var(--theme-deep);
  font-size: 11px; letter-spacing: 0.08em; line-height: 1.6; white-space: nowrap;
}

.t-en { font-size: 10.5px; letter-spacing: 0.18em; color: var(--ink-muted); text-transform: uppercase; margin: 0 0 12px; }
.t-name { font-family: var(--serif); font-size: 22px; letter-spacing: 0.12em; font-weight: 500; margin: 10px 0 6px; }
.t-alias { font-family: var(--serif); font-size: 14px; letter-spacing: 0.08em; color: var(--theme-deep); margin: 0 0 6px; }

.t-cards { display: grid; gap: 28px; margin-top: 40px; align-items: stretch; }
.t-cards--3 { grid-template-columns: repeat(3, 1fr); }
.t-cards--4 { grid-template-columns: repeat(4, 1fr); }
.t-card { background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 26px 26px 28px; }
.section .t-card { background: var(--surface); }
.section--surface .t-card { background: var(--bg); }
.t-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.t-card-top h3 { font-family: var(--serif); font-size: 20px; letter-spacing: 0.12em; font-weight: 500; margin: 0; }
.t-no { font-family: var(--serif); font-size: 18px; color: var(--gold); }
.t-card .body-text { font-size: 12.5px; line-height: 2; }

.dotlist--wide li { padding: 14px 0; gap: 14px; }
.dotlist--wide b { font-family: var(--serif); font-size: 17px; letter-spacing: 0.08em; font-weight: 500; color: var(--ink); }
.dotlist--wide span { font-size: 12px; color: var(--ink-muted); }

/* 說明帶 */
.note-band {
  display: grid; grid-template-columns: 1fr 210px; gap: 44px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 3px;
  padding: 30px 36px; margin-bottom: 36px;
}
.section--surface .note-band { background: var(--bg); }
.note-band--single { grid-template-columns: 1fr; margin: 36px 0 0; }
.note-band p { font-size: 13.5px; line-height: 2.15; color: var(--ink-soft); margin: 0; }
.credit { text-align: right; }
.credit-label { display: block; font-size: 10px; letter-spacing: 0.3em; color: var(--ink-muted); text-transform: uppercase; }
.credit b { display: block; font-family: var(--serif); font-size: 22px; letter-spacing: 0.1em; color: var(--theme-deep); font-weight: 500; }
.credit span:last-child { font-size: 11px; color: var(--ink-muted); }

/* 影像輯 */
.archives { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.archive { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 26px 28px 28px; }
.section--surface .archive { background: var(--bg); }
.archive .body-text { font-size: 13px; margin: 18px 0 0; }
.archive-meta {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 14px; margin: 16px 0 0;
  font-size: 11.5px; color: var(--ink-muted);
}

/* 圖庫 */
.gallery { display: grid; gap: 14px; margin: 0; }
.gallery--1 { grid-template-columns: 1fr; }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery--4 { grid-template-columns: repeat(4, 1fr); }
.gallery--5 { grid-template-columns: repeat(5, 1fr); }
.gallery-item {
  display: block; padding: 0; border: 1px solid var(--line); border-radius: 2px;
  background: var(--surface-soft); overflow: hidden; cursor: zoom-in; position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.45s ease, opacity 0.3s ease; }
.gallery--1 .gallery-item img { aspect-ratio: 16 / 10; }
.gallery--fit .gallery-item { background: var(--bg); }
.gallery--fit .gallery-item img { object-fit: contain; aspect-ratio: 4 / 3; }
/* 人像照：裁切時對齊上緣，避免切到頭部 */
.gallery--top .gallery-item img { object-position: 50% 8%; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:focus-visible { outline: 2px solid var(--theme); outline-offset: 2px; }

/* 藝術分類 */
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.art-tile {
  display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 3px;
  padding: 28px 28px 30px; transition: border-color 0.25s ease, transform 0.25s ease;
}
.art-tile h3 { font-family: var(--serif); font-size: 20px; letter-spacing: 0.12em; font-weight: 500; margin: 0 0 8px; }
.art-tile .t-en { color: var(--gold); }
.art-tile .body-text { font-size: 12.5px; line-height: 2; margin-bottom: 14px; }
a.art-tile:hover { border-color: var(--theme); transform: translateY(-2px); }

/* 影片 */
.video { position: relative; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #000; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; object-fit: contain; }

/* 影音組（本地影片＋說明） */
.video-set { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.video-fig { margin: 0; background: var(--surface); }
.section--surface .video-fig { background: var(--bg); }
.video-set .video { border: 0; border-radius: 0; }
.video-cap { margin: 0; padding: 12px 20px 14px; font-size: 11.5px; letter-spacing: 0.12em; color: var(--ink-muted); }

/* 龍頭琴：側欄事實卡與演變 */
.side-facts { display: grid; gap: 20px; align-content: start; }
.fact--card { background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--theme); border-radius: 3px; padding: 18px 20px 20px; }
.section--surface .fact--card { background: var(--bg); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 44px; }
.tl-step { border-top: 2px solid var(--gold); padding: 20px 28px 0 0; }
.tl-num { margin: 0 0 8px; display: flex; align-items: baseline; gap: 6px; }
.tl-num b { font-family: var(--serif); font-size: 30px; color: var(--gold); font-weight: 500; }
.tl-num span { font-size: 11.5px; color: var(--ink-muted); }
.tl-step h4 { font-family: var(--serif); font-size: 17px; letter-spacing: 0.1em; font-weight: 500; margin: 0 0 8px; }
.tl-step p { font-size: 12px; line-height: 1.9; color: var(--ink-muted); margin: 0; }

.chipset { display: flex; flex-wrap: wrap; gap: 12px; }
.chipset span {
  background: var(--bg); border: 1px solid var(--line); border-radius: 2px;
  padding: 12px 16px; font-size: 12.5px; color: var(--ink-soft);
}
.section--surface .chipset span { background: var(--bg); }

/* 服飾：地區帶 */
.region-band { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.region-band > div { display: flex; align-items: center; gap: 14px; padding: 18px 0; }
.region-band h4 { font-family: var(--serif); font-size: 18px; letter-spacing: 0.1em; font-weight: 500; margin: 0; }
.region-band .t-en { margin: 0; color: var(--gold); }
.region-band .note { font-size: 11.5px; color: var(--ink-muted); }

/* 戲劇 */
.drama-hero { display: grid; grid-template-columns: 1fr 560px; gap: 56px; align-items: center; }
.drama-hero .gallery-item img { aspect-ratio: 16 / 10; }
.school { background: var(--bg); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.section--surface .school { background: var(--bg); }
.school .gallery-item { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.school .gallery-item img { aspect-ratio: 16 / 11; }
.school-body { padding: 26px 30px 30px; }
.school-body .body-text { font-size: 13px; }

/* 音樂與電影 */
.posts { display: grid; gap: 44px; max-width: 1040px; margin: 0 auto; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.section--surface .post { background: var(--bg); }
.post-body { padding: 30px 36px 34px; }
.post-meta { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font-size: 11.5px; color: var(--ink-muted); }
.post-title { font-family: var(--serif); font-size: 26px; letter-spacing: 0.1em; font-weight: 500; margin: 0 0 12px; line-height: 1.6; }
.post-lead { font-family: var(--serif); font-size: 16px; letter-spacing: 0.06em; color: var(--theme-deep); margin: 0 0 18px; }
.tib-line { font-family: var(--tibetan); font-size: 16px; color: var(--gold); margin: 0 0 6px; }
.tib { font-family: var(--tibetan); margin-right: 10px; }
.post .body-text { font-size: 13.5px; }
.verse { background: var(--bg); border: 1px solid var(--line); border-left: 2px solid var(--theme); border-radius: 3px; padding: 24px 26px 26px; margin: 0 0 20px; }
.section--surface .verse { background: var(--surface); }
.verse-label { font-size: 11px; letter-spacing: 0.15em; color: var(--gold); margin: 0 0 12px; }
.verse-label .tib { font-size: 15px; }
.verse-text { font-family: var(--tibetan); font-size: 17px; line-height: 2.4; color: var(--ink-soft); margin: 0; white-space: pre-line; }
.lyrics { font-size: 13px; line-height: 2.15; color: var(--ink-soft); margin: 0 0 16px; white-space: pre-line; }
.lyrics:last-child { margin-bottom: 0; }
.post-credit { margin: 0 0 20px; font-size: 13px; color: var(--ink-soft); }
.post-credit p { margin: 0 0 6px; }
.profile { display: grid; grid-template-columns: 200px 1fr; gap: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 24px 26px; margin: 0 0 20px; }
.section--surface .profile { background: var(--surface); }
.profile .gallery-item img { aspect-ratio: 4 / 5; }
.profile .body-text { font-size: 12.5px; line-height: 2.1; }
.hotels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; margin: 4px 0 24px; }
.hotel { background: var(--bg); padding: 22px 24px 24px; }
.section--surface .hotel { background: var(--surface); }
.hotel .t-name { margin: 0 0 6px; font-size: 20px; }
.t-place { font-size: 11.5px; letter-spacing: 0.1em; color: var(--gold); margin: 0 0 12px; }
.hotel .body-text { font-size: 12.5px; line-height: 2; margin: 0; }
.post-link { border-top: 1px solid var(--line); padding-top: 14px; margin: 20px 0 0; font-size: 11.5px; color: var(--ink-muted); }
.post-link a:hover { color: var(--theme); }

/* 燈箱 */
body.lb-lock { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center;
  background: rgba(20, 18, 15, 0.94); padding: 56px 88px;
}
.lightbox.is-open { display: flex; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lb-img { max-width: min(1280px, 100%); max-height: calc(100vh - 150px); object-fit: contain; cursor: default; }
.lb-cap { font-size: 12.5px; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.75); text-align: center; }
.lb-close, .lb-nav {
  position: absolute; background: rgba(255, 255, 255, 0.1); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%;
  width: 48px; height: 48px; line-height: 1; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.24); }
.lb-close { top: 24px; right: 28px; font-size: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.7); }

@media (max-width: 1080px) {
  .t-cards--4 { grid-template-columns: repeat(2, 1fr); }
  .art-grid { grid-template-columns: repeat(2, 1fr); }
  .drama-hero { grid-template-columns: 1fr; gap: 32px; }
  .gallery--5 { grid-template-columns: repeat(4, 1fr); }
  .note-band { grid-template-columns: 1fr; gap: 24px; }
  .credit { text-align: left; }
}

@media (max-width: 900px) {
  .t-cards--3, .t-cards--4, .art-grid, .archives, .region-band { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 8px 20px; }
  .gallery--4, .gallery--5 { grid-template-columns: repeat(3, 1fr); }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .sec-note { max-width: none; }
  .pill { align-self: flex-start; }
  .profile { grid-template-columns: 1fr; }
  .video-set, .hotels { grid-template-columns: 1fr; }
  .post-body { padding: 24px 22px 28px; }
  .lightbox { padding: 60px 16px 72px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-close { top: 14px; right: 14px; }
}

@media (max-width: 560px) {
  .gallery--2, .gallery--3, .gallery--4, .gallery--5 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; }
  .tl-step { padding-right: 0; }
}

.stats .stat b { white-space: nowrap; }

.profile--text { grid-template-columns: 1fr; }

/* 書目購書連結 / 最新發行動作列 */
.buy-link { color: var(--theme); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.buy-link:hover { color: var(--theme-deep); }
.table-row .ti a:hover { color: var(--theme); }
.release-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.release-price { align-self: center; font-family: var(--serif); font-size: 17px; letter-spacing: .06em; color: var(--theme-deep); margin-right: 8px; }

/* ---------- 粉絲專頁（首頁） ---------- */
.fb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fb-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 3px;
  padding: 28px 30px 26px; color: inherit;
}
.fb-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.fb-mark {
  width: 40px; height: 40px; border-radius: 50%; background: #1877f2; color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-size: 21px; line-height: 1;
}
.fb-tag { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); }
.fb-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: 0.1em; line-height: 1.4; margin: 0; }
.fb-card .en { font-size: 10.5px; letter-spacing: 0.12em; color: var(--ink-muted); margin: 0; }
.fb-card .note { font-size: 13px; line-height: 1.9; color: var(--ink-soft); margin: 0; flex: 1; }
.fb-card__foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12.5px; letter-spacing: 0.06em; color: var(--theme-deep);
}
.fb-card:hover { border-color: var(--theme); }
.fb-card:hover .fb-card__foot { color: var(--theme); }

@media (max-width: 1000px) { .fb-row { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 760px) {
  .fb-card { padding: 22px 20px 20px; }
  .fb-card h3 { font-size: 18px; }
}

/* ---------- 影音課程（聖地出版） ---------- */
.vid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.vid-card {
  display: block; background: var(--bg); border: 1px solid var(--line);
  border-radius: 3px; overflow: hidden; color: inherit;
}
.vid-card__thumb {
  display: grid; place-items: center; aspect-ratio: 16 / 9;
  background: var(--ink) center/cover no-repeat;
}
.vid-card__thumb i {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.95);
  color: var(--maroon); display: grid; place-items: center; font-style: normal; font-size: 17px;
}
.vid-card__info { display: block; padding: 20px 22px 22px; }
.vid-card__title {
  display: block; font-family: var(--serif); font-size: 17px; letter-spacing: 0.05em;
  line-height: 1.55; color: var(--ink);
}
.vid-card__id {
  display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--ink-muted);
}
.vid-card:hover { border-color: var(--theme); }

@media (max-width: 1100px) { .vid-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .vid-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; } }

/* ---------- 藏地旅遊（聖地西藏） ---------- */
.travel { display: grid; grid-template-columns: 640px 1fr; gap: 56px; align-items: center; }
.travel img { width: 100%; height: 420px; object-fit: cover; border-radius: 3px; }
.travel .h-sec { margin-top: 12px; }
.travel .sec-sub { margin: 12px 0 6px; }
.travel .body-text { margin-top: 18px; }

@media (max-width: 1100px) { .travel { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 760px) { .travel img { height: 220px; } }
