/* 定义字体族 */
@font-face {
    font-family: ziti;
    /* 自定义字体名称 */
    src:
        url(../fonts/演示秋鸿楷2.0.ttf) format('truetype');
    font-weight: 100 900;
    /* 字体粗细 */
    font-style: normal;
    /* 字体样式 */
    font-display: swap;
    /* 避免文字闪烁 */
}


body,
header,
main,
nav,
aside,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
img,
a,
span,
div,
p {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
    box-sizing: border-box;

}

* {
    margin: 0;
    padding: 0;
}

a,
a:hover {
    text-decoration: none;
}

html {
    /* 公式：clamp(最小值, 理想值, 最大值) */
    font-size: clamp(16px, 1.5vw + 0.5rem, 28px);
}

body {
    font-family: ziti;

}


/* 导航栏 */
nav {
    height: 60px;
    background: #5A2B17;
    color: #fff;
    display: flex;
    gap: 10px;
    justify-content: space-around;
    line-height: 60px;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

header {
    position: relative;
}

nav .logo {
    height: 60px;
    display: inline-flex;
    align-items: center;
}

nav span {
    display: block;
    font-size: 2vw;
    /* 改为相对单位 */
}

nav .daohang {
    display: flex;
    gap: 20px;
    /* font-size:1.5rem ; */

}

nav img {
    height: 60px;
    width: 60px;
}

/* ul li{
        text-align: center;
  } */
li a {
    color: #fff;
    font-size: 2vw;
    /* 改为相对单位 */
}

li a:hover {
    color: #A35C0A;
    font-size: 1.8vw;
    /* 改为相对单位 */
}

.daohang {
    width: 1000px;
    height: 65px;
    /* background-color: #E8CEA5; */
    display: flex;

}

.daohang a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 28px;
}

.item1 {
    width: 15%;
    height: 100%;
    position: relative;
    transition: .4s;
}

.lists {
    position: absolute;
    top: 65px;
    width: 100%;
    overflow: hidden;
    max-height: 0px;
    transition: .4s;
    border-radius: 0 0 10px 10px;
    background-color: #c57f2e;
}

.list {
    height: 60px;
    transition: .4s;
}

.item1:hover {
    background-color: rgba(157, 104, 42, 0.5);
}

.item1:hover .lists {
    max-height: 500px;
}

.list:hover {
    background-color: #edcc97;
    border-radius: 10px;
}


/* 媒体查询，调整不同屏幕尺寸下的字体大小 */
@media (min-width: 1200px) {
    nav .logo span {
        font-size: 28px;
    }

    li a,
    .daohang a {
        font-size: 28px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    nav .logo span {
        font-size: 20px;
    }

    li a,
    .daohang a {
        font-size: 20px;
    }
}

@media (max-width: 1146px) {
    nav .logo span {
        display: none;
        /* 隐藏logo中的“布老虎”三个大字 */
    }

    li a,
    .daohang a {
        font-size: 1.8vw;
        /* 保持相对单位 */
    }
}

@media (max-width: 700px) {
    nav .logo span {
        display: none;
        /* 隐藏logo中的“布老虎”三个大字 */
    }

    li a:hover {
        color: #fff;
        /* 恢复原色 */
        font-size: 2vw;
        /* 恢复原大小 */
    }

    .item1:hover .lists {
        max-height: 0px;
        /* 隐藏下拉菜单 */
    }

    .list:hover {
        background-color: transparent;
        /* 恢复原背景色 */
        border-radius: 0;
        /* 恢复原边框半径 */
    }
}

/* 导航栏 */
/* 主体内容 */
main {
    background-image: url(../images/bgc.png);
    background-size: cover;
    /* height: 100vh; */
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    height: 3600px;
    z-index: -1;
}

/* 版尾 */
footer {
    background-color: #5A2B17;
    color: #fff;
    text-align: center;
    padding: 50px;
    font-size: 0.65rem;
}

/* 顶部图片 */
.top1 {
    min-width: 1024px;
    min-height: 700px;
    display: flex;
    position: relative;
}

.top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top2 {
    /* width: 600px; */
    /* height: 180px; */
    position: absolute;
    left: 400px;
    top: 400px;

}

.top2 p {
    font-size: 160px;
    color: #fff;
    text-shadow: 0 0 10px #A35C0A;
    letter-spacing: 100px;
}

.grow-text {
    display: inline-block;
    /* font-size: 24px; */
    animation: growAnimation .8s;
    animation-delay: .3s;
}

@keyframes growAnimation {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* 回到顶部 */
#gettop {
    position: fixed;
    bottom: 30px;
    left: 95%;
    display: none;
}

#gettop img {
    width: 45px;
    height: 45px;

}



