/* =========================================================
   福祥里辦公處 前台樣式
   ========================================================= */
:root {
    --primary: #0f8b8d;
    --primary-dark: #0a6466;
    --primary-deep: #0b3d4a;
    --primary-soft: #e6f4f3;
    --accent: #f0694f;
    --accent-soft: #fdeeea;
    --amber: #f5a524;
    --ink: #1d2b36;
    --text: #3d4b57;
    --muted: #7a8794;
    --line: #e5ecef;
    --bg: #f5f8f8;
    --card: #ffffff;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 2px 8px rgba(16, 52, 64, .06);
    --shadow: 0 10px 30px rgba(16, 52, 64, .08);
    --shadow-lg: 0 20px 50px rgba(16, 52, 64, .14);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 基礎 ---------- */
html { scroll-behavior: smooth; }
body {
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
    letter-spacing: .04em;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { color: var(--ink); font-family: inherit; font-weight: 700; letter-spacing: .04em; }
a { color: var(--primary); transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s, transform .2s; }
a:hover, a:focus { color: var(--primary-dark); text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--primary); color: #fff; }

.container { max-width: 1200px; width: 100%; }
/* Bootstrap 的 clearfix 偽元素在 flex/grid 容器中會變成隱形項目，造成對齊錯位 */
.topbar .container::before, .topbar .container::after,
.site-header > .container::before, .site-header > .container::after { display: none; }
.f16 { font-size: 16px !important; }
.f18 { font-size: 18px !important; }
.f20 { font-size: 20px !important; }

/* 按鈕 */
.btn-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: 999px; border: 0;
    font-size: 15px; font-weight: 500; letter-spacing: .08em;
    background: var(--primary); color: #fff !important;
    box-shadow: 0 6px 16px rgba(15, 139, 141, .25);
}
.btn-pill:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-pill.is-ghost { background: var(--primary-soft); color: var(--primary-dark) !important; box-shadow: none; }
.btn-pill.is-ghost:hover { background: var(--primary); color: #fff !important; }
.btn-pill.is-white { background: #fff; color: var(--primary-dark) !important; box-shadow: none; }
.btn-pill.is-white:hover { background: var(--accent); color: #fff !important; }
.btn-pill.is-fb { background: #1877f2; box-shadow: 0 6px 16px rgba(24, 119, 242, .25); }
.btn-pill.is-fb:hover { background: #0f63d2; }
.btn-pill.is-line { background: #06c755; box-shadow: 0 6px 16px rgba(6, 199, 85, .25); }
.btn-pill.is-line:hover { background: #05a849; }

.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; }
.link-more i { transition: transform .2s; }
.link-more:hover i { transform: translateX(4px); }

/* ---------- 頂部資訊列 ---------- */
.topbar {
    background: var(--primary-deep);
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    letter-spacing: .08em;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 38px; }
.topbar-weather i { color: var(--amber); margin-right: 6px; }
.topbar-links a { color: rgba(255, 255, 255, .78); margin-left: 18px; }
.topbar-links a:hover { color: #fff; }
.topbar-links i { margin-right: 4px; }

/* ---------- 主選單 ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(16, 52, 64, .08); }
.site-header > .container { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .3s; }
.header-actions { display: flex; align-items: center; }
.site-header.is-scrolled > .container { height: 70px; }
.site-logo img { height: 58px; width: auto; transition: height .3s; }
.site-header.is-scrolled .site-logo img { height: 48px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
    position: relative;
    padding: 8px 16px; border-radius: 999px;
    color: var(--ink); font-size: 16px; font-weight: 500;
}
.site-nav a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.site-nav a.is-active { background: var(--primary); color: #fff; }

.nav-search-btn, .nav-toggle {
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; margin-left: 8px; cursor: pointer;
    transition: all .2s;
}
.nav-search-btn:hover, .nav-toggle:hover { border-color: var(--primary); color: var(--primary); }
.nav-toggle { display: none; font-size: 20px; }

.search-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 18px 0;
}
.search-panel.is-open { display: block; animation: slideDown .25s var(--ease); }

.search-box { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 18px; transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15, 139, 141, .12); }
.search-box i { color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 8px 12px; font-size: 15px; color: var(--ink); }
.search-box button { border: 0; border-radius: 999px; background: var(--primary); color: #fff; padding: 8px 20px; font-size: 14px; letter-spacing: .1em; }
.search-box button:hover { background: var(--primary-dark); }

.mobile-nav { display: none; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- 內頁橫幅 ---------- */
.page-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--primary-deep) 0%, var(--primary-dark) 45%, var(--primary) 100%);
    color: #fff;
    padding: 56px 0 64px;
}
.page-hero::before, .page-hero::after {
    content: ""; position: absolute; border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}
.page-hero::before { width: 380px; height: 380px; right: -80px; top: -160px; }
.page-hero::after { width: 220px; height: 220px; right: 220px; bottom: -140px; background: rgba(240, 105, 79, .18); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero-eyebrow { display: inline-block; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: 8px; }
.page-hero h1 { color: #fff; font-size: 36px; margin: 0 0 14px; letter-spacing: .12em; }
.breadcrumbs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.breadcrumbs li + li::before { content: "\f105"; font-family: FontAwesome; margin-right: 6px; opacity: .6; }
.breadcrumbs a { color: rgba(255, 255, 255, .85); }
.breadcrumbs a:hover { color: #fff; }

/* ---------- 主內容 ---------- */
.site-main { padding: 48px 0 80px; }
.page-hero + .site-main { padding-top: 0; }
.page-hero + .site-main > .container > .lift { margin-top: -28px; position: relative; z-index: 2; }

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(229, 236, 239, .7);
}
.card-body { padding: 32px; }

.section { margin-bottom: 56px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-title { margin: 0; }
.section-title small { display: block; font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.section-title span { display: block; font-size: 28px; color: var(--ink); line-height: 1.3; }
.section-title span::after { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--primary); margin-top: 10px; }

/* ---------- 首頁 Hero 輪播 ---------- */
.home-hero { padding: 32px 0 0; }
.home-hero .swiper-container {
    height: auto !important;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.home-hero .swiper-slide { height: auto !important; background: none; display: block; }
.home-hero .swiper-slide img { display: block; width: 100%; height: auto; }
.home-hero .swiper-pagination { bottom: 16px !important; }
.home-hero .swiper-pagination-bullet { width: 10px; height: 10px; background: #fff; opacity: .6; transition: all .3s; }
.home-hero .swiper-pagination-bullet-active { width: 28px; border-radius: 6px; background: #fff; opacity: 1; }
.banner_mobile { display: none !important; }

/* 快速服務 */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 32px 0 56px;
}
.quick-item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 22px; border-radius: var(--radius);
    background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
    color: var(--text);
}
.quick-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); border-color: transparent; }
.quick-icon {
    flex: 0 0 52px; height: 52px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff;
}
.quick-icon.c1 { background: linear-gradient(135deg, #2bb673, #0f8b8d); }
.quick-icon.c2 { background: linear-gradient(135deg, #f5a524, #f0694f); }
.quick-icon.c3 { background: linear-gradient(135deg, #06c755, #04a447); }
.quick-icon.c4 { background: linear-gradient(135deg, #3aa6d6, #0b5f8a); }
.quick-item h3 { font-size: 17px; margin: 2px 0 4px; }
.quick-item p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* 首頁 消息列表 */
.news-list { list-style: none; margin: 0; padding: 8px; }
.news-list li + li { border-top: 1px dashed var(--line); }
.news-list a {
    display: flex; align-items: center; gap: 18px;
    padding: 14px 16px; border-radius: var(--radius-sm);
    color: var(--ink);
}
.news-list a:hover { background: var(--primary-soft); }
.news-list a:hover .news-arrow { color: var(--primary); transform: translateX(4px); }
.date-badge {
    flex: 0 0 64px; text-align: center; line-height: 1.1;
    padding: 8px 0; border-radius: 12px;
    background: var(--primary-soft); color: var(--primary-dark);
}
.date-badge b { display: block; font-size: 22px; font-weight: 700; }
.date-badge small { display: block; font-size: 11px; letter-spacing: .05em; opacity: .8; margin-top: 3px; }
.news-list .news-title { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-arrow { color: #c3ccd3; transition: all .2s; }

/* 活動卡片 */
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.event-grid.is-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.event-card {
    display: flex; flex-direction: column;
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--line);
    color: var(--text);
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text); border-color: transparent; }
.event-thumb { position: relative; height: 0; padding-top: 75%; overflow: hidden; background: linear-gradient(135deg, var(--primary-soft), #f1f5f6); }
.event-thumb::before { content: "\f03e"; font-family: FontAwesome; position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; font-size: 36px; color: rgba(15, 139, 141, .25); }
.event-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; transition: transform .6s var(--ease); }
.event-thumb img.is-broken, .gallery img.is-broken { visibility: hidden; }
.profile-photo.is-broken { display: none; }
.event-card:hover .event-thumb img { transform: scale(1.06); }
.event-date {
    position: absolute; left: 14px; top: 14px;
    padding: 4px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .92); color: var(--primary-dark);
    font-size: 12px; font-weight: 500; letter-spacing: .05em;
    box-shadow: var(--shadow-sm);
}
.event-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.event-body h3 { font-size: 17px; line-height: 1.5; margin: 0 0 8px; }
.event-card:hover h3 { color: var(--primary); }
.event-body p {
    margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 友善連結 */
.link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.link-grid a {
    display: flex; align-items: center; justify-content: center;
    height: 96px; padding: 14px 18px;
    background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line);
}
.link-grid a:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.link-grid img { max-height: 64px; width: auto; }

/* ---------- 側欄 ---------- */
.sidebar-stack > * + * { margin-top: 24px; }

.office-card {
    position: relative; overflow: hidden;
    border-radius: var(--radius); padding: 30px 28px;
    background: linear-gradient(150deg, var(--primary-deep), var(--primary));
    color: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-lg);
}
.office-card::after {
    content: ""; position: absolute; right: -60px; top: -60px;
    width: 180px; height: 180px; border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.office-card .eyebrow { font-size: 12px; letter-spacing: .3em; color: rgba(255, 255, 255, .6); }
.office-card h3 { color: #fff; font-size: 24px; margin: 4px 0 18px; }
.office-chief { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.office-chief .avatar { width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .15); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }
.office-chief small { display: block; font-size: 12px; color: rgba(255, 255, 255, .6); }
.office-chief b { font-size: 20px; color: #fff; letter-spacing: .15em; }
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; position: relative; z-index: 1; }
.contact-list li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 15px; word-break: break-all; }
.contact-list i { flex: 0 0 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; color: #fff; }
.contact-list a { color: #fff; }
.contact-list a:hover { color: var(--amber); }
.office-actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }

.side-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 24px; }
.side-card h4 { font-size: 17px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.side-card h4 i { color: var(--accent); }
.hot-list { list-style: none; margin: 0; padding: 0; counter-reset: hot; }
.hot-list li { counter-increment: hot; }
.hot-list li + li { border-top: 1px solid var(--line); }
.hot-list a { display: flex; gap: 12px; padding: 11px 0; color: var(--text); font-size: 15px; line-height: 1.6; }
.hot-list a::before {
    content: counter(hot);
    flex: 0 0 24px; height: 24px; border-radius: 8px; margin-top: 1px;
    background: var(--primary-soft); color: var(--primary-dark);
    font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.hot-list li:nth-child(-n+3) a::before { background: var(--accent); color: #fff; }
.hot-list a:hover { color: var(--primary); }

.promo-list > * + * { margin-top: 16px; }
.promo-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.promo-list img { display: block; width: 100%; }
.video-frame { position: relative; height: 0; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #000; }
.video-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 消息列表頁 ---------- */
.post-list > * + * { margin-top: 20px; }
.post-item {
    display: flex; gap: 24px; padding: 26px 28px;
    background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.post-item:hover { box-shadow: var(--shadow); border-color: transparent; }
.post-item .date-badge { flex-basis: 76px; padding: 12px 0; align-self: flex-start; }
.post-item .date-badge b { font-size: 28px; }
.post-item-body { flex: 1; min-width: 0; }
.post-item h2 { font-size: 20px; line-height: 1.5; margin: 0 0 6px; }
.post-item h2 a { color: var(--ink); }
.post-item h2 a:hover { color: var(--primary); }
.post-meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.post-meta i { margin-right: 4px; }
.post-item p { margin: 0 0 14px; color: var(--text); font-size: 15px; }

.empty-state { text-align: center; padding: 64px 24px; color: var(--muted); }
.empty-state i { font-size: 40px; color: #c3ccd3; margin-bottom: 12px; display: block; }

/* 分頁 */
.pagination { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 40px 0 0 !important; padding: 0; }
.pagination a {
    min-width: 42px; height: 42px; padding: 0 14px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border-radius: 999px; background: #fff; border: 1px solid var(--line);
    color: var(--text); font-size: 14px;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination a.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(15, 139, 141, .25); }

/* ---------- 文章內頁 ---------- */
.article-card { padding: 44px 48px; }
.article-title { font-size: 30px; line-height: 1.45; margin: 0 0 14px; word-break: break-word; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); padding-bottom: 22px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-meta i { color: var(--primary); margin-right: 6px; }
.article-cover { margin-bottom: 28px; border-radius: var(--radius-sm); overflow: hidden; }
.article-cover img { display: block; width: 100%; height: auto; }
.article-content { font-size: 17px; line-height: 2; color: var(--text); word-break: break-word; }
.article-content img { max-width: 100%; height: auto !important; border-radius: var(--radius-sm); }
.article-content p { margin-bottom: 1.2em; }
.article-content table { max-width: 100%; }
.article-content iframe { max-width: 100%; }
.article-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }

/* 相簿 */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.gallery a { position: relative; display: block; height: 0; padding-top: 75%; border-radius: var(--radius-sm); overflow: hidden; background: var(--primary-soft); }
.gallery img { position: absolute; top: 0; left: 0; color: transparent; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a::after {
    content: "\f00e"; font-family: FontAwesome;
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #fff; background: rgba(11, 61, 74, .45);
    opacity: 0; transition: opacity .3s;
}
.gallery a:hover img { transform: scale(1.08); }
.gallery a:hover::after { opacity: 1; }

/* ---------- 關於福祥 ---------- */
.subnav { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 12px; position: sticky; top: 100px; }
.subnav-title { font-size: 12px; letter-spacing: .3em; color: var(--muted); padding: 8px 14px 10px; text-transform: uppercase; }
.subnav ul { position: relative; list-style: none; margin: 0; padding: 0; }
.subnav a { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: var(--radius-sm); color: var(--ink); font-size: 16px; font-weight: 500; }
.subnav a i { color: #c3ccd3; transition: transform .2s; }
.subnav a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.subnav a:hover i { transform: translateX(3px); color: var(--primary); }
.subnav li.is-active a { background: var(--primary); color: #fff; }
.subnav li.is-active a i { color: #fff; }

.about-lead { font-size: 26px; margin: 0 0 20px; display: flex; align-items: center; gap: 12px; }
.about-lead::before { content: ""; width: 6px; height: 28px; border-radius: 6px; background: linear-gradient(var(--primary), var(--accent)); }
.prose { font-size: 17px; line-height: 2; }
.prose p { margin: 0 0 1.1em; }
.info-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 15px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 8px 0 28px; }
.stat { padding: 20px; border-radius: var(--radius-sm); background: var(--bg); text-align: center; }
.stat b { display: block; font-size: 30px; color: var(--primary); line-height: 1.2; }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- 里長簡介 ---------- */
.profile { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 40px; align-items: start; }
.profile-photo { position: relative; }
.profile-photo img { display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.profile-photo::before { content: ""; position: absolute; top: 20px; right: -16px; bottom: -16px; left: 20px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft)); }
.profile-card { padding: 48px; }
.profile-name { font-size: 34px; margin: 0 0 4px; letter-spacing: .2em; }
.profile-role { color: var(--accent); font-weight: 500; letter-spacing: .2em; margin-bottom: 18px; }
.profile-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.timeline-title { font-size: 18px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.timeline-title i { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.timeline-title.is-past i { background: var(--muted); }
.timeline { list-style: none; margin: 0 0 28px; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 6px 0 6px 20px; font-size: 16px; }
.timeline li::before { content: ""; position: absolute; left: -23px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.timeline.is-past li::before { border-color: #b7c2cb; }

/* ---------- 聯絡我們 ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; align-items: stretch; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--text); }
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); border-color: transparent; }
.contact-card .ic { flex: 0 0 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; background: var(--primary); }
.contact-card small { display: block; font-size: 12px; color: var(--muted); letter-spacing: .15em; }
.contact-card b { font-size: 17px; color: var(--ink); font-weight: 500; word-break: break-all; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; background: var(--primary-soft); }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ---------- 垃圾車 ---------- */
.truck-map { width: 100%; height: 520px; border-radius: var(--radius); overflow: hidden; }
.data-table { width: 100%; margin-top: 24px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.data-table th { background: var(--primary-soft); color: var(--primary-dark); font-weight: 500; padding: 12px 16px; }
.data-table th:first-child { border-radius: 10px 0 0 10px; }
.data-table th:last-child { border-radius: 0 10px 10px 0; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }

/* ---------- 頁尾 ---------- */
.site-footer { position: relative; background: var(--primary-deep); color: rgba(255, 255, 255, .7); padding: 64px 0 0; margin-top: 0; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--amber), var(--accent)); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.9; margin: 0; }
.site-footer h4 { color: #fff; font-size: 16px; letter-spacing: .15em; margin: 6px 0 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 5px 0; }
.footer-links a { color: rgba(255, 255, 255, .7); font-size: 15px; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-links i { width: 18px; color: var(--amber); margin-right: 6px; }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.social a:hover { background: var(--accent); transform: translateY(-3px); }
.social .line-text { font-size: 11px; font-weight: 700; letter-spacing: 0; }
.footer-bottom { margin-top: 48px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; }
.footer-bottom a { color: rgba(255, 255, 255, .7); }
.footer-bottom a:hover { color: #fff; }

.back-to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 900;
    width: 48px; height: 48px; border-radius: 50%; border: 0;
    background: var(--primary); color: #fff; font-size: 20px;
    box-shadow: var(--shadow-lg); cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: all .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--accent); }

/* 進場動畫 */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 響應式 ---------- */
@media (max-width: 1199px) {
    .site-nav a { padding: 8px 12px; font-size: 15px; }
    .event-grid.is-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .site-nav, .nav-search-btn { display: none; }
    .nav-toggle { display: inline-flex; }
    .site-header > .container { height: 70px; }
    .site-logo img { height: 46px; }
    .mobile-nav { background: #fff; border-top: 1px solid var(--line); padding: 12px 0 20px; }
    .mobile-nav.is-open { display: block; animation: slideDown .25s var(--ease); max-height: calc(100vh - 62px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .mobile-nav a.mobile-link { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: var(--radius-sm); color: var(--ink); font-size: 17px; font-weight: 500; }
    .mobile-nav a.mobile-link.is-active { background: var(--primary-soft); color: var(--primary-dark); }
    .mobile-nav .search-box { margin-top: 12px; }

    .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .event-grid.is-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sidebar-stack { margin-top: 40px; }
    .subnav { position: static; margin-bottom: 24px; padding: 8px; }
    .subnav-title { display: none; }
    .subnav ul { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .subnav ul::-webkit-scrollbar { display: none; }
    .subnav li { flex: 0 0 auto; }
    .subnav a { padding: 10px 18px; border-radius: 999px; white-space: nowrap; font-size: 15px; }
    .subnav a i { display: none; }
    .profile { grid-template-columns: 1fr; }
    .profile-photo { max-width: 360px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .page-hero + .site-main > .container > .lift { margin-top: -20px; }
}

@media (max-width: 767px) {
    body { font-size: 15px; letter-spacing: .02em; }
    .container { padding-left: 16px; padding-right: 16px; }
    .row { margin-left: -16px; margin-right: -16px; }
    .row > [class*="col-"] { padding-left: 16px; padding-right: 16px; }
    .search-box input { font-size: 16px; }
    .site-logo img { height: 40px; }
    .nav-toggle { width: 40px; height: 40px; }
    .site-header > .container, .site-header.is-scrolled > .container { height: 62px; }
    .site-header.is-scrolled .site-logo img { height: 38px; }
    .breadcrumbs { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
    .breadcrumbs li:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .page-hero::before { width: 240px; height: 240px; right: -100px; top: -120px; }
    .topbar-links { display: none; }
    .topbar .container { justify-content: center; }
    .page-hero { padding: 36px 0 48px; }
    .page-hero h1 { font-size: 28px; }
    .site-main { padding: 32px 0 56px; }
    .section { margin-bottom: 40px; }
    .section-title span { font-size: 24px; }
    .home-hero { padding-top: 16px; }
    .home-hero .swiper-container { border-radius: 16px; }
    .quick-grid { gap: 12px; margin: 20px 0 40px; }
    .quick-item { flex-direction: column; gap: 10px; padding: 16px; }
    .quick-icon { flex-basis: 44px; height: 44px; width: 44px; font-size: 18px; border-radius: 12px; }
    .event-grid, .event-grid.is-wide { grid-template-columns: 1fr; gap: 16px; }
    .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-body { padding: 22px; }
    .post-item { display: block; padding: 20px; }
    .post-item .date-badge { display: none; }
    .post-item h2 { font-size: 18px; }
    .post-item p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .news-list { padding: 4px; }
    .news-list a { gap: 12px; padding: 12px; }
    .news-list .date-badge { flex-basis: 54px; }
    .news-list .date-badge b { font-size: 19px; }
    .news-list .news-title { font-size: 15px; }
    .section-head { margin-bottom: 18px; }
    .event-body { padding: 16px 18px 18px; }
    .office-card { padding: 26px 22px; }
    .side-card { padding: 20px; }
    .profile-card { padding: 22px; }
    .profile-name { font-size: 28px; }
    .profile-photo { max-width: 260px; margin: 0 auto 8px; }
    .profile-photo::before { top: 12px; right: -10px; bottom: -10px; left: 12px; }
    .timeline li { font-size: 15px; }
    .about-lead { font-size: 22px; }
    .prose { font-size: 16px; line-height: 1.9; }
    .contact-card { padding: 14px 16px; gap: 14px; }
    .contact-card .ic { flex-basis: 42px; height: 42px; font-size: 18px; }
    .contact-card b { font-size: 16px; }
    .map-frame, .map-frame iframe { min-height: 300px; }
    .article-footer .btn-pill { flex: 1 1 auto; justify-content: center; }
    .truck-map { height: 360px; }
    .data-table { font-size: 14px; }
    .data-table th, .data-table td { padding: 10px 8px; }
    .article-card { padding: 26px 22px; }
    .article-title { font-size: 23px; }
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat-grid { gap: 8px; }
    .stat { padding: 14px 6px; }
    .stat b { font-size: 20px; }
    .stat span { font-size: 12px; }
    .site-footer { padding-top: 44px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .site-footer h4 { margin-bottom: 12px; }
    .footer-sitemap .footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; }
    .info-chip { border-radius: 12px; align-items: flex-start; }
    .info-chip i { margin-top: 5px; }
    .footer-brand img { height: 52px; }
    .footer-links a { font-size: 14px; word-break: break-all; }
    .footer-bottom { margin-top: 32px; }
    .footer-bottom { justify-content: center; text-align: center; }
    .back-to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 429px) {
    .banner_pc { display: none !important; }
    .banner_mobile { display: block !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
