/* ============================================================
台灣宮廟管理系統 - 尊榮版 (Temple Single Template) 專用樣式表 (v2026)
============================================================ */
/* 隱藏 Community Channel 自訂社群圖示外掛 */
#lscf-front-display,
.lscf-container,
[class*="lscf"] { display: none !important; }
/* 隱藏 news-carousel 合作新聞輪播外掛 */
.news-carousel,
[class*="news-carousel"] { display: none !important; visibility: hidden !important; height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }
/* 隱藏 virtual-country-views-ga ＧＡ即時流量外掛 */
.vcv-ga-card,
[class*="vcv-ga-card"] { display: none !important; visibility: hidden !important; height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }
/* --- 動畫定義 (Animations) --- */
@keyframes ttm-glow {
from { text-shadow: 0 0 5px #D4AF37; }
to { text-shadow: 0 0 20px #D4AF37, 0 0 30px #B22222; } }
/* 呼吸燈效果：用於行動撥號與地圖按鈕，增加點擊誘導性 */
@keyframes pulse-red {
0% { transform: scale(1); box-shadow: 0 5px 15px rgba(178,34,34,0.4); }
70% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(178,34,34,0); }
100% { transform: scale(1); box-shadow: 0 5px 15px rgba(178,34,34,0.4); } }
/* 閃光橫掃：用於按鈕與圖片的流光特效 */
@keyframes light-swipe { 0% { left: -70%; } 30% { left: 120%; } 100% { left: 120%; } }
/* 雲朵漂浮：用於標題旁小圖示的動態 */
@keyframes cloud-float { from { transform: translateX(0); } to { transform: translateX(6px); } }
/* 邊框閃爍：相簿 hover 時的動態邊框 */
@keyframes border-glow {
from { border-color: #D4AF37; box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
to { border-color: #FF0000; box-shadow: 0 8px 25px rgba(212,175,55,0.4); } }
/* --- 護眼模式 (Eye Care Mode) --- */
/* 作用：切換為柔和背景色，降低視覺疲勞 */
.ttm-eye-care-mode { background-color: #f3f0e0 !important; /* 米色基調 */ color: #2c3e50 !important; /* 深石板色文字 */ transition: background-color 0.3s ease; }
/* --- 神明卡片網格與樣式 (God Cards) --- */
/* 網格容器：自動填滿，每張卡片最小寬度 320px */
.ttm-god-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; margin: 30px 0 20px 0; }
/* 單張卡片主體 */
.ttm-god-card { background: #fff; border: 3px solid #D4AF37; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: all 0.3s ease; display: flex; flex-direction: column; }
.ttm-god-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(139,0,0,0.2); border-color: #B22222; }
/* 神明圖片容器：固定高度 250px */
.ttm-god-img-box { width: 100%; height: 250px; background: #eee; overflow: hidden; border-bottom: 2px solid #D4AF37; }
.ttm-god-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; cursor: zoom-in; }
.ttm-god-card:hover .ttm-god-img-box img { transform: scale(1.1); } /* 懸停放大圖片效果 */
/* 卡片文字區域 主祀神明 Main Deity 及 陪祀神明 Accompanying Deity */
.ttm-god-content { padding: 20px; flex-grow: 1; }
.ttm-god-badge { display: inline-block; background: #8B0000; color: #fff; font-size: 14px; padding: 2px 10px; border-radius: 20px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.ttm-god-name { font-size: 1.7em; color: #8B0000; font-weight: 900; margin-bottom: 12px; font-family: "Noto Serif TC", serif; }
.ttm-god-info-text { font-size: 16px; line-height: 1.7; color: #444; text-align: justify; }
/* 卡片底部 "🏟️ 各殿神明分佈 + ⚠️ 供品與禁忌 + 🙏 香客參拜流程" */
.ttm-god-action-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; margin-bottom: 0px; font-size: 14px; }
/* --- 文章內容與圖片邏輯 (Typography & Images) --- */
/* 文章內圖片統一封裝：金色粗邊框風格 */
.ttm-main-content > img,
.ttm-main-content > p > img,
.ttm-main-content .wp-caption img { max-width: 100% !important; width: 100% !important; height: auto !important; display: block; margin: 10px auto; border: 6px solid #D4AF37; border-radius: 6px;box-shadow: 0 8px 20px rgba(0,0,0,0.15); box-sizing: border-box !important; transition: all 0.3s ease; }
/* WordPress 編輯器正文插入媒體庫圖片圖說文字 */
.ttm-main-content .wp-caption { max-width: 100% !important; margin-bottom: 20px !important; background: none !important; border: none !important; padding: 0 !important; width: 100% !important; }
.ttm-main-content .wp-caption-text { position: static !important; display: block !important; font-size: 10px !important; color: #888 !important; text-align: right !important; line-height: 1.5 !important; margin: 0px 0px 0 0 !important; width: auto !important; white-space: normal !important; word-wrap: break-word !important; overflow-wrap: break-word !important; }
/* 正文首字大字 (Drop Cap) */
.ttm-main-content > p:first-of-type::first-letter { font-family: "Noto Serif TC", serif; float: left; font-size: 3.2em; line-height: 1; padding-right: 12px; color: #8B0000; font-weight: 900; }
/* 文章段落通用設定 */
.ttm-main-content { text-align: justify; text-justify: inter-ideograph; line-height: 1.6; color: #333333; }
/* --- 圖文模組相簿樣式 (Gallery) --- */
.ttm-gallery-album, .ttm-gallery-album-container { display: block !important; width: 100% !important; box-sizing: border-box !important; overflow: hidden !important; }
/* 圖文模組彈性佈局 */
.ttm-gallery-album.ttm-gallery-flex-container { display: flex !important; flex-wrap: wrap !important; gap: 15px !important; justify-content: flex-start; }
/* 圖文模組 相簿單張外框 高度固定 250px */
.ttm-gallery-album .ttm-gallery-item-wrap { width: calc(33.333% - 10px) !important; height: 250px !important; position: relative; overflow: hidden; border-radius: 8px; border: 6px solid #D4AF37; background: #000; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); box-sizing: border-box; }
.ttm-gallery-album .ttm-gallery-item-wrap:hover { transform: translateY(-8px); animation: border-glow 1.5s infinite alternate; z-index: 10; }
.ttm-gallery-album .ttm-gallery-item-wrap img { width: 100% !important; height: 100% !important; object-fit: cover !important; transition: transform 0.6s ease, filter 0.3s ease; cursor: zoom-in; }
/* 相簿流光特效 */
.ttm-gallery-item-wrap::after { content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent); transform: skewX(-25deg); transition: 0.6s; pointer-events: none; }
.ttm-gallery-item-wrap:hover::after { left: 150%; }
/* 小標題樣式 (英文字/副標) */
.ttm-section-subtitle { display: block; font-size: 0.45em; color: #888; margin-top: 5px; letter-spacing: 2px; font-family: sans-serif; text-transform: uppercase; }
/* --- 全域背景設定 (Global Background) --- */
body {
background-color: #f4f0e6 !important; background-image: url('https://www.8news.net/wp-content/plugins/taiwan-temple-manager/img/background.jpg') !important; background-size: cover !important; background-position: center center !important; background-repeat: no-repeat !important; background-attachment: fixed !important; position: relative; margin: 0; padding: 0; min-height: 100vh; z-index: 1; }
html, body { overflow-x: hidden; }
/* 左右兩側對聯裝飾圖 */
body::before, body::after { content: ""; position: fixed; bottom: 0; width: 400px; height: 800px; background-image: url('https://www.8news.net/wp-content/plugins/taiwan-temple-manager/img/lr.png'); background-size: contain; background-repeat: no-repeat; opacity: 0.20; /* 漸層感 */ z-index: 999; pointer-events: none; }
body::before { left: 50%; margin-left: -1020px; background-position: bottom right; }
body::after { left: 50%; margin-left: 620px; background-position: bottom left; transform: scaleX(-1); }
/* 當螢幕不夠寬時，隱藏左右兩側對聯裝飾圖 */
@media (max-width: 1700px) { body::before, body::after { display: none !important; } }
/* --- 主容器 (Main Wrapper) --- */
.ttm-wrapper.ttm-single-container {
max-width: 1200px !important; /* 電腦版寬度設定 */ margin: 50px auto 40px auto !important; background: #FAF9F6; border: 8px solid #D4AF37; border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); position: relative; }
/* 頂部裝飾標籤 (宮廟風格) */
.ttm-wrapper.ttm-single-container::before { content: ""; position: absolute; top: -75px !important; left: 50%; transform: translateX(-50%); width: 930px; height: 110px; background-image: url('https://www.8news.net/wp-content/plugins/taiwan-temple-manager/img/ttm.png'); background-size: contain; background-repeat: no-repeat; background-position: bottom center; z-index: 1000 !important; }
/* --- 標頭區域 (Hero Header) --- */
.ttm-hero-header { background: linear-gradient(135deg, rgba(139,0,0,0.95) 0%, rgba(178,34,34,0.95) 50%, rgba(139,0,0,0.95) 100%), url('https://www.8news.net/wp-content/plugins/taiwan-temple-manager/img/hero.png'); background-size: auto, 150px 150px; position: relative; border-bottom: 5px solid #D4AF37; padding: 90px 30px 60px 30px !important; border-top-left-radius: 6px; border-top-right-radius: 6px; overflow: visible; }
.ttm-hero-header h1 { font-family: "Noto Serif TC", serif; font-weight: 1000; letter-spacing: 4px; text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 10px rgba(212,175,55,0.5); display: inline-block; position: relative; color: #fff; }
/* 標題兩側的符號裝飾 */
.ttm-hero-header h1::before, .ttm-hero-header h1::after { content: "◈"; font-size: 0.7em; position: relative; top: -0.1em; vertical-align: baseline; margin: 0 20px; color: #D4AF37; animation: ttm-glow 2s ease-in-out infinite alternate; }
/* 簡介區塊樣式 (Summary Box) */
.ttm-summary-box { background: #f8f1e3; padding: 25px 40px; border: 2px solid #d4c4a8; border-left: 10px solid #8b0000; margin-top: 35px; border-radius: 4px; position: relative; box-shadow: inset 0 0 15px rgba(139,0,0,0.05); text-align: justify; text-justify: inter-ideograph; }
/* 側邊裝飾色條 */
.ttm-summary-box::before, .ttm-summary-box::after { content: ""; position: absolute; top: -5px; bottom: -5px; width: 12px; background: #e2dd1d; border-radius: 3px; }
.ttm-summary-box::before { left: -8px; }
.ttm-summary-box::after { right: -8px; }
/* 主圖容器：設定 16:9 比例 */
.ttm-main-image-container { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 4px solid #f0e68c; border-radius: 6px; box-shadow: 0 10px 25px rgba(0,0,0,0.4); margin-bottom: 0px; }
.ttm-main-image-container img { width: 100% !important; height: 100% !important; object-fit: cover !important; transition: transform 0.5s ease; cursor: zoom-in; }
/* 通用章節標題樣式 */
.ttm-section-title { color: #B22222; border-bottom: 3px solid #D4AF37; padding-bottom: 10px; margin-top: 20px; margin-bottom: 20px; font-size: 2em; display: flex; align-items: center; font-family: "Noto Serif TC", serif; }
/* 標題左側雲朵小標誌 */
@media (min-width: 768px) { .ttm-section-title::before { content: ""; display: inline-block; width: 32px; height: 32px; background-image: url('https://www.8news.net/wp-content/plugins/taiwan-temple-manager/img/ttm-section-title.png'); background-size: contain; background-repeat: no-repeat; margin-right: 15px; animation: cloud-float 2s ease-in-out infinite alternate; vertical-align: middle; } }
/* --- 資訊卡區 (Info Cards) 作用：顯示聯絡資訊、設施等重要內容的容器 --- */
.ttm-info-card { background: #fffaf0; background-image: url('https://www.8news.net/wp-content/plugins/taiwan-temple-manager/img/ttm-info-card.png'); background-size: 100px 100px; border: 3px solid #e6dbb9; padding: 20px 20px; border-radius: 6px; margin-top: 30px; position: relative; box-shadow: inset 0 0 20px rgba(212,175,55,0.1); }
/* 卡片正中間的大型半透明浮水印符號) */
.ttm-info-card::after { content: "☸️ ☯️ 🛐"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 8em; font-family: "Noto Serif TC", serif; color: #FF0000; opacity: 0.08; white-space: nowrap; letter-spacing: 20px; pointer-events: none; z-index: 0; }
/* 提供服務 (按鈕列) */
.ttm-top-service-bar { display: flex; gap: 15px; margin-bottom: 25px; position: relative; z-index: 5; flex-wrap: wrap; }
.ttm-top-service-btn { flex: 1; min-width: 140px; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid #D4AF37; color: #8B0000 !important; padding: 12px 10px; border-radius: 4px; font-weight: bold; text-decoration: none !important; transition: all 0.3s ease; box-shadow: 0 3px 10px rgba(212, 175, 55, 0.1); font-size: 15px; white-space: nowrap; }
.ttm-top-service-btn:hover { background: #D4AF37; color: #fff !important; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3); }
/* 單項資訊條 (聯絡電話、地址、信箱等) */
.ttm-info-item { background: rgba(255, 255, 255, 0.6); border: 1px solid #d4c4a8; padding: 10px 15px; border-radius: 4px; display: block !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); color: #333; text-decoration: none !important; max-width: 100%; }
.ttm-info-item:hover { background: #fff; border-color: #D4AF37; box-shadow: 4px 4px 12px rgba(0,0,0,0.1); transform: translateX(8px); }
.ttm-info-label { color: #8B0000; font-weight: bold; margin-right: 8px; }
/* 彈窗觸發按鈕專用顏色 */
.ttm-modal-trigger-btn { cursor: pointer; text-align: center; background: #fffaf0; border: 1px solid #D4AF37; color: #8B0000; }
/* 設施標籤 (宮廟特色標籤) */
.ttm-facility-tag { display: inline-block; background: #8B0000; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 13px; margin: 4px; border: 1px solid #D4AF37; }
.ttm-full-width-section { grid-column: 1 / -1; width: 100%; margin-top: 30px; }
/* --- 地圖區域 (Map Section) --- */
.ttm-address-container { display: flex; gap: 20px; background: rgba(139,0,0,0.03); padding: 25px; border-radius: 8px; border-left: 5px solid #D4AF37; margin-bottom: 20px; align-items: stretch; }
.ttm-address-text-side { flex: 1; display: flex; flex-direction: column; justify-content: center; }
/* 地圖容器設定：PC 版佔 50% 寬度 */
.ttm-address-map-side { width: 50%; height: 300px !important; min-height: 300px !important; border-radius: 8px; overflow: hidden; border: 2px solid #D4AF37; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.ttm-address-map-side iframe { width: 100% !important; height: 300px !important; border: 0; display: block; }
/* --- 底部區域 (Footer / CTA) --- */
.ttm-apply-box { padding: 20px 25px; background: #fffef0; border: 1px dashed #D4AF37; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 4px 10px rgba(212,175,55,0.1); }
.ttm-apply-text { font-weight: bold; color: #8B0000; font-size: 1.15em; letter-spacing: 1px; text-align: left; flex: 1; }
.ttm-apply-text b, .ttm-apply-text span { display: block !important; width: 100%; margin: 2px 0; }
.ttm-apply-calls-wrapper { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
/* 底部撥打電話按鈕：帶有脈衝動畫與流光特效 */
.ttm-apply-call { position: relative; overflow: hidden; color: #B22222; text-decoration: none; font-size: 1.25em; font-weight: bold; font-family: 'Noto Serif TC', serif; background: rgba(212,175,55,0.15); padding: 8px 20px; border-radius: 4px; transition: 0.3s; white-space: nowrap; animation: pulse-red 2s infinite; }
.ttm-apply-call:hover { background: #B22222; color: #fff; transform: scale(1.05); animation: none; }
.ttm-apply-call::after { content: ""; position: absolute; top: -50%; left: -70%; width: 30%; height: 200%; background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent); transform: rotate(30deg); animation: light-swipe 4s infinite; }
/* QR Code 展示區 */
.ttm-qr-box { background: #fff; border: 1px solid #D4AF37; padding: 15px; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); position: relative; overflow: hidden; }
.ttm-qr-box::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: #D4AF37; }
/* Google MAP 導航地圖按鈕 */
.ttm-map-btn { background: linear-gradient(#B22222, #8B0000); color: #fff !important; padding: 14px 30px; box-sizing: border-box; border-radius: 6px; font-weight: bold; display: inline-block; border: 1px solid #D4AF37; text-decoration: none; transition: transform 0.2s; margin-top: 10px; animation: pulse-red 2s infinite; text-align: center; }
.ttm-map-btn:hover { transform: scale(1.08); color: #fff !important; animation: none; }
/* --- 彈窗與燈箱 (Modals & Lightbox) --- */
.ttm-custom-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 100000; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.ttm-modal-content { background: #fff; width: 90%; max-width: 600px; max-height: 80vh; border-radius: 12px; position: relative; border: 5px solid #D4AF37; overflow: hidden; display: flex; flex-direction: column; }
.ttm-modal-header { background: #8B0000; color: #fff; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.ttm-modal-header h3 { margin: 0; font-family: "Noto Serif TC", serif; }
.ttm-modal-close { cursor: pointer; font-size: 24px; font-weight: bold; }
.ttm-modal-body { padding: 25px; overflow-y: auto; text-align: center; line-height: 1.8; }
.ttm-modal-body img { max-width: 100%; height: auto; margin-bottom: 20px; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
/* 全螢幕大圖燈箱 (Lightbox) */
#ttm-lightbox-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.92); z-index: 99999; align-items: center; justify-content: center; backdrop-filter: blur(5px); cursor: zoom-out; }
#ttm-lightbox-img { max-width: 95%; max-height: 95%; border: 6px solid #D4AF37; border-radius: 6px; }
*, *::before, *::after { box-sizing: border-box !important; }
img { max-width: 100% !important; height: auto; display: block; }
/* 功德芳名錄 跑馬燈向上捲動動畫 */
.ttm-honor-marquee-box { width: 100%; height: 200px; background: #fffcf0; border: 2px solid #e6dbb9; border-radius: 6px; overflow: hidden; margin: 20px 0 40px 0; position: relative; box-shadow: inset 0 0 15px rgba(0,0,0,0.05); }
.ttm-honor-marquee-content { padding: 20px; /* 動畫加快：從 20s 改為 15s (數字愈小愈快) */ animation: honor-scroll 20s linear infinite; /* 文字統一靠左 */ text-align: left; }
.ttm-honor-marquee-box:hover .ttm-honor-marquee-content { animation-play-state: paused; }
.ttm-honor-group { margin-bottom: 0px; line-height: 1.8; }
/* 捐款金額：文字 18px 並設定特定顏色 */
.ttm-honor-amount { font-weight: bold; font-size: 18px !important; color: #d9534f; /* 這裡設定預設的金額顏色，例如紅色 */ margin-bottom: 5px; display: block; }
/* 姓名或公司全稱：維持原色，不套用金額顏色 */
.ttm-honor-names { font-size: 1em; color: #333; /* 確保姓名維持一般深色 */ word-break: break-all; text-align: left; /* 確保靠左 */ text-align-last: left; }
.ttm-honor-spacer { height: 30px; /* 空一行的間距 */ }
/* 向上捲動動畫定義 */
@keyframes honor-scroll {
0% { transform: translateY(200px); }
100% { transform: translateY(-100%); } }
/* ============================================================
行動版優化核心 (768px RWD 邏輯)
============================================================ */
@media (max-width: 768px) {
/* 主容器：移除電腦版的外邊距與調整裝飾圖 */
.ttm-wrapper.ttm-single-container { margin: 10px auto !important; border-width: 4px !important; overflow: visible !important; }
.ttm-wrapper.ttm-single-container::before { top: -45px !important; width: 180% !important; height: 80px !important; z-index: 1001 !important; }
/* 標頭：縮減內距與字體大小 */
.ttm-hero-header { padding: 60px 15px 40px 15px !important; }
.ttm-hero-header h1 { font-size: 1.4em !important; /* 行動版主標題 */ line-height: 1.4 !important; letter-spacing: 2px !important; display: block !important; text-align: center; }
.ttm-hero-header h1::before, .ttm-hero-header h1::after { margin: 0 5px; font-size: 0.6em; }
/* 各章節標題：改為垂直佈局，避免文字過長被截斷 */
.ttm-section-title { font-size: 1.4em !important; flex-direction: column !important; align-items: flex-start !important; height: auto !important; line-height: 1.3 !important; padding-bottom: 10px !important; }
.ttm-section-subtitle { font-size: 0.5em !important; margin-top: 5px; display: block; }
/* 文章首字大寫 */
.ttm-content-body { padding: 20px 15px !important; }
.ttm-main-content > p:first-of-type::first-letter { float: none; font-size: inherit; padding-right: 0; color: inherit; }
/* 神明卡片：行動版改為單欄垂直排列 */
.ttm-god-grid { display: flex !important; flex-direction: column !important; gap: 20px !important; width: 100% !important; }
.ttm-god-card { width: 100% !important; margin: 0 !important; box-sizing: border-box !important; }
.ttm-god-img-box { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3 !important; /* 改為 4:3 比例 */ border-bottom-width: 2px !important; }
/* 資訊卡區：縮減空間，並將內容強制單欄化 */
.ttm-info-card { padding: 20px 15px !important; }
.ttm-info-card::after { font-size: 3em !important; opacity: 0.05 !important; }
.ttm-info-card > div[style*="display:grid"],
.ttm-info-card > div[style*="grid-template-columns"],
.ttm-god-action-bar { display: flex !important; flex-direction: column !important; gap: 12px !important; }
/* 確保所有資訊按鈕在行動版為 100% 寬 */
.ttm-info-item.ttm-modal-trigger-btn,
.ttm-god-action-bar .ttm-info-item,
.ttm-info-item { width: 100% !important; flex: none !important; display: block !important; padding: 15px 10px !important; box-sizing: border-box !important; text-align: center !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
/* 頂部服務列：行動版按鈕 100% 寬 */
.ttm-top-service-bar { gap: 10px; }
.ttm-top-service-btn { min-width: 100%; flex: none; font-size: 14px; }
/* 地址與地圖區：行動版垂直切換 */
.ttm-address-container { flex-direction: column !important; padding: 15px !important; gap: 15px !important; }
.ttm-address-map-side { width: 100% !important; height: 300px !important; }
.ttm-address-map-side iframe { height: 300px !important; }
.ttm-address-text-side { width: 100% !important; text-align: center; }
/* 底部申請框文字行動版修正 - 置中對齊 */
.ttm-apply-box { flex-direction: column !important; text-align: center !important; padding: 20px 15px !important; width: 100% !important; box-sizing: border-box !important; }
.ttm-apply-text { width: 100% !important; margin-bottom: 20px !important; padding: 0 !important; text-align: center !important; display: block !important; flex: none !important; }
.ttm-apply-text b, .ttm-apply-text span { display: block !important; width: 100% !important; text-align: center !important; white-space: normal !important; line-height: 1.5 !important; word-break: break-all !important; margin: 5px 0 !important; }
.ttm-apply-calls-wrapper { width: 100% !important; align-items: center !important; gap: 12px !important; display: flex !important; flex-direction: column !important; }
.ttm-apply-call { width: 100% !important; max-width: 300px !important; box-sizing: border-box !important; text-align: center !important; padding: 12px 5px !important; font-size: 1.1em !important; display: block !important; }
/* 相簿行動版：改為每行兩張圖 */
.ttm-gallery-album .ttm-gallery-item-wrap { width: calc(50% - 5px) !important; max-width: calc(50% - 5px) !important; height: 160px !important; } }
/* 更小螢幕 (480px)：相簿改為單欄 */
@media (max-width: 480px) { .ttm-gallery-album .ttm-gallery-item-wrap { width: 100% !important; max-width: 100% !important; height: 200px !important; } }
/* 懸停狀態：彈窗按鈕 hover 變色 */
.ttm-modal-trigger-btn:hover { background: #8B0000 !important; border-color: #D4AF37 !important; color: #ffffff !important; transform: translateY(-3px); }
.ttm-modal-trigger-btn:hover span, .ttm-modal-trigger-btn:hover .ttm-info-label { color: #ffffff !important; }
/* --- 前台廣告位樣式 (Ads/Promo System) --- */
.ttm-promo-box-container { text-align: center; margin: 0 0 30px 0; width: 100%; }
.ttm-promo-box-container img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
/* 廣告顯示邏輯：電腦版橫幅，行動版隱藏 */
.show-on-mobile { display: none !important; }
.show-on-desktop { display: block !important; height: 150px !important; /* 電腦版橫幅固定高度 150px */ object-fit: cover; width: 100%; }
@media screen and (max-width: 768px) {
.show-on-desktop { display: none !important; /* 行動版隱藏電腦版橫幅 */ }
.show-on-mobile { display: block !important; width: 300px; /* 行動版圖片維持 300px 正方形 */ aspect-ratio: 1 / 1; object-fit: cover; } }
/* 文字廣告描述美化 (Promo Description) */
.promo-description { background: #f9f9f9; border: 1px solid #eeeeee; border-left: 4px solid #ff6600; /* 廣告提示色 (橘色) */ padding: 15px 20px; margin: 15px 0; border-radius: 4px; font-size: 18px; line-height: 1.6; color: #333333; text-align: left; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: all 0.3s ease; }
.ttm-promo-box-container a:hover .promo-description { background: #ffffff; border-left-color: #d45500; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-2px); }
.promo-description p { margin: 0 !important; padding: 0 !important; }
@media screen and (max-width: 768px) { .promo-description { font-size: 14px; padding: 12px 15px; } }
/* --- 免責聲明 --- */
.ttm-disclaimer-box { display: block !important; clear: both !important; float: none !important; width: 100% !important; margin: 30px 0 !important; padding: 20px; background: #ffe8e8; border: 1px dashed #d4c4a8; border-left: 6px solid #ff0000; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); box-sizing: border-box; }
/* 需求1：免責聲明 4 個字粗體紅色 */
.disclaimer-title { color: #ff0000; font-weight: bold; margin-right: 3px; }
.ttm-disclaimer-content { font-size: 14px; color: #000; line-height: 1.8; text-align: left; font-family: "Noto Serif TC", serif; }
@media screen and (max-width: 768px) {
.ttm-disclaimer-box { margin: 15px 0 !important; padding: 15px; background: #ffe8e8; border: 2px solid #ff0000 !important; box-shadow: 0 4px 12px rgba(139, 0, 0, 0.15); }
.ttm-disclaimer-content { font-size: 13px; text-align: justify; text-justify: inter-character; font-weight: 500; color: #222; }
.disclaimer-title { display: block; margin-bottom: 5px; font-size: 16px; } }