h2 {
    text-align: center;
    padding-top: 120px;
    color: #A35C0A;
    font-size: 30px;
}

.title1 img {
    width: 70px;
}

.yun a {
    text-decoration: none;
    color: #A35C0A;
}

.yun1 {
    margin-right: -30px;
}

.yun2 {
    margin-left: -30px;
}

.hezi1 {
    width: 80%;
    height: 500px;
    margin: auto;
}

.xiangzheng {
    width: 80%;
    margin: auto;
    display: flex;
    gap: 10px;
    margin-top: 50px;
    position: absolute;


}

.yuyi {
    width: 200px;
    height: 300px;
    /* background: linear-gradient(to bottom right, #E8CEA5, #da9f40); */
    border-radius: 10px;


}

.yuyi2 {
    position: relative;
    left: 0px;
    bottom: -160px;

}

.yuyi3 {
    position: relative;
    left: 5px;
    bottom: -10px;
}

.yuyi4 {
    position: relative;
    left: 15px;
    bottom: -120px;
}

.yuyi5 {
    position: relative;
    left: 20px;
    bottom: 10px;
}

.yuyi6 {
    position: relative;
    left: 25px;
    bottom: -140px;
}

.yuyi-p p {
    font-size: 16px;
}

.yuyi-p {
    /* text-align: center; */
    margin-top: 50px;

}

.yuyi-p img {
    width: 150px;
    margin-left: 60px;
    margin-top: -40px;
}

.yuyi1 {
    animation-delay: .3s;
}

.yuyi2 {
    animation-delay: 1.0s;
}

.yuyi3 {
    animation-delay: 1.7s;
}

.yuyi4 {
    animation-delay: 2.4s;
}

.yuyi5 {
    animation-delay: 3.1s;
}

.yuyi6 {
    animation-delay: 3.8s;
}

.neihanyuyi {
    width: 82%;
    height: 650px;
    /* background-color: #ec9f53; */
    border-radius: 10px;
    margin: auto;
    margin-top: 30px;
    display: flex;
    gap: 90px;

}

.nei1 {
    width: 350px;
    height: 600px;
    /* background-color: #ccc; */
}

.nei1 img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    margin: 20px;
    margin-top: 130px;
    margin-left: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
}

.nei1 p {
    font-size: 18px;
    margin-left: 40px;
}

.nei2 {
    display: flex;
    /* background-color: aqua; */
    width: 800px;
    height: 600px;
    flex-direction: column;
    gap: 10px;
}

.han {
    flex: 1;
    /* background-color: #c57f2e; */

}

.han {
    display: flex;
    gap: 20px;
    /* border-bottom: 1px #5A2B17 solid; */
}

.hu1 {
    width: 250px;
    height: 200px;
    /* background-color: bisque; */
    margin-left: 50px;
}

.hu2 {
    width: 500px;
    height: 200px;
    /* background-color: bisque; */
    border-bottom: 1px #5A2B17 solid;

}

/* 镇宅虎 */
.slide {
    position: relative;
    width: 250px;
    height: 200px;
    text-align: center;
    overflow: hidden;
}

.slide ul {
    /* margin: 10px 0; */
    padding: 0;
    width: calc(250px*4);
    transition: all .5s;
}

.slide li {
    float: left;
    width: 250px;
    height: 200px;
    list-style: none;
}

.slide li img {
    width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 20px;
}

