/* 基础样式与变量定义 */
:root {
    --primary-color: #8B5A2B; /* 主色调 - 棕色 */
    --secondary-color: #A68B65; /* 次要色调 - 浅棕色 */
    --accent-color: #D4A76A; /* 强调色 - 金色 */
    --light-color: #F8F9FA; /* 浅色背景 */
    --dark-color: #343A40; /* 深色文字 */
    --text-color: #495057; /* 正文文字颜色 */
    --white: #FFFFFF; /* 白色 */
    --gray: #E9ECEF; /* 灰色 */
    --border-radius: 4px; /* 圆角大小 */
    --box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    --transition: all 0.3s ease; /* 过渡效果 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
    margin-top: 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 10px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* 顶部信息栏 */
.top-bar {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 5px 0;
    font-size: 14px;
}



.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.current-date {
    font-family: Arial, sans-serif;
    color: #666;
}



.top-bar a {
    color: #ccc;
}

.top-bar a:hover {
    color: var(--white);
}
.bityiche{float: left;color: #fff;font-size: 12px;line-height: 36px;}
.language-switcher {
    text-align: right;
}

/* 主导航 */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* PC端：LOGO靠左，导航靠右 */
    position: relative;
}

.main-header.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-shrink: 0;
    z-index: 1001; /* 确保在移动端菜单上方 */
}

.logo img {
    height: 50px;
    transition: all 0.3s ease;
}


.main-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--dark-color);
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}


.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.mobile-menu-btn {
    display: none; /* 默认隐藏 */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 移动端菜单激活状态 */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* 轮播图 */
.hero-slider {
    position: relative;
    height: 500px; /* PC端高度 */
    max-height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 关键属性：保持图片比例 */
    object-position: center; /* 始终居中显示图片重点区域 */
}

.slide-content {
    position: absolute;
    bottom: 80px;
    left: 80px;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 30px;
    max-width: 500px;
    border-radius: var(--border-radius);
}

.slide-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--white);
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
}


.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.slider-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    background-color: var(--white);
}

/* 内容区块 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title span {
    display: inline-block;
    padding: 0 20px;
    background-color: var(--light-color);
    position: relative;
    z-index: 1;
    font-size: 32px;
    color: var(--primary-color);
    font-weight: normal;
}

.section-title:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    z-index: 0;
}

.bg-light {
    background-color: var(--gray);
}

.bg-dark {
    background-color: var(--dark-color);
    color: var(--white);
}

/* 寺庙简介 */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.intro-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.intro-image img {
    transition: var(--transition);
}

.intro-image:hover img {
    transform: scale(1.05);
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: inline-block;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.feature-item p {
    font-size: 14px;
    color: var(--text-color);
}

/* 师父简介 */
.master-profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.master-image {
    height: 100%;
}

.master-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.master-info {
    padding: 40px;
}

.master-info h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.master-info .title {
    font-size: 16px;
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 20px;
}

.master-info p {
    margin-bottom: 15px;
    line-height: 1.8;
}
/* 纯文字资讯列表样式 */
.news-section {
    padding: 60px 0;
    margin-top:40px;
    position: relative;
}

.news-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: -1;
}

.news-list-text {
    width: 100%;
    max-width: 1200px; /* 与网站其他内容同宽 */
    margin: 0 auto;
}

.news-item-text {
    padding: 25px;
    margin-bottom: 15px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.news-item-text:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 90, 43, 0.1);
    border-left-color: var(--primary-color);
}

.news-item-text h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #5a3921;
    font-weight: 600;
}

.news-item-text h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.news-item-text h3 a:hover {
    color: var(--primary-color);
}

.news-item-text .meta {
    display: flex;
    align-items: center;
    color: #8b7b6d;
    font-size: 14px;
    margin-bottom: 12px;
}

.news-item-text p {
    color: #5a4a42;
    line-height: 1.8;
    font-size: 15px;
}

/* 最后一个项目不需要下边距 */
.news-item-text:last-child {
    margin-bottom: 0;
}


/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    background-color: var(--gray);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-color);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    color: var(--primary-color);
}

/* 分页导航 */
.pagination {
    margin-top: 30px;
}

.pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    display: inline;
}

