 * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
@font-face{
    font-family: 'FZFeiFTJ-1';
    src: url('../font/FZFeiFTJ-1.otf') format('opentype');
}
@font-face{
    font-family: 'pingfang';
    src: url('../font/苹方字体.ttf') format('truetype');
}
@font-face{
    font-family: 'Tibet';
    src: url('../font/fontYagpoUni.pdf') format('truetype');
}
    body {
      font-family: 'pingfang', sans-serif;
      color: #333;
      line-height: 1.8;
      font-size: 18px;
    }
    a {
      text-decoration: none;
      color: #333;
    }
    img{
      max-width: 100%;
      height: auto;
      display: block;
    }
     /* 头部导航 */
.header{
    width: 100%;
    height: 100px;
    background-color: rgba(71, 195, 206, 0.73);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}
.header{
    width: 100%;
    height: 100px;
    background-color: rgba(71, 195, 206, 0.73);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}
.nav{
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nav-logo{
    width: 130px;
    margin: 15px 45px;
}
.nav-list{
    display: flex;
    list-style: none;
    align-items: center;
}
.nav-list li{
    margin: 30px 45px;
}
.nav-list li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    position: relative; /* 为伪元素提供定位参考 */
    letter-spacing: 3px;
}

.nav-list li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px; /* 距离文字底部6px */
    transform: translateX(-50%); /* 水平居中 */
    width: 40px;
    height: 3px;
    background-color: #ffffff; /* 白色背景 */
    opacity: 0; /* 初始隐藏 */
    transition: opacity 0.3s ease; /* 过渡效果 */
}

.nav-list li a:hover::after {
    opacity: 1; /* 鼠标悬停时显示 */
}
.nav-login a{
    margin-left: 20px;
}
.nav-list li a.active::after {
    opacity: 1; /* 激活状态下始终显示下划线 */
}
    .banner {
      position: relative;
      color: #fff;
      text-align: center;
    }
    .banner img {
      width: 100%;
      height: 600px;
      object-fit: cover;
    }
    .banner-text{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 1;
    font-size: 50px;
    margin-bottom: 20px;
    font-family: 'FZFeiFTJ-1', sans-serif;
    font-weight: normal;
    width: 900px;
}
    /* 内容区块通用样式 */
    .section-title{
    text-align: center;
    font-size: 30px;
    margin-bottom: 20px;
    position: relative;
    font-family: 'pingfang', sans-serif;
    letter-spacing: 2px;
}
.section-title2{
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    position: relative;
    top:-15px;
    color: #929392;
    font-family: 'pingfang', sans-serif;
    letter-spacing: 2.3px;
}
.section-title::after{
    content: "";
    width: 80px;
    height: 3px;
    background-color: #00bcd4;
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}
.container1 {
    width: 50%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.container2 {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.section {
    margin-bottom: 60px;
}

/* 寺庙卡片布局 */
.temple-list {
    display: grid; 
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr); 
    gap: 20px;
    margin-top: 30px;
    padding: 0;
    position: relative; 
}

.temple-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
 
}

.temple-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    grid-template-rows: repeat(2, 1fr); 
    gap: 20px;
    margin-top: 30px;
    padding: 0;
    position: relative;
}

.temple-item1 {
    grid-row: 1 / 3; 
    grid-column: 1; 
}
.temple-item2 { 
    grid-row: 1;   
    grid-column: 2;  
}
.temple-item3 { 
    grid-row: 2;   
    grid-column: 2;  
}

.temple-item img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    transition: all 0.3s ease; /* 添加过渡效果 */
}

.temple-item .temple-info {
  position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 20px;
    text-align: center;
    color: #fff;
    font-size: 18px;
    font-family: 'pingfang', sans-serif;
    font-weight: lighter;
    letter-spacing: 2px;
    z-index: 1;
    line-height: 20px;

}

.temple-item .temple-info h3{
    font-family: 'pingfang', sans-serif;
    font-weight: lighter;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 30px;
}

