﻿/* ============================================================
   前台主樣式 main.css
   由 tools/build-mockup-css.py 從設計稿合併產生：
     共用檔 tokens.css、base.css、header.css、components.css、page-header.css、footer.css、home.css
     各頁 <style> 21 支
   同選擇器內容不同者保留各版並加 .p-頁名 作用域，清單見 docs/。
   ============================================================ */

:root { --green: #344A25; --green-dark: #263618; --cream: #F0E9E1; --light: #F7F5ED; --sage: #C8CEBC; --teal: #2BAFA3; --white: #FFFFFF; --text-dark: #231815; --text-body: #555; --text-light: #999; --accent-green: #22AC38; --sage-green: #7FA59B; --accent: #D4922A; --accent-light: #E8A94E; --font-heading: 'Noto Serif TC', serif; --font-body: 'Noto Sans TC', sans-serif; --navbar-height: 75px; --border-light: #e8e4dd; --primary: #344A25; --primary-dark: #263618; --primary-light: #4A6B35; --secondary: #6B8E5A; --dark: #2C3E2D; --dark-overlay: rgba(44, 62, 45, 0.85); --bg-cream: #F7F5ED; --bg-warm: #EDE8DF; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text-body); background: var(--bg-cream); overflow-x: hidden; line-height: 1.7; }
.navbar-main { min-height: var(--navbar-height); background: rgba(44, 62, 45, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); transition: background 0.3s; }
.navbar-main.scrolled { background: rgba(44, 62, 45, 0.96); }
.navbar-main > .container-xl { max-width: none; padding-left: 12%; }
.navbar-main .navbar-brand { display: flex; align-items: center; gap: 12px; color: var(--white); padding: 0; }
.navbar-main .nav-logo-icon { width: 44px; height: 44px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.navbar-main .nav-logo-img { height: 44px; width: auto; object-fit: contain; }
.navbar-main .nav-logo-text { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; letter-spacing: 2px; }
.navbar-main .navbar-nav .nav-link { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; font-weight: 400; padding: 0.5rem 1rem; position: relative; transition: color 0.25s; }
.navbar-main .navbar-nav .nav-link:hover { color: var(--accent-light); }
.navbar-main .navbar-nav .nav-link.active { color: var(--accent-light); }
.navbar-main .navbar-nav .nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--accent); transition: all 0.3s; transform: translateX(-50%); }
.navbar-main .navbar-nav .nav-link:hover::after { width: 60%; }
.navbar-main .navbar-nav .nav-link.active::after { width: 60%; }
.navbar-main .navbar-toggler { color: var(--white); border: none; padding: 0.25rem 0.5rem; }
.navbar-main .navbar-toggler:focus { box-shadow: none; }
.site-header { position: relative; z-index: 100; margin-bottom: -40px; }
.header-logo { position: absolute; top: 0; left: 2.5%; z-index: 10; width: 28%; height: 75%; max-width: 420px; }
.site-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px; background: linear-gradient(to bottom, rgba(58, 77, 47, 0.6), transparent); pointer-events: none; z-index: 1; }
.header-banner { width: 100%; display: block; }
.header-nav { position: absolute; bottom: 8px; left: 4.5%; z-index: 10; }
.header-nav .nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.header-nav .nav-list a { color: rgba(255,255,255,0.9); text-decoration: none; font-size: 1rem; padding: 0.4rem 0.65rem; display: block; transition: color 0.2s; white-space: nowrap; letter-spacing: 1px; }
.header-nav .nav-list a:hover { color: #fff; }
.header-nav .nav-list a.active { color: #fff; }
.header-nav .nav-list > li { position: relative; }
.header-nav .has-dropdown > a::after { content: ''; display: inline-block; width: 0; height: 0; margin-left: 4px; vertical-align: middle; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid rgba(255,255,255,0.6); }
.header-nav .dropdown-menu { display: none !important; position: absolute; top: 100%; left: 0; background: rgba(44, 62, 45, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 8px; padding: 6px 0; margin-top: 4px; min-width: 160px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); list-style: none; z-index: 9999; }
.header-nav .has-dropdown:hover > .dropdown-menu { display: block !important; }
.header-nav .dropdown-menu::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.header-nav .dropdown-menu li { position: static; }
.header-nav .dropdown-menu a { padding: 8px 20px !important; font-size: 0.88rem !important; letter-spacing: 0.5px !important; color: rgba(255,255,255,0.8) !important; border-bottom: 1px solid rgba(255,255,255,0.06); }
.header-nav .dropdown-menu li:last-child a { border-bottom: none; }
.header-nav .dropdown-menu a:hover { color: #fff !important; background: rgba(255,255,255,0.1); }
.navbar-toggler { display: none; border: none; color: var(--white); background: none; padding: 0.25rem 0.5rem; position: absolute; right: 1rem; top: 1rem; z-index: 10; }
.section-sub { font-size: 0.7rem; letter-spacing: 3px; color: var(--accent-green); text-transform: uppercase; }
.section-title { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 900; color: var(--text-dark); letter-spacing: 4px; }
.btn-teal { display: inline-block; padding: 7px 20px; background: var(--teal); color: var(--white); border: none; border-radius: 20px; text-decoration: none; font-size: 0.78rem; font-weight: 500; letter-spacing: 1.5px; transition: opacity 0.2s; }
.btn-teal:hover { opacity: 0.85; color: var(--white); }
.section { padding: 80px 0; }
.section-header-left { margin-bottom: 3rem; }
.section-header-left .section-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); font-size: 1.5rem; margin-bottom: 1rem; }
.section-header-left h2 { font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
.section-header-left p { font-size: 1rem; color: var(--text-light); max-width: 600px; }
.cta-banner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); text-align: center; padding: 80px 1.5rem; }
.cta-banner h2 { font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; }
.cta-banner p { font-size: 1.05rem; opacity: 0.8; margin-bottom: 2rem; }
.btn-primary-custom { display: inline-flex; align-items: center; gap: 8px; padding: 16px 40px; background: var(--accent); color: var(--white); border: none; border-radius: 50px; font-size: 1.05rem; font-weight: 500; cursor: pointer; text-decoration: none; transition: all 0.3s; box-shadow: 0 4px 20px rgba(212,146,42,0.3); }
.btn-primary-custom:hover { background: var(--accent-light); color: var(--white); transform: translateY(-2px); }
.map-viewer { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,0.92); display: none; touch-action: none; }
.map-viewer.open { display: block; }
.map-viewer-stage { position: absolute; inset: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: grab; }
.map-viewer-stage.grabbing { cursor: grabbing; }
.map-viewer-stage img { max-width: 100%; max-height: 100%; transform-origin: center center; transition: transform 0.18s ease-out; will-change: transform; user-select: none; -webkit-user-drag: none; }
.map-viewer-stage.dragging img { transition: none; }
.map-viewer-bar { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.map-viewer-title { color: var(--white); font-family: var(--font-heading); font-weight: 700; font-size: 1rem; padding: 7px 16px; border-radius: 50px; background: rgba(0,0,0,0.55); }
.map-viewer-tools { display: flex; align-items: center; gap: 8px; }
.map-viewer-btn { width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,0.92); color: var(--text-dark); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; }
.map-viewer-btn:hover { background: var(--white); }
.map-viewer-btn:disabled { opacity: 0.4; cursor: default; }
.map-viewer-level { min-width: 62px; text-align: center; color: var(--white); font-size: 0.9rem; font-variant-numeric: tabular-nums; padding: 7px 10px; border-radius: 50px; background: rgba(0,0,0,0.55); }
.map-viewer-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: rgba(255,255,255,0.9); font-size: 0.82rem; padding: 7px 18px; border-radius: 50px; background: rgba(0,0,0,0.55); text-align: center; pointer-events: none; white-space: nowrap; }
.page-header { background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%); color: var(--white); text-align: center; padding: 60px 0; position: relative; overflow: hidden; z-index: 1; }
.page-header-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-header::before { content: ''; position: absolute; inset: 0; background: rgba(44, 62, 45, 0.55); z-index: 1; }
.page-header > .container { position: relative; z-index: 2; }
.breadcrumb-nav { display: flex; justify-content: center; gap: 8px; margin-bottom: 1.5rem; font-size: 0.85rem; }
.breadcrumb-nav a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--teal); }
.breadcrumb-nav span { color: rgba(255,255,255,0.4); }
.breadcrumb-nav .current { color: rgba(255,255,255,0.9); }
.page-header h1 { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; margin-bottom: 1rem; }
.page-header p { font-size: 1.1rem; opacity: 0.7; max-width: 550px; margin: 0 auto; }
.sub-nav { position: sticky; top: 0; background: var(--white); z-index: 90; border-bottom: 1px solid var(--border-light); box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.sub-nav-inner { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 12px 0; }
.sub-link { display: inline-block; padding: 7px 18px; color: var(--text-body); text-decoration: none; font-size: 0.85rem; font-weight: 500; border-radius: 30px; border: 1.5px solid var(--border-light); background: transparent; transition: all 0.25s; white-space: nowrap; }
.sub-link:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.sub-link.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
/* 手機版：快速連結排成一行、左右滑動（2026-09-30）。原本會換行成兩三排，
   sticky 在畫面頂端時擋掉四分之一的版面；公益贊助的連結改成每個項目一顆之後更明顯 */
@media (max-width: 767.98px) {
  .sub-nav-inner { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 10px 0; }
  .sub-nav-inner::-webkit-scrollbar { display: none; }
}
.footer { background: var(--green); color: var(--white); padding: 45px 0 0; }
.footer-brand-content { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 1rem; }
.footer-logo { height: 85px; width: auto; flex-shrink: 0; }
.footer-brand-text { text-align: left; }
.footer-brand-text h3 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--white); margin: 0 0 0.5rem 0; letter-spacing: 2px; }
.footer-brand-text p { font-size: 0.85rem; line-height: 1.8; color: var(--white); margin: 0; }
/* 標語中的 X 是連接符不是字：縮一級並前後留白，避免和「生態保育」連成一個詞 */
.x-sep { font-size: 0.78em; margin: 0 0.35em; opacity: 0.85; }

/* LINE 加入好友：桌機掃 QR、手機按按鈕。配色沿用網站的墨綠與米白，
   不套 LINE 官方素材的螢光綠，也不引用 LINE CDN 上的按鈕圖 */