.slide input[name="button"] {
    display: none;
}

.slide label[for^="button"] {
    position: absolute;
    top: 180px;
    width: 15px;
    height: 15px;
    margin: 0 10px;
    line-height: 10px;
    color: #fff;
    background-color: #fff;
    cursor: pointer;
    border-radius: 50%;
    transition: .3s;

}

.slide label[for="button1"] {
    left: 30%
}

.slide label[for="button2"] {
    left: 40%;
}

.slide label[for="button3"] {
    left: 50%;
}

.slide label[for="button4"] {
    left: 60%;
}

#button1:checked~ul {
    margin-left: 0;
}

#button2:checked~ul {
    margin-left: -250px;
}

#button3:checked~ul {
    margin-left: -500px;
}

#button4:checked~ul {
    margin-left: -750px;
}

#button1:checked~label[for="button1"] {
    background-color: rgb(255, 80, 0);
}

#button2:checked~label[for="button2"] {
    background-color: rgb(255, 80, 0);
}

#button3:checked~label[for="button3"] {
    background-color: rgb(255, 80, 0);
}

#button4:checked~label[for="button4"] {
    background-color: rgb(255, 80, 0);
}

.hu2 h3 {
    font-size: 30px;

}

.hu2-p {
    font-size: 22px;
    color: #b63c07;
}

.hu2-p1 {
    font-size: 14px;
    color: #3a1505;

}

.hu2-p2 {
    font-size: 16px;

}


/* 招财虎 */

.slide label[for="button5"] {
    left: 35%
}

.slide label[for="button6"] {
    left: 45%;
}

.slide label[for="button7"] {
    left: 55%;
}

#button5:checked~ul {
    margin-left: 0;
}

#button6:checked~ul {
    margin-left: -250px;
}

#button7:checked~ul {
    margin-left: -500px;
}

#button5:checked~label[for="button5"] {
    background-color: rgb(255, 80, 0);
}

#button6:checked~label[for="button6"] {
    background-color: rgb(255, 80, 0);
}

#button7:checked~label[for="button7"] {
    background-color: rgb(255, 80, 0);
}


/* 平安虎 */

.slide label[for="button8"] {
    left: 30%
}

.slide label[for="button9"] {
    left: 40%;
}

.slide label[for="button10"] {
    left: 50%;
}

.slide label[for="button11"] {
    left: 60%;
}

#button8:checked~ul {
    margin-left: 0;
}

#button9:checked~ul {
    margin-left: -250px;
}

#button10:checked~ul {
    margin-left: -500px;
}

#button11:checked~ul {
    margin-left: -750px;
}

#button8:checked~label[for="button8"] {
    background-color: rgb(255, 80, 0);
}

#button9:checked~label[for="button9"] {
    background-color: rgb(255, 80, 0);
}

#button10:checked~label[for="button10"] {
    background-color: rgb(255, 80, 0);
}

#button11:checked~label[for="button11"] {
    background-color: rgb(255, 80, 0);
}

.cunzai {
    width: 80%;
    height: 600px;
    margin: auto;
    /* background-color: #fff; */
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.xingshi {
    flex: 1;
    /* background-color: #c57f2e; */
}

.shi1 {
    display: flex;
    gap: 40px;

}

.xingshi-p {
    width: 760px;
    height: 250px;
    /* background-color: antiquewhite; */
    margin: 20px;
    margin-top: 30px;
    margin-left: 80px;
    border-bottom: 2px #5A2B17 solid;
}

.p2 {
    width: 760px;
    height: 330px;
}

.xingshi-img img {
    width: 200px;
    height: 200px;
    margin-top: 50px;
    margin-left: 110px;
    border-radius: 50%;
    box-shadow: 0 5px 30px rgba(0, 0, 0, .3);
}

.img2 {
    margin-top: 40px;

}

.xingshi-p p {
    font-size: 16px;
    margin-bottom: 10px;
    text-indent: 2em;

}

.shi2 {
    display: flex;
    gap: 40px;
}

.xingshi-p span {
    font-size: 26px;
}