/* 古亭院網站 共用樣式
 * 配色取自古亭院山門實景：
 *   匾額朱紅、匾額金字、檜木門扇、佛龕金、供桌墨綠、深木色
 */
:root {
  --bg: #fbf6ec;           /* 淺木白：頁面底色 */
  --surface: #ffffff;
  --surface-alt: #f4e6cf;  /* 淺檜木：區塊底色 */
  --text: #3b2618;         /* 深木色：內文 */
  --text-muted: #75604c;
  --primary: #8e1f2c;      /* 匾額朱紅：頁首、按鈕、標題 */
  --primary-dark: #6b1520;
  --accent: #c9a046;       /* 匾額金字：線條、重點 */
  --wood: #d9a15b;         /* 檜木門扇 */
  --altar-gold: #b8742b;   /* 佛龕金 */
  --green: #2f4a3e;        /* 供桌墨綠：例行共修 */
  --footer: #3a2618;       /* 深木色：頁尾 */
  --border: #e6d3b3;
  --shadow: 0 2px 10px rgba(70, 40, 15, 0.08);
  --radius: 10px;
  --max: 1080px;
  --font-serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.4;
  color: var(--primary-dark);
  margin: 0 0 0.6em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== 頁首與選單 ===== */
.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f1d27a;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.brand:hover { color: #f6dd92; }
.brand-mark { color: var(--accent); }
.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.site-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  letter-spacing: 0.08em;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 8px 16px 16px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px 10px; font-size: 1.1rem; }
}

/* ===== 測試站提示 ===== */
.notice-bar {
  background: #fff4d6;
  color: #6a4b00;
  border-bottom: 1px solid #ecd9a0;
  font-size: 0.9rem;
  text-align: center;
  padding: 6px 16px;
}

/* ===== 首頁橫幅：山門照片 + 標語 ===== */
.hero { background: var(--primary-dark); }
.hero-img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
}
.hero-band {
  background: var(--primary);
  border-top: 3px solid var(--accent);
  color: #f1d27a;
  text-align: center;
  padding: 14px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.hero-band p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 3.6vw, 1.45rem);
  letter-spacing: 0.15em;
}
.hero-band .lotus { width: 36px; flex: none; color: #f1d27a; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== 頁面標題 ===== */
.page-title {
  background: var(--surface-alt);
  border-bottom: 3px solid var(--altar-gold);
  padding: 36px 0 28px;
}
.page-title h1 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.2rem); letter-spacing: 0.12em; }
.page-title p { margin: 6px 0 0; color: var(--text-muted); }

main { padding-bottom: 48px; }

.section { padding: 40px 0 8px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 20px;
  padding-bottom: 6px;
}
.section-head h2 { margin: 0; font-size: 1.5rem; letter-spacing: 0.1em; }
.section-head a { font-size: 0.95rem; }

/* ===== 卡片 ===== */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: 16px 18px 18px; }
.card h3 { font-size: 1.15rem; margin-bottom: 0.3em; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform 0.15s; }
a.card:hover { transform: translateY(-2px); color: inherit; }