.line-card { display: flex; gap: 1.25rem; align-items: center; margin-top: 1.5rem; padding: 1.25rem; background: var(--white); border: 1px solid var(--border-light); border-radius: 14px; }
.line-qr { width: 120px; height: 120px; flex-shrink: 0; border-radius: 8px; }
.line-card-body h5 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin: 0 0 0.35rem 0; }
.line-card-body p { font-size: 0.88rem; color: var(--text-body); line-height: 1.7; margin: 0 0 0.75rem 0; }
.line-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.15rem; background: var(--primary); color: var(--white); font-size: 0.92rem; font-weight: 500; border-radius: 999px; text-decoration: none; transition: background 0.25s; }
.line-btn:hover { background: var(--primary-light); color: var(--white); }
.line-btn .material-symbols-outlined { font-size: 1.1rem; }
.line-id { display: inline-block; margin-left: 0.6rem; font-size: 0.85rem; color: var(--text-light); letter-spacing: 0.5px; }
@media (max-width: 575px) {
    .line-card { flex-direction: column; text-align: center; }
    .line-id { display: block; margin: 0.5rem 0 0 0; }
}
.footer-social { display: flex; justify-content: flex-start; gap: 16px; margin-top: 1.2rem; }
.footer-social a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: var(--white); text-decoration: none; transition: opacity 0.2s; }
.footer-social a img { width: 32px; height: 32px; object-fit: contain; }
.footer-social a:hover { opacity: 0.7; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; letter-spacing: 1px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a { color: var(--white); text-decoration: none; font-size: 0.82rem; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 0.7; }
.footer-contact dd { color: var(--white); font-size: 0.82rem; margin-bottom: 0.6rem; margin-left: 0; display: flex; align-items: center; gap: 6px; }
.footer-contact dd svg { flex-shrink: 0; width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 2rem; padding: 1rem 0; text-align: center; font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
.footer-bottom a:hover { opacity: 0.7; text-decoration: underline; }

/* ===== 各頁樣式（原本寫在各頁 <style>，加 :where(.p-頁名) 作用域，
        specificity 為 0 所以不影響原本的層疊）===== */

/* --- index --- */
body:where(.p-index) { --navbar-height: 0px; }

/* --- demo-book --- */
body:where(.p-bookdetail) { --primary: #3A7D44; --primary-dark: #2C5F33; --accent: #D4922A; --dark: #2C3E2D; --bg-cream: #F7F4EF; --text-dark: #2D2D2D; --text-body: #4A4A4A; --text-light: #7A7A7A; --border-light: #D6CEBC; --white: #FFFFFF; }

/* --- index --- */
body:where(.p-index) { background: var(--light); padding-top: 0; }

/* --- demo-book --- */
body:where(.p-bookdetail) { font-family: 'Noto Sans TC', sans-serif; background: var(--bg-cream); color: var(--text-body); }

/* --- shop --- */
:where(.p-shop) .page-header { background: linear-gradient(135deg, var(--dark) 0%, #3d2a10 60%, #8B6914 100%); }

/* --- spotdetail --- */
:where(.p-spotdetail) .page-header { padding: 45px 0 35px; }

/* --- story --- */
:where(.p-story) .page-header { background: linear-gradient(135deg, var(--dark) 0%, #1a3a1f 60%, var(--primary-dark) 100%); }

/* --- shop --- */
:where(.p-shop) .page-header::before { background: radial-gradient(circle at 70% 60%, rgba(212,146,42,0.2) 0%, transparent 50%); }

/* --- story --- */
:where(.p-story) .page-header::before { background: radial-gradient(circle at 30% 60%, rgba(212,146,42,0.15) 0%, transparent 50%); }

/* --- spotdetail --- */
:where(.p-spotdetail) .breadcrumb-nav { justify-content: flex-start; }

/* --- demo-book --- */

/* --- storydetail --- */
:where(.p-storydetail) .page-header h1 { max-width: 700px; margin-left: auto; margin-right: auto; }
/* 相關附件（2026-11）：後台有上傳才輸出 */
:where(.p-storydetail) .article-files { margin-top: 2.5rem; padding: 1.5rem; background: var(--bg-cream); border: 1px solid var(--border-light); border-radius: 14px; }
:where(.p-storydetail) .article-files-title { display: flex; align-items: center; gap: 6px; margin: 0 0 1rem; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text-dark); }
:where(.p-storydetail) .article-files-title .material-symbols-outlined { font-size: 1.25rem; color: var(--primary); }
:where(.p-storydetail) .article-files-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
:where(.p-storydetail) .article-file { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 1rem; background: var(--white); border: 1px solid var(--border-light); border-radius: 10px; color: var(--text-dark); text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
:where(.p-storydetail) .article-file:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(52,74,37,0.10); color: var(--text-dark); }
:where(.p-storydetail) .article-file:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
:where(.p-storydetail) .article-file-type { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px; color: var(--white); }
:where(.p-storydetail) .article-file-type.is-pdf { background: #B42318; }
:where(.p-storydetail) .article-file-type.is-doc { background: #1F5FAD; }
:where(.p-storydetail) .article-file-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
:where(.p-storydetail) .article-file-name { font-size: 0.95rem; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
:where(.p-storydetail) .article-file-size { font-size: 0.8rem; color: var(--text-body); }
:where(.p-storydetail) .article-file-action { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 50px; background: var(--primary); color: var(--white); font-size: 0.85rem; font-weight: 500; }
:where(.p-storydetail) .article-file:hover .article-file-action { background: var(--primary-dark); }
:where(.p-storydetail) .article-file-action .material-symbols-outlined { font-size: 1.1rem; }
@media (max-width: 575.98px) {
    :where(.p-storydetail) .article-files { padding: 1.1rem; }
    :where(.p-storydetail) .article-file { padding: 0.75rem; gap: 0.75rem; }
    :where(.p-storydetail) .article-file-action { padding: 8px; }
    :where(.p-storydetail) .article-file-action-text { display: none; }
}

/* --- demo-book --- */

/* --- shop --- */
:where(.p-shop) .page-header p { font-size: 1.1rem; opacity: 0.7; max-width: 500px; margin: 0 auto; }

/* --- about --- */
:where(.p-about) .sub-nav { top: 0; }

/* --- index --- */
:where(.p-index) .hero { width: 100%; line-height: 0; }
:where(.p-index) .hero .carousel-item img { width: 100%; height: auto; display: block; }
/* Banner：YouTube／純文字／副文案／點擊連結（2026-10-05 補上後台已有、前台漏做的三個欄位）。
   影片框比例由首頁的 script 依第一張圖設定 --hero-ratio，沒有圖時用 1920×800 */
:where(.p-index) .hero .carousel-item { position: relative; }
:where(.p-index) .hero .hero-video,
:where(.p-index) .hero .hero-textonly { position: relative; width: 100%; aspect-ratio: var(--hero-ratio, 2.4); overflow: hidden; container-type: size; background: var(--primary-dark, #1f3d27); }
:where(.p-index) .hero .hero-textonly { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
:where(.p-index) .hero .hero-video iframe { position: absolute; top: 50%; left: 50%; width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); transform: translate(-50%, -50%); border: 0; pointer-events: none; }
:where(.p-index) .hero .hero-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(2.5rem, 8vw, 6rem) clamp(1.2rem, 6vw, 5rem) clamp(2.6rem, 5vw, 3.6rem); background: linear-gradient(transparent, rgba(0,0,0,0.6)); color: var(--white, #fff); line-height: 1.5; pointer-events: none; }
:where(.p-index) .hero .hero-caption h2 { font-family: var(--font-heading); font-size: clamp(1.3rem, 3.4vw, 2.6rem); font-weight: 700; margin: 0 0 0.3rem; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
:where(.p-index) .hero .hero-caption p { font-size: clamp(0.9rem, 1.6vw, 1.15rem); margin: 0; opacity: 0.92; max-width: 46em; text-shadow: 0 1px 6px rgba(0,0,0,0.35); }
:where(.p-index) .hero .hero-link { position: absolute; inset: 0; z-index: 1; }
:where(.p-index) .activities-section { background: var(--white); padding: 55px 0 50px; position: relative; overflow: hidden; }
:where(.p-index) .activities-section .section-header { text-align: center; margin-bottom: 2.5rem; }
:where(.p-index) .act-decor-owl { position: absolute; top: 20px; right: 10%; width: 65px; opacity: 0.3; }
:where(.p-index) .act-decor-glow { position: absolute; top: 8px; right: 4%; width: 50px; opacity: 0.5; }
:where(.p-index) .activity-card { text-align: center; }

/* --- activitydetail --- */
:where(.p-activitydetail) .activity-card { border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--border-light); transition: all 0.35s; text-decoration: none; color: inherit; display: block; height: 100%; }

/* --- index --- */
:where(.p-index) .activity-card .photo { border-radius: 12px; overflow: hidden; position: relative; }
:where(.p-index) .activity-card .photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 0.4s; }
:where(.p-index) .activity-card:hover .photo img { transform: scale(1.04); }
:where(.p-index) .activity-card .card-desc { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0, 0, 0, 0.55); padding: 0.5rem 0.8rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.9); margin: 0; }
:where(.p-index) .activity-card .label { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--text-dark); letter-spacing: 1px; display: inline-flex; align-items: center; gap: 5px; margin-top: 0.8rem; }
:where(.p-index) .activity-card .label img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
:where(.p-index) .news-section { background: var(--light); padding: 55px 0 50px; position: relative; overflow: hidden; }
:where(.p-index) .news-section .section-header { text-align: center; margin-bottom: 2.5rem; }
:where(.p-index) .news-decor { position: absolute; top: 10px; left: 2%; width: 80px; opacity: 0.12; pointer-events: none; }
:where(.p-index) .news-main-photo { border-radius: 14px; overflow: hidden; height: 100%; }
:where(.p-index) .news-main-photo img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 350px; }
:where(.p-index) .news-card { display: flex; gap: 1rem; padding: 1rem 1.2rem; background: var(--white); border-radius: 12px; border: 1px solid var(--border-light); transition: box-shadow 0.25s; }
:where(.p-index) .news-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
:where(.p-index) .news-card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
:where(.p-index) .news-card-date { font-size: 0.72rem; color: var(--sage-green); margin-bottom: 0.2rem; font-weight: 500; }
:where(.p-index) .news-card-title { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: var(--sage-green); margin-bottom: 0.3rem; line-height: 1.4; }
:where(.p-index) .news-card-desc { font-size: 0.78rem; color: var(--text-dark); line-height: 1.5; margin-bottom: 0.4rem; }
:where(.p-index) .news-card-link { font-size: 0.75rem; color: var(--sage-green); text-decoration: none; font-weight: 500; align-self: flex-end; display: inline-flex; align-items: center; gap: 4px; }
:where(.p-index) .news-card-link:hover { text-decoration: underline; }
:where(.p-index) .news-card-thumb { width: 120px; border-radius: 10px 0 0 10px; overflow: hidden; flex-shrink: 0; order: -1; margin: -1rem 0 -1rem -1.2rem; }
:where(.p-index) .news-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
:where(.p-index) .products-section { background: var(--cream); padding: 55px 0 50px; }
:where(.p-index) .products-text { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; height: 100%; padding: 0 1.5rem; }
:where(.p-index) .products-text .section-sub { margin-bottom: 0.3rem; }
:where(.p-index) .products-text .section-title { font-size: 2.2rem; color: var(--text-dark); margin-bottom: 0.4rem; }
:where(.p-index) .products-text .subtitle { font-size: 0.9rem; color: #595757; margin-bottom: 1.5rem; }
:where(.p-index) .products-grid { background: var(--teal); border-radius: 16px; padding: 10px; max-width: 70%; margin-left: 12.5%; }
:where(.p-index) .products-grid .photo { border-radius: 8px; overflow: hidden; }
:where(.p-index) .products-grid .photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 0.4s; }
:where(.p-index) .products-grid .photo:hover img { transform: scale(1.04); }

/* --- about-master, about-org, about-service --- */
:where(.p-about-master, .p-about-org, .p-about-service) .breadcrumb-bar { background: var(--white); border-bottom: 1px solid var(--border-light); padding: 0.8rem 0; font-size: 0.85rem; }
:where(.p-about-master, .p-about-org, .p-about-service) .breadcrumb-bar a { color: var(--text-light); text-decoration: none; }
:where(.p-about-master, .p-about-org, .p-about-service) .breadcrumb-bar a:hover { color: var(--primary); }
:where(.p-about-master, .p-about-org, .p-about-service) .breadcrumb-bar .sep { color: var(--border-light); margin: 0 0.5rem; }
:where(.p-about-master, .p-about-org, .p-about-service) .breadcrumb-bar .current { color: var(--text-dark); font-weight: 500; }

/* --- about-master --- */
:where(.p-about-master) .master-profile { background: var(--white); }
:where(.p-about-master) .profile-header { text-align: center; padding: 3rem 0 2rem; }
:where(.p-about-master) .profile-avatar { width: 160px; height: 160px; border-radius: 50%; margin: 0 auto 1.5rem; overflow: hidden; background: linear-gradient(135deg, var(--bg-warm), var(--border-light)); display: flex; align-items: center; justify-content: center; border: 4px solid var(--bg-cream); box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
:where(.p-about-master) .profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
:where(.p-about-master) .profile-avatar .material-symbols-outlined { font-size: 4rem; color: var(--text-light); opacity: 0.3; }
:where(.p-about-master) .profile-header h1 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.3rem; }
:where(.p-about-master) .profile-header .profile-title-sub { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1rem; }
:where(.p-about-master) .profile-header .profile-role { display: inline-block; padding: 6px 20px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); border-radius: 30px; font-size: 0.88rem; font-weight: 500; }
:where(.p-about-master) .profile-skills { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.2rem; }
:where(.p-about-master) .profile-skills span { display: inline-block; padding: 5px 16px; background: var(--bg-cream); border-radius: 20px; font-size: 0.85rem; color: var(--text-body); border: 1px solid var(--border-light); }
:where(.p-about-master) .profile-bio { max-width: 720px; margin: 0 auto; padding: 2rem 0 3rem; }
:where(.p-about-master) .profile-bio h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary); }
:where(.p-about-master) .profile-bio p { font-size: 1rem; color: var(--text-body); line-height: 2; margin-bottom: 1rem; }
:where(.p-about-master) .other-masters { background: var(--bg-cream); }
:where(.p-about-master) .other-masters-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
:where(.p-about-master) .other-master-card { text-align: center; padding: 1.5rem 0.8rem; background: var(--white); border-radius: 14px; border: 1px solid var(--border-light); text-decoration: none; color: inherit; transition: all 0.3s; }
:where(.p-about-master) .other-master-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); color: inherit; }
:where(.p-about-master) .other-master-card.current { border-color: var(--primary); background: rgba(58,125,68,0.04); }
:where(.p-about-master) .other-master-avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 0.6rem; overflow: hidden; background: linear-gradient(135deg, var(--bg-warm), var(--border-light)); display: flex; align-items: center; justify-content: center; }
:where(.p-about-master) .other-master-avatar img { width: 100%; height: 100%; object-fit: cover; }
:where(.p-about-master) .other-master-avatar .material-symbols-outlined { font-size: 1.8rem; color: var(--text-light); opacity: 0.4; }
:where(.p-about-master) .other-master-card h4 { font-size: 0.88rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.1rem; }
:where(.p-about-master) .other-master-card .other-role { font-size: 0.75rem; color: var(--text-light); }

/* --- about-org --- */
:where(.p-about-org) .org-detail { background: var(--white); }
:where(.p-about-org) .org-hero-img { border-radius: 16px; overflow: hidden; height: 360px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; }
:where(.p-about-org) .org-hero-img img { width: 100%; height: 100%; object-fit: cover; }
:where(.p-about-org) .org-hero-img .material-symbols-outlined { font-size: 4rem; color: rgba(255,255,255,0.2); }
:where(.p-about-org) .org-detail-body h2 { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1rem; }
:where(.p-about-org) .org-detail-body p { font-size: 1rem; color: var(--text-body); line-height: 2; margin-bottom: 1rem; }
/* 內文照片（後台編輯器插入）：不超過內文寬度，避免撐破版面、手機出現左右捲動（2026-09-30） */
:where(.p-about-org) .org-detail-body img, :where(.p-about-service) .service-detail-body img { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: 0.5rem 0 1.2rem; }
:where(.p-about-org) .org-info-list { list-style: none; padding: 0; margin: 2rem 0 0; }
:where(.p-about-org) .org-info-item { display: flex; gap: 0.8rem; padding: 0.8rem 0; border-bottom: 1px solid var(--border-light); }
:where(.p-about-org) .org-info-item:last-child { border-bottom: none; }
:where(.p-about-org) .org-info-item .material-symbols-outlined { font-size: 1.2rem; color: var(--primary); margin-top: 2px; }
:where(.p-about-org) .org-info-item span { font-size: 0.92rem; color: var(--text-body); }
:where(.p-about-org) .org-sidebar { position: sticky; top: 2rem; }
:where(.p-about-org) .org-sidebar h4 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.8rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary); }
:where(.p-about-org) .org-sidebar-list { list-style: none; padding: 0; margin: 0; }
:where(.p-about-org) .org-sidebar-list li { margin-bottom: 0.3rem; }
:where(.p-about-org) .org-sidebar-list a { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border-radius: 10px; color: var(--text-body); text-decoration: none; font-size: 0.9rem; transition: all 0.2s; }
:where(.p-about-org) .org-sidebar-list a:hover { background: var(--bg-cream); color: var(--primary); }
:where(.p-about-org) .org-sidebar-list a.active { background: var(--primary); color: var(--white); }
:where(.p-about-org) .org-sidebar-list .material-symbols-outlined { font-size: 1.1rem; }
:where(.p-about-org) .org-gallery { margin-top: 2.5rem; }
:where(.p-about-org) .org-gallery h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1rem; }

/* --- about-org, about-service --- */
:where(.p-about-org, .p-about-service) .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
:where(.p-about-org, .p-about-service) .gallery-item { border-radius: 12px; overflow: hidden; height: 160px; background: var(--bg-cream); display: flex; align-items: center; justify-content: center; }
:where(.p-about-org, .p-about-service) .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
:where(.p-about-org, .p-about-service) .gallery-item .material-symbols-outlined { font-size: 2rem; color: var(--text-light); opacity: 0.3; }

/* --- about-org, about-service, about, activity, activitydetail, donate, explore, spotdetail, story --- */

/* --- productdetail --- */

/* --- about-org, about-service, about, activity, activitydetail, donate, explore, productdetail, spotdetail, story --- */

/* --- about-service --- */
:where(.p-about-service) .service-detail { background: var(--white); }
:where(.p-about-service) .service-sidebar { position: sticky; top: 2rem; }
:where(.p-about-service) .service-sidebar h4 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.8rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary); }
:where(.p-about-service) .service-sidebar-list { list-style: none; padding: 0; margin: 0; }
:where(.p-about-service) .service-sidebar-list li { margin-bottom: 0.3rem; }
:where(.p-about-service) .service-sidebar-list a { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border-radius: 10px; color: var(--text-body); text-decoration: none; font-size: 0.9rem; transition: all 0.2s; }
:where(.p-about-service) .service-sidebar-list a:hover { background: var(--bg-cream); color: var(--primary); }
:where(.p-about-service) .service-sidebar-list a.active { background: var(--primary); color: var(--white); }
:where(.p-about-service) .service-sidebar-list .material-symbols-outlined { font-size: 1.1rem; }
:where(.p-about-service) .service-hero-img { border-radius: 16px; overflow: hidden; height: 320px; background: linear-gradient(135deg, #E85D3A, #C14A2A); display: flex; align-items: center; justify-content: center; }
:where(.p-about-service) .service-hero-img img { width: 100%; height: 100%; object-fit: cover; }
:where(.p-about-service) .service-hero-img .material-symbols-outlined { font-size: 4rem; color: rgba(255,255,255,0.2); }
:where(.p-about-service) .service-detail-body { padding-top: 2rem; }
:where(.p-about-service) .service-detail-body h2 { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1rem; }
:where(.p-about-service) .service-detail-body p { font-size: 1rem; color: var(--text-body); line-height: 2; margin-bottom: 1rem; }
:where(.p-about-service) .service-features { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border-light); }
:where(.p-about-service) .service-features h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1.2rem; }
:where(.p-about-service) .feature-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border-light); }
:where(.p-about-service) .feature-item:last-child { border-bottom: none; }
:where(.p-about-service) .feature-item .material-symbols-outlined { font-size: 1.4rem; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
:where(.p-about-service) .feature-item h5 { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.2rem; }
:where(.p-about-service) .feature-item p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; margin: 0; }
:where(.p-about-service) .service-gallery { margin-top: 2.5rem; }
:where(.p-about-service) .service-gallery h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1rem; }

/* --- about, partner --- */
:where(.p-about, .p-partner) .intro-section { background: var(--white); }

/* --- about --- */
:where(.p-about) .intro-text h3 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1rem; }
:where(.p-about) .intro-text p { font-size: 1rem; color: var(--text-body); line-height: 2; margin-bottom: 1rem; }

/* --- partner --- */
:where(.p-partner) .intro-text p { font-size: 1.05rem; color: var(--text-body); line-height: 2; }