.pagination a,
.pagination span {
    float: left;
    padding: 5px 14px;
    margin: 0px 5px 3px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 12px;
    color: #666;
    background-color: #FFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.pagination a:hover {
    color: #ffffff;
    background-color: var(--primary-color, rgb(54, 144, 207));
    border-color: var(--primary-color, #3690cf);
}

.pagination .active span {
    color: #ffffff;
    background-color: var(--primary-color, rgb(54, 144, 207));
    border-color: var(--primary-color, #3690cf);
}

/* 内容页样式 */
.article-detail {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 900px;
    margin: 0 auto;
}

.article-detail h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.article-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.article-meta i {
    margin-right: 5px;
}

.featured-image {
    width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: var(--border-radius);
}

.article-content h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray);
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.image-gallery img {
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.image-gallery img:hover {
    transform: scale(1.02);
}

.article-navigation {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid var(--gray);
}

.article-navigation a {
    color: var(--text-color);
    transition: var(--transition);
}

.article-navigation a:hover {
    color: var(--primary-color);
}


/* 页脚 */
.main-footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-about h3:after,
.footer-links h3:after,
.footer-contact h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-about p {
    color: #bbb;
    margin-bottom: 20px;
    line-height: 1.6;
}
address a {
    color: #bbb;
}
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-align: center;
    line-height: 40px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* 微信二维码弹出样式 */
.wechat-popup-trigger {
    position: relative;
    display: inline-block;
}

.wechat-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: 15px;
}

.wechat-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.wechat-popup img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.wechat-popup p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.wechat-popup-trigger:hover .wechat-popup,
.wechat-popup-trigger:focus-within .wechat-popup {
    opacity: 1;
    visibility: visible;
}

.footer-links ul {
    display: flex;          /* 改为flex布局 */
    flex-wrap: wrap;       /* 允许换行 */
    gap: 12px 30px;        /* 行间距12px，列间距30px */
    margin: 0;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    color: #bbb;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 18px;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 14px;
}
.footer-bottom a {
    color: #9d9d9f;
}

/* 佛教格言轮播 */
.quote-carousel {
    padding: 80px 0;
    position: relative;
}

.quote-container {
    position: relative;
   /* margin-top:30px;
    min-height: 20px;  固定高度防止跳动 */
}

.quote-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.quote-item.active {
    opacity: 1;
}


.quote-item blockquote {
    position: relative;
    padding: 0 15%; /* 为引号留出空间 */
    margin: 0 auto;
    font-size: 22px;
    line-height: 1.5;
    text-align: center;
    box-sizing: border-box;
}

.quote-item blockquote:before,
.quote-item blockquote:after {
    content: '"';
    font-size: 3em; /* 使用em单位更灵活 */
    color: rgba(212, 167, 106, 0.3);
    position: absolute;
    line-height: 0; /* 解决基线对齐问题 */
}

.quote-item blockquote:before {
    top: 0.5em;
    left: 0;
}

.quote-item blockquote:after {
    bottom: 0;
    right: 0;
}

.quote-item footer {
    font-size: 16px;
    font-style: normal;
    margin-top: 20px;
    color: var(--accent-color);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: var(--accent-color);
    transform: scale(1.2);
}
/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white !important; /* 强制文字颜色 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    text-decoration: none;
}

/* 显示状态 */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 图标固定样式 */
.back-to-top i {
    font-size: 20px;
    display: block !important; /* 强制显示 */
    opacity: 1 !important; /* 强制不透明 */
    transition: none !important; /* 禁用可能存在的动画 */
}

/* 鼠标悬停状态 */
.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* 确保图标在悬停时不变 */
.back-to-top:hover i {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 图标字体 */
@font-face {
    font-family: 'iconfont';
    src: url('fonts/iconfont.eot');
    src: url('fonts/iconfont.eot?#iefix') format('embedded-opentype'),
        url('fonts/iconfont.woff2') format('woff2'),
        url('fonts/iconfont.woff') format('woff'),
        url('fonts/iconfont.ttf') format('truetype'),
        url('fonts/iconfont.svg#iconfont') format('svg');
}

.icon-history:before,
.icon-environment:before,
.icon-activities:before,
.icon-calendar:before,
.icon-user:before,
.icon-eye:before,
.icon-location:before,
.icon-phone:before,
.icon-email:before,
.icon-wechat:before,
.icon-weibo:before {
    font-family: "iconfont" !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-history:before { content: "\e601"; }
.icon-environment:before { content: "\e602"; }
.icon-activities:before { content: "\e603"; }
.icon-calendar:before { content: "\e604"; }
.icon-user:before { content: "\e605"; }
.icon-eye:before { content: "\e606"; }
.icon-location:before { content: "\e607"; }
.icon-phone:before { content: "\e608"; }
.icon-email:before { content: "\e609"; }
.icon-wechat:before { content: "\e60a"; }
.icon-weibo:before { content: "\e60b"; }