/* ==========================================================================
   CMS Global Components & Page Layout Stylesheet (cms_components.css)
   统一管理门户全站栏目组件样式（轮播、视频列表、动态列表、住持、寺院历史、日程表、交通地址、打卡攻略等）
   严禁定义全局裸标签 p / footer 污染，确保页头与 #siteFooter 页尾绝对隔离。
   ========================================================================== */

/* 0. 防止富文本内嵌 .content-section 产生双层白框与双倍内边距 */
.content-section .content-section {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    margin-bottom: 1.5rem !important;
    backdrop-filter: none !important;
}

/* 1. 后台 TinyMCE 编辑器内动态组件可视化占位卡片样式 */
.cms-component-widget {
    border: 2px dashed #6366f1;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
    color: #312e81;
    position: relative;
    user-select: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}
.cms-component-widget .cms-widget-badge {
    display: inline-block;
    background: #4f46e5;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.cms-component-widget .cms-widget-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1e1b4b !important;
    margin: 4px 0 6px 0 !important;
    border: none !important;
    padding: 0 !important;
}
.cms-component-widget .cms-widget-desc {
    font-size: 13px !important;
    color: #4338ca !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* 2. PC端首页全屏轮播与欢迎过渡区 */
.hero-carousel-section { margin: 0; position: relative; overflow: hidden; height: 85vh; background: #5d4037; }
.hero-carousel { position: relative; height: 100%; overflow: hidden; }
.hero-carousel-slides { display: flex; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); height: 100%; }
.hero-carousel-slide { min-width: 100%; height: 100%; position: relative; }
.hero-carousel-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(1); margin: 0 !important; border-radius: 0 !important; max-width: none !important; }
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; text-align: left; color: #fff8e1; z-index: 2; padding: 0 4rem 5rem 4rem; }
.hero-content::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0,0,0,0.2) 100%); pointer-events: none; }
.hero-content h1 { font-size: 72px !important; margin-bottom: 24px !important; font-weight: 700 !important; position: relative; z-index: 3; line-height: 1.1 !important; color: #fff8e1 !important; border: none !important; padding: 0 !important; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.hero-content p { font-size: 28px !important; max-width: 800px; margin: 0 !important; line-height: 1.6 !important; position: relative; z-index: 3; opacity: 0.95; font-weight: 300; color: #fff8e1 !important; text-shadow: 1px 1px 4px rgba(0,0,0,0.3); }
.hero-carousel-controls { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0 3rem; z-index: 10; pointer-events: none; }
.hero-carousel-btn { pointer-events: auto; background: rgba(255,255,255,0.2); border: none; color: white; width: 56px; height: 56px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; }
.hero-carousel-btn:hover { background: rgba(255,255,255,0.3); }
.hero-carousel-indicators { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 1rem; z-index: 10; }
.hero-indicator { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; transition: all 0.3s; }
.hero-indicator.active { background: #ffb300; transform: scale(1.2); }

.transition-section { background: linear-gradient(to bottom, #f8f5f2, #e8e0dc); padding: 4rem 0; position: relative; overflow: hidden; }
.transition-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(to right, transparent, #5d4037, transparent); }
.transition-content { text-align: center; max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.transition-content h2 { font-size: 3rem !important; color: #5d4037 !important; margin-bottom: 1.5rem !important; font-weight: 600 !important; border: none !important; padding: 0 !important; text-shadow: 1px 1px 3px rgba(0,0,0,0.1); }
.section-divider { height: 1px; background: linear-gradient(to right, transparent, #5d4037, transparent); margin: 2rem auto; max-width: 200px; opacity: 0.5; }
.transition-content p { font-size: 1.4rem !important; color: #795548 !important; line-height: 1.8 !important; opacity: 0.9; position: relative; padding: 0 2rem; }
.transition-content p::before, .transition-content p::after { content: '"'; font-size: 3rem; color: #ffb300; opacity: 0.3; position: absolute; top: -1rem; }
.transition-content p::before { left: 0; }
.transition-content p::after { right: 0; }

/* 3. 移动端首页轮播与欢迎区 */
.mobile-hero-section { position: relative; width: 100%; height: 60vh; min-height: 400px; max-height: 600px; overflow: hidden; background: #5d4037; }
.mobile-carousel { position: relative; width: 100%; height: 100%; overflow: hidden; }
.mobile-carousel-slides { display: flex; width: 100%; height: 100%; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.mobile-carousel-slide { min-width: 100%; height: 100%; position: relative; flex-shrink: 0; }
.mobile-carousel-slide img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); margin: 0 !important; border-radius: 0 !important; }
.mobile-carousel-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; text-align: left; color: #ffecb3; padding: 20px 20px 50px 20px; z-index: 2; background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 40%, transparent 100%); }
.mobile-carousel-title { font-size: 32px !important; font-weight: 700 !important; margin-bottom: 16px !important; position: relative; z-index: 3; line-height: 1.2 !important; color: #ffecb3 !important; border: none !important; padding: 0 !important; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.mobile-carousel-subtitle { font-size: 18px !important; max-width: 90%; margin: 0 !important; line-height: 1.6 !important; position: relative; z-index: 3; opacity: 0.95; font-weight: 300; color: #ffecb3 !important; text-shadow: 1px 1px 4px rgba(0,0,0,0.3); }
.mobile-carousel-controls { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0 16px; z-index: 10; pointer-events: none; }
.mobile-carousel-btn { background: rgba(255, 255, 255, 0.2); border: none; color: white; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; pointer-events: auto; }
.mobile-carousel-indicators { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 10; }
.mobile-carousel-indicator { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: all 0.3s; border: none; padding: 0; }
.mobile-carousel-indicator-active { background: #ffb300; transform: scale(1.3); }
.mobile-carousel-toggle { position: absolute; right: 16px; bottom: 20px; z-index: 10; }
.mobile-welcome-section { background: linear-gradient(to bottom, #f8f5f2, #e8e0dc); padding: 40px 20px; position: relative; overflow: hidden; }
.mobile-welcome-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(to right, transparent, #5d4037, transparent); }
.mobile-welcome-content { text-align: center; max-width: 100%; margin: 0 auto; position: relative; z-index: 2; }
.mobile-welcome-title { font-size: 26px !important; color: #5d4037 !important; margin-bottom: 20px !important; font-weight: 600 !important; border: none !important; padding: 0 !important; }
.mobile-welcome-divider { height: 1px; background: linear-gradient(to right, transparent, #5d4037, transparent); margin: 20px auto; max-width: 200px; opacity: 0.5; }
.mobile-welcome-text { font-size: 17px !important; color: #795548 !important; line-height: 2.0 !important; opacity: 0.9; position: relative; padding: 0 10px; }

/* 4. 视频点播与最新动态列表组件 (PC端) */
.page-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #d7ccc8; padding-bottom: 1rem; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.page-header h1, .page-title { color: #5d4037 !important; font-size: 2.2rem !important; font-weight: 600 !important; margin: 0 !important; border: none !important; padding: 0 !important; }
.cms-filter-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.search-container { position: relative; width: 300px; max-width: 100%; }
.search-input { width: 100%; padding: 0.6rem 2.5rem 0.6rem 1rem; border: 2px solid #d7ccc8; border-radius: 25px; font-size: 0.95rem; outline: none; transition: all 0.3s; background: #fff; }
.search-input:focus { border-color: #8B7355; box-shadow: 0 0 8px rgba(139, 115, 85, 0.2); }
.search-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #8B7355; cursor: pointer; }
.filters { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; align-items: center; }
.cms-filter-toolbar .filters { margin-bottom: 0; }
.filter-btn { padding: 0.5rem 1.2rem; border: 2px solid #8B7355; background: white; color: #8B7355 !important; border-radius: 20px; cursor: pointer; transition: all 0.3s; text-decoration: none !important; font-size: 0.9rem; font-weight: 500; display: inline-block; }
.filter-btn.active, .filter-btn:hover { background: #8B7355; color: white !important; }

.video-grid { display: grid; grid-template-columns: repeat(var(--grid-cols, 3), minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 768px) { .video-grid { grid-template-columns: 1fr; } }
.video-card { border-radius: 12px; overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); position: relative; display: flex; flex-direction: column; transform: translateZ(0); }
.video-card:hover { transform: translateY(-8px) translateZ(0); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12); }
.video-card-disabled { opacity: 0.7; cursor: not-allowed; }
.video-thumbnail { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.video-thumbnail img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform 0.5s; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.video-card:hover .video-thumbnail img { transform: scale(1.05); }
.play-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.2); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.video-card:hover .play-overlay { opacity: 1; }
.play-btn { width: 50px; height: 50px; background: rgba(255, 255, 255, 0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #8B7355; font-size: 1.5rem; transition: transform 0.3s; }
.duration-tag { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, 0.7); color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 0.8rem; }
.video-info { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.video-title { font-size: 1.1rem !important; color: #333 !important; margin: 0 0 0.8rem 0 !important; line-height: 1.4 !important; font-weight: 600 !important; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 3.1rem; }
.video-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #888; border-top: 1px solid #f0f0f0; padding-top: 0.8rem; }
.video-category { color: #8B7355; font-weight: 600; }

.activities-grid { display: grid; grid-template-columns: repeat(var(--grid-cols, 3), minmax(0, 1fr)); gap: 1.5rem; }
.activities-grid-cols-1 .activity-card { display: flex; flex-direction: row; align-items: stretch; }
.activities-grid-cols-1 .activity-card > a { display: block; flex-shrink: 0; width: 280px; }
.activities-grid-cols-1 .activity-card .activity-image { width: 100% !important; height: 100% !important; min-height: 180px; object-fit: cover; }
.activities-grid-cols-1 .activity-card .activity-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 768px) {
    .activities-grid-cols-1 .activity-card { flex-direction: column; }
    .activities-grid-cols-1 .activity-card > a { width: 100%; }
    .activities-grid-cols-1 .activity-card .activity-image { height: 200px !important; }
}
.activity-card { border: 1px solid #e0e0e0; border-radius: 12px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; background: #fff; }
.activity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
.activity-image { width: 100% !important; height: 220px !important; object-fit: cover; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.activity-content { padding: 1.5rem; }
.activity-date { background: #8B7355; color: white; padding: 0.3rem 0.8rem; border-radius: 4px; font-size: 0.9rem; display: inline-block; margin-bottom: 1rem; }
.activity-title { font-size: 1.3rem !important; color: #333 !important; margin: 0 0 0.5rem 0 !important; line-height: 1.4 !important; }
.activity-category { color: #8B7355; font-weight: bold; margin-bottom: 1rem; font-size: 0.9rem; }
.activity-excerpt { color: #666; margin-bottom: 1rem; line-height: 1.6; }
.activity-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #f0f0f0; }
.activity-location { color: #666; font-size: 0.9rem; }
.read-more { color: #8B7355 !important; text-decoration: none !important; font-weight: bold; transition: color 0.3s; }
.read-more:hover { color: #A0522D !important; }

.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; flex-wrap: wrap; }
.page-btn { padding: 0.6rem 1.2rem; border: 1px solid #ddd; background: white; color: #333 !important; border-radius: 8px; cursor: pointer; transition: all 0.3s; text-decoration: none !important; }
.page-btn.active, .page-btn:hover { background: #8B7355; color: white !important; border-color: #8B7355; }

/* 5. 视频点播与最新动态列表组件 (移动端) */
.mobile-page-container { background: #f8f9fa; min-height: 100vh; }
.mobile-content-header { background: linear-gradient(135deg, #8B7355 0%, #5D4037 100%); color: #ffecb3; padding: 28px 20px; text-align: center; position: relative; overflow: hidden; }
.mobile-content-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #ffd54f, #ffb300, #ff8f00); }
.mobile-content-title { font-size: 24px !important; font-weight: 700 !important; letter-spacing: 1px; margin: 0 !important; color: #ffecb3 !important; border: none !important; padding: 0 !important; }
.sticky-nav-wrapper { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.mobile-search-filter { padding: 12px 15px; }
.mobile-search-box { position: relative; margin-bottom: 10px; }
.mobile-search-input { width: 100%; padding: 8px 40px 8px 15px; border: 1px solid #eee; border-radius: 30px; font-size: 14px; background: #f5f5f5; outline: none; }
.mobile-search-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #8B7355; font-size: 16px; }
.mobile-filter-scroll { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 5px; scrollbar-width: none; }
.mobile-filter-scroll::-webkit-scrollbar { display: none; }
.mobile-filter-btn { white-space: nowrap; padding: 5px 14px; border-radius: 20px; font-size: 13px; color: #666 !important; background: #f0f0f0; text-decoration: none !important; }
.mobile-filter-btn.active { background: #8B7355; color: #fff !important; font-weight: 600; }
.mobile-videos-grid { padding: 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mobile-video-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05); text-decoration: none !important; color: inherit !important; display: flex; flex-direction: column; }
.mobile-video-thumbnail { position: relative; width: 100%; aspect-ratio: 16/9; background: #f0f0f0; }
.mobile-video-thumbnail img { width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; border-radius: 0 !important; }
.mobile-duration { position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 10px; padding: 2px 5px; border-radius: 4px; }
.mobile-video-info { padding: 10px; flex: 1; }
.mobile-video-title { font-size: 13px !important; font-weight: 600 !important; line-height: 1.4 !important; color: #333 !important; margin: 0 0 5px 0 !important; border: none !important; padding: 0 !important; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.8em; }
.mobile-video-meta { font-size: 10px; color: #999; display: flex; align-items: center; gap: 5px; }
.admin-only-badge { position: absolute; top: 8px; right: 8px; background: rgba(220, 38, 38, 0.85); color: white; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; z-index: 10; display: flex; align-items: center; gap: 4px; }
.lock-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; z-index: 5; }
.infinite-scroll-status { padding: 20px; text-align: center; color: #999; font-size: 13px; }
.loading-spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(139, 115, 85, 0.3); border-radius: 50%; border-top-color: #8B7355; animation: cms-spin 1s linear infinite; margin-right: 8px; vertical-align: middle; }
@keyframes cms-spin { to { transform: rotate(360deg); } }

.mobile-articles-list { padding: 16px; }
.mobile-article-card { background: #ffffff; border-radius: 12px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); text-decoration: none !important; color: inherit !important; display: block; }
.mobile-article-image { width: 100% !important; height: 200px !important; object-fit: cover; display: block; margin: 0 !important; border-radius: 0 !important; }
.mobile-article-content { padding: 20px; }
.mobile-article-date { background: #8B7355; color: white; padding: 4px 10px; border-radius: 4px; font-size: 12px; display: inline-block; margin-bottom: 10px; }
.mobile-article-title { font-size: 19px !important; font-weight: 700 !important; color: #333 !important; margin: 0 0 10px 0 !important; border: none !important; padding: 0 !important; line-height: 1.4 !important; }
.mobile-article-excerpt { color: #666; font-size: 15px; line-height: 1.7; margin: 0 0 14px 0; }
.mobile-article-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.mobile-article-views { color: #666; font-size: 13px; }
.mobile-article-more { color: #8B7355; font-weight: 600; font-size: 15px; }
.mobile-pagination { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 24px 16px; flex-wrap: wrap; }
.mobile-page-btn { padding: 10px 18px; border: 1px solid #ddd; background: white; color: #333 !important; border-radius: 8px; text-decoration: none !important; font-size: 15px; }
.mobile-page-btn-active { background: #8B7355; color: white !important; border-color: #8B7355; }
.mobile-empty-state { text-align: center; padding: 60px 20px; color: #666; font-size: 16px; }

/* 6. 打卡攻略 (寺院丰富的一天) 专属组件样式 (PC & Mobile) */
.temple-day-page {
    --bg-color: #fdfbf7;
    --text-color: #2c2c2c;
    --accent-color: #8b4513;
    --secondary-accent: #a52a2a;
    --green-accent: #4a5d23;
    --card-bg: #ffffff;
    --border-color: #e0d8c8;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    border-radius: 16px;
    overflow: hidden;
}
.temple-day-page .hero-header {
    height: 55vh;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('/static/uploads/temple-day/寺院丰富的一天65.png') no-repeat center center/cover;
    color: white;
    position: relative;
    border-radius: 12px;
    margin-bottom: 2rem;
}
.temple-day-page .hero-header h1 {
    font-size: 3.2rem !important;
    margin-bottom: 0.8rem !important;
    letter-spacing: 0.2rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    color: white !important;
    border: none !important;
    padding: 0 !important;
}
.temple-day-page .hero-header p {
    font-size: 1.4rem !important;
    opacity: 0.95;
    color: #fff8e1 !important;
    margin: 0 auto !important;
}
.temple-day-page .activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    padding: 20px 0 40px;
    width: 100%;
}
.temple-day-page .card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.temple-day-page .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.temple-day-page .card-image-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}
.temple-day-page .card-image-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    margin: 0 !important;
    border-radius: 0 !important;
    transition: transform 0.5s ease;
}
.temple-day-page .time-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(139, 69, 19, 0.85);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 2;
}
.temple-day-page .card-content {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.temple-day-page .card-title {
    font-size: 1.4rem !important;
    color: var(--accent-color) !important;
    margin: 0 0 12px 0 !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    border: none !important;
    padding: 0 !important;
}
.temple-day-page .card-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.2rem;
    background-color: var(--secondary-accent);
    border-radius: 2px;
}
.temple-day-page .card-text {
    font-size: 0.95rem !important;
    color: #555 !important;
    margin-bottom: 16px !important;
}
.temple-day-page .mini-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: auto;
}
.temple-day-page .mini-gallery img {
    width: 100% !important;
    aspect-ratio: 1;
    height: 60px !important;
    object-fit: cover;
    border-radius: 4px !important;
    margin: 0 !important;
    cursor: pointer;
    transition: opacity 0.2s;
}
.temple-day-page .mini-gallery img:hover { opacity: 0.8; }
.temple-day-page .footer-note {
    background: #f4f0e6;
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 20px;
}
.temple-day-page .footer-note p {
    font-size: 1.05rem !important;
    color: var(--green-accent) !important;
    max-width: 800px;
    margin: 0 auto !important;
    font-style: italic;
}

/* 移动端打卡攻略样式 */
.temple-day-mobile { background-color: #fdfbf7; padding-bottom: 30px; }
.temple-day-mobile .hero-banner {
    height: 32vh;
    min-height: 220px;
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('/static/uploads/temple-day/寺院丰富的一天65.png') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 16px;
}
.temple-day-mobile .hero-banner h1 { font-size: 1.8rem !important; letter-spacing: 4px; margin-bottom: 8px !important; color: #fff !important; border: none !important; padding: 0 !important; }
.temple-day-mobile .guide-container { padding: 8px 0; }
.temple-day-mobile .activity-card { background: white; border-radius: 16px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.05); border: 1px solid #eee; }
.temple-day-mobile .card-img-box { width: 100%; height: 210px; position: relative; background: #f4f4f4; }
.temple-day-mobile .card-img-box img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; margin: 0 !important; border-radius: 0 !important; }
.temple-day-mobile .time-tag { position: absolute; top: 12px; right: 12px; background: rgba(139, 69, 19, 0.85); color: white; padding: 4px 10px; border-radius: 20px; font-size: 11px; z-index: 10; }
.temple-day-mobile .card-info { padding: 15px; }
.temple-day-mobile .card-title { font-size: 1.2rem !important; color: #5d4037 !important; margin: 0 0 8px 0 !important; border: none !important; padding: 0 !important; display: flex; align-items: center; gap: 8px; }
.temple-day-mobile .card-title::before { content: ''; width: 3px; height: 16px; background: #c5a368; }
.temple-day-mobile .card-desc { font-size: 0.92rem !important; color: #666 !important; line-height: 1.6 !important; margin-bottom: 12px !important; }
.temple-day-mobile .thumb-gallery { display: flex; gap: 10px; overflow-x: auto; padding: 5px 2px; scrollbar-width: none; }
.temple-day-mobile .thumb-item { width: 65px !important; height: 65px !important; border-radius: 8px !important; object-fit: cover; flex-shrink: 0; cursor: pointer; margin: 0 !important; }
.temple-day-mobile .bottom-notice { background: #f4f0e6; padding: 16px; border-radius: 12px; font-size: 13px; color: #5d4037; text-align: center; margin-top: 12px; }

/* 7. 寺院日常与活动预告卡片彩色缩略图补充 */
.practice-card .thumb { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 64px; color: #fff; border-radius: 10px; margin-bottom: 1rem; }
.practice-card .thumb.t1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.practice-card .thumb.t2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.practice-card .thumb.t3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.practice-card .thumb.t4 { background: linear-gradient(135deg, #fa709a, #fee140); }
.practice-card .thumb.t5 { background: linear-gradient(135deg, #30cfd0, #330867); }
.practice-card .thumb.t6 { background: linear-gradient(135deg, #43e97b, #38f9d7); }

/* 8. 交通地址地图占位符与移动端地址卡片样式 */
.map-image-wrapper { width: 100%; height: 450px; position: relative; overflow: hidden; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #f5f5f5; }
.map-image-wrapper img { max-width: 100% !important; height: auto !important; max-height: 100% !important; object-fit: contain; display: block; margin: 0 auto !important; }
.map-placeholder { width: 100%; height: 450px; background: linear-gradient(135deg, #8B7355 0%, #A0522D 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; text-align: center; padding: 2rem; border-radius: 12px; }

@media (max-width: 768px) {
    .abbot-profile, .address-info { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
    .activities-grid { grid-template-columns: 1fr !important; }
    .contact-details { height: auto !important; padding-right: 0 !important; }
    .hero-content h1 { font-size: 36px !important; }
    .hero-content p { font-size: 18px !important; }
}

