* {
    padding: 0;
    margin: 0;
}







:root {
    --imperial-blue: #d28a39;
    --gold: #4f5f96;
}

@font-face {
    font-family: '鼎猎珠海体';
    src: url('../字体/鼎猎珠海体.ttf') format('truetype');
    font-weight: normal;
    /* 字体粗细 */
    font-style: normal;
    /* 字体样式（斜体） */
}

a {
    font-family: '鼎猎珠海体';
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

/* 消除 li 元素的默认样式 */
ul li {
    list-style-type: none;
    /* 如果需要去除列表项的内边距和外边距，可以添加以下两行 */
    margin: 0;
    padding: 0;
}

/* 其他样式保持不变 */

/* 添加固定导航栏的样式 */
.nav-container.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* 确保导航栏在其他元素之上 */
}

@font-face {
    font-family: '峄山碑篆体';
    /* 自定义字体名称 */
    src: url('../字体/峄山碑篆体.ttf') format('truetype');
    /* 兼容旧浏览器 */
    font-weight: normal;
    /* 字体粗细（根据实际文件调整） */
    font-style: normal;
    /* 字体样式（斜体等） */
}

span {
    font-family: '峄山碑篆体';
    font-size: 32px;
    letter-spacing: 5px;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
}

.nav-container {
    background-color: var(--imperial-blue);
    /* padding: 10px 20px; */
    background-color: #77201f;
    background-size: cover;
}

.nav-bar {
    font-family: '鼎猎珠海体';
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/* 调整图片样式 */
.brand img {
    width: 70px;
    /* 根据实际情况调整宽度 */
    height: auto;
    /* 保持图片比例 */
}

.nav-menu {
    font-family: '鼎猎珠海体';
    display: flex;
    list-style: none;
    position: relative;
    transition: opacity 0.3s;
}

.nav-item {
    margin-left: 15px;
    position: relative;
}

.nav-link {
    font-family: '鼎猎珠海体';
    color: white;
    text-decoration: none;
    padding: 0px 30px;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 24px;
}

.nav-link:hover {
    background-color: #77201f;
    border-radius: 4px;
}

.dropdown-menu {

    display: none;
    list-style: none;
    position: absolute;
    top: 124%;
    left: 0;
    background-color: #77201f;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(119, 181, 186, 0.2);
    opacity: 0;
    transform: translateY(-10px);
    transition:
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    min-height: 40px;
}

.dropdown-menu.visible {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    transition: 0.2s;
}

.dropdown-item a {
    color: #ffffff;
}

.dropdown-item a:active {
    color: #4f5f96;
}

.dropdown-item:hover {
    background-color: #77201f;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 32px;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--imperial-blue);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: #77201f;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown-menu.visible {
        max-height: 500px;
    }

    .hamburger {
        display: block;
    }
}














@font-face {
    font-family: '鼎猎珠海体';
    src: url('../字体/鼎猎珠海体.ttf') format('truetype');
    font-weight: normal;
    /* 字体粗细 */
    font-style: normal;
    /* 字体样式（斜体） */
}

/* 消除 li 元素的默认样式 */
ul li {
    list-style-type: none;
    /* 如果需要去除列表项的内边距和外边距，可以添加以下两行 */
    margin: 0;
    padding: 0;
}

body {
    background: url(../img/figure/背景1.png);
}

.nav {
    width: 100%;
    display: flex;
    background-image: url(../img/culture-1/供养人图像.png);

}

.nav ul {
    display: flex;
    height: 100%;
    margin-top: 10px;
}

.nav ul li {
    width: 8%;
    height: 100%;
    margin-top: 4px;
    margin-bottom: 4px;
    list-style: none;
}

.nav ul li a {
    padding: 2px;
    text-decoration: none;
    color: #081869;
    font-size: 22px;
    font-weight: bold;
}

.nav ul li a:hover {
    border: medium solid #081869;
}

@media (max-width: 1600px) {
    .nav ul li a {
        font-size: 18px;
    }
}

@media (max-width: 1300px) {
    .nav ul li a {
        font-size: 14px;
    }
}

@media (max-width: 1020px) {
    .nav ul li a {
        font-size: 10px;
    }
}

.nav ul:first-child {
    width: 20%;
}

.nav ul:first-child li {
    width: 20%;
    margin-left: 10%;
}

.nav ul:last-child {
    width: 80%;
    margin-left: -9%;
    justify-content: center;
}

@font-face {
    font-family: '余思源颜黄体';
    src: url('../字体/余思源颜黄体.ttf') format('truetype');
    font-weight: normal;
    /* 字体粗细 */
    font-style: normal;
    /* 字体样式（斜体） */
}

.licheng {
    width: 70%;
    display: flex;
    flex-direction: row;
    margin: auto;
    justify-content: center;
    align-items: center;
    text-align: left;
    margin-top: 50px;
    gap: 30px;
    padding: 20px;
    border-radius: 10px;
    background-image: url(../img/gongtong/历史.png);
}

.wen {
    flex: 0 0 50%;
    line-height: 2em;
}

.wen p {
    font-family: '鼎猎珠海体';
}