.temple-item .temple-info h4 {
     font-family: 'pingfang', sans-serif;
    font-weight: lighter;
    letter-spacing: 2px;
    font-size: 25px;
    margin-bottom: 10px;
}

.temple-item .temple-info a {
  font-size: 21px;
    padding: 5px 50px;
    width: 210px;
    background-color: rgba(71, 195, 206, 0.73);
    border-radius: 10px;
    display: inline-block;
    text-decoration: none;
    color: #fff;
    margin-top: 5px;
    transition: all 0.3s ease;

}
    /* 转经、藏毯等图文排版 */
.text-img-row1 {
  display: flex;
  flex-direction: row;
  align-items: flex-start; 
  gap: 80px; 
  margin-bottom: 60px; 
}
/* 初始状态：隐藏文字，图片居中 */
.text-img-row1 {
  position: relative;
  overflow: hidden; /* 隐藏溢出的过渡元素 */
  object-position: center;
}

.text-img-row1 .img-col {
  flex: 0 0 100%; /* 初始占满容器宽度 */
  margin: 0 auto; /* 水平居中 */
  transition: all 0.5s ease; /* 图片过渡效果 */
}

.text-img-row1 .text-col {
  position: absolute; /* 定位在图片上方 */
  top: 0;
  left: 100%; /* 初始隐藏在右侧 */
  flex: 0 0 50%; /* 固定宽度 */
  margin-top: 0; /* 移除初始边距 */
  opacity: 0; /* 初始透明 */
  transition: all 0.5s ease; /* 文字过渡效果 */
}

/* 悬停状态：图片左移，文字右移出现 */
.text-img-row1:hover .img-col {
  flex: 0 0 50%; /* 图片占50%宽度 */
  border-radius: 20px;
  transform: translateX(-50%); /* 向左移动自身50%宽度 */
}

.text-img-row1:hover .text-col {
  left: 50%; /* 定位到容器中间 */
  opacity: 1; /* 显示文字 */
}

/* 补充：优化图片和文字布局 */
.text-img-row1 .img-col img {
  width: 100%;
  height: 400px; /* 固定高度便于观察动效 */
  object-fit: cover;
}

.text-img-row1 .text-col p{
    text-align: justify;
    margin-top: 95px;
  padding: 20px;
  background-color: rgba(255,255,255,0.9); /* 半透明白色背景 */
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
    /* 添加L型边框 */
    position: relative;
    z-index: 0;
    overflow: hidden;
}
.text-img-row1 .text-col span{
    font-size: 25px;
}
.text-img-row1 .text-col p::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    height: 213px;
    width: 3px; /* 边框长度 */ /* 边框粗度 */
    background-color:#00bcd4; /* 渐变颜色 */
} /* 边框颜色

/* 初始状态：隐藏文字，图片居中 */
.text-img-row2 {
  position: relative;
  overflow: hidden; /* 隐藏溢出的过渡元素 */
  object-position: center;
}

.text-img-row2 .img-col {
  flex: 0 0 100%; /* 初始占满容器宽度 */
  margin: 0 auto; /* 水平居中 */
  transition: all 0.5s ease; /* 图片过渡效果 */
}

.text-img-row2 .text-col {
  position: absolute; /* 定位在图片上方 */
  top: 0;
  right: 100%; /* 初始隐藏在右侧 */
  flex: 0 0 50%; /* 固定宽度 */
  margin-top: 0; /* 移除初始边距 */
  opacity: 0; /* 初始透明 */
  transition: all 0.5s ease; /* 文字过渡效果 */
}

/* 悬停状态：图片左移，文字右移出现 */
.text-img-row2:hover .img-col {
  flex: 0 0 50%; /* 图片占50%宽度 */
  border-radius: 20px;
  transform: translateX(50%); /* 向you移动自身50%宽度 */
}