.badge {
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1.6;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  vertical-align: middle;
  letter-spacing: 0.05em;
}
.badge-sample { background: #fff4d6; color: #8a5d00; border-color: #ecd9a0; }
.badge-accent { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== 法會列表 ===== */
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.event-date {
  flex: none;
  width: 78px;
  text-align: center;
  border-right: 2px solid var(--wood);
  padding-right: 14px;
}
.event-date .m { font-size: 0.85rem; color: var(--text-muted); }
.event-date .d { font-family: var(--font-serif); font-size: 1.9rem; color: var(--primary); line-height: 1.2; font-weight: 700; }
.event-date .w { font-size: 0.85rem; color: var(--text-muted); }
.event-info h3 { font-size: 1.15rem; margin: 0 0 4px; }
.event-meta { color: var(--text-muted); font-size: 0.93rem; }
.event-meta span + span::before { content: "・"; margin: 0 2px; }
.event-desc { margin: 6px 0 0; font-size: 0.97rem; }
.event.past { opacity: 0.55; }

/* ===== 行事曆 ===== */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 16px;
}
.tabs { display: flex; gap: 6px; }
.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.97rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn.active, .btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav h2 { margin: 0; font-size: 1.3rem; min-width: 8.5em; text-align: center; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.cal-grid .wd {
  background: var(--surface-alt);
  text-align: center;
  font-size: 0.9rem;
  padding: 6px 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.cal-cell {
  min-height: 96px;
  padding: 4px 6px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  line-height: 1.4;
}
.cal-cell.other { background: #fbf9f4; color: #b9ad9f; }
.cal-cell.today { background: #fdf0d6; box-shadow: inset 0 0 0 2px var(--accent); }
.cal-cell .num { font-weight: 700; font-size: 0.95rem; }
.cal-cell .lunar { color: var(--text-muted); font-size: 0.75rem; margin-left: 4px; }
.cal-cell .lunar.key { color: var(--primary); font-weight: 700; }
.cal-ev {
  display: block;
  margin-top: 3px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-ev.regular { background: var(--green); }

@media (max-width: 640px) {
  .cal-cell { min-height: 64px; padding: 3px; }
  .cal-cell .lunar { display: block; margin: 0; }
  .cal-ev { font-size: 0; height: 6px; padding: 0; margin-top: 4px; }
}

.year-halves { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .year-halves { grid-template-columns: 1fr; } }
.year-half > h2 {
  margin: 0;
  padding: 10px 16px;
  background: var(--primary);
  color: #f1d27a;
  border-radius: 8px;
  font-size: 1.25rem;
}
.year-half > h2 span { margin-left: 10px; font-size: .9rem; font-weight: 400; color: #f6e7c1; }
.year-half > .empty { margin-top: 16px; }
.month-block { margin-top: 28px; }
.month-block > h3 {
  font-size: 1.2rem;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}
.empty { color: var(--text-muted); text-align: center; padding: 24px; }

/* ===== 相簿 ===== */
.album-cover { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--surface-alt); }
.photo-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.photo-grid button {
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
}
.photo-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 400px) { .video-grid { grid-template-columns: 1fr; } }
.video-playlist { max-width: 860px; margin: 0 auto 24px; }
.video-playlist:empty { display: none; }
.playlist-link { text-align: center; margin: 10px 0 0; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 8, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-height: calc(100vh - 130px); margin: 0 auto; border-radius: 6px; }
.lightbox.loading img { width: min(100%, 1000px); object-fit: contain; }
.lightbox img { cursor: pointer; transition: opacity .15s; }
.lightbox.loading img { filter: blur(1px); }
.lb-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; }
.lightbox figcaption { color: #eee; min-width: 64px; }
.lb-step {
  background: var(--accent);
  color: #3a2618;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.lb-step:active { transform: scale(.96); }
.lightbox .lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
}
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ===== 佛學知識 ===== */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 18px; }
.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 24px auto 0;
}
.article h1 { font-size: 1.7rem; }
.article .meta { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 1em; }
.article p { margin: 0 0 1em; text-align: justify; }
.article blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  background: var(--surface-alt);
  border-left: 4px solid var(--accent);
  font-family: var(--font-serif);
}
.article h2 { font-size: 1.25rem; margin-top: 1.4em; }

/* ===== 首頁其他 ===== */
.intro { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .intro { grid-template-columns: 3fr 2fr; } }
.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.info-box dl { margin: 0; }
.info-box dt { font-weight: 700; color: var(--primary-dark); margin-top: 8px; }
.info-box dd { margin: 0; color: var(--text-muted); }

/* ===== 頁尾 ===== */
.site-footer {
  background: var(--footer);
  color: #e2cfb2;
  border-top: 4px solid var(--accent);
  padding: 32px 0;
  font-size: 0.93rem;
}
.site-footer a { color: #e8c877; }
.site-footer .container { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h4 { color: #f1d27a; margin-bottom: 0.3em; letter-spacing: 0.1em; }
.site-footer p { margin: 0; }
.copyright { text-align: center; margin-top: 20px; color: #b59a7a; font-size: 0.85rem; }

/* 行事曆公告 */
.cal-notes { margin-top: 24px; }
.cal-notes ul { margin: 0; padding-left: 1.2em; }
.cal-notes li { margin: 2px 0; }
.h2-note { margin-left: 10px; font-size: .9rem; font-weight: 400; color: var(--text-muted); }

/* 影片區：播放器下方的影片標題清單，點選即播放 */
.video-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.video-list button {
  width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; cursor: pointer;
  padding: 8px; background: #fff; border: 1px solid #e6d7b8; border-radius: 8px; font: inherit; color: inherit;
}
.video-list button:hover, .video-list button.active { border-color: #c9a046; background: #fdf6e3; }
.video-list button.active strong { color: #8e1f2c; }
.video-list img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; flex: none; background: #3a2618; }
.video-list span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.video-list strong { font-size: 1rem; line-height: 1.4; }
.video-list small { color: #7a6650; }
/* =====================================================================
 * 古風寺廟主題：宣紙底、回紋邊、祥雲標題、朱印日期、楷書字體
 * ===================================================================== */
:root {
  --font-kai: "LXGW WenKai TC", "BiauKai", "DFKai-SB", "KaiTi", var(--font-serif);
  --paper: #f3e7cc;
  --paper-deep: #e9d8b4;
  --ink: #2e1d12;
  --fret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 11H11V1H3V8H8V4H6' fill='none' stroke='%23c9a046' stroke-width='1.4'/%3E%3Cpath d='M12 11H23V1H15V8H20V4H18' fill='none' stroke='%23c9a046' stroke-width='1.4'/%3E%3C/svg%3E");
  --cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 24'%3E%3Cg fill='none' stroke='%23b8742b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 18c6 0 8-4 12-4s5 4 9 4 4-6 0-7-6 3-3 5'/%3E%3Cpath d='M23 18c5 0 7-9 14-9s8 9 13 9 6-6 1-8-7 4-3 6'/%3E%3Cpath d='M2 22h56'/%3E%3C/g%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.32 0 0 0 0 0.15 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --bg: var(--paper);
  --surface: #fbf4e3;
  --surface-alt: var(--paper-deep);
  --text: var(--ink);
  --border: #d6bf92;
}

body {
  background: var(--grain), radial-gradient(ellipse at top, #f8eed8, var(--paper) 60%);
  font-family: var(--font-serif);
}

h1, h2, h3, h4,
.brand, .site-nav a, .btn, .event-date .d {
  font-family: var(--font-kai);
}

/* 頁首：朱紅木樑 + 金色回紋飾帶 */
.site-header {
  background: linear-gradient(180deg, #9a2431, var(--primary) 55%, var(--primary-dark));
  border-bottom: 0;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -12px;
  height: 12px;
  background: var(--fret) repeat-x, #4a1018;
  background-size: 24px 12px;
  border-bottom: 2px solid var(--accent);
}
.brand { font-size: 1.7rem; letter-spacing: 0.25em; }
.site-nav a { font-size: 1.12rem; letter-spacing: 0.15em; }
.notice-bar { margin-top: 14px; background: #f7ebc9; }

/* 首頁橫幅：照片加木框 */
.hero { background: #4a1018; padding: 18px 0 0; }
.hero-img {
  border: 6px solid #6b4423;
  outline: 2px solid var(--accent);
  outline-offset: -10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  max-width: calc(100% - 24px);
}
@media (min-width: 1040px) { .hero-img { max-width: 1000px; } }
.hero-band {
  margin-top: 18px;
  background: var(--fret) repeat-x top / 24px 12px, var(--fret) repeat-x bottom / 24px 12px, var(--primary);
  padding: 22px 16px;
  border-top: 0;
}
.hero-band p { font-family: var(--font-kai); font-size: clamp(1.15rem, 4vw, 1.7rem); letter-spacing: 0.25em; }

/* 區塊標題：置中、兩側祥雲 */
.section { padding-top: 48px; }
.section-head {
  position: relative;
  justify-content: center;
  border-bottom: 0;
  padding-bottom: 18px;
  margin-bottom: 24px;
  background: var(--fret) repeat-x bottom / 24px 12px;
}
.section-head h2 {
  font-size: 1.75rem;
  letter-spacing: 0.3em;
  padding: 0 70px;
  background: var(--cloud) no-repeat left center / 56px auto, var(--cloud) no-repeat right center / 56px auto;
}
.section-head h2::first-letter { color: var(--primary); }
.section-head a {
  position: absolute;
  right: 0;
  bottom: 22px;
  font-family: var(--font-kai);
}
@media (max-width: 640px) {
  .section-head { flex-direction: column; align-items: center; }
  .section-head h2 { font-size: 1.45rem; padding: 0 56px; background-size: 44px auto, 44px auto; }
  .section-head a { position: static; margin-top: 4px; }
}

/* 頁面標題：卷軸感 */
.page-title {
  text-align: center;
  background: var(--fret) repeat-x bottom / 24px 12px, linear-gradient(180deg, var(--paper-deep), var(--paper));
  border-bottom: 0;
  padding-bottom: 36px;
}
.page-title h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); letter-spacing: 0.35em; }

/* 卡片：宣紙 + 內框金線 */
.card, .event, .info-box, .article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: 0 2px 0 rgba(107, 68, 35, 0.15), 0 6px 16px rgba(70, 40, 15, 0.08);
  position: relative;
}
.card::before, .event::before, .info-box::before, .article::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201, 160, 70, 0.55);
  pointer-events: none;
}
.album-cover { border-bottom: 3px solid var(--primary); }

/* 法會日期：朱紅印章 */
.event { align-items: center; padding: 16px 18px; }
.event-date {
  width: 76px;
  padding: 6px 0;
  border: 0;
  background: var(--primary);
  color: #f6e3b0;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px #f1d27a, inset 0 0 0 4px var(--primary);
}
.event-date .m, .event-date .w { color: #f1d27a; }
.event-date .d { color: #fff4d0; font-weight: 700; }
.event-info h3 { font-size: 1.25rem; }
.badge { border-radius: 2px; font-family: var(--font-kai); }

/* 按鈕 */
.btn { border-radius: 2px; border-color: var(--border); background: var(--surface); }
.btn.active, .btn-primary { box-shadow: inset 0 0 0 2px #f1d27a; }

/* 月曆 */
.cal-grid { border-radius: 2px; background: var(--surface); }
.cal-grid .wd { background: var(--primary); color: #f1d27a; font-family: var(--font-kai); font-size: 1rem; }

/* 文章：直式書卷感 */
.article { padding: 36px 28px; }
.article h1 { text-align: center; letter-spacing: 0.2em; }
.article blockquote { font-family: var(--font-kai); font-size: 1.1rem; }

/* 頁尾：深木 + 回紋 */
.site-footer {
  border-top: 0;
  background: var(--fret) repeat-x top / 24px 12px, linear-gradient(180deg, #3f2a1b, #2a1a10);
  padding-top: 44px;
}
.site-footer h4 { font-family: var(--font-kai); font-size: 1.15rem; }
@media (max-width: 640px) {
  .hero-band { gap: 8px; padding: 20px 10px; }
  .hero-band .lotus { width: 26px; }
  .hero-band p { font-size: 1.08rem; letter-spacing: 0.06em; }
}

/* ===== 首頁標語：白馬寺照壁風格（黃底、白色圓框字） ===== */
.hero-band .lotus { display: none; }
.hero-band p.zhaobi {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  margin: 0 auto;
  background: #eed892;
  border: 3px solid #7d2519;
  box-shadow: inset 0 0 0 6px #eed892, inset 0 0 0 8px rgba(125, 37, 25, 0.35);
  padding: 18px 24px;
  max-width: 1000px;
  width: 100%;
  letter-spacing: 0;
}
.zhaobi .group { display: flex; gap: 10px; }
.zhaobi .ch {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: #fffdf6;
  color: #7d2519;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-kai, var(--font-serif));
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
@media (max-width: 640px) {
  .hero-band p.zhaobi { padding: 14px 10px; gap: 10px; }
  .zhaobi .group { gap: 6px; }
  .zhaobi .ch { width: 40px; height: 40px; font-size: 1.35rem; }
}