/* --- about --- */
:where(.p-about) .intro-map { border-radius: 16px; overflow: hidden; border: 1px solid var(--border-light); height: 100%; min-height: 320px; }
:where(.p-about) .intro-map img { width: 100%; height: 100%; object-fit: cover; display: block; }
:where(.p-about) .intro-map-link { display: block; position: relative; width: 100%; height: 100%; min-height: 320px; background: var(--bg-cream); }
:where(.p-about) .intro-map-link img { width: 100%; height: 100%; object-fit: contain; display: block; }
:where(.p-about) .intro-map-zoom { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 50px; background: rgba(255,255,255,0.94); color: var(--primary); font-size: 0.8rem; font-weight: 500; box-shadow: 0 2px 10px rgba(0,0,0,0.15); transition: all 0.25s; pointer-events: none; }
:where(.p-about) .intro-map-link:hover .intro-map-zoom { background: var(--primary); color: var(--white); }
:where(.p-about) .intro-map-zoom .material-symbols-outlined { font-size: 1rem; }
:where(.p-about) .org-section { background: var(--bg-cream); }
:where(.p-about) .org-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--white); border: 1px solid var(--border-light); transition: all 0.35s; cursor: pointer; height: 100%; text-decoration: none; color: inherit; }
:where(.p-about) .org-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(58,125,68,0.1); border-color: var(--primary-light); color: inherit; }
:where(.p-about) .org-card-img { height: 180px; overflow: hidden; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
:where(.p-about) .org-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
:where(.p-about) .org-card:hover .org-card-img img { transform: scale(1.05); }
:where(.p-about) .org-card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
:where(.p-about) .org-card-img-placeholder .material-symbols-outlined { font-size: 2.5rem; color: rgba(255,255,255,0.3); }
:where(.p-about) .org-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
:where(.p-about) .org-card-body h4 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
:where(.p-about) .org-card-body p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; flex: 1; }
:where(.p-about) .org-card-link { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; color: var(--primary); font-weight: 500; margin-top: 0.8rem; }
:where(.p-about) .org-card-link .material-symbols-outlined { font-size: 1rem; transition: transform 0.2s; }
:where(.p-about) .org-card:hover .org-card-link .material-symbols-outlined { transform: translateX(4px); }
:where(.p-about) .service-section { background: var(--white); }
:where(.p-about) .service-card { display: flex; gap: 1.2rem; padding: 1.8rem; background: var(--bg-cream); border-radius: 16px; border: 1px solid var(--border-light); transition: all 0.3s; height: 100%; text-decoration: none; color: inherit; cursor: pointer; }
:where(.p-about) .service-card:hover { color: inherit; }
:where(.p-about) .service-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.05); transform: translateY(-3px); }
:where(.p-about) .service-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0; font-size: 1.3rem; }
:where(.p-about) .service-body h4 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.4rem; }
:where(.p-about) .service-body p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; margin: 0; }
:where(.p-about) .masters-section { background: var(--bg-cream); }
:where(.p-about) .masters-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
:where(.p-about) .master-card { text-align: center; padding: 1.8rem 1rem; background: var(--white); border-radius: 16px; border: 1px solid var(--border-light); transition: all 0.35s; cursor: pointer; text-decoration: none; color: inherit; display: block; }
:where(.p-about) .master-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(58,125,68,0.1); border-color: var(--primary-light); color: inherit; }
:where(.p-about) .master-avatar { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 0.8rem; overflow: hidden; background: linear-gradient(135deg, var(--bg-warm), var(--border-light)); display: flex; align-items: center; justify-content: center; border: 3px solid var(--bg-cream); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
:where(.p-about) .master-avatar img { width: 100%; height: 100%; object-fit: cover; }
:where(.p-about) .master-avatar .material-symbols-outlined { font-size: 2.2rem; color: var(--text-light); opacity: 0.4; }
:where(.p-about) .master-card h4 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.2rem; }
:where(.p-about) .master-card .master-title { font-size: 0.8rem; color: var(--primary); font-weight: 500; margin-bottom: 0.5rem; }
:where(.p-about) .master-card .master-skills { font-size: 0.75rem; color: var(--text-light); }
:where(.p-about) .master-card .master-skills span { display: inline-block; padding: 2px 8px; background: var(--bg-cream); border-radius: 20px; margin: 2px; }
:where(.p-about) .vision-section { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: var(--white); position: relative; overflow: hidden; }
:where(.p-about) .vision-section::before { content: ''; position: absolute; inset: 0; background: url('../images/1-3.png') no-repeat right bottom; background-size: 300px; opacity: 0.1; }
:where(.p-about) .vision-section .container { position: relative; z-index: 1; }
:where(.p-about) .vision-section h2 { font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 1.5rem; }
:where(.p-about) .vision-section p { font-size: 1.05rem; line-height: 2.2; opacity: 0.9; max-width: 800px; }
:where(.p-about) .awards-section { background: var(--white); }
:where(.p-about) .award-item { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border-light); transition: background 0.2s; }
:where(.p-about) .award-item:last-child { border-bottom: none; }
:where(.p-about) .award-item:hover { background: var(--bg-cream); }
:where(.p-about) .award-year { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--primary); min-width: 80px; flex-shrink: 0; }
:where(.p-about) .award-icon { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-light)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
:where(.p-about) .award-icon .material-symbols-outlined { font-size: 1.1rem; color: var(--white); }
:where(.p-about) .award-name { font-size: 0.95rem; color: var(--text-dark); font-weight: 500; }
:where(.p-about) .transport-section { background: var(--bg-cream); }
:where(.p-about) .transport-card { padding: 2rem; background: var(--white); border-radius: 16px; border: 1px solid var(--border-light); height: 100%; }
:where(.p-about) .transport-card-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
:where(.p-about) .transport-card-header .material-symbols-outlined { font-size: 1.8rem; color: var(--primary); }
:where(.p-about) .transport-card-header h4 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin: 0; }
:where(.p-about) .transport-card p { font-size: 0.92rem; color: var(--text-body); line-height: 1.9; }
:where(.p-about) .transport-card li { font-size: 0.92rem; color: var(--text-body); line-height: 1.9; }
:where(.p-about) .transport-card li { margin-bottom: 0.3rem; }
:where(.p-about) .transport-card ul { padding-left: 1.2rem; margin: 0; }
:where(.p-about) .contact-section { background: var(--white); }
:where(.p-about) .contact-list { list-style: none; padding: 0; margin: 0; }
:where(.p-about) .contact-item { display: flex; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--border-light); }
:where(.p-about) .contact-item:last-child { border-bottom: none; }
:where(.p-about) .contact-item .material-symbols-outlined { font-size: 1.3rem; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
:where(.p-about) .contact-item h5 { font-size: 0.88rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.15rem; }
:where(.p-about) .contact-item p { font-size: 0.88rem; color: var(--text-light); margin: 0; }
:where(.p-about) .contact-item a { color: var(--primary); text-decoration: none; }
:where(.p-about) .contact-item a:hover { text-decoration: underline; }
:where(.p-about) .contact-map { border-radius: 16px; overflow: hidden; border: 1px solid var(--border-light); height: 100%; min-height: 300px; }
:where(.p-about) .contact-map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; }

/* --- activity --- */
:where(.p-activity) .category-nav { position: sticky; top: 0; background: var(--white); z-index: 90; border-bottom: 1px solid var(--border-light); box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
:where(.p-activity) .category-nav .container { display: flex; justify-content: center; gap: 0; overflow-x: auto; }
:where(.p-activity) .cat-link { display: flex; align-items: center; gap: 8px; padding: 18px 28px; color: var(--text-body); text-decoration: none; font-size: 0.95rem; font-weight: 500; border-bottom: 3px solid transparent; transition: all 0.25s; white-space: nowrap; }
:where(.p-activity) .cat-link:hover { color: var(--primary); }
:where(.p-activity) .cat-link.active { color: var(--primary); border-bottom-color: var(--primary); }
:where(.p-activity) .cat-link .material-symbols-outlined { font-size: 1.2rem; }
:where(.p-activity) .eco-tours { background: var(--white); }
:where(.p-activity) .route-card { display: block; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-light); background: var(--bg-cream); transition: all 0.35s; cursor: pointer; height: 100%; text-decoration: none; color: inherit; }
:where(.p-activity) .route-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(58,125,68,0.12); }
:where(.p-activity) .route-card-visual { height: 200px; position: relative; overflow: hidden; }
:where(.p-activity) .route-card-bg { width: 100%; height: 100%; transition: transform 0.5s; }
:where(.p-activity) .route-card:hover .route-card-bg { transform: scale(1.05); }
:where(.p-activity) .route-badge { position: absolute; top: 1rem; left: 1rem; padding: 4px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; color: var(--white); }
:where(.p-activity) .route-difficulty { position: absolute; bottom: 1rem; right: 1rem; display: flex; gap: 3px; }
:where(.p-activity) .route-difficulty span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); }
:where(.p-activity) .route-difficulty span.filled { background: #FFD93D; }
:where(.p-activity) .route-card-body { padding: 1.5rem; }
:where(.p-activity) .route-card-body h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
:where(.p-activity) .route-card-body p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1rem; }
:where(.p-activity) .route-info { display: flex; gap: 1.5rem; flex-wrap: wrap; }
:where(.p-activity) .route-info-item { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-light); }
:where(.p-activity) .route-info-item .material-symbols-outlined { font-size: 1rem; color: var(--primary); }
:where(.p-activity) .route-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 1rem; padding: 8px 20px; background: var(--primary); color: var(--white); border-radius: 30px; font-size: 0.85rem; font-weight: 500; text-decoration: none; transition: all 0.25s; }
:where(.p-activity) .route-cta:hover { background: var(--primary-dark); color: var(--white); transform: translateX(4px); }
:where(.p-activity) .route-cta .material-symbols-outlined { font-size: 1rem; }
:where(.p-activity) .workshops { background: var(--bg-cream); }
:where(.p-activity) .workshop-item { text-align: center; padding: 2rem 1rem; background: var(--white); border-radius: 16px; border: 1px solid var(--border-light); transition: all 0.3s; cursor: pointer; height: 100%; }
:where(.p-activity) .workshop-item:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.06); border-color: var(--accent); }
:where(.p-activity) .workshop-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; transition: transform 0.3s; }
:where(.p-activity) .workshop-item:hover .workshop-icon { transform: scale(1.1) rotate(-8deg); }
:where(.p-activity) .workshop-item h4 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.4rem; }
:where(.p-activity) .workshop-item p { font-size: 0.8rem; color: var(--text-light); }
:where(.p-activity) .workshop-price { display: inline-block; margin-top: 0.8rem; padding: 3px 12px; background: rgba(212,146,42,0.1); color: var(--accent); border-radius: 20px; font-size: 0.8rem; font-weight: 500; }
:where(.p-activity) .food-section { background: var(--white); }
:where(.p-activity) .food-tab { padding: 8px 22px; border-radius: 30px; border: 1.5px solid var(--border-light); background: transparent; color: var(--text-body); font-size: 0.9rem; cursor: pointer; transition: all 0.25s; font-weight: 400; }
:where(.p-activity) .food-tab:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
:where(.p-activity) .food-tab.active { background: var(--accent); color: var(--white); border-color: var(--accent); }
:where(.p-activity) .food-category-label { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text-dark); padding-bottom: 0.5rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--accent); display: inline-block; }
/* 菜色卡不能點（燈箱 2026-08-10 已移除），2026-09-30 一併拿掉手指游標、hover 浮起與「放大」圖示 */
:where(.p-activity) .food-item { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; background: var(--bg-cream); border-radius: 14px; border: 1px solid transparent; height: 100%; position: relative; }
:where(.p-activity) .food-item-img { width: 72px; height: 72px; border-radius: 12px; flex-shrink: 0; }
:where(.p-activity) .food-item-body { flex: 1; min-width: 0; }
:where(.p-activity) .food-item-body h5 { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.2rem; }
:where(.p-activity) .food-item-body p { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.3rem; }
/* 菜色卡只剩菜名與價格，價格要看得見：改用金色、字級與菜名相當 */
:where(.p-activity) .food-item-body .food-price { font-size: 0.95rem; font-weight: 600; color: var(--accent); margin-bottom: 0; }
:where(.p-activity) .food-item-price { font-size: 0.9rem; font-weight: 700; color: var(--accent); }
:where(.p-activity) #foodModal .modal-content { border: none; border-radius: 18px; overflow: hidden; }
:where(.p-activity) #foodModal .modal-body { padding: 0; }
/* max-height 是後補的：aspect-ratio 4/3 在 modal-lg（寬 800px）就是 600px 高，
   內文整個被推到視窗外，要捲動才看得到 —— 但彈窗看起來不像還有內容，等於看不到。
   圖是 center/cover 的背景，限制高度只會裁切不會變形。 */
:where(.p-activity) #foodModal .fm-img { width: 100%; aspect-ratio: 4/3; max-height: 42vh; background: linear-gradient(135deg, #8B6914, #6B4E12); position: relative; }
:where(.p-activity) #foodModal .fm-close { position: absolute; top: 1rem; right: 1rem; z-index: 10; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
:where(.p-activity) #foodModal .fm-close:hover { background: #fff; }
:where(.p-activity) #foodModal .fm-category { position: absolute; top: 1rem; left: 1rem; padding: 6px 14px; background: rgba(44,62,45,0.85); color: #fff; font-size: 0.78rem; border-radius: 20px; letter-spacing: 1px; }
:where(.p-activity) #foodModal .fm-body { padding: 1.8rem 2rem 2rem; }
:where(.p-activity) #foodModal .fm-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
:where(.p-activity) #foodModal .fm-price { font-size: 1.2rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
:where(.p-activity) #foodModal .fm-intro { font-size: 0.95rem; color: var(--text-body); line-height: 1.8; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--border-light); }
:where(.p-activity) #foodModal .fm-detail { font-size: 0.9rem; color: var(--text-body); line-height: 1.9; white-space: pre-line; }
:where(.p-activity) .pizza-banner { border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, #8B6914 0%, #6B4E12 100%); color: var(--white); margin-top: 2rem; }
:where(.p-activity) .pizza-banner-content { padding: 3rem; display: flex; flex-direction: column; justify-content: center; min-height: 280px; }
:where(.p-activity) .pizza-banner-content h3 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; margin-bottom: 0.8rem; }
:where(.p-activity) .pizza-banner-content p { font-size: 1rem; opacity: 0.85; margin-bottom: 1.5rem; max-width: 400px; line-height: 1.8; }
:where(.p-activity) .pizza-banner-visual { position: relative; background: linear-gradient(135deg, #A67C2E 0%, #8B6914 100%); display: flex; align-items: center; justify-content: center; min-height: 200px; }
:where(.p-activity) .pizza-banner-visual .material-symbols-outlined { font-size: 6rem; opacity: 0.2; }
:where(.p-activity) .promotions { background: var(--bg-cream); }
:where(.p-activity) .promo-card { display: flex; border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--border-light); transition: all 0.3s; height: 100%; }
:where(.p-activity) .promo-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.06); transform: translateY(-4px); }
:where(.p-activity) .promo-visual { flex: 0 0 160px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 2rem; }
:where(.p-activity) .promo-body { padding: 2rem; flex: 1; }
:where(.p-activity) .promo-tag { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-bottom: 0.8rem; }
:where(.p-activity) .promo-body h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
:where(.p-activity) .promo-body p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1rem; }
:where(.p-activity) .promo-features { list-style: none; padding: 0; margin: 0; }
:where(.p-activity) .promo-features li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-body); padding: 4px 0; }
:where(.p-activity) .promo-features .material-symbols-outlined { font-size: 1rem; color: var(--primary); }

/* --- activitydetail --- */
:where(.p-activitydetail) .hero-cover { position: relative; width: 100%; height: 380px; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, #2E7D6B 0%, #1a5c4b 100%); display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; }
:where(.p-activitydetail) .hero-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,0.55)); }
:where(.p-activitydetail) .hero-cover .material-symbols-outlined { font-size: 5rem; color: rgba(255,255,255,0.18); }
:where(.p-activitydetail) .hero-overlay { position: absolute; left: 2rem; right: 2rem; bottom: 1.8rem; color: var(--white); z-index: 2; }
:where(.p-activitydetail) .hero-category-badge { display: inline-block; padding: 5px 14px; background: var(--accent); border-radius: 30px; font-size: 0.78rem; font-weight: 600; margin-bottom: 0.8rem; letter-spacing: 1px; }
:where(.p-activitydetail) .hero-overlay h1 { font-family: var(--font-heading); font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 0.4rem; }
:where(.p-activitydetail) .hero-overlay p { font-size: 1rem; opacity: 0.85; margin: 0; }
:where(.p-activitydetail) .info-bar { background: var(--white); border: 1px solid var(--border-light); border-radius: 16px; padding: 1.5rem; }
:where(.p-activitydetail) .info-item { display: flex; align-items: center; gap: 10px; }
:where(.p-activitydetail) .info-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(58,125,68,0.1); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
:where(.p-activitydetail) .info-icon .material-symbols-outlined { font-size: 1.3rem; }
:where(.p-activitydetail) .info-label { font-size: 0.75rem; color: var(--text-light); line-height: 1.2; margin: 0; }
:where(.p-activitydetail) .info-value { font-size: 0.95rem; color: var(--text-dark); font-weight: 600; line-height: 1.4; margin: 0; }