.text-img-row2:hover .text-col {
  right: 50%; /* 定位到容器中间 */
  opacity: 1; /* 显示文字 */
}

/* 补充：优化图片和文字布局 */
.text-img-row2 .img-col img {
  width: 100%;
  height: 400px; /* 固定高度便于观察动效 */
  object-fit: cover;
}

.text-img-row2 .text-col p {
    text-align: justify;
    margin-top: 95px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 10px;
    
    /* 添加L型边框 */
    position: relative;
    z-index: 0;
    overflow: hidden; 
}

/* 底部边框（L型的横线部分） */
.text-img-row2 .text-col p::after {
    content: "";
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    height: 213px;
    width: 3px; /* 边框长度 */ /* 边框粗度 */
    background-color:#00bcd4; /* 渐变颜色 */
} 
.text-img-row2 .text-col span{
    font-size: 25px;
}
.container3 {
    width: 100%;
    height: 900px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    top:50px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* 关键：让子元素垂直堆叠 */
    align-items: center; /* 水平居中标题和 text-img-row */
    justify-content: center; /* 垂直居中所有内容在 container3 内 */
    z-index: 1; /* 确保在其他元素之上 */
}



    .text-img-row .img-col .img{
        border-radius: 20px;
    }
/*  */
.container3 {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    top: -65px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    clear: both;
    height: auto;
    padding-top: 80px;
}

.text-img-row3 {
    width: 100%;
    margin-top: 40px;
    position: relative;
}

.img-container {
    position: relative;
    width: 100%;
     overflow: hidden; /* 确保缩放时内容不溢出 */
    transition: transform 0.5s, box-shadow 0.5s;
}

.img-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 1000px;
    transition: transform 0.5s ease-out;
}
.img-container:hover {
    transform: translateY(-5px); /* 轻微上浮 */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); /* 增强阴影 */
}

.img-container:hover img {
    transform: scale(1.03); /* 图片放大3% */
    filter: brightness(1.05); /* 亮度略微提升 */
}

/* 卡片容器样式 */
.card-container {
perspective: 1000px;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 300px;
    height: 300px;
}

.card {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

/* 卡片正面样式 */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-front {
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card-placeholder {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
}

/* 卡片背面样式 */
.card-back {
    transform: rotateY(180deg);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.card-back p {
    text-align: justify;
    margin: 0;
    font-size: 16px;
}

.card-back span {
    font-size: 25px;
}

/* 悬停效果 - 卡片翻转 */
.img-container:hover .card {
    transform: rotateY(180deg);
}

/* 添加交互提示 */
.img-container {
    cursor: pointer;
}

  /* 底部 */
.footer {
    width: 100%;
    height: 220px;
    background-color: #00bcd4;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    font-size: 18px;
}
.temple-item .temple-info a:hover{
       transform: scale(1.1); /* 鼠标悬停时放大 */
    background-color: rgba(71, 195, 206, 0.9); 
}

.temple-item:hover img {
    transform: scale(1.05); 
    filter: brightness(0.8); /* 鼠标悬停时变暗 */
    filter: grayscale(0.2); /* 鼠标悬停时灰度 */
}

#backToTop {
      position: fixed;
      bottom: 50px;
      right: 50px;
      width: var(--button-size);
      height: var(--button-size);
      background-color: var(--primary-color);
      color: white;
      border: none;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      z-index: 1000;
      cursor: pointer;
      transform: scale(0);
      transform-origin: center;
      transition: all 0.3s ease;
    }
    
    #backToTop.visible {
      opacity: 1;
      visibility: visible;
      transform: scale(1);
    }
    
    #backToTop:hover {
        background:url(../images/up.png) no-repeat center/cover;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
      transform: scale(1.2);
    }
    
    /* 按钮点击动效 */
    #backToTop:active {
      transform: scale(0.95);
    }
    
    /* 箭头图标 */
    .back-to-top-icon {
      position: relative;
      width: 50px;
      height: 50px;
    }