.tu {
    overflow: hidden;
}

.tu img {
    width: 130%;
}

main {
    width: 70%;
    margin: auto;
    overflow-y: auto;
    height: 100vh;
}

/* 分类部分 */
.title {
    margin: auto;

    /* max-width: 1000px; */
}

.title h1 {
    font-family: '余思源颜黄体';
    font-size: 3rem;
    font-weight: 500;
    margin: 40px auto;
    align-items: center;
    justify-items: center;
    text-align: center;
}

.container {
    /* 弹性布局 允许换行 水平居中 */
    display: flex;
    /* flex-wrap: wrap; */
    gap: 25px;
    justify-content: space-between;
    margin-bottom: 50px;
}

.card {
    width: 500px;
    height: 360px;
    overflow: hidden;
    /* flex: 1; */
    /* margin: 25px; */
    background-color: #000;
    color: #fff;
    cursor: pointer;
    position: relative;
}

.card img {
    width: 100%;
    height: 100%;
    /* 设置过渡 */
    transition: 0.35s;
}

.card .text {
    position: absolute;
    top: 30px;
    left: 30px;
    bottom: 30px;
    right: 30px;
    padding: 0 18px;
}

.card .text::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 100%;
    border-left: 4px solid rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 0;
    /* 过渡 */
    transition: 0.5s;
    /* 过渡延迟时间 */
    transition-delay: 0.6s;
}

.card .text h2,
.card .text p {
    margin-bottom: 6px;
    opacity: 0;
    transition: 0.35s;
}

.card .text h2 {
    font-weight: 300;
    text-transform: uppercase;
    transform: translate(30%, 0%);
    transition-delay: 0.3s;
}

.card .text h2 span {
    font-weight: 400;
    font-family: '余思源颜黄体';
    font-size: 3.2rem;
}

.card .text p {
    font-size: 1.2rem;
    font-weight: 200;
    transform: translate(0%, 30%);

}

/* 悬停样式开始 */
.card:hover img {
    opacity: 0.3;
}

.card:hover .text h2 {
    opacity: 1;
    transform: translate(0%, 0%);
    transition-delay: 0.4s
}

.card:hover .text p {
    opacity: 0.9;
    transform: translate(0%, 0%);
    transition-delay: 0.6s;
}

.card:hover .text::before {
    background-color: rgba(255, 255, 255, 0);
    left: 0;
    opacity: 1;
    transition-delay: 0s;
}


/* 滑入文字 */
.text-container {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.text-item {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.text-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* 历史演变 */
.title-1 h1 {
    display: flex;
    flex-wrap: wrap;
    font-family: '余思源颜黄体';
    justify-content: center;
    font-size: 3rem;
    font-weight: 500;
    margin: 10px;
}

/* 页面容器样式 */
.page-container {
    height: 63vh;
    /* max-width: 1000px; */
    background-color: bisque;
    display: flex;
    overflow: hidden;
    position: relative;
    margin: auto;
    margin-top: 30px;
}

.page {
    width: 100%;
    height: 100%;
    font-size: 3em;
    transition: transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    display: flex;
}

.page.active {
    opacity: 1;
    visibility: visible;
}

.btn-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    /* 确保按钮显示在最上层 */
}

.btn {
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 50px;
}

.page-right {
    transform: translateX(100%);
}

.page-left {
    transform: translateX(-100%);
}

/* 图片文字 */
.time-text {
    padding: 20px;
}

.time-text h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    margin-left: 10px;
    font-family: '余思源颜黄体';
}

.time-text p {
    font-size: 20px;
    padding: 0 32px 0 32px;
    line-height: 38px;
    font-weight: 350;
    text-indent: 2em;
}

/* 左边图片滑入效果 */
.image-item-left {
    height: 200px;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.5s ease-in-out;
    z-index: 1;
}

.image-item-left.show {
    opacity: 1;
    transform: translateX(40%);
}


/* 右边图片滑入效果 */
.image-item-right {
    opacity: 0;
    transition: all 0.5s ease-in-out;
    margin-left: 70%
}

.image-item-right.show {
    opacity: 1;
}

.image-item-right img {
    height: 200px;
}

/* 单身佛像 */
.title-2 {
    /* width: 100%; */
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    font-size: 3rem;
    font-weight: 500;
    margin: 10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* max-width: 800px; */
    /* min-height: 450px; */
    margin: auto;
    margin-bottom: 30px;
}

.title-2 h1 {
    display: flex;
    flex-wrap: wrap;
    font-family: '余思源颜黄体';
    justify-content: center;
    font-size: 3rem;
    font-weight: 500;
}

/* 定义外层容器样式 */
.shell {
    position: relative;
    width: 60vw;
    height: 40vw;
    max-width: 380px;
    max-height: 250px;
    margin: 0;
    color: white;
    perspective: 1000px;
    transform-origin: center;
}

.content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: center;
    transform-style: preserve-3d;
    transform: translateZ(-30vw) rotateY(0);
    will-change: transform;
    transition: transform 0.5s ease;
}

