/* 濟興長青基金會 新官網 */
:root {
  --bg: #f8f5ee;
  --surface: #ffffff;
  --ink: #1d2721;
  --muted: #56625b;
  --line: #e2dbcc;
  --brand: #1f5c45;
  --brand-dark: #154434;
  --brand-soft: #e5efe9;
  --accent: #9c3f24;
  --sun: #f2c46b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 39, 33, .06), 0 8px 24px rgba(29, 39, 33, .06);
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: system-ui, -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
html[data-size="l"] { font-size: 20px; }
html[data-size="xl"] { font-size: 23px; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.75; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.35; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 99; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- 頂部工具列 ---------- */
.utility { background: var(--brand-dark); color: #e7f0eb; font-size: .85rem; }
.utility-in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 12px; }
.utility-phone { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.utility-phone svg { width: 15px; height: 15px; fill: var(--sun); }
.fontsize { display: flex; align-items: center; gap: 4px; }
.fontsize span { margin-right: 4px; }
.fontsize button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; min-width: 32px; height: 28px; cursor: pointer; font-weight: 700; line-height: 1; }
.fontsize button[data-size="m"] { font-size: 13px; }
.fontsize button[data-size="l"] { font-size: 16px; }
.fontsize button[data-size="xl"] { font-size: 19px; }
.fontsize button[aria-pressed="true"] { background: #fff; color: var(--brand-dark); border-color: #fff; }

/* ---------- 頁首與選單 ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand .logo { display: block; height: 56px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav > ul { list-style: none; display: flex; margin: 0; padding: 0; }
.nav > ul > li { position: relative; }
.nav > ul > li > a { display: block; padding: 24px 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav > ul > li > a:hover, .nav > ul > li:focus-within > a { color: var(--brand); }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .92rem; }
.sub a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.sub-toggle { display: none; }
.nav-cta { background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 999px; white-space: nowrap; font-size: .95rem; }
.nav-cta:hover { background: #7f321c; color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 1200px) {
  .header-in { min-height: 64px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; background: var(--brand-soft); color: var(--brand-dark); border: 0; border-radius: 10px; padding: 10px 14px; font: inherit; font-weight: 700; cursor: pointer; }
  .bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; border-radius: 2px; }
  .bars::before, .bars::after { content: ""; position: absolute; }
  .bars::before { top: -6px; } .bars::after { top: 6px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 20px; max-height: calc(100vh - 100px); overflow-y: auto; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; }
  .nav > ul > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .nav > ul > li > a { padding: 14px 4px; flex: 1; }
  .sub-toggle { display: block; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; position: relative; }
  .sub-toggle::after { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform .15s; }
  .sub-open .sub-toggle::after { transform: translateY(2px) rotate(-135deg); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 8px; width: 100%; display: none; }
  .sub-open .sub { display: block; }
  .has-sub:hover .sub { display: none; }
  .has-sub.sub-open:hover .sub { display: block; }
  .nav-cta { text-align: center; margin-top: 14px; }
}

/* ---------- 按鈕 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { background: #fdf3ea; color: var(--accent); }

/* ---------- 首頁 ---------- */
.hero { padding: 56px 0 40px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .06em; margin: 0 0 8px; font-size: .9rem; }
.hero h1 { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 0 0 18px; letter-spacing: .03em; }
.lead { font-size: 1.05rem; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-actions, .visit-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, var(--brand-soft), #f3e7cf); box-shadow: var(--shadow); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; background: rgba(21, 68, 52, .85); color: #fff; font-size: .82rem; padding: 6px 12px; border-radius: 8px; width: fit-content; max-width: calc(100% - 28px); }
.hero-media figcaption:empty { display: none; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.svc:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--ink); }
.svc-num { font-family: var(--serif); color: var(--accent); font-weight: 700; }
.svc h3 { font-family: var(--serif); font-size: 1.35rem; margin: 4px 0 8px; }
.svc p { margin: 0 0 16px; color: var(--muted); flex: 1; }
.svc-more { color: var(--brand); font-weight: 700; font-size: .92rem; }

.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { font-family: var(--serif); font-size: 1.6rem; margin: 0; }
.sec-head a { font-weight: 700; text-decoration: none; white-space: nowrap; }

.home-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; margin-bottom: 56px; align-items: start; }
.news-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.news-list li + li { border-top: 1px solid var(--line); }
.news-list a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px 20px; text-decoration: none; color: var(--ink); }
.news-list a:hover .news-title { color: var(--brand); text-decoration: underline; }
.news-list time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; }
.news-title { flex-basis: 100%; font-weight: 600; }
.news-ex { flex-basis: 100%; color: var(--muted); font-size: .9rem; }
.news-list-lg a { padding: 20px 24px; }
.tag { display: inline-block; font-size: .78rem; padding: 0 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; line-height: 1.8; }
.tag-pin { background: #fbe7d9; color: var(--accent); }

.donate-card { background: var(--accent); color: #fff; border-radius: var(--radius); padding: 28px; }
.donate-card h2 { font-family: var(--serif); margin: 0 0 8px; font-size: 1.5rem; }
.donate-card p { margin: 0 0 16px; color: #fbe9df; }
.donate-card dl { margin: 0 0 8px; display: grid; gap: 10px; }
.donate-card dl div { background: rgba(255,255,255,.12); border-radius: 10px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.donate-card dt { font-size: .88rem; color: #fbe9df; }
.donate-card dd { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.donate-card .btn { width: 100%; margin-top: 4px; }
.donate-link { display: block; text-align: center; color: #fff; margin-top: 12px; font-weight: 700; }
.donate-link:hover { color: #fff; }

.band { background: var(--brand-soft); padding: 48px 0; margin-bottom: 56px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line); display: flex; flex-direction: column; }
a.card:hover h3 { color: var(--brand); text-decoration: underline; }
.card-img { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #dfe9e3, #efe5d2); overflow: hidden; display: block; width: 100%; border: 0; padding: 0; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 14px 18px 18px; }
.card-body time { color: var(--muted); font-size: .85rem; }
.card-body h3 { font-size: 1rem; margin: 4px 0 0; line-height: 1.55; }
.yt { cursor: pointer; }
.play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.6); }
.play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.yt:hover .play { background: #c4302b; }
.yt-on iframe { width: 100%; height: 100%; border: 0; display: block; }
.home-video { margin-bottom: 56px; }

.visit { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 40px 0 56px; }
.visit h2 { font-family: var(--serif); margin: 0 0 6px; font-size: 1.5rem; }
.visit p { margin: 0; color: var(--muted); max-width: 36em; }

/* ---------- 內頁 ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 28px 0 24px; margin-bottom: 32px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.meta { margin: 10px 0 0; display: flex; gap: 10px; align-items: center; color: var(--muted); }
.with-side { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; margin-bottom: 64px; }
.side { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side h2 { font-size: .85rem; color: var(--muted); margin: 0 0 8px; letter-spacing: .08em; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side ul ul { padding-left: 12px; border-left: 2px solid var(--line); margin: 2px 0 6px 10px; }
.side a { display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.side a:hover { background: var(--brand-soft); }
.side a[aria-current="page"] { background: var(--brand); color: #fff; font-weight: 700; }

.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); min-width: 0; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3 { font-family: var(--serif); }
.prose h1 { font-size: 1.6rem; } .prose h2 { font-size: 1.35rem; } .prose h3 { font-size: 1.15rem; }
.prose img { border-radius: 8px; height: auto !important; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.table-wrap { overflow-x: auto; margin: 1em 0; -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { padding: 8px 12px; vertical-align: top; }
.prose table.data { min-width: 480px; }
.prose table.data td, .prose table.data th { border: 1px solid var(--line); }
/* 舊站排版用表格：手機上改成上下排列 */
@media (max-width: 700px) {
  .prose table:not(.data), .prose table:not(.data) > tbody, .prose table:not(.data) > tbody > tr, .prose table:not(.data) > tbody > tr > td { display: block; width: 100%; }
  .prose table:not(.data) td { padding: 4px 0; }
}
.prose th { background: var(--brand-soft); }
.updated { color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); padding-top: 12px; margin: 32px 0 0; }
.empty { color: var(--muted); padding: 20px 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 20px; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; display: block; }
.back { margin: 20px 0; font-weight: 700; }
.more { margin: 8px 0 64px; }
.more h2 { font-family: var(--serif); font-size: 1.2rem; }
.more ul { list-style: none; padding: 0; margin: 0; }
.more li { border-top: 1px solid var(--line); }
.more a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink); }
.more time { color: var(--muted); margin-right: 8px; font-size: .9rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chips a { padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--surface); font-size: .9rem; }
.chips a[aria-current="page"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager { display: flex; gap: 6px; justify-content: center; margin: 28px 0 64px; flex-wrap: wrap; }
.pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: var(--surface); }
.pager a[aria-current="page"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.wrap > .cards { margin-bottom: 64px; }

.accordion details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.accordion summary { padding: 18px 22px; cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-right: 48px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand); }
.accordion details[open] summary::after { content: "−"; }
.accordion .prose { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.files { list-style: none; padding: 0; margin: 0 0 20px; }
.files a { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.file-ext { background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.ask { margin: 28px 0 64px; padding: 18px 22px; border-radius: var(--radius); background: var(--brand-soft); }
.notfound { padding: 64px 0; }

/* ---------- 聯絡表單 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; margin-bottom: 64px; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); }
.form label { display: block; font-weight: 700; margin: 18px 0 6px; }
.form label:first-of-type { margin-top: 0; }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid #c9c1b0; border-radius: 10px; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand); outline: 3px solid rgba(31, 92, 69, .2); }
.form [aria-invalid="true"] { border-color: var(--accent); border-width: 2px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { margin-top: 8px; width: 100%; }
.req { font-size: .75rem; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 0 5px; margin-left: 4px; font-weight: 700; vertical-align: 2px; }
.hint { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.field-err { color: var(--accent); font-weight: 700; font-size: .9rem; margin: 6px 0 0; }
.field-err::before { content: "⚠ "; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.notice p { margin: 4px 0 0; }
.notice-ok { background: var(--brand-soft); border: 2px solid var(--brand); }
.notice-err { background: #fbe7d9; border: 2px solid var(--accent); font-weight: 700; }
.contact-side h2 { font-family: var(--serif); margin: 0 0 12px; font-size: 1.3rem; }
.loc { border-top: 1px solid var(--line); padding: 14px 0; }
.loc h3 { margin: 0; font-size: 1.05rem; }
.loc p { margin: 2px 0; }
.loc-tel { font-size: 1.3rem; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }

/* ---------- 頁尾 ---------- */
.site-footer { background: #17251e; color: #cfdcd4; padding: 48px 0 0; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; padding-bottom: 32px; }
/* 正式 LOGO 的書法字是黑色，深色頁尾上墊白底 */
.footer-logo { display: inline-block; background: #fff; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.footer-logo img { display: block; height: 48px; width: auto; }
.footer-loc h2 { color: #fff; font-size: 1rem; margin: 0 0 4px; }
.footer-loc .muted { color: #a9bdb1; }
.footer-grid p { margin: 0 0 8px; }
.footer-invoice strong { color: var(--sun); font-size: 1.1rem; letter-spacing: .08em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #a9bdb1; font-size: .82rem; }

/* ---------- 響應式 ---------- */
@media (max-width: 900px) {
  .hero { padding: 32px 0 28px; }
  .hero-in, .home-split, .contact-grid, .with-side { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16 / 10; }
  .services { grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; }
  .side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .utility-in { font-size: .8rem; }
  .fontsize span { display: none; }
  .brand .logo { height: 44px; }
  .hero-actions .btn, .visit-actions .btn { flex: 1 1 100%; }
  .form .two { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .utility, .site-header, .site-footer, .side { display: none; } .prose { border: 0; } }

/* ===== 內容版面元件（c- 開頭，後台編輯器會保留這些 class） ===== */
/* 標題換行盡量平均，不讓最後一個字落單 */
h1, h2, h3, .prose h1, .prose h2, .prose h3, .prose h4 { text-wrap: balance; }
.prose p, .prose li { text-align: justify; text-justify: inter-character; }
.prose .c-center, .prose .c-center p { text-align: center; }

/* 圖片：置中；c-full 放大到內文寬度 */
.prose .c-img { display: block; margin: 1.5em auto; max-width: 100%; }
.prose .c-full { width: 100%; }
.prose figure.c-fig { margin: 1.5em auto; text-align: center; }
.prose figure.c-fig img { display: block; margin: 0 auto; }
.prose figure.c-fig figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; text-align: center; }

/* 多張小圖排在同一行 */
.prose .c-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 28px; margin: 1.5em 0; }
.prose .c-row img { margin: 0; }
.prose .c-row a { display: inline-flex; }

/* 下載：圖示在上、連結在正下方，置中 */
.prose .c-dls { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 32px; margin: 1.5em 0; }
.prose .c-dl { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 220px; text-align: center; font-weight: 600; line-height: 1.5; }
.prose .c-dl img { width: 64px; height: 64px !important; margin: 0; border-radius: 0; }
.prose .c-dls.c-left { justify-content: flex-start; }

/* 置中強調的短句 */
.prose .c-lead { font-size: 1.25rem; font-weight: 700; color: var(--accent); line-height: 1.6; text-align: left; margin: 0 0 1em; }
.prose .c-term { text-align: center; color: var(--muted); margin: .25em 0 1.25em; }
.prose .c-note { background: var(--brand-soft); border-radius: 10px; padding: 14px 18px; margin: 1.25em 0; text-align: left; }
.prose .c-note p { margin: .25em 0; text-align: left; }

/* 年表 */
.prose .c-timeline { width: 100%; border-collapse: separate; border-spacing: 0 8px; min-width: 0; }
.prose .c-timeline th { width: 110px; background: var(--brand); color: #fff; text-align: center; vertical-align: middle; border-radius: 10px 0 0 10px; padding: 12px 8px; line-height: 1.4; white-space: nowrap; }
.prose .c-timeline th small { display: block; font-weight: 400; opacity: .85; font-size: .82rem; }
.prose .c-timeline td { background: var(--brand-soft); border-radius: 0 10px 10px 0; padding: 12px 18px; }
.prose .c-timeline tr:nth-child(even) th { background: var(--accent); }
.prose .c-timeline tr:nth-child(even) td { background: #fbeee7; }
.prose .c-timeline td p { margin: .2em 0; }
.prose .c-timeline b { color: var(--brand-dark); margin-right: .5em; font-variant-numeric: tabular-nums; }

/* 期刊列表：日期與連結同一行 */
.prose .c-list { list-style: none; padding: 0; margin: 0; }
.prose .c-list li { display: grid; grid-template-columns: 9em 1fr; gap: 12px; align-items: baseline; padding: 12px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.prose .c-list li > span:first-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.prose .c-tag { display: inline-block; font-size: .75rem; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 0 8px; margin-left: 6px; vertical-align: 2px; }

/* 左右兩欄、等高 */
.prose .c-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; margin: 1em 0; }
.prose .c-panel { background: #fff8d6; border-radius: 12px; padding: 20px 24px; }
.prose .c-panel h2, .prose .c-panel h3 { color: var(--brand-dark); margin: .6em 0 .3em; }
.prose .c-panel > :first-child { margin-top: 0; }
.prose .c-panel ol { margin: 0 0 .5em; }
.prose .c-cert { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #faf9f6; border-radius: 12px; padding: 16px; }
.prose .c-cert img { max-height: 520px; width: auto; margin: 0; }
.prose .c-cert p { margin: 0; text-align: center; color: var(--accent); font-weight: 600; }

/* 交通方式 */
.prose .c-traffic { display: grid; grid-template-columns: 220px 1fr; gap: 12px 32px; padding: 24px 0; border-top: 1px solid var(--line); }
.prose .c-traffic:first-of-type { border-top: 0; }
.prose .c-traffic-side { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.prose .c-traffic-side h2 { width: 100%; margin: 0; background: #6f9a2a; color: #fff; text-align: center; border-radius: 8px; padding: 8px; font-size: 1.1rem; letter-spacing: .3em; }
.prose .c-traffic-side img { margin: 0; max-width: 100%; }
.prose .c-traffic-side .c-shields { display: flex; gap: 10px; justify-content: center; }
.prose .c-traffic-side .c-shields img { width: 64px; }
.prose .c-route { margin: 0 0 1.25em; }
.prose .c-route h3 { font-family: var(--sans); font-size: 1.02rem; color: var(--brand-dark); margin: 0 0 .3em; }
.prose .c-route p { margin: .2em 0; }
.prose .c-route ol { margin: .3em 0; padding-left: 1.3em; }
.prose .c-route .c-dls { justify-content: flex-start; margin: .75em 0 0; }

/* 標誌牆：有圖的圖在上、名稱在下 */
.prose .c-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: .75em 0 1.5em; }
.prose .c-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 96px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; text-align: center; font-size: .92rem; line-height: 1.4; }
.prose .c-logo img { max-height: 48px; max-width: 100%; width: auto; margin: 0; border-radius: 0; }
.prose .c-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: .75em 0 1.5em; padding: 0; list-style: none; }
.prose .c-names li { background: #faf9f6; border: 1px solid var(--line); border-radius: 999px; padding: 3px 14px; font-size: .9rem; text-align: center; }
.prose h3.c-sub { text-align: center; font-family: var(--sans); font-size: 1rem; color: var(--muted); letter-spacing: .1em; margin: 1.5em 0 .5em; }

/* 園遊券卡片：表頭與內容在同一張卡片，不會錯位 */
.prose .c-tickets { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1em 0 1.5em; }
.prose .c-ticket { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.prose .c-ticket h3 { margin: 0; padding: 10px; text-align: center; letter-spacing: .4em; font-size: 1.05rem; }
.prose .c-ticket.c-teal h3 { background: #5fc6c9; }
.prose .c-ticket.c-gold h3 { background: #f5c955; }
.prose .c-ticket-body { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px; align-items: start; }
.prose .c-ticket-body img { width: 100%; margin: 0; }
.prose .c-ticket-body p { margin: .25em 0; text-align: left; }
.prose .c-ticket.c-teal .c-ticket-body { background: #effbfb; }
.prose .c-ticket.c-gold .c-ticket-body { background: #fffbea; }
.prose .c-event { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 1.5em 0; }
.prose .c-event h3 { margin: 0; background: #6f9a2a; color: #fff; text-align: center; padding: 10px; font-size: 1.05rem; }
.prose .c-event p { margin: 0; padding: 14px 18px; text-align: left; }

@media (max-width: 760px) {
  .prose .c-split, .prose .c-tickets { grid-template-columns: 1fr; }
  .prose .c-traffic { grid-template-columns: 1fr; }
  .prose .c-traffic-side img { max-width: 220px; }
  .prose .c-list li { grid-template-columns: 1fr; gap: 2px; }
  .prose .c-timeline th { width: 84px; }
}
.prose .c-nowrap { white-space: nowrap; }
.prose .c-panel li, .prose .c-list li, .prose .c-names li { text-align: left; }
.prose .c-cert p, .prose .c-center, .prose .c-term, .prose .c-lead { text-wrap: balance; }