/* --- activitydetail, spotdetail --- */
:where(.p-activitydetail, .p-spotdetail) .content-block { background: var(--white); border-radius: 20px; padding: 2.2rem 2rem; border: 1px solid var(--border-light); margin-bottom: 1.5rem; }
:where(.p-activitydetail, .p-spotdetail) .content-block h2 { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--accent); display: inline-block; }
:where(.p-activitydetail, .p-spotdetail) .content-block p { font-size: 1rem; color: var(--text-body); line-height: 2; margin-bottom: 1rem; }
:where(.p-activitydetail, .p-spotdetail) .content-block ul { margin: 0.8rem 0 0.8rem 1.3rem; padding: 0; }

/* --- activitydetail --- */
:where(.p-activitydetail) .content-block ol { margin: 0.8rem 0 0.8rem 1.3rem; padding: 0; }
:where(.p-activitydetail) .content-block li { margin-bottom: 0.5rem; line-height: 1.9; }

/* --- spotdetail --- */
:where(.p-spotdetail) .content-block li { margin-bottom: 0.4rem; line-height: 1.9; }

/* --- activitydetail --- */
:where(.p-activitydetail) .content-block blockquote { border-left: 4px solid var(--primary); padding: 0.8rem 1.2rem; margin: 1rem 0; background: var(--bg-cream); border-radius: 0 12px 12px 0; font-size: 0.95rem; }
:where(.p-activitydetail) .notice-list { list-style: none; margin: 0; padding: 0; }
:where(.p-activitydetail) .notice-list li { display: flex; gap: 10px; align-items: flex-start; padding: 0.6rem 0; border-bottom: 1px dashed var(--border-light); font-size: 0.95rem; color: var(--text-body); }
:where(.p-activitydetail) .notice-list li:last-child { border-bottom: none; }
:where(.p-activitydetail) .notice-list .material-symbols-outlined { color: var(--accent); font-size: 1.1rem; margin-top: 3px; }

/* --- activitydetail, spotdetail --- */
:where(.p-activitydetail, .p-spotdetail) .gallery-swiper { border-radius: 16px; overflow: hidden; }

/* --- activitydetail --- */
:where(.p-activitydetail) .gallery-swiper .swiper-slide { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.15); font-size: 3rem; }

/* --- spotdetail --- */
:where(.p-spotdetail) .gallery-swiper .swiper-slide { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.15); font-size: 3rem; }

/* --- activitydetail --- */
:where(.p-activitydetail) .gallery-thumbs { margin-top: 0.8rem; }

/* --- productdetail --- */
:where(.p-productdetail) .gallery-thumbs { margin-top: 0.6rem; }

/* --- activitydetail --- */
:where(.p-activitydetail) .gallery-thumbs .swiper-slide { aspect-ratio: 1/1; border-radius: 10px; cursor: pointer; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); opacity: 0.5; transition: opacity 0.3s; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.2); }

/* --- productdetail --- */
:where(.p-productdetail) .gallery-thumbs .swiper-slide { aspect-ratio: 1/1; border-radius: 12px; cursor: pointer; background: linear-gradient(135deg, #8B6914, #6B4E12); opacity: 0.5; transition: opacity 0.3s; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.25); }

/* --- activitydetail, productdetail --- */
:where(.p-activitydetail, .p-productdetail) .gallery-thumbs .swiper-slide-thumb-active { opacity: 1; }

/* --- activitydetail, demo-book, productdetail, spotdetail --- */
:where(.p-activitydetail, .p-bookdetail, .p-productdetail, .p-spotdetail) .swiper-button-next { color: var(--white) !important; }
:where(.p-activitydetail, .p-bookdetail, .p-productdetail, .p-spotdetail) .swiper-button-prev { color: var(--white) !important; }
:where(.p-activitydetail, .p-bookdetail, .p-productdetail, .p-spotdetail) .swiper-button-next::after { font-size: 1.2rem !important; }
:where(.p-activitydetail, .p-bookdetail, .p-productdetail, .p-spotdetail) .swiper-button-prev::after { font-size: 1.2rem !important; }

/* --- activitydetail, productdetail, spotdetail --- */
/* 輪播切換鈕：在任何照片上都看得清楚（2026-09-30）。設計稿用深色示意底圖，白色細箭頭與小圓點看得到；
   換成真實照片後，亮部會把它們吃掉，訪客看不出可以切換。版面不變，只給箭頭與圓點加半透明深色底。
   只有一張照片時 Swiper 會自動加 lock class 隱藏箭頭與圓點，不受影響。 */
:where(.p-activitydetail, .p-productdetail, .p-spotdetail) .swiper-button-next,
:where(.p-activitydetail, .p-productdetail, .p-spotdetail) .swiper-button-prev { width: 44px !important; height: 44px !important; margin-top: -22px !important; border-radius: 50%; background: rgba(255,255,255,0.92) !important; color: var(--primary) !important; box-shadow: 0 2px 10px rgba(0,0,0,0.3); transition: background 0.2s, transform 0.2s; }
:where(.p-activitydetail, .p-productdetail, .p-spotdetail) .swiper-button-next:hover,
:where(.p-activitydetail, .p-productdetail, .p-spotdetail) .swiper-button-prev:hover { background: #fff !important; transform: scale(1.06); }
:where(.p-activitydetail, .p-productdetail, .p-spotdetail) .swiper-button-disabled { opacity: 0 !important; pointer-events: none; }
:where(.p-activitydetail, .p-productdetail, .p-spotdetail) .swiper-button-next::after,
:where(.p-activitydetail, .p-productdetail, .p-spotdetail) .swiper-button-prev::after { font-size: 1rem !important; font-weight: 700; }
:where(.p-activitydetail, .p-productdetail, .p-spotdetail) .swiper-pagination { left: 50% !important; right: auto !important; width: auto !important; transform: translateX(-50%); bottom: 12px !important; padding: 7px 10px; border-radius: 999px; background: rgba(0,0,0,0.45); line-height: 0; }
:where(.p-activitydetail, .p-productdetail, .p-spotdetail) .swiper-pagination-bullet { width: 9px !important; height: 9px !important; margin: 0 4px !important; background: #fff !important; opacity: 0.6 !important; }
:where(.p-activitydetail, .p-productdetail, .p-spotdetail) .swiper-pagination-bullet-active { background: var(--accent) !important; opacity: 1 !important; }

/* --- demo-book --- */

/* --- activitydetail --- */
:where(.p-activitydetail) .signup-card { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); border-radius: 20px; padding: 2rem; position: sticky; top: calc(var(--navbar-height) + 1.5rem); }
:where(.p-activitydetail) .signup-card h3 { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 0.3rem; color: var(--white); }
:where(.p-activitydetail) .signup-card > p { font-size: 0.88rem; opacity: 0.8; margin-bottom: 1.3rem; }
:where(.p-activitydetail) .signup-list { list-style: none; padding: 0; margin: 0 0 1.3rem 0; }
:where(.p-activitydetail) .signup-list li { display: flex; gap: 10px; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.15); font-size: 0.92rem; }
:where(.p-activitydetail) .signup-list li:last-child { border-bottom: none; }
:where(.p-activitydetail) .signup-list .material-symbols-outlined { color: var(--accent-light); font-size: 1.2rem; }
:where(.p-activitydetail) .signup-list a { color: var(--white); text-decoration: none; }
:where(.p-activitydetail) .signup-list a:hover { color: var(--accent-light); }
:where(.p-activitydetail) .signup-line { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 1.3rem; padding: 0.9rem; background: rgba(255,255,255,0.1); border-radius: 12px; }
:where(.p-activitydetail) .signup-line-qr { width: 86px; height: 86px; flex-shrink: 0; border-radius: 6px; background: var(--white); padding: 4px; }
:where(.p-activitydetail) .signup-line p { font-size: 0.85rem; opacity: 0.85; margin: 0 0 0.6rem 0; line-height: 1.6; }
:where(.p-activitydetail) .signup-line-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.42rem 1rem; background: var(--white); color: var(--primary); font-size: 0.88rem; font-weight: 500; border-radius: 999px; text-decoration: none; transition: all 0.25s; }
:where(.p-activitydetail) .signup-line-btn:hover { background: var(--accent-light); color: var(--white); }
:where(.p-activitydetail) .signup-line-btn .material-symbols-outlined { font-size: 1.05rem; color: inherit; }
:where(.p-activitydetail) .btn-signup { display: block; width: 100%; padding: 13px; text-align: center; background: var(--accent); color: var(--white); border-radius: 50px; text-decoration: none; font-weight: 500; font-size: 1rem; transition: all 0.3s; }
:where(.p-activitydetail) .btn-signup:hover { background: var(--accent-light); color: var(--white); }

/* --- activitydetail, storydetail --- */
:where(.p-activitydetail, .p-storydetail) .related-section { background: var(--bg-warm); padding: 70px 0 90px; margin-top: 3rem; }

/* --- productdetail --- */
:where(.p-productdetail) .related-section { background: var(--bg-warm); padding: 70px 0 90px; margin-top: 2rem; }

/* --- activitydetail, productdetail, storydetail --- */
:where(.p-activitydetail, .p-productdetail, .p-storydetail) .related-heading { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.4rem; }
:where(.p-activitydetail, .p-productdetail, .p-storydetail) .related-sub { font-size: 0.95rem; color: var(--text-light); margin-bottom: 2rem; }

/* --- activitydetail --- */
:where(.p-activitydetail) .activity-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.08); color: inherit; }
:where(.p-activitydetail) .activity-card-img { height: 180px; position: relative; }
:where(.p-activitydetail) .activity-card-img-bg { width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
:where(.p-activitydetail) .activity-price { position: absolute; top: 1rem; right: 1rem; padding: 5px 14px; background: var(--accent); color: var(--white); border-radius: 20px; font-size: 0.82rem; font-weight: 500; }
:where(.p-activitydetail) .activity-card-body { padding: 1.3rem; }
:where(.p-activitydetail) .activity-card-body h4 { font-family: var(--font-heading); font-size: 1.08rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.4rem; }
:where(.p-activitydetail) .activity-card-body p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 0.8rem; }
:where(.p-activitydetail) .activity-meta { display: flex; gap: 0.8rem; font-size: 0.8rem; color: var(--text-light); flex-wrap: wrap; }
:where(.p-activitydetail) .activity-meta span { display: inline-flex; align-items: center; gap: 4px; }
:where(.p-activitydetail) .activity-meta .material-symbols-outlined { font-size: 0.95rem; }

/* --- activitydetail, productdetail, spotdetail --- */
:where(.p-activitydetail, .p-productdetail, .p-spotdetail, .p-bookdetail) .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); text-decoration: none; font-size: 0.92rem; margin-bottom: 1.5rem; }

/* --- demo-book --- */

/* --- news-detail-media, news-detail, recruit --- */
:where(.p-news-detail-media, .p-news-detail, .p-recruit) .back-link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 50px; font-size: 0.92rem; font-weight: 500; color: var(--primary); text-decoration: none; border: 1px solid var(--border-light); background: var(--white); transition: all 0.3s; margin-bottom: 2rem; }

/* --- storydetail --- */
:where(.p-storydetail) .back-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: 50px; font-size: 0.92rem; color: var(--primary); text-decoration: none; border: 1px solid var(--border-light); background: var(--white); transition: all 0.3s; margin-bottom: 2rem; }

/* --- activitydetail, demo-book, productdetail, spotdetail --- */
:where(.p-activitydetail, .p-bookdetail, .p-productdetail, .p-spotdetail) .back-link:hover { color: var(--accent); }