.item {
    position: absolute;
    width: 60vw;
    height: 40vw;
    max-width: 380px;
    max-height: 250px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    background-size: cover;
    -webkit-box-reflect: below 25px -webkit-linear-gradient(transparent 50%, rgba(255, 255, 255, 0.3));
}

.item:nth-child(1) {
    background-image: url(../img/culture-1/艺术特征1.png);
    transform: rotateY(0) translateZ(35vw);
}

.item:nth-child(2) {
    background-image: url(../img/culture-1/艺术特征2.png);
    transform: rotateY(120deg) translateZ(35vw);
}

.item:nth-child(3) {
    background-image: url(../img/culture-1/艺术特征3.png);
    transform: rotateY(240deg) translateZ(35vw);
}

.text-container-1 {
    margin-top: 40px;
    color: rgb(0, 0, 0);
    font-size: 20px;
    font-weight: 400;
    line-height: 2;
    text-indent: 2em;
}

.button-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    gap: 100px;
    /* 设置按钮之间的间距 */
}

.button {
    background-color: rgba(0, 0, 0, 0.5);
    color: rgb(0, 0, 0);
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* 设置滚动条 */
::-webkit-scrollbar {
    width: 1px;
    height: 1px;
}

/* 滚动相册 */
.scroll-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vh;
    /*旋转90度，向上平移一个视口高度的距离 */
    transform: rotate(-90deg) translate3d(0, -100vh, 0);
    /* 设置变换的原点为右上角 */
    transform-origin: right top;
    overflow-x: hidden;
    height: 100vw;
    /* 设置3D透视效果 */
    perspective: 1px;
    transform-style: preserve-3d;
}

.image-item {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40vh;
    transform-origin: 50% 50%;
    transition: transform 1s;
}

.image-item img {
    border: 10px solid white;
    max-width: 35vh;
    max-height: 40vh;
    transition: transform 0.5s, box-shadow 0.5s;
}

.image-item:hover img {
    box-shadow: 0 10px 30px #86c4f7;
    transform: scale(1.05);
}

.parallax-effect-1 {
    transform: rotate(90deg) translateZ(-0.12px) scale(1.3) translateY(-8vh);
}

.parallax-effect-2 {
    transform: rotate(90deg) translateZ(-0.05px) scale(1.1) translateY(15vh);
}

.parallax-effect-3 {
    transform: rotate(90deg) translateZ(-0.1px) scale(1.6) translateY(-3vh);
}

.parallax-effect-4 {
    transform: rotate(90deg) translateZ(-0.25px) scale(1.35) translateY(2vh);
}

.parallax-effect-5 {
    transform: rotate(90deg) translateZ(-0.1px) scale(1) translateY(16vh);
}

.parallax-effect-6 {
    transform: rotate(90deg) translateZ(0.05px) scale(1.4) translateY(10vh);
}

.parallax-effect-7 {
    transform: rotate(90deg) translateZ(0.22px) scale(0.7) translateX(-10vh) translateY(-15vh);
}

.parallax-effect-8 {
    transform: rotate(90deg) translateZ(-0.08px) scale(1.2) translateY(8vh);
}

.parallax-effect-9 {
    transform: rotate(90deg) translateZ(-0.15px) scale(1.25) translateY(-6vh);
}

.parallax-effect-10 {
    transform: rotate(90deg) translateZ(0.1px) scale(1.15) translateY(5vh);
}


/* 图片掉落 */
.beijing {
    position: relative;
    background-color: #fff;
    width: 100%;
    height: 0;
    padding-bottom: 44%;
    margin: 0 auto;
    overflow: hidden;
    /* margin-top: 8%; */
}

.beijing .three1 {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    background: url(../img/culture/背景2.png);
}

.beijing .three1 .one {
    position: absolute;
    margin-top: -36%;
    width: 80%;
    z-index: 1;
}

.beijing .three1 .one img {
    width: 100%;
}

.beijing .three1 .two {
    position: absolute;
    margin-top: -36%;
    z-index: 2;
}

.beijing .three1 .two img {
    width: 100%;
}

.beijing .three1 .three {
    position: absolute;
    margin-top: 2%;
    display: flex;
    justify-content: center;
    z-index: 3;
}

.beijing .three1 .three img {
    width: 80%;
}

.beijing .three1 .four {
    position: absolute;
    margin-top: 8.5%;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.beijing .three1 .four img {
    width: 80%;
}

/* footer 样式 */
.footer {
    background-image: url('../img/yuewu/footer2.png');
    /* 替换为实际的图片路径 */
    background-size: cover;
    /* 使背景图覆盖整个容器，保持比例且不变形 */
    background-position: center;
    /* 背景图居中显示 */
    background-repeat: no-repeat;
    /* 防止背景图重复 */
    color: white;
    text-align: center;
    padding: 20px 0;
}

.footer_box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer_content {
    width: 100%;
}

.footer_title {
    font-family: '鼎猎珠海体';
    margin-bottom: 10px;
}

.footer_data {
    list-style-type: none;
    padding: 0;
}

.footer_data li {
    font-family: '鼎猎珠海体';
    margin-bottom: 5px;
}