﻿/* tlqs.css - 1:1 复刻 AdminBuy 佛教模板样式 */

/* --- 1. 全局设置 --- */
:root {
    --theme-red: #A31718;    /* 核心寺庙红 */
    --text-dark: #333333;    /* 正文深灰 */
    --text-light: #666666;   /* 辅助浅灰 */
    --bg-light: #f9f9f9;     /* 浅色背景 */
}

body {
    font-family: "Microsoft YaHei", "Heiti SC", sans-serif;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
    padding-top: 0;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
a:hover { color: var(--theme-red); }
ul { list-style: none; padding: 0; margin: 0; }

/* --- 2. 顶部导航 (Header) --- */
.header-area {
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo-box img { max-height: 60px; }

.main-nav ul { gap: 40px; }
.main-nav ul li a {
    font-size: 16px; font-weight: bold; color: #333;
    padding: 25px 0; display: block; position: relative;
}

/* 导航激活/悬停状态 */
.main-nav ul li a:hover,
.main-nav ul li a.active { color: var(--theme-red); }
.main-nav ul li a::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 0; height: 3px;
    background: var(--theme-red); transition: width 0.3s;
}
.main-nav ul li a:hover::after { width: 100%; }

/* 左侧菜单栏增强样式 */
.main-nav {
    margin-bottom: 0px;
    padding: 15px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.nav-list {
    list-style: none;
}

.hu-nav-item {
    margin: 2px 15px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #555;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background-color: #f8f9fa;
    color: var(--theme-red);
    transform: translateX(5px);
    border-left: 3px solid var(--theme-red);
}

.hu-nav-item.active .nav-link {
    background-color: #fff0f0;
    color: var(--theme-red);
    font-weight: 500;
    border-left: 3px solid var(--theme-red);
}

.nav-icon {
    margin-right: 12px;
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

.recommended-section,
.contact-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.recommended-section:hover,
.contact-section:hover {
    box-shadow: 0 6px 16px rgba(163, 23, 24, 0.1);
    transform: translateY(-2px);
}

.recommended-section {
    border-top: 3px solid var(--theme-red);
}

.contact-section {
    border-top: 3px solid #3498db;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--theme-red);
}

.recommended-list {
    list-style: none;
}

.recommended-item {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.recommended-item:last-child {
    border-bottom: none;
}

.recommended-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5px;
    text-decoration: none;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.recommended-link:hover {
    background-color: #fdf0f0;
    color: var(--theme-red);
    padding-left: 10px;
}

.recommended-text {
    flex: 1;
}

.recommended-badge {
    font-size: 0.8rem;
    margin-left: 8px;
}

.contact-info {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    padding: 5px 0;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--theme-red);
}

.contact-text {
    flex: 1;
    color: #666;
    line-height: 1.5;
}

/* --- 3. 轮播图样式 (Carousel) - 修改点 --- */
/* 控制轮播图片的高度和显示方式 */
.banner-slide-img {
    height: 600px;           /* 电脑端高度，保持大气 */
    object-fit: cover;       /* 确保图片填满且不变形 */
    object-position: center; /* 图片居中显示 */
}

/* 修改指示器(底部小横线)颜色 */
.carousel-indicators [data-bs-target] {
    background-color: var(--theme-red); /* 默认红色 */
    height: 4px;
    width: 40px;
    border-radius: 2px;
}
.carousel-indicators .active {
    background-color: #fff; /* 激活时变为白色，增加对比 */
}

/* 移动端适配：减小 Banner 高度 */
@media (max-width: 768px) {
    .banner-slide-img { height: 260px; }
}

/* 通知栏 */
.notice-bar {
    background: #222; color: #ccc; height: 90px;
    line-height: 25px; font-size: 14px;
}
.notice-text i { margin-right: 8px; }

/* 现代风格按钮样式 */
.modern-btn {
    display: inline-block;
    margin-top: 5px;
    padding: 12px 30px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 50px;      /* 长圆角矩形 */
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.modern-btn:hover {
    background-color: var(--theme-red);  /* 红底 */
    color: #ffffff;                     /* 白字 */
    text-decoration: none;
}

/* --- 4. 通用版块标题 --- */
.section-padding { padding: 70px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 30px; color: #333; margin-bottom: 10px; font-weight: bold; }
.section-header .line { display: inline-block; width: 50px; height: 2px; background: var(--theme-red); margin-bottom: 10px; }
.section-header .en-title { color: #999; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }

/* --- 5. 法会活动 (Activity) --- */
/* --- 5. 法会活动 (Activity) - 交互增强版 --- */
.activity-box {
    background: #fff;
    transition: transform 0.3s;
    cursor: pointer;
    overflow: hidden; /* 防止放大时溢出 */
}
/* 整体轻微上浮效果 */
.activity-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}
.img-wrapper img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease; /* 图片缩放更柔和 */
}
/* 鼠标悬停时：图片放大 */
.activity-box:hover .img-wrapper img {
    transform: scale(1.1);
}

/* 遮罩层样式 (修改点) */
.img-wrapper .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(163, 23, 24, 0.7); /* 使用半透明主题红，或者用黑色 rgba(0,0,0,0.6) */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* 默认隐藏 */
    transition: all 0.4s ease;
}

/* 遮罩层里的标题样式 */
.img-wrapper .overlay h4 {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    transform: scale(0.8); /* 初始稍微缩小 */
    transition: transform 0.4s ease;
    margin: 0;
    padding: 0 20px;
    text-align: center;
    border-bottom: 2px solid #fff; /* 增加一点装饰线 */
    padding-bottom: 5px;
}

/* 鼠标悬停时：遮罩层显示 */
.activity-box:hover .overlay {
    opacity: 1;
}
/* 鼠标悬停时：标题放大 */
.activity-box:hover .overlay h4 {
    transform: scale(1.15); /* 放大 1.15 倍 */
}

/* 底部文字区域 (修改点) */
.text-content {
    padding: 20px 0;
    text-align: center;
    transition: opacity 0.3s ease; /* 增加透明度过渡 */
}
.text-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}
.text-content p {
    color: #888;
    font-size: 13px;
    margin: 0;
}

/* 鼠标悬停时：底部文字隐藏 */
.activity-box:hover .text-content {
    opacity: 0; /* 变透明 */
}

/* --- 6. 弘法服务 (Services) --- */
/* --- 6. 弘法服务 (Services) - 悬停特效版 --- */

.service-item {
    background: #fff;
    padding: 40px 20px; /* 增加内边距，让卡片看起来更饱满 */
    border: 1px solid #eee; /* 默认浅色边框 */
    border-radius: 4px; /* 默认微圆角 */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 使用弹性过渡曲线，放大时更有质感 */
    position: relative; /* 确保层级控制生效 */
}

/* 鼠标悬停时的核心效果 */
.service-item:hover {
    transform: scale(1.1); /* 【放大】整体放大1.1倍 */
    border-radius: 20px;   /* 【圆角】变成大圆角 */
    box-shadow: 0 15px 30px rgba(163, 23, 24, 0.15); /* 添加带红色的阴影 */
    border-color: transparent; /* 隐藏边框，让阴影更突出 */
    z-index: 10; /* 保证放大的卡片盖住周围元素 */
}

/* 图标区域 */
.icon-box {
    width: 70px; 
    height: 70px;
    background: #f8f8f8;
    border-radius: 50%;
    line-height: 70px;
    margin: 0 auto 20px;
    color: #666;
    font-size: 28px;
    transition: all 0.4s ease;
}

/* 悬停时：图标背景变红，图标变白，并且旋转一圈 */
.service-item:hover .icon-box {
    background: var(--theme-red);
    color: #fff;
    transform: rotate(360deg); /* 增加一个旋转动画，更生动 */
}

/* 标题样式 */
.service-item h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    transition: color 0.3s ease;
}

/* 悬停时：标题【变色】 */
.service-item:hover h4 {
    color: var(--theme-red);
}

/* 英文小字 */
.en-small {
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    transition: color 0.3s;
}

/* 悬停时：小字也稍微变深一点 */
.service-item:hover .en-small {
    color: #666;
}

/* --- 7. 引用视差 (Parallax) --- */
.quote-parallax {
    height: 350px; background-attachment: fixed; background-position: center; background-size: cover; position: relative;
}
.quote-parallax::before { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.6); }
.quote-main { position: relative; z-index: 2; font-size: 32px; font-weight: normal; letter-spacing: 3px; margin-bottom: 15px; }
.quote-sub { position: relative; z-index: 2; font-size: 16px; opacity: 0.8; }