/* --- news-detail-media, news-detail, recruit, storydetail --- */
:where(.p-news-detail-media, .p-news-detail, .p-recruit, .p-storydetail) .back-link:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* --- demo-book --- */
:where(.p-bookdetail) .pdf-container { border-radius: 12px; overflow: hidden; border: 1px solid var(--border-light); }
:where(.p-bookdetail) .pdf-container iframe { width: 100%; height: 500px; border: none; }
:where(.p-bookdetail) .pdf-placeholder { width: 100%; height: 500px; background: #f0f0f0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: var(--text-light); border-radius: 12px; }
/* 真的嵌入 PDF 時的閱讀框：設計稿只畫了 .pdf-placeholder 佔位（「實際上線後嵌入
   瀏覽器 PDF 閱讀器」），尺寸沿用它，否則 iframe 沒有高度等於看不見。 */
:where(.p-bookdetail) .pdf-wrapper { width: 100%; height: 500px; border-radius: 12px; overflow: hidden; background: #f0f0f0; margin-bottom: 1rem; }
:where(.p-bookdetail) .pdf-wrapper iframe { width: 100%; height: 100%; border: 0; }
:where(.p-bookdetail) .pdf-placeholder .material-symbols-outlined { font-size: 3rem; opacity: 0.3; }
:where(.p-bookdetail) .pdf-placeholder p { font-size: 0.88rem; }
:where(.p-bookdetail) .pdf-download-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 24px; border-radius: 50px; background: var(--primary); color: var(--white); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: background 0.2s; border: none; cursor: pointer; }
:where(.p-bookdetail) .pdf-download-btn:hover { background: var(--primary-dark); }
:where(.p-bookdetail) .pdf-download-btn .material-symbols-outlined { font-size: 1.1rem; }
:where(.p-bookdetail) .flipbook-wrapper { background: var(--dark); border-radius: 12px; padding: 2rem 1rem; display: flex; flex-direction: column; align-items: center; }
:where(.p-bookdetail) .flipbook-container { margin: 0 auto; }
:where(.p-bookdetail) .flipbook-page { background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center; border: 1px solid #e0e0e0; }
:where(.p-bookdetail) .flipbook-page.page-cover { background: linear-gradient(135deg, #3A7D44, #2C5F33); color: var(--white); border: none; }
:where(.p-bookdetail) .flipbook-page.page-end { background: linear-gradient(135deg, #D4922A, #A67C2E); color: var(--white); border: none; }
:where(.p-bookdetail) .flipbook-page .page-icon { font-size: 3.5rem; opacity: 0.2; margin-bottom: 0.8rem; }
:where(.p-bookdetail) .flipbook-page.page-cover .page-icon { opacity: 0.3; }
:where(.p-bookdetail) .flipbook-page.page-end .page-icon { opacity: 0.3; }
:where(.p-bookdetail) .flipbook-page .page-title { font-family: 'Noto Serif TC', serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
:where(.p-bookdetail) .flipbook-page .page-text { font-size: 0.82rem; line-height: 1.8; color: var(--text-body); max-width: 260px; }
:where(.p-bookdetail) .flipbook-page.page-cover .page-text { color: rgba(255,255,255,0.7); }
:where(.p-bookdetail) .flipbook-page.page-end .page-text { color: rgba(255,255,255,0.7); }
:where(.p-bookdetail) .flipbook-page .page-num { font-size: 0.72rem; color: var(--text-light); margin-top: auto; padding-top: 0.8rem; }
:where(.p-bookdetail) .flip-controls { display: flex; gap: 1rem; margin-top: 1.2rem; }
:where(.p-bookdetail) .flip-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 20px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.3); background: transparent; color: var(--white); cursor: pointer; font-size: 0.82rem; transition: background 0.2s; }
:where(.p-bookdetail) .flip-btn:hover { background: rgba(255,255,255,0.1); }
:where(.p-bookdetail) .flip-btn .material-symbols-outlined { font-size: 1rem; }
:where(.p-bookdetail) .flip-hint { font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-top: 0.6rem; }

/* --- demo-book, news-detail-media, news-detail, recruit --- */
:where(.p-bookdetail, .p-news-detail-media, .p-news-detail, .p-recruit) .back-link .material-symbols-outlined { font-size: 1.1rem; }

/* --- donate --- */
:where(.p-donate) .mission-section { background: var(--white); }
:where(.p-donate) .mission-image { border-radius: 20px; overflow: hidden; height: 380px; background: linear-gradient(135deg, var(--accent), #A67C2E); display: flex; align-items: center; justify-content: center; }
:where(.p-donate) .mission-image .material-symbols-outlined { font-size: 5rem; color: rgba(255,255,255,0.2); }
:where(.p-donate) .mission-text h3 { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1rem; }
:where(.p-donate) .mission-text p { font-size: 1rem; color: var(--text-body); margin-bottom: 1rem; line-height: 2; }
:where(.p-donate) .mission-stat-item { text-align: center; padding: 1.5rem 1rem; border-radius: 16px; background: var(--bg-cream); border: 1px solid var(--border-light); height: 100%; }
:where(.p-donate) .mission-stat-item .counter { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: var(--accent); display: block; }
:where(.p-donate) .mission-stat-item span:last-child { font-size: 0.85rem; color: var(--text-light); }
/* 贊助項目：2026-09-30 由小卡改成長文區塊（標題配內容），內容來自後台 HTML 編輯器 */
:where(.p-donate) .plan-section { background: var(--bg-cream); }
:where(.p-donate) .plan-list { max-width: 900px; }
:where(.p-donate) .plan-block { padding: 2.5rem 0; border-top: 1px solid var(--border-light); scroll-margin-top: 80px; }
:where(.p-donate) .plan-block:first-child { padding-top: 0.5rem; border-top: 0; }
:where(.p-donate) .plan-block:last-child { padding-bottom: 0; }
:where(.p-donate) .plan-block-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1.2rem; padding-left: 0.9rem; border-left: 4px solid var(--accent); line-height: 1.4; }
:where(.p-donate) .plan-block-body { font-size: 1rem; color: var(--text-body); line-height: 2; }
:where(.p-donate) .plan-block-body p { margin-bottom: 1.2rem; }
:where(.p-donate) .plan-block-body ul, :where(.p-donate) .plan-block-body ol { margin: 0 0 1.2rem 1.5rem; padding: 0; }
:where(.p-donate) .plan-block-body li { margin-bottom: 0.3rem; }
:where(.p-donate) .plan-block-body h3, :where(.p-donate) .plan-block-body h4 { font-family: var(--font-heading); font-weight: 700; color: var(--text-dark); margin: 1.5rem 0 0.8rem; }
:where(.p-donate) .plan-block-body hr { border: 0; border-top: 1px dashed var(--border-light); opacity: 1; margin: 1.5rem 0; }
:where(.p-donate) .plan-block-body a { color: var(--primary); text-decoration: underline; }
/* 照片直接插在文中：同一段裡的多張照片會並排，放不下就換行；直式照片限高，避免整張撐滿版面 */
:where(.p-donate) .plan-block-body img { display: inline-block; vertical-align: top; max-width: 100%; max-height: 400px; width: auto; height: auto; border-radius: 12px; margin: 0.3rem 0.5rem 0.3rem 0; }
:where(.p-donate) .howto-section { background: var(--white); }
:where(.p-donate) .howto-card { display: flex; gap: 1.5rem; padding: 2rem; background: var(--bg-cream); border-radius: 20px; border: 1px solid var(--border-light); transition: all 0.3s; height: 100%; }
:where(.p-donate) .howto-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.05); transform: translateY(-4px); }
:where(.p-donate) .howto-card-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--white); flex-shrink: 0; }
:where(.p-donate) .howto-card-body h4 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.4rem; }
:where(.p-donate) .howto-card-body p { font-size: 0.88rem; color: var(--text-light); line-height: 1.8; }
:where(.p-donate) .honor-section { background: var(--white); }
:where(.p-donate) .honor-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid var(--border-light); }
:where(.p-donate) .honor-table thead th { background: var(--bg-cream); padding: 14px 24px; font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700; color: var(--text-dark); text-align: left; border-bottom: 2px solid var(--border-light); }
:where(.p-donate) .honor-table tbody td { padding: 14px 24px; font-size: 0.95rem; color: var(--text-body); border-bottom: 1px solid var(--border-light); }
:where(.p-donate) .honor-table tbody tr:last-child td { border-bottom: none; }
:where(.p-donate) .honor-table tbody tr:hover { background: var(--bg-cream); }
:where(.p-donate) .honor-table .honor-name { font-weight: 600; color: var(--text-dark); }
:where(.p-donate) .honor-table .honor-amount { font-family: var(--font-heading); font-weight: 700; color: var(--primary); }
:where(.p-donate) .honor-empty { text-align: center; padding: 3.5rem 1.5rem; background: var(--bg-cream); border: 1px dashed var(--border-light); border-radius: 20px; }
:where(.p-donate) .honor-empty .material-symbols-outlined { font-size: 3rem; color: var(--accent); opacity: 0.5; }
:where(.p-donate) .honor-empty h4 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--text-dark); margin: 0.8rem 0 0.5rem; }
:where(.p-donate) .honor-empty p { font-size: 0.9rem; color: var(--text-light); line-height: 1.9; margin: 0; }
:where(.p-donate) .thanks-banner { background: linear-gradient(135deg, var(--accent), #B8800A); color: var(--white); text-align: center; padding: 60px 1.5rem; }
:where(.p-donate) .thanks-banner h3 { font-family: var(--font-heading); font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; margin-bottom: 0.8rem; }
:where(.p-donate) .thanks-banner p { font-size: 1rem; opacity: 0.85; max-width: 600px; margin: 0 auto; }

/* --- explore --- */
:where(.p-explore) .map-section { background: var(--white); }
:where(.p-explore) .map-figure { display: block; position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.08); border: 1px solid var(--border-light); background: var(--bg-cream); }
:where(.p-explore) .map-figure img { display: block; width: 100%; height: auto; }
:where(.p-explore) .map-zoom-hint { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 50px; background: rgba(255,255,255,0.94); color: var(--primary); font-size: 0.85rem; font-weight: 500; box-shadow: 0 2px 10px rgba(0,0,0,0.15); transition: all 0.25s; pointer-events: none; }
:where(.p-explore) .map-figure:hover .map-zoom-hint { background: var(--primary); color: var(--white); }
:where(.p-explore) .map-zoom-hint .material-symbols-outlined { font-size: 1.05rem; }
:where(.p-explore) .spots-section { background: var(--bg-cream); }
/* 景點卡與活動卡 2026-07-30 改成連到詳情頁的 <a>，所以要補 text-decoration／color
   （沿用設計稿裡本來就是連結的 .org-card 那組寫法），不然會變成藍色底線。 */
:where(.p-explore) .spot-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--white); border: 1px solid var(--border-light); transition: all 0.35s; cursor: pointer; height: 100%; text-decoration: none; color: inherit; }
:where(.p-explore) .spot-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(58,125,68,0.1); }
:where(.p-explore) .spot-card-visual { height: 160px; flex-shrink: 0; position: relative; overflow: hidden; }
:where(.p-explore) .spot-card-bg { width: 100%; height: 100%; transition: transform 0.5s; }
:where(.p-explore) .spot-card:hover .spot-card-bg { transform: scale(1.08); }
:where(.p-explore) .spot-number { position: absolute; top: 0.8rem; left: 0.8rem; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; }
/* 卡片等高（2026-09-30）：標題、簡介各固定保留兩行，沒有簡介也留空位；分類標籤貼齊卡片底部 */
:where(.p-explore) .spot-card-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
:where(.p-explore) .spot-card-body h4 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.3rem; line-height: 1.45; min-height: 2.9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:where(.p-explore) .spot-card-body p { font-size: 0.82rem; color: var(--text-light); margin-bottom: 0.6rem; line-height: 1.6; min-height: 3.2em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:where(.p-explore) .spot-card-body > :last-child { margin-top: auto; }
:where(.p-explore) .spot-tag { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 500; }
:where(.p-explore) .flora-fauna { background: var(--white); }
:where(.p-explore) .ff-tab { padding: 8px 22px; border-radius: 30px; border: 1.5px solid var(--border-light); background: transparent; color: var(--text-body); font-size: 0.9rem; cursor: pointer; transition: all 0.25s; }
:where(.p-explore) .ff-tab:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
:where(.p-explore) .ff-tab.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
:where(.p-explore) .ff-card { text-align: center; padding: 2rem 1rem; border-radius: 16px; background: var(--bg-cream); border: 1px solid var(--border-light); transition: all 0.3s; cursor: pointer; height: 100%; }
:where(.p-explore) .ff-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.05); border-color: var(--primary-light); }
:where(.p-explore) .ff-card-avatar { width: 80px; height: 80px; margin: 0 auto 1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; transition: transform 0.3s; }
:where(.p-explore) .ff-card:hover .ff-card-avatar { transform: scale(1.1); }
:where(.p-explore) .ff-card h4 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.2rem; }
:where(.p-explore) .ff-card .ff-latin { font-size: 0.75rem; color: var(--text-light); font-style: italic; margin-bottom: 0.5rem; }
:where(.p-explore) .ff-card p { font-size: 0.8rem; color: var(--text-light); }
:where(.p-explore) .ff-badge { display: inline-block; margin-top: 0.8rem; padding: 3px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 500; }
:where(.p-explore) .eco-classroom { background: var(--bg-cream); }
:where(.p-explore) .eco-card { border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--border-light); transition: all 0.35s; cursor: pointer; height: 100%; }
:where(.p-explore) .eco-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.06); }
:where(.p-explore) .eco-card-visual { height: 180px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
:where(.p-explore) .eco-card-visual .material-symbols-outlined { font-size: 3.5rem; color: rgba(255,255,255,0.3); }
:where(.p-explore) .eco-card-body { padding: 1.5rem; }
:where(.p-explore) .eco-card-tag { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; margin-bottom: 0.8rem; }
:where(.p-explore) .eco-card-body h3 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
:where(.p-explore) .eco-card-body p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1rem; }
:where(.p-explore) .eco-card-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-light); }
:where(.p-explore) .eco-card-meta span { display: flex; align-items: center; gap: 4px; }
:where(.p-explore) .eco-card-meta .material-symbols-outlined { font-size: 1rem; }
:where(.p-explore) .postcard-section { background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%); color: var(--white); padding: 80px 0; position: relative; overflow: hidden; }
:where(.p-explore) .postcard-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 50%, rgba(91,154,60,0.15) 0%, transparent 50%); }
:where(.p-explore) .postcard-section .container { text-align: center; position: relative; z-index: 1; max-width: 900px; }
:where(.p-explore) .postcard-section h2 { font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 1rem; }
:where(.p-explore) .postcard-section > .container > p { font-size: 1.05rem; opacity: 0.75; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
:where(.p-explore) .postcard-item { border-radius: 12px; overflow: hidden; height: 180px; position: relative; cursor: pointer; transition: transform 0.3s; }
:where(.p-explore) .postcard-item:hover { transform: scale(1.03); }
:where(.p-explore) .postcard-item-bg { width: 100%; height: 100%; }
:where(.p-explore) .postcard-item-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem; background: linear-gradient(transparent, rgba(0,0,0,0.7)); font-size: 0.9rem; font-weight: 500; }
:where(.p-explore) .postcard-viewport { position: relative; }
:where(.p-explore) .postcard-strip { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
:where(.p-explore) .postcard-strip::-webkit-scrollbar { display: none; }
:where(.p-explore) .postcard-strip > .postcard-item { flex: 0 0 calc((100% - 2rem) / 3); scroll-snap-align: start; }
:where(.p-explore) .postcard-strip.is-dragging { scroll-behavior: auto; cursor: grabbing; }
:where(.p-explore) .postcard-strip.is-dragging .postcard-item { transform: none; }
:where(.p-explore) .postcard-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--dark); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.25); transition: opacity 0.2s; }
:where(.p-explore) .postcard-nav[hidden] { display: none; }
:where(.p-explore) .postcard-nav:disabled { opacity: 0.3; cursor: default; }
:where(.p-explore) .postcard-nav.prev { left: 8px; }
:where(.p-explore) .postcard-nav.next { right: 8px; }
:where(.p-explore) .postcard-dots { display: flex; justify-content: center; gap: 8px; margin-top: 1.4rem; }
:where(.p-explore) .postcard-dots:empty { display: none; }
:where(.p-explore) .postcard-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; transition: width 0.2s, background 0.2s; }
:where(.p-explore) .postcard-dots button.active { width: 22px; border-radius: 4px; background: #fff; }
:where(.p-explore, .p-spotdetail) .lightbox {position:fixed;inset:0;background:rgba(0,0,0,0.85);z-index:2000;display:none;align-items:center;justify-content:center;padding:2rem; }
:where(.p-explore, .p-spotdetail) .lightbox.open {display:flex; }
:where(.p-explore, .p-spotdetail) .lightbox-content {max-width:760px;width:100%;background:var(--white);border-radius:16px;overflow:hidden;position:relative;box-shadow:0 20px 60px rgba(0,0,0,0.4); }
/* max-height 與內文區塊都是後補的：aspect-ratio 4/3 在 760px 寬就是 570px 高，
   加上內文會超出視窗（同 activity 的 foodModal 那個問題）。
   燈箱本身也限高並讓內容可捲，長內文才不會被切掉。 */
:where(.p-explore, .p-spotdetail) .lightbox-content {max-height:90vh;overflow-y:auto; }
:where(.p-explore, .p-spotdetail) .lightbox-img {width:100%;aspect-ratio:4/3;max-height:42vh;background-size:cover;background-position:center; }
:where(.p-explore, .p-spotdetail) .lightbox-body {padding:0 1.5rem 1.5rem; }
:where(.p-explore, .p-spotdetail) .lightbox-intro {font-size:0.95rem;color:var(--text-body);line-height:1.8;margin-bottom:0.9rem; }
:where(.p-explore, .p-spotdetail) .lightbox-detail {font-size:0.9rem;color:var(--text-body);line-height:1.9;white-space:pre-line;margin:0;padding-top:0.9rem;border-top:1px dashed var(--border-light); }
:where(.p-explore, .p-spotdetail) .lightbox-placeholder {width:100%;aspect-ratio:4/3;max-height:42vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#FFF6E5;color:#8A5A00; }
:where(.p-explore, .p-spotdetail) .lightbox-placeholder .material-symbols-outlined {font-size:3rem; }
:where(.p-explore, .p-spotdetail) .lightbox-placeholder span:last-child {font-size:0.95rem; }
:where(.p-explore, .p-spotdetail) .lightbox-caption {padding:1.1rem 1.5rem;font-family:var(--font-heading);font-weight:700;font-size:1.1rem;color:var(--text-dark); }
:where(.p-explore, .p-spotdetail) .lightbox-close {position:absolute;top:1rem;right:1rem;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,0.92);border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2; }
:where(.p-explore, .p-spotdetail) .lightbox-close:hover {background:#fff; }

/* --- news-detail-media, news-detail, recruit --- */
:where(.p-news-detail-media, .p-news-detail, .p-recruit) .article-section { padding: 60px 0 80px; }

/* --- storydetail --- */
:where(.p-storydetail) .article-section { padding: 60px 0 40px; }

/* --- news-detail-media --- */
:where(.p-news-detail-media) .article-cover { width: 100%; height: 420px; border-radius: 20px; overflow: hidden; margin-bottom: 3rem; }

/* --- news-detail --- */
:where(.p-news-detail) .article-cover { width: 100%; height: 420px; border-radius: 20px; overflow: hidden; margin-bottom: 3rem; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; }

/* --- storydetail --- */
:where(.p-storydetail) .article-cover { position: relative; width: 100%; height: 420px; border-radius: 20px; overflow: hidden; margin-bottom: 3rem; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; }

/* --- news-detail-media, news-detail, recruit, storydetail --- */
:where(.p-news-detail-media, .p-news-detail, .p-recruit, .p-storydetail) .article-body { background: var(--white); border-radius: 20px; padding: 3rem; border: 1px solid var(--border-light); }

/* --- news-detail-media, news-detail, storydetail --- */
:where(.p-news-detail-media, .p-news-detail, .p-storydetail) .article-body h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin: 2rem 0 1rem; }

/* --- recruit --- */
:where(.p-recruit) .article-body h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin: 2.5rem 0 1rem; }

/* --- news-detail-media, news-detail, storydetail --- */
:where(.p-news-detail-media, .p-news-detail, .p-storydetail) .article-body h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin: 1.5rem 0 0.8rem; }

/* --- news-detail-media, news-detail, recruit, storydetail --- */
:where(.p-news-detail-media, .p-news-detail, .p-recruit, .p-storydetail) .article-body h2:first-child { margin-top: 0; }

/* --- news-detail-media, news-detail, storydetail --- */
:where(.p-news-detail-media, .p-news-detail, .p-storydetail) .article-body h3:first-child { margin-top: 0; }

/* --- news-detail-media, news-detail, recruit, storydetail --- */
:where(.p-news-detail-media, .p-news-detail, .p-recruit, .p-storydetail) .article-body p { font-size: 1rem; color: var(--text-body); line-height: 2; margin-bottom: 1.2rem; }

/* --- news-detail-media, storydetail --- */
:where(.p-news-detail-media, .p-storydetail) .article-body ul { margin: 1rem 0 1.5rem 1.5rem; padding: 0; }
:where(.p-news-detail-media, .p-storydetail) .article-body ol { margin: 1rem 0 1.5rem 1.5rem; padding: 0; }
:where(.p-news-detail-media, .p-storydetail) .article-body li { font-size: 1rem; color: var(--text-body); line-height: 2; margin-bottom: 0.3rem; }

/* --- news-detail-media, news-detail, storydetail --- */
:where(.p-news-detail-media, .p-news-detail, .p-storydetail) .article-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.5rem 0; display: block; }
:where(.p-news-detail-media, .p-news-detail, .p-storydetail) .article-body a { color: var(--primary); text-decoration: underline; }

/* --- news-detail-media, news-detail --- */
:where(.p-news-detail-media, .p-news-detail) .article-body a:hover { color: var(--accent); }
:where(.p-news-detail-media, .p-news-detail) .article-nav { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-light); }

/* --- storydetail --- */
:where(.p-storydetail) .article-nav { margin-top: 3rem; }

/* --- news-detail-media, news-detail --- */
:where(.p-news-detail-media, .p-news-detail) .article-nav-item { padding: 1.5rem; border-radius: 16px; background: var(--bg-cream); border: 1px solid var(--border-light); text-decoration: none; transition: all 0.3s; display: block; height: 100%; }

/* --- storydetail --- */
:where(.p-storydetail) .article-nav-item { padding: 1.5rem; border-radius: 16px; background: var(--white); border: 1px solid var(--border-light); text-decoration: none; transition: all 0.3s; display: block; height: 100%; }

/* --- news-detail-media, news-detail, storydetail --- */
:where(.p-news-detail-media, .p-news-detail, .p-storydetail) .article-nav-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.05); border-color: var(--primary-light); }
:where(.p-news-detail-media, .p-news-detail, .p-storydetail) .article-nav-label { font-size: 0.78rem; color: var(--text-light); font-weight: 500; display: flex; align-items: center; gap: 4px; margin-bottom: 0.5rem; }
:where(.p-news-detail-media, .p-news-detail, .p-storydetail) .article-nav-label .material-symbols-outlined { font-size: 0.9rem; }

/* --- news-detail-media, news-detail --- */
:where(.p-news-detail-media, .p-news-detail) .article-nav-title { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600; color: var(--text-dark); line-height: 1.5; }

/* --- storydetail --- */
:where(.p-storydetail) .article-nav-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--text-dark); line-height: 1.5; }

/* --- news-detail-media, news-detail, storydetail --- */
:where(.p-news-detail-media, .p-news-detail, .p-storydetail) .article-nav-item.next { text-align: right; }
:where(.p-news-detail-media, .p-news-detail, .p-storydetail) .article-nav-item.next .article-nav-label { justify-content: flex-end; }

/* --- news-detail, storydetail --- */
:where(.p-news-detail, .p-storydetail) .article-cover .material-symbols-outlined { font-size: 5rem; color: rgba(255,255,255,0.15); }

/* --- news --- */
:where(.p-news) .featured-card { border-radius: 20px; overflow: hidden; position: relative; background: var(--dark); color: var(--white); min-height: 400px; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; transition: all 0.35s; height: 100%; }
:where(.p-news) .featured-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.15); color: var(--white); }
:where(.p-news) .featured-card-bg { position: absolute; inset: 0; transition: transform 0.5s; }
:where(.p-news) .featured-card:hover .featured-card-bg { transform: scale(1.05); }
:where(.p-news) .featured-card-content { position: relative; z-index: 2; padding: 2rem; background: linear-gradient(transparent, rgba(0,0,0,0.8)); }
:where(.p-news) .featured-card-tag { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-bottom: 0.8rem; }
:where(.p-news) .featured-card-content h2 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
:where(.p-news) .featured-card-content p { font-size: 0.9rem; opacity: 0.8; margin-bottom: 0.5rem; }
:where(.p-news) .featured-card-date { font-size: 0.8rem; opacity: 0.6; }
:where(.p-news) .news-list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border-light); flex-wrap: wrap; gap: 1rem; }
:where(.p-news) .news-list-header h2 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--text-dark); margin: 0; }
:where(.p-news) .news-filter { display: flex; gap: 8px; flex-wrap: wrap; }
:where(.p-news) .news-filter-btn { padding: 6px 18px; border-radius: 30px; border: 1.5px solid var(--border-light); background: transparent; color: var(--text-body); font-size: 0.85rem; cursor: pointer; transition: all 0.25s; }
:where(.p-news) .news-filter-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
:where(.p-news) .news-filter-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
:where(.p-news) .news-list { display: flex; flex-direction: column; gap: 1.5rem; }
:where(.p-news) .news-item { display: flex; gap: 1.5rem; padding: 1.5rem; background: var(--white); border-radius: 16px; border: 1px solid var(--border-light); transition: all 0.3s; cursor: pointer; text-decoration: none; color: inherit; }
:where(.p-news) .news-item:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); transform: translateX(6px); border-color: var(--primary-light); }
:where(.p-news) .news-item-img { width: 200px; height: 140px; border-radius: 12px; flex-shrink: 0; overflow: hidden; }
:where(.p-news) .news-item-img-bg { width: 100%; height: 100%; transition: transform 0.5s; }
:where(.p-news) .news-item:hover .news-item-img-bg { transform: scale(1.05); }
:where(.p-news) .news-item-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
:where(.p-news) .news-item-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 0.5rem; }
:where(.p-news) .news-item-date { font-size: 0.8rem; color: var(--text-light); }
:where(.p-news) .news-item-tag { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
:where(.p-news) .news-item-body h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.4rem; }
:where(.p-news) .news-item-body p { font-size: 0.88rem; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
:where(.p-news) .pagination-wrapper { display: flex; justify-content: center; gap: 8px; margin-top: 3rem; }
:where(.p-news) .page-btn { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border-light); background: var(--white); color: var(--text-body); font-size: 0.9rem; cursor: pointer; transition: all 0.25s; }
:where(.p-news) .page-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
:where(.p-news) .page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
:where(.p-news) .page-btn .material-symbols-outlined { font-size: 1.2rem; }

/* --- partner --- */
:where(.p-partner) .intro-text { max-width: 800px; margin: 0 auto; text-align: center; }
:where(.p-partner) .partner-section { background: var(--bg-cream); }
:where(.p-partner) .partner-card { background: var(--white); border-radius: 20px; padding: 2.5rem 2rem; border: 1px solid var(--border-light); text-align: center; transition: all 0.3s; text-decoration: none; display: block; height: 100%; }
:where(.p-partner) .partner-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(58,125,68,0.08); border-color: var(--primary-light); }
:where(.p-partner) .partner-logo { width: 100px; height: 100px; margin: 0 auto 1.5rem; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; border: 1px solid var(--border-light); }
:where(.p-partner) .partner-card h4 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
:where(.p-partner) .partner-card .partner-type { font-size: 0.78rem; font-weight: 600; padding: 3px 12px; border-radius: 20px; display: inline-block; margin-bottom: 0.8rem; }
:where(.p-partner) .partner-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; margin-bottom: 1rem; }
:where(.p-partner) .partner-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--primary); font-weight: 500; text-decoration: none; transition: color 0.25s; }
:where(.p-partner) .partner-link:hover { color: var(--accent); }
:where(.p-partner) .partner-link .material-symbols-outlined { font-size: 1rem; }

/* --- partner, story --- */
:where(.p-partner, .p-story) .team-unit { display: flex; gap: 0; align-items: stretch; background: var(--white); border-radius: 20px; overflow: hidden; border: 1px solid var(--border-light); margin-bottom: 1.5rem; transition: all 0.3s; }
:where(.p-partner, .p-story) .team-unit:hover { box-shadow: 0 16px 48px rgba(58,125,68,0.08); border-color: var(--primary-light); }

/* --- partner --- */
:where(.p-partner) .team-unit-photo { flex: 0 0 320px; min-height: 260px; position: relative; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }

/* --- story --- */
:where(.p-story) .team-unit-photo { flex: 0 0 300px; min-height: 240px; position: relative; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent), #C17A1A); }

/* --- partner, story --- */
:where(.p-partner, .p-story) .team-unit-photo img { width: 100%; height: 100%; object-fit: cover; }
:where(.p-partner, .p-story) .team-unit-photo .material-symbols-outlined { font-size: 3.2rem; color: rgba(255,255,255,0.35); }
:where(.p-partner, .p-story) .team-unit-body { flex: 1; padding: 2.2rem 2.4rem; }

/* --- partner --- */
:where(.p-partner) .team-unit-tag { font-size: 0.75rem; font-weight: 600; padding: 3px 12px; border-radius: 20px; display: inline-block; margin-bottom: 0.7rem; background: rgba(58,125,68,0.1); color: var(--primary); }

/* --- story --- */
:where(.p-story) .team-unit-tag { font-size: 0.75rem; font-weight: 600; padding: 3px 12px; border-radius: 20px; display: inline-block; margin-bottom: 0.7rem; background: rgba(212,146,42,0.12); color: var(--accent); }

/* --- partner, story --- */
:where(.p-partner, .p-story) .team-unit-body h4 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.9rem; }

/* --- partner --- */
:where(.p-partner) .team-unit-body p { font-size: 0.92rem; color: var(--text-body); line-height: 1.95; margin: 0; }
:where(.p-partner) .team-unit-body p + p { margin-top: 0.8rem; }

/* --- story --- */
:where(.p-story) .team-unit-body p { font-size: 0.92rem; color: var(--text-body); line-height: 1.95; margin-bottom: 1rem; }

/* --- partner --- */
:where(.p-partner) .team-more { border: 1.5px dashed var(--border-light); border-radius: 16px; padding: 1.4rem; text-align: center; color: var(--text-light); font-size: 0.88rem; background: transparent; }

/* --- story --- */
:where(.p-story) .team-more { border: 1.5px dashed var(--border-light); border-radius: 16px; padding: 1.4rem; text-align: center; color: var(--text-light); font-size: 0.88rem; }

/* --- partner, story --- */
:where(.p-partner, .p-story) .team-more .material-symbols-outlined { font-size: 1.2rem; vertical-align: middle; margin-right: 4px; }

/* --- productdetail --- */
:where(.p-productdetail) .product-section { padding: 2.5rem 0 4rem; }
:where(.p-productdetail) .gallery-main { border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--border-light); margin-bottom: 0.8rem; }
:where(.p-productdetail) .gallery-main .swiper-slide { aspect-ratio: 1/1; background: linear-gradient(135deg, #8B6914, #6B4E12); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.2); font-size: 5rem; }
:where(.p-productdetail) .product-tag { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; background: rgba(139,105,20,0.12); color: #8B6914; margin-bottom: 1rem; }

/* --- shop --- */
:where(.p-shop) .product-tag { display: inline-block; margin-left: 0.8rem; padding: 2px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 500; vertical-align: middle; }

/* --- productdetail --- */
:where(.p-productdetail) .product-title { font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
:where(.p-productdetail) .product-subtitle { font-size: 1rem; color: var(--text-light); margin-bottom: 1.5rem; }
:where(.p-productdetail) .product-price { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-light); }

/* --- shop --- */
:where(.p-shop) .product-price { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--accent); }

/* --- productdetail --- */
:where(.p-productdetail) .product-price .price-label { font-size: 0.85rem; color: var(--text-light); }
:where(.p-productdetail) .product-price .price-value { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--accent); }
:where(.p-productdetail) .product-price .price-unit { font-size: 0.9rem; color: var(--text-light); }
:where(.p-productdetail) .product-info-block { margin-bottom: 1.8rem; }
:where(.p-productdetail) .product-info-block h3 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.6rem; display: flex; align-items: center; gap: 6px; }
:where(.p-productdetail) .product-info-block h3 .material-symbols-outlined { color: var(--primary); font-size: 1.2rem; }
:where(.p-productdetail) .product-info-block p { font-size: 0.95rem; color: var(--text-body); line-height: 1.9; margin: 0; }
:where(.p-productdetail) .spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
:where(.p-productdetail) .spec-table th { padding: 10px 14px; border: 1px solid var(--border-light); text-align: left; }
:where(.p-productdetail) .spec-table th { background: var(--bg-cream); font-weight: 600; color: var(--text-dark); width: 30%; }
:where(.p-productdetail) .spec-table td { padding: 10px 14px; border: 1px solid var(--border-light); text-align: left; }
:where(.p-productdetail) .purchase-card { background: linear-gradient(135deg, var(--accent), #C17A1A); color: var(--white); border-radius: 20px; padding: 1.8rem; margin-top: 1.5rem; }
:where(.p-productdetail) .purchase-card h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 0.3rem; color: var(--white); }
:where(.p-productdetail) .purchase-card > p { font-size: 0.88rem; opacity: 0.9; margin-bottom: 1.2rem; }
:where(.p-productdetail) .purchase-list { list-style: none; padding: 0; margin: 0; }
:where(.p-productdetail) .purchase-list li { display: flex; align-items: center; gap: 10px; padding: 0.6rem 0; font-size: 0.92rem; border-bottom: 1px solid rgba(255,255,255,0.2); }
:where(.p-productdetail) .purchase-list li:last-child { border-bottom: none; }
:where(.p-productdetail) .purchase-list a { color: var(--white); text-decoration: none; }
:where(.p-productdetail) .purchase-list a:hover { text-decoration: underline; }
:where(.p-productdetail) .purchase-line-btn { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; padding: 0.5rem 1.15rem; background: var(--white); color: var(--accent); font-size: 0.9rem; font-weight: 500; border-radius: 999px; text-decoration: none; transition: all 0.25s; }
:where(.p-productdetail) .purchase-line-btn:hover { background: var(--text-dark); color: var(--white); }
:where(.p-productdetail) .purchase-line-btn .material-symbols-outlined { font-size: 1.1rem; color: inherit; }
:where(.p-productdetail) .product-card { border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--border-light); transition: all 0.35s; text-decoration: none; color: inherit; display: block; height: 100%; }

/* --- shop --- */
:where(.p-shop) .product-card { border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--border-light); transition: all 0.35s; cursor: pointer; height: 100%; }

/* --- productdetail --- */
:where(.p-productdetail) .product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(212,146,42,0.1); color: inherit; }

/* --- shop --- */
:where(.p-shop) .product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(212,146,42,0.1); }

/* --- productdetail --- */
:where(.p-productdetail) .product-card-visual { height: 180px; position: relative; overflow: hidden; }

/* --- shop --- */
:where(.p-shop) .product-card-visual { height: 240px; position: relative; overflow: hidden; }

/* --- productdetail, shop --- */
:where(.p-productdetail, .p-shop) .product-card-bg { width: 100%; height: 100%; transition: transform 0.5s; display: flex; align-items: center; justify-content: center; }
:where(.p-productdetail, .p-shop) .product-card:hover .product-card-bg { transform: scale(1.05); }

/* --- productdetail --- */
:where(.p-productdetail) .product-card-bg .material-symbols-outlined { font-size: 2.5rem; color: rgba(255,255,255,0.2); }

/* --- shop --- */
:where(.p-shop) .product-card-bg .material-symbols-outlined { font-size: 3rem; color: rgba(255,255,255,0.2); }

/* --- productdetail --- */
:where(.p-productdetail) .product-card-body { padding: 1.2rem; }

/* --- shop --- */
:where(.p-shop) .product-card-body { padding: 1.5rem; }

/* --- productdetail --- */
:where(.p-productdetail) .product-card-body h4 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.3rem; }
:where(.p-productdetail) .product-card-body p { font-size: 0.82rem; color: var(--text-light); margin-bottom: 0.8rem; }

/* --- shop --- */
:where(.p-shop) .product-card-body p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 1rem; }

/* --- productdetail --- */
:where(.p-productdetail) .product-card-price { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--accent); }

/* --- recruit --- */
:where(.p-recruit) .role-card { background: var(--bg-cream); border: 1px solid var(--border-light); border-radius: 16px; padding: 1.8rem; height: 100%; }
:where(.p-recruit) .role-card-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }
:where(.p-recruit) .role-card-head .material-symbols-outlined { font-size: 1.8rem; color: var(--primary); }
:where(.p-recruit) .role-card-head h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin: 0; }
:where(.p-recruit) .role-card p { font-size: 0.92rem; line-height: 1.9; margin: 0; }
:where(.p-recruit) .recruit-facts { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
:where(.p-recruit) .recruit-fact { flex: 1 1 240px; padding: 1.2rem 1.4rem; border-radius: 14px; background: var(--bg-cream); border: 1px solid var(--border-light); }
:where(.p-recruit) .recruit-fact-label { font-size: 0.8rem; color: var(--text-light); font-weight: 600; display: flex; align-items: center; gap: 6px; margin-bottom: 0.4rem; }
:where(.p-recruit) .recruit-fact-label .material-symbols-outlined { font-size: 1.05rem; color: var(--primary); }
:where(.p-recruit) .recruit-fact-value { font-size: 0.95rem; color: var(--text-dark); line-height: 1.7; }
:where(.p-recruit) .apply-box { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); border-radius: 20px; padding: 2.5rem; margin-top: 2.5rem; }
:where(.p-recruit) .apply-box h2 { color: var(--white); margin-top: 0; }
:where(.p-recruit) .apply-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
:where(.p-recruit) .apply-list li { display: flex; align-items: center; gap: 12px; padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.2); font-size: 1rem; }
:where(.p-recruit) .apply-list li:last-child { border-bottom: none; }
:where(.p-recruit) .apply-list .material-symbols-outlined { font-size: 1.4rem; opacity: 0.9; }
:where(.p-recruit) .apply-list a { color: var(--white); text-decoration: underline; }