/* --- 8. 法师介绍 (Masters) --- */
.master-card { background: #fff; text-align: center; padding-bottom: 15px; }
.master-img { overflow: hidden; margin-bottom: 15px; border-radius: 5px; }
.master-img img { width: 100%; height: auto; transition: transform 0.5s; }
.master-card:hover .master-img img { transform: scale(1.05); }
.master-info h4 { font-size: 18px; color: #333; margin-bottom: 5px; }
.master-info p { color: #999; font-size: 13px; }

/* --- 9. 关于/历史 (Landscape) --- */
.about-section { height: 480px; background-position: center; background-size: cover; position: relative; }
.about-text-box {
    position: absolute; top: 50%; right: 10%; transform: translateY(-50%);
    width: 500px; background: rgba(0, 0, 0, 0.75); padding: 40px;
    color: #fff; border-left: 5px solid var(--theme-red);
}
.about-text-box h3 { font-size: 24px; margin-bottom: 15px; }
.about-text-box .divider { width: 30px; height: 2px; background: #fff; margin-bottom: 20px; }
.about-text-box p { font-size: 14px; line-height: 1.8; opacity: 0.9; }
.about-text-box .btn-outline-light:hover { background: var(--theme-red); border-color: var(--theme-red); }

/* --- 10. 联系我们 & Footer --- */
.contact-item-fj {
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;  /* 添加相对定位 */
}
.contact-item-fj i { font-size: 36px; color: var(--theme-red); margin-bottom: 15px; }
.contact-item-fj h5 { font-size: 16px; font-weight: bold; margin-bottom: 5px; }
.contact-item-fj p { color: #888; }
.contact-item-fj:hover {
    z-index: 10;  /* 提高层级 */
    transform: translateY(-5px);  /* 减少移动距离 */
    box-shadow: 0 10px 20px rgba(163, 23, 24, 0.2);  /* 添加阴影 */
    border: 2px solid var(--theme-red);  /* 红色边框 */
    background-color: #fff;  /* 白色背景 */
}
.footer-area { background: #252525; color: #777; padding: 40px 0; font-size: 13px; border-top: 3px solid var(--theme-red); }
.footer-links a { margin: 0 10px; color: #aaa; }
.footer-links a:hover { color: #fff; }

@media (max-width: 768px) {
    .about-text-box { width: 90%; right: 5%; bottom: 20px; top: auto; transform: none; }
    .quote-main { font-size: 20px; }
    .section-padding { padding: 40px 0; }
}



/* 关于我们 */
/* =========================================
   About.html 专用样式 (追加到文件末尾)
   ========================================= */

/* 1. 内页 Banner */
.page-banner {
    width: 100%;
    height: 350px;
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

/* 2. 面包屑导航条 */
.breadcrumb-bar {
    background-color: #f5f5f5; /* 浅灰背景 */
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
    height: 50px;
}
.breadcrumb-bar a {
    color: #666;
}
.breadcrumb-bar a:hover {
    color: var(--theme-red);
}
.breadcrumb-bar .current {
    color: #333; /* 当前页颜色深一点 */
}

/* 3. 本寺概况 - 文字排版 */
.article-content {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 2.0; /* 增加行高，还原图片中的通透感 */
    color: #444;
    text-align: justify; /* 两端对齐 */
}
.article-content p {
    text-indent: 2em; /* 首行缩进2字符 */
    margin-bottom: 20px;
}

/* 标题下的分割线 (替换首页的样式以匹配此图) */
.divider-line {
    width: 60px;
    height: 3px;
    background: var(--theme-red);
    margin: 15px auto 30px;
}
.sub-desc {
    color: #888;
    font-size: 14px;
    margin-top: -20px;
    margin-bottom: 40px;
}

/* 4. 法师卡片 (内页专用样式) */
.master-card-inner {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* 轻微阴影 */
    transition: transform 0.3s;
    padding-bottom: 15px; /* 底部留白 */
}
.master-card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.master-img-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 133%; /* 3:4 比例，还原竖长图 */
    position: relative;
    overflow: hidden;
}
.master-img-wrapper img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.master-card-inner:hover .master-img-wrapper img {
    transform: scale(1.05);
}

.master-name {
    padding-top: 15px;
}
.master-name h4 {
    font-size: 16px;
    color: #333;
    margin: 0;
    font-weight: normal; /* 图片中名字看起来不是很粗 */
}


/* =========================================
   Activities.html 专用样式 (追加到文件末尾)
   ========================================= */

/* 1. 筛选分类按钮 */
.filter-bar {
    margin-bottom: 40px;
}
.filter-btn {
    display: inline-block;
    padding: 8px 35px;
    margin: 0 10px;
    border-radius: 50px; /* 胶囊形状 */
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}
/* 激活状态和悬停状态 */
.filter-btn.active, .filter-btn:hover {
    background: var(--theme-red); /* 寺庙红 */
    color: #fff;
    border-color: var(--theme-red);
    box-shadow: 0 4px 10px rgba(163, 23, 24, 0.2);
}

.filter-btn-hu {
    display: inline-block;
    padding: 8px 35px;
    margin: 0 10px;
    border-radius: 50px; /* 胶囊形状 */
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}
/* 激活状态和悬停状态 */
.filter-btn-hu.active, .filter-btn-hu:hover {
    background: var(--theme-red); /* 寺庙红 */
    color: #fff;
    border-color: var(--theme-red);
    box-shadow: 0 4px 10px rgba(163, 23, 24, 0.2);
}

/* 2. 图片画廊样式 (1:1 还原圆角矩形图) */
.gallery-item {
    position: relative;
    border-radius: 8px; /* 圆角 */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 260px; /* 固定高度，保证整齐 */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
/* 简单的悬停放大 */
.gallery-item:hover img {
    transform: scale(1.08);
}

/* 遮罩层 (悬停显示搜索图标) */
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex; justify-content: center; align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-overlay i {
    color: #fff;
    font-size: 24px;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* 3. 分页条 (还原底部方块按钮) */
.pagination-bar {
    font-size: 13px;
    color: #666;
}
.page-btn {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    margin: 0 3px;
    border-radius: 2px;
    transition: all 0.2s;
}
/* 激活的页码 (黑色背景) */
.page-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}
.page-btn:hover:not(.active) {
    border-color: var(--theme-red);
    color: var(--theme-red);
}
.page-info {
    margin: 0 5px;
    color: #999;
}

/* =========================================
   News.html 专用样式 (追加到文件末尾)
   ========================================= */

/* 1. 新闻列表项 */
.news-item {
    display: flex;
    padding: 30px 0;
    border-bottom: 1px solid #eee; /* 分割线 */
    transition: all 0.3s;
}
.news-item:first-child {
    border-top: 1px solid #eee; /* 第一项加顶部分割线，匹配图片效果 */
}
.news-item:hover {
    background-color: #fcfcfc; /* 悬停微亮背景 */
}

/* 2. 左侧日期盒 */
.news-date-box {
    width: 100px;
    height: 100px;
    background-color: #f1f1f1; /* 浅灰背景 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 30px;
    flex-shrink: 0; /* 防止被压缩 */
    border-radius: 4px;
}
.news-date-box .day {
    font-size: 32px;
    font-weight: bold;
    color: #666;
    line-height: 1;
    margin-bottom: 5px;
}
.news-date-box .ym {
    font-size: 14px;
    color: #999;
}

/* 3. 右侧内容 */
.news-content-box {
    flex-grow: 1;
}
.news-content-box h4 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}
.news-content-box h4 a {
    color: #333;
    transition: color 0.3s;
}
.news-content-box h4 a:hover {
    color: var(--theme-red); /* 悬停变红 */
}
.news-content-box p {
    color: #888;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
    /* 多行文本省略号 (可选) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }
    .news-date-box {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    .news-date-box .day { font-size: 24px; }
    .news-date-box .ym { font-size: 12px; }
}



/* =========================================
   Contact.html 专用样式 (追加到文件末尾)
   ========================================= */

/* 1. 左侧表单卡片 */
.contact-form-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03); /* 轻柔阴影 */
    height: 100%;
}

.contact-form-box .form-label {
    color: #444;
    font-weight: 500;
    margin-bottom: 10px;
}

/* 自定义输入框样式 */
.custom-input {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s;
}
.custom-input:focus {
    border-color: var(--theme-red);
    box-shadow: 0 0 0 3px rgba(163, 23, 24, 0.1);
}
.custom-input::placeholder {
    color: #bbb;
    font-size: 13px;
}

/* 提交按钮 */
.btn-submit {
    background-color: var(--theme-red);
    color: #fff;
    padding: 10px 40px;
    border-radius: 4px;
    border: none;
    font-size: 15px;
    transition: background 0.3s;
}
.btn-submit:hover {
    background-color: #8a1213; /* 深一点的红色 */
    color: #fff;
}

/* 2. 右侧联系方式卡片 */
.contact-info-box {
    background: #fff;
    padding: 0; /* 内部布局需要，由子元素控制padding */
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    overflow: hidden;
}

.info-title {
    text-align: center;
    padding: 25px 0;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.info-list {
    padding: 10px 30px 30px;
}

.info-item {
    display: flex;
    align-items: flex-start; /* 顶部对齐，适应多行地址 */
    padding: 25px 0;
    border-bottom: 1px solid #f5f5f5;
}

/* 图标样式 */
.info-item .icon {
    width: 20px;
    margin-right: 15px;
    color: var(--theme-red);
    font-size: 18px;
    padding-top: 2px; /* 微调对齐 */
}

/* 文字区域 */
.info-item .text {
    flex: 1;
}
.info-item .label {
    display: block;
    color: #888;
    font-size: 13px;
    margin-bottom: 5px;
}
.info-item p {
    margin: 0;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}