/* --- search --- */
:where(.p-search) .search-keyword { color: var(--accent-light); font-family: var(--font-body); }
:where(.p-search) .page-header-meta { font-size: 0.9rem; opacity: 0.7; }

/* --- storydetail --- */
:where(.p-storydetail) .page-header-meta { display: flex; justify-content: center; gap: 1.5rem; font-size: 0.88rem; opacity: 0.7; flex-wrap: wrap; }

/* --- search --- */
:where(.p-search) .search-rebox { max-width: 560px; margin: 1.5rem auto 0; display: flex; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 50px; padding: 4px 4px 4px 20px; align-items: center; gap: 8px; }
:where(.p-search) .search-rebox input { flex: 1; background: transparent; border: none; outline: none; color: var(--white); font-size: 0.95rem; font-family: inherit; }
:where(.p-search) .search-rebox input::placeholder { color: rgba(255,255,255,0.5); }
:where(.p-search) .search-rebox button { background: var(--accent); border: none; color: var(--white); border-radius: 50px; padding: 8px 20px; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; gap: 4px; font-family: inherit; transition: background 0.2s; }
:where(.p-search) .search-rebox button:hover { background: var(--accent-light); }
:where(.p-search) .results-section { padding: 50px 0 80px; }
:where(.p-search) .results-summary { font-size: 0.92rem; color: var(--text-light); margin-bottom: 1.5rem; }
:where(.p-search) .results-summary strong { color: var(--primary); font-weight: 600; }
:where(.p-search) .filter-pills { gap: 0.5rem; margin-bottom: 2rem; }
:where(.p-search) .filter-pills .nav-link { padding: 8px 20px; border-radius: 50px; color: var(--text-body); background: var(--white); border: 1px solid var(--border-light); font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s; }
:where(.p-search) .filter-pills .nav-link:hover { border-color: var(--primary-light); color: var(--primary); }
:where(.p-search) .filter-pills .nav-link.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
:where(.p-search) .filter-pills .count { padding: 1px 8px; border-radius: 20px; font-size: 0.72rem; background: rgba(0,0,0,0.08); color: inherit; }
:where(.p-search) .filter-pills .nav-link.active .count { background: rgba(255,255,255,0.22); }
:where(.p-search) .result-card { background: var(--white); border: 1px solid var(--border-light); border-radius: 16px; padding: 1.5rem; margin-bottom: 1rem; text-decoration: none; color: inherit; display: block; transition: all 0.25s; }
:where(.p-search) .result-card:hover { transform: translateX(4px); border-color: var(--primary-light); box-shadow: 0 8px 24px rgba(0,0,0,0.06); color: inherit; }
:where(.p-search) .result-card-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-light); margin-bottom: 0.6rem; }
:where(.p-search) .result-type-badge { padding: 3px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.5px; }
:where(.p-search) .result-type-badge.news { background: #E8F5E9; color: #2E7D32; }
:where(.p-search) .result-type-badge.activity { background: #FFF3E0; color: #E65100; }
:where(.p-search) .result-type-badge.spot { background: #E3F2FD; color: #1565C0; }
:where(.p-search) .result-type-badge.story { background: #F3E5F5; color: #6A1B9A; }
:where(.p-search) .result-type-badge.product { background: #FFF8E1; color: #F57F17; }
:where(.p-search) .result-type-badge.book { background: #FCE4EC; color: #C62828; }
:where(.p-search) .result-date { display: inline-flex; align-items: center; gap: 4px; }
:where(.p-search) .result-date .material-symbols-outlined { font-size: 1rem; }
:where(.p-search) .result-card h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; line-height: 1.5; }
:where(.p-search) .result-card h3 mark { background: rgba(212, 146, 42, 0.2); color: inherit; padding: 0 2px; font-weight: inherit; }
:where(.p-search) .result-card p { font-size: 0.9rem; color: var(--text-body); line-height: 1.8; margin: 0; }
:where(.p-search) .result-card p mark { background: rgba(212, 146, 42, 0.2); color: inherit; padding: 0 2px; }
:where(.p-search) .empty-state { text-align: center; padding: 4rem 1rem; background: var(--white); border-radius: 20px; border: 1px solid var(--border-light); }
:where(.p-search) .empty-state .empty-icon { width: 100px; height: 100px; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; background: var(--bg-cream); border-radius: 50%; }
:where(.p-search) .empty-state .empty-icon .material-symbols-outlined { font-size: 3rem; color: var(--text-light); }
:where(.p-search) .empty-state h3 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--text-dark); margin-bottom: 0.8rem; }
:where(.p-search) .empty-state p { color: var(--text-light); max-width: 400px; margin: 0 auto 1.5rem; line-height: 1.9; }
:where(.p-search) .empty-state-hint { background: var(--bg-cream); border-radius: 12px; padding: 1rem 1.5rem; max-width: 480px; margin: 1.5rem auto 0; text-align: left; font-size: 0.88rem; color: var(--text-body); }
:where(.p-search) .empty-state-hint strong { color: var(--primary); }
:where(.p-search) .empty-state-hint ul { margin: 0.5rem 0 0 1.2rem; padding: 0; }
:where(.p-search) .empty-state-hint li { margin-bottom: 0.3rem; line-height: 1.8; }
:where(.p-search) .pagination { justify-content: center; margin: 3rem 0 0; gap: 0.25rem; }
:where(.p-search) .pagination .page-link { border-radius: 10px; border: 1px solid var(--border-light); color: var(--text-body); padding: 8px 14px; font-size: 0.88rem; transition: all 0.2s; }
:where(.p-search) .pagination .page-link:hover { background: var(--bg-cream); color: var(--primary); border-color: var(--primary-light); }
:where(.p-search) .pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: var(--white); }
:where(.p-search) .pagination .page-item.disabled .page-link { color: var(--text-light); background: var(--bg-cream); }

/* --- shop --- */
:where(.p-shop) .shop-tabs { display: flex; gap: 8px; margin-bottom: 2.5rem; flex-wrap: wrap; }
:where(.p-shop) .shop-tab { padding: 8px 22px; border-radius: 30px; border: 1.5px solid var(--border-light); background: transparent; color: var(--text-body); font-size: 0.9rem; cursor: pointer; transition: all 0.25s; }
:where(.p-shop) .shop-tab:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
:where(.p-shop) .shop-tab.active { background: var(--accent); color: var(--white); border-color: var(--accent); }
:where(.p-shop) .product-badge { position: absolute; top: 1rem; right: 1rem; padding: 4px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; color: var(--white); }
:where(.p-shop) .product-card-body h3 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.4rem; }
/* 商品卡的標題與介紹字數不定，長的會把版面撐得參差不齊。
   標題最多兩行、介紹三行，超過的收掉（使用者指定 2026-08-06）。
   兩者都用 min-height 先把行數的高度佔住 —— 只夾行不佔位的話，一行的卡片
   底下價格會往上跑，同一列卡片之間就有高低差。3em = 2 行 × line-height 1.5，
   5.1em = 3 行 × 1.7（em 是相對自己的 font-size，改字級不用重算）。
   只掛在連到商品的 a.product-card 上：列表尾巴那張「更多好物陸續上架」的
   虛線佔位卡是置中排版，佔住行高只會多出一塊空白。 */
:where(.p-shop) a.product-card .product-card-body h3 { line-height: 1.5; min-height: 3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:where(.p-shop) a.product-card .product-card-body p { line-height: 1.7; min-height: 5.1em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
:where(.p-shop) .notice-banner { border-radius: 20px; padding: 2.5rem; margin-top: 3rem; background: linear-gradient(135deg, rgba(58,125,68,0.06), rgba(212,146,42,0.06)); border: 1px dashed var(--border-light); text-align: center; }
:where(.p-shop) .notice-banner .material-symbols-outlined { font-size: 2.5rem; color: var(--accent); margin-bottom: 1rem; display: block; }
:where(.p-shop) .notice-banner h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-dark); margin-bottom: 0.5rem; }
:where(.p-shop) .notice-banner p { font-size: 0.95rem; color: var(--text-light); max-width: 500px; margin: 0 auto; }
:where(.p-shop) .notice-line-btn { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.1rem; padding: 0.5rem 1.25rem; background: var(--primary); color: var(--white); font-size: 0.92rem; font-weight: 500; border-radius: 999px; text-decoration: none; transition: background 0.25s; }
:where(.p-shop) .notice-line-btn:hover { background: var(--primary-light); }
/* 蓋掉 .notice-banner 那顆 2.5rem block 大圖示的設定，按鈕內的 icon 要跟文字同行 */
:where(.p-shop) .notice-line-btn .material-symbols-outlined { font-size: 1.1rem; color: inherit; display: inline; margin: 0; }

/* --- spotdetail --- */
:where(.p-spotdetail) .spot-hero { position: relative; width: 100%; height: 420px; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; }
:where(.p-spotdetail) .spot-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,0.6)); }
:where(.p-spotdetail) .spot-hero .material-symbols-outlined { font-size: 5rem; color: rgba(255,255,255,0.18); }
:where(.p-spotdetail) .spot-badge { position: absolute; top: 1.5rem; left: 1.5rem; z-index: 2; padding: 8px 20px; background: var(--accent); color: var(--white); border-radius: 30px; font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; font-family: var(--font-heading); }
:where(.p-spotdetail) .spot-title-overlay { position: absolute; left: 2rem; right: 2rem; bottom: 1.8rem; z-index: 2; color: var(--white); }
:where(.p-spotdetail) .spot-title-overlay h1 { font-family: var(--font-heading); font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; margin: 0; }
:where(.p-spotdetail) .info-card { background: var(--white); border: 1px solid var(--border-light); border-radius: 16px; padding: 1.5rem; height: 100%; }
:where(.p-spotdetail) .info-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--primary); }
:where(.p-spotdetail) .info-card-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(58,125,68,0.12); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
:where(.p-spotdetail) .info-card-header h3 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin: 0; }
:where(.p-spotdetail) .info-card dl { margin: 0; }
:where(.p-spotdetail) .info-card dt { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.2rem; }
:where(.p-spotdetail) .info-card dd { font-size: 0.95rem; color: var(--text-dark); margin-bottom: 0.8rem; line-height: 1.6; }
:where(.p-spotdetail) .info-card dd:last-child { margin-bottom: 0; }
:where(.p-spotdetail) .facility-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
:where(.p-spotdetail) .facility-list li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; background: var(--bg-cream); border-radius: 20px; font-size: 0.82rem; color: var(--text-body); }
:where(.p-spotdetail) .facility-list .material-symbols-outlined { font-size: 0.95rem; color: var(--primary); }
:where(.p-spotdetail) .map-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--border-light); background: linear-gradient(135deg, #dfe8d5, #c5d1b5); aspect-ratio: 16/9; position: relative; }
:where(.p-spotdetail) .map-frame::after { content: '地圖位置（Google Maps embed）'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(44,62,45,0.35); font-size: 1rem; font-weight: 500; }
:where(.p-spotdetail) .species-card { cursor: pointer; display: flex; gap: 14px; padding: 1rem; background: var(--bg-cream); border-radius: 14px; border: 1px solid var(--border-light); transition: all 0.25s; text-decoration: none; color: inherit; height: 100%; }
:where(.p-spotdetail) .species-card:hover { border-color: var(--primary-light); box-shadow: 0 8px 24px rgba(58,125,68,0.08); color: inherit; }
:where(.p-spotdetail) .species-img { width: 64px; height: 64px; border-radius: 12px; background: linear-gradient(135deg, var(--secondary), var(--primary)); display: flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0; }
:where(.p-spotdetail) .species-body h5 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.2rem; }
:where(.p-spotdetail) .species-body p { font-size: 0.82rem; color: var(--text-light); margin: 0; }
:where(.p-spotdetail) .species-tag { display: inline-block; margin-top: 0.3rem; padding: 1px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 500; background: rgba(58,125,68,0.1); color: var(--primary); }
:where(.p-spotdetail) .spot-nav-item { padding: 1.5rem; border-radius: 16px; background: var(--bg-warm); border: 1px solid var(--border-light); text-decoration: none; transition: all 0.3s; display: flex; align-items: center; gap: 1rem; height: 100%; }
:where(.p-spotdetail) .spot-nav-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.05); border-color: var(--primary-light); }
:where(.p-spotdetail) .spot-nav-item.next { flex-direction: row-reverse; text-align: right; }
:where(.p-spotdetail) .spot-nav-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
:where(.p-spotdetail) .spot-nav-label { font-size: 0.78rem; color: var(--text-light); margin-bottom: 0.2rem; }
:where(.p-spotdetail) .spot-nav-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-dark); line-height: 1.4; }

/* --- story --- */
:where(.p-story) .stories-section { background: var(--white); }
:where(.p-story) .story-card { border-radius: 20px; overflow: hidden; background: var(--bg-cream); border: 1px solid var(--border-light); transition: all 0.35s; cursor: pointer; height: 100%; }

/* --- storydetail --- */
:where(.p-storydetail) .story-card { border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--border-light); transition: all 0.3s; text-decoration: none; color: inherit; display: block; height: 100%; }

/* --- story --- */
:where(.p-story) .story-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.08); }

/* --- storydetail --- */
:where(.p-storydetail) .story-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.06); color: inherit; }

/* --- story --- */
:where(.p-story) .story-card-visual { height: 220px; position: relative; overflow: hidden; }
:where(.p-story) .story-card-bg { width: 100%; height: 100%; transition: transform 0.5s; }
:where(.p-story) .story-card:hover .story-card-bg { transform: scale(1.05); }
:where(.p-story) .story-card-body { padding: 1.5rem; }

/* --- storydetail --- */
:where(.p-storydetail) .story-card-body { padding: 1.3rem; }

/* --- story --- */
:where(.p-story) .story-card-tag { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-bottom: 0.8rem; }
:where(.p-story) .story-card-body h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
:where(.p-story) .story-card-body p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
:where(.p-story) .story-read-more { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; color: var(--primary); font-weight: 500; text-decoration: none; transition: all 0.25s; }
:where(.p-story) .story-read-more:hover { color: var(--primary-dark); transform: translateX(4px); }
:where(.p-story) .story-read-more .material-symbols-outlined { font-size: 1rem; }
:where(.p-story) .people-section { background: var(--bg-cream); }
:where(.p-story) .people-cat {display:flex;align-items:center;gap:10px;margin:2.2rem 0 1.3rem; }
:where(.p-story) .people-cat .material-symbols-outlined {font-size:1.5rem;color:var(--accent); }
:where(.p-story) .people-cat h3 {font-family:var(--font-heading);font-size:1.25rem;font-weight:900;color:var(--text-dark);margin:0; }
:where(.p-story) .people-cat .line {flex:1;height:1px;background:var(--border-light); }
:where(.p-story) .people-card { text-align: center; padding: 2.2rem 1.4rem 1.8rem; border-radius: 20px; background: var(--white); border: 1px solid var(--border-light); transition: all 0.3s; cursor: pointer; height: 100%; display: flex; flex-direction: column; align-items: center; }
:where(.p-story) .people-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.07); transform: translateY(-4px); }
:where(.p-story) .people-avatar { width: 100px; height: 100px; margin: 0 auto 1.2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; transition: transform 0.3s; overflow: hidden; background-size: cover; background-position: center; }
:where(.p-story) .people-card:hover .people-avatar { transform: scale(1.05); }
:where(.p-story) .people-card h4 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.3rem; }
:where(.p-story) .people-card .people-role { font-size: 0.82rem; color: var(--accent); font-weight: 500; margin-bottom: 0.8rem; }
:where(.p-story) .people-card .people-excerpt { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; margin: 0 0 0.9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:where(.p-story) .people-card .people-more { margin-top: auto; font-size: 0.83rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
:where(.p-story) .people-card .people-more .material-symbols-outlined { font-size: 1rem; }
:where(.p-story) .pmodal {position:fixed;inset:0;background:rgba(0,0,0,0.6);z-index:2000;display:none;align-items:center;justify-content:center;padding:1.5rem; }
:where(.p-story) .pmodal.open {display:flex; }
:where(.p-story) .pmodal-box {background:var(--white);border-radius:20px;max-width:600px;width:100%;max-height:88vh;overflow:auto;position:relative;text-align:center;padding:2.6rem 2rem 2.2rem; }
:where(.p-story) .pmodal-avatar {width:130px;height:130px;border-radius:50%;margin:0 auto 1.1rem;display:flex;align-items:center;justify-content:center;font-size:3rem;background-size:cover;background-position:center;overflow:hidden; }
:where(.p-story) .pmodal-box .role {font-size:0.82rem;color:var(--accent);font-weight:600; }
:where(.p-story) .pmodal-box h3 {font-family:var(--font-heading);font-size:1.5rem;font-weight:900;color:var(--text-dark);margin:0.3rem 0 1.1rem; }
:where(.p-story) .pmodal-box p {font-size:0.95rem;line-height:2;color:var(--text-body);margin:0;text-align:left; }
:where(.p-story) .pmodal-close {position:absolute;top:1rem;right:1rem;width:38px;height:38px;border-radius:50%;background:var(--bg-cream);border:none;display:flex;align-items:center;justify-content:center;cursor:pointer; }
:where(.p-story) .book-section { background: var(--white); }
:where(.p-story, .p-bookdetail) .book-card { height: 100%; background: var(--white); border: 1px solid var(--border-light); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: all 0.3s; }
:where(.p-story, .p-bookdetail) .book-card:hover { transform: translateY(-6px); color: inherit; border-color: var(--primary-light); box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
:where(.p-story, .p-bookdetail) .book-visual { height: 180px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
:where(.p-story, .p-bookdetail) .book-visual .material-symbols-outlined { font-size: 4rem; color: rgba(255,255,255,0.3); position: relative; z-index: 2; }
:where(.p-story, .p-bookdetail) .book-type-tag { position: absolute; top: 1rem; right: 1rem; z-index: 3; padding: 4px 12px; background: rgba(255,255,255,0.95); color: var(--text-dark); border-radius: 20px; font-size: 0.72rem; font-weight: 600; letter-spacing: 1px; }
:where(.p-story, .p-bookdetail) .book-info { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
:where(.p-story, .p-bookdetail) .book-info h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.3rem; line-height: 1.4; }
:where(.p-story, .p-bookdetail) .book-subtitle { font-size: 0.78rem; color: var(--text-light); letter-spacing: 0.5px; margin-bottom: 0.8rem; }
:where(.p-story, .p-bookdetail) .book-desc { font-size: 0.88rem; color: var(--text-body); line-height: 1.7; margin-bottom: 1rem; flex: 1; }
:where(.p-story, .p-bookdetail) .book-action { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 500; color: var(--primary); }
:where(.p-story, .p-bookdetail) .book-action .material-symbols-outlined { font-size: 1.05rem; }
:where(.p-story, .p-bookdetail) .book-card:hover .book-action { color: var(--accent); }
:where(.p-story) .btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; background: transparent; color: var(--primary); border: 2px solid var(--primary); border-radius: 50px; font-size: 1rem; font-weight: 500; cursor: pointer; text-decoration: none; transition: all 0.3s; }
:where(.p-story) .btn-outline:hover { background: var(--primary); color: var(--white); }
:where(.p-story) .video-section { background: var(--bg-cream); }
:where(.p-story) .video-card { border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--border-light); transition: all 0.3s; height: 100%; }
:where(.p-story) .video-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.06); transform: translateY(-4px); }
/* demo-book 的有聲書影片也用這組（原本只圈給 p-story，那一頁吃不到） */
:where(.p-story, .p-bookdetail) .video-embed { position: relative; background: var(--dark); }
:where(.p-story, .p-bookdetail) .video-embed iframe { width: 100%; height: 100%; border: 0; }
:where(.p-story) .video-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
:where(.p-story) .video-play-btn { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(0,0,0,0.2); transition: all 0.3s; }
:where(.p-story) .video-play-btn .material-symbols-outlined { font-size: 2rem; color: var(--primary); margin-left: 4px; }
:where(.p-story) .video-card:hover .video-play-btn { transform: scale(1.1); }
:where(.p-story) .video-card-body { padding: 1.2rem 1.5rem; }
:where(.p-story) .video-card-body h4 { font-size: 1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.3rem; }
:where(.p-story) .video-card-body p { font-size: 0.85rem; color: var(--text-light); margin: 0; }
:where(.p-story) .team-unit-body p:last-child { margin-bottom: 0; }

/* --- storydetail --- */
:where(.p-storydetail) .page-header-meta span { display: flex; align-items: center; gap: 6px; }
:where(.p-storydetail) .page-header-meta .material-symbols-outlined { font-size: 1rem; }
:where(.p-storydetail) .article-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,0.5)); }
:where(.p-storydetail) .article-category-badge { position: absolute; top: 1.5rem; left: 1.5rem; z-index: 2; padding: 6px 16px; background: var(--accent); color: var(--white); border-radius: 30px; font-size: 0.82rem; font-weight: 600; }
:where(.p-storydetail) .article-body blockquote { border-left: 4px solid var(--primary); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--bg-cream); border-radius: 0 12px 12px 0; color: var(--text-body); font-style: normal; }
:where(.p-storydetail) .share-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-light); }
:where(.p-storydetail) .share-row .label { font-size: 0.9rem; color: var(--text-light); }
:where(.p-storydetail) .share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 50px; background: var(--bg-cream); color: var(--text-body); text-decoration: none; font-size: 0.88rem; border: 1px solid var(--border-light); transition: all 0.25s; cursor: pointer; }
:where(.p-storydetail) .share-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
:where(.p-storydetail) .share-btn .material-symbols-outlined { font-size: 1.05rem; }
:where(.p-storydetail) .story-card-img { height: 180px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.18); font-size: 2.5rem; position: relative; }
:where(.p-storydetail) .story-card-category { position: absolute; bottom: 1rem; left: 1rem; padding: 3px 12px; background: var(--accent); color: var(--white); border-radius: 20px; font-size: 0.75rem; font-weight: 500; }
:where(.p-storydetail) .story-card-body h4 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; line-height: 1.5; }
:where(.p-storydetail) .story-card-meta { font-size: 0.82rem; color: var(--text-light); }

@media (max-width: 1199.98px) {
    .navbar-main .navbar-collapse { background: var(--dark-overlay); backdrop-filter: blur(20px); padding: 0.5rem 0; margin-top: 0.5rem; border-radius: 0.5rem; }
    .navbar-main .navbar-nav .nav-link { padding: 0.8rem 1.5rem; }
}

@media (max-width: 991.98px) {
    .site-header { min-height: auto; }
    .navbar-toggler { display: block; }
    .header-nav { position: absolute; bottom: auto; top: 100%; left: 0; right: 0; z-index: 1000; }
    .header-nav .nav-list { display: none; flex-direction: column; background: rgba(52, 74, 37, 0.95); padding: 0.5rem 0; }
    .header-nav .nav-list.show { display: flex; }
    .header-nav .nav-list a { padding: 0.7rem 1.5rem; }
    .header-nav .dropdown-menu { position: static !important; background: transparent !important; backdrop-filter: none !important; box-shadow: none !important; border-radius: 0 !important; margin-bottom: 0 !important; padding: 0 !important; min-width: auto !important; }
    .header-nav .has-dropdown:hover > .dropdown-menu { display: none !important; }
    .header-nav .has-dropdown.open > .dropdown-menu { display: block !important; }
    .header-nav .dropdown-menu a { padding: 0.5rem 2.5rem !important; font-size: 0.85rem !important; border-bottom: none !important; opacity: 0.7; }
    .header-nav .dropdown-menu a:hover { opacity: 1; background: transparent !important; }
    :where(.p-index) .products-text { margin-bottom: 1.5rem; }
    :where(.p-index) .news-main-photo { margin-bottom: 1.5rem; }
    :where(.p-index) .news-main-photo img { min-height: 250px; }
    :where(.p-about-master) .other-masters-grid { grid-template-columns: repeat(3, 1fr); }
    :where(.p-about-org) .org-hero-img { height: 240px; }
    :where(.p-about-org, .p-about-service) .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    :where(.p-about-service) .service-hero-img { height: 220px; }
    :where(.p-about) .masters-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 575px) {
    .map-viewer-bar { top: 10px; left: 10px; right: 10px; }
    .map-viewer-title { font-size: 0.88rem; }
    .map-viewer-btn { width: 38px; height: 38px; }
    .map-viewer-hint { font-size: 0.75rem; bottom: 12px; }
    :where(.p-explore) .map-zoom-hint { right: 10px; bottom: 10px; padding: 6px 12px; font-size: 0.78rem; }
}

@media (max-width: 575.98px) {
    :where(.p-index) .news-card-thumb { width: 80px; }
    :where(.p-about-master) .other-masters-grid { grid-template-columns: repeat(2, 1fr); }
    :where(.p-about-master) .profile-avatar { width: 120px; height: 120px; }
    :where(.p-about) .masters-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
    :where(.p-explore) .postcard-strip > .postcard-item { flex-basis: 82%; }
    :where(.p-explore) .postcard-nav { display: none; }
    :where(.p-about) .org-card-img { height: 140px; }
    :where(.p-about) .master-avatar { width: 80px; height: 80px; }
    :where(.p-news-detail-media, .p-news-detail) .article-nav-item.next { text-align: left; }
    :where(.p-news-detail-media, .p-news-detail) .article-nav-item.next .article-nav-label { justify-content: flex-start; }
    :where(.p-news-detail-media, .p-news-detail) .article-cover { height: 260px; }
    :where(.p-news-detail-media, .p-news-detail, .p-recruit) .article-body { padding: 2rem 1.5rem; }
    :where(.p-news) .news-item { flex-direction: column; }
    :where(.p-news) .news-item-img { width: 100%; height: 200px; }
    :where(.p-partner, .p-story) .team-unit { flex-direction: column; }
    :where(.p-partner) .team-unit-photo { flex-basis: auto; min-height: 200px; }
    :where(.p-story) .team-unit-photo { flex-basis: auto; min-height: 180px; }
    :where(.p-partner, .p-story) .team-unit-body { padding: 1.8rem 1.5rem; }
    :where(.p-recruit) .apply-box { padding: 1.8rem; }
}

@media (max-width: 768px) {
    :where(.p-bookdetail) .pdf-placeholder { height: 350px; }
    :where(.p-bookdetail) .pdf-container iframe { height: 350px; }
    :where(.p-donate) .honor-table thead th { padding: 12px 16px; font-size: 0.88rem; }
    :where(.p-donate) .honor-table tbody td { padding: 12px 16px; font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
    :where(.p-explore, .p-news-detail-media, .p-news-detail, .p-news, .p-partner, .p-productdetail, .p-recruit, .p-search, .p-shop, .p-spotdetail, .p-story, .p-storydetail) * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    :where(.p-explore, .p-news-detail-media, .p-news-detail, .p-news, .p-partner, .p-productdetail, .p-recruit, .p-search, .p-shop, .p-spotdetail, .p-story, .p-storydetail) *::before { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    :where(.p-explore, .p-news-detail-media, .p-news-detail, .p-news, .p-partner, .p-productdetail, .p-recruit, .p-search, .p-shop, .p-spotdetail, .p-story, .p-storydetail) *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* 空狀態／示意內文：跟一般內文同一個調性，不用醒目色框 —— 文字本身
   已經說明自己是示意內容，不需要版面上再加標示。 */
.empty-note { color: var(--text-light, #777); font-size: 0.95rem; line-height: 1.8; margin: 0.5rem 0 1.5rem; }


/* ============================================================
   bookdetail —— 單本繪本閱讀頁
   一本書一頁，閱讀區依這本書的格式呈現（逐頁圖片／PDF／有聲書影片）
   ============================================================ */
:where(.p-bookdetail) .book-hero { display: flex; gap: 2.5rem; align-items: flex-start; background: var(--white); border: 1px solid var(--border-light); border-radius: 20px; padding: 2rem; margin-bottom: 2rem; }
:where(.p-bookdetail) .book-hero-cover { flex: 0 0 200px; aspect-ratio: 3/4; border-radius: 14px; background: linear-gradient(135deg, #2E7D6B, #1a5c4b); display: flex; align-items: center; justify-content: center; overflow: hidden; }
:where(.p-bookdetail) .book-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
:where(.p-bookdetail) .book-hero-cover .material-symbols-outlined { font-size: 4rem; color: rgba(255,255,255,0.3); }
:where(.p-bookdetail) .book-hero-info { flex: 1; min-width: 0; }
:where(.p-bookdetail) .book-format-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 14px; border-radius: 20px; background: rgba(58,125,68,0.1); color: var(--primary); font-size: 0.78rem; font-weight: 600; letter-spacing: 1px; }
:where(.p-bookdetail) .book-format-tag .material-symbols-outlined { font-size: 1rem; }
:where(.p-bookdetail) .book-hero-info h1 { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 900; color: var(--text-dark); margin: 0.8rem 0 0.3rem; line-height: 1.35; }
:where(.p-bookdetail) .book-hero-author { font-size: 0.92rem; color: var(--text-light); margin-bottom: 1rem; }
:where(.p-bookdetail) .book-hero-desc { font-size: 0.98rem; line-height: 1.9; color: var(--text-body); margin-bottom: 1.4rem; }
:where(.p-bookdetail) .book-hero-meta { display: flex; flex-wrap: wrap; gap: 2rem; margin: 0; }
:where(.p-bookdetail) .book-hero-meta dt { font-size: 0.75rem; color: var(--text-light); font-weight: 400; margin-bottom: 0.2rem; }
:where(.p-bookdetail) .book-hero-meta dd { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin: 0; }

:where(.p-bookdetail) .book-reader { background: var(--white); border: 1px solid var(--border-light); border-radius: 20px; padding: 2rem; margin-bottom: 2.5rem; }
:where(.p-bookdetail) .book-reader-title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1.4rem; padding-bottom: 0.7rem; border-bottom: 2px solid var(--accent); display: inline-block; }
:where(.p-bookdetail) .book-reader-note { font-size: 0.85rem; color: var(--text-light); margin: 1.2rem 0 0; }

/* 逐頁圖片：翻書 */
:where(.p-bookdetail) .flipbook-container { width: 100%; max-width: 420px; aspect-ratio: 3/4; }
:where(.p-bookdetail) .flipbook-page { width: 100%; height: 100%; border-radius: 8px; }
:where(.p-bookdetail) .flip-page-num { color: rgba(255,255,255,0.75); font-size: 0.85rem; display: inline-flex; align-items: center; }

/* PDF */
:where(.p-bookdetail) .pdf-frame { width: 100%; height: 640px; border: 1px solid var(--border-light); border-radius: 12px; overflow: hidden; background: #f0f0f0; }
:where(.p-bookdetail) .pdf-frame iframe { width: 100%; height: 100%; border: 0; }
:where(.p-bookdetail) .pdf-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.2rem; }

/* 有聲書影片 */
:where(.p-bookdetail) .book-video { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--dark); }
:where(.p-bookdetail) .book-video iframe { width: 100%; height: 100%; border: 0; }
:where(.p-bookdetail) .book-video-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem; color: rgba(255,255,255,0.5); }
:where(.p-bookdetail) .book-video-placeholder .material-symbols-outlined { font-size: 4rem; opacity: 0.5; }

:where(.p-bookdetail) .book-more-title { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1.4rem; }

@media (max-width: 767.98px) {
    :where(.p-bookdetail) .book-hero { flex-direction: column; gap: 1.5rem; padding: 1.5rem; }
    :where(.p-bookdetail) .book-hero-cover { flex: 0 0 auto; width: 150px; align-self: center; }
    :where(.p-bookdetail) .book-hero-info h1 { font-size: 1.5rem; }
    :where(.p-bookdetail) .book-reader { padding: 1.3rem; }
    :where(.p-bookdetail) .pdf-frame { height: 420px; }
}
