/* 定义字体族 */
@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;
}

nav .logo {
    height: 60px;
    display: inline-flex;
    align-items: center;
}

nav span {
    display: block;
    font-size: 2vw;
    /* 改为相对单位 */
}

nav .daohang {
    display: flex;
    gap: 20px;
}

nav img {
    height: 60px;
    width: 60px;
}


li a {
    color: #fff;
    font-size: 2vw;
    /* 改为相对单位 */
}

li a:hover {
    color: #A35C0A;
    font-size: 1.8vw;
    /* 改为相对单位 */
}

.daohang {
    width: 1000px;
    height: 65px;
    display: flex;
}

.daohang a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 2vw;
    /* 改为相对单位 */
}


.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;
        /* 恢复原边框半径 */
    }
}

/* 导航栏 */

/* 轮播图 */
.swiper-container {
    width: 100%;
    height: auto;
}

.swiper-slide {
    width: 100%;
    max-height: 800px;
    transition-timing-function: linear;
    position: relative;
    aspect-ratio: 8/5;
    /* 确保子元素可以相对于轮播图定位 */
}

/* 在 index.css 文件中添加或修改以下样式 */
.swiper-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}





.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.swiper-slide-text {
    height: 650px;
    position: absolute;
    bottom: 50px;
    /* 距离底部的距离 */
    right: 80px;
    /* 距离右侧的距离 */
    color: #fff;
    /* 文字颜色 */
    font-size: 24px;
    /* 文字大小 */
    background-color: rgba(235, 193, 144, 0.5);
    /* 文字背景颜色，半透明黑色 */
    padding: 10px 20px;
    /* 内边距 */
    border-radius: 10px;
    /* 圆角 */
    writing-mode: vertical-rl;
    /* 竖排显示 */
    /* text-align: center; */
    /* 水平居中对齐 */
    letter-spacing: 1px;
    /* 字间距 */
    opacity: 1;
    /* 初始透明度为1，保持显示 */
    transition: .4s;
    /* 过渡效果 */
}

/* 回到顶部 */
#gettop {
    position: fixed;
    bottom: 30px;
    left: 95%;
    display: none;
}

#gettop img {
    width: 45px;
    height: 45px;

}

/* 轮播图 */

/* 主体内容 */
main {
    background-image: url(../images/bgc.png);
    background-size: cover;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    height: 2600px;
    z-index: -1;
}

h3 span {
    color: #A35C0A;
    font-size: 30px;
    display: inline-block;
}

h3 {
    display: flex;
    align-items: center;
    /* 垂直居中对齐 */
    justify-content: center;
    text-align: center;
    padding-top: 50px;
}

h3 img,
h3 span {
    margin: 0;
    /* 去除默认的外边距 */
}

h3 img {
    width: 70px;

}



h3 img,
h3 span {
    vertical-align: middle;
    /* 垂直居中对齐 */
}

.content1-png {
    display: flex;
    justify-content: center;
    gap: min(400px, 20vw);
}

.content1-png img,
.content2-png img,
.content4-png img {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
}

@media (max-width: 768px) {

    .content1-png img,
    .content2-png img,
    .content4-png img {
        max-width: 200px;
    }
}

.content1 p,
.content2 p,
.content4 p {
    max-width: 1000px;
    margin: 0 auto;
    /* text-align: center; */
    font-size: 18px;
    color: #000;
    text-indent: 2em;
}

.content1 p {
    margin-bottom: 20px;
}

.content2,
.content4 {
    padding-top: 100px;
}

.content2-png {
    display: flex;
    /* flex-wrap: wrap; */
    justify-content: center;
    align-items: center;
    gap: min(50px, 5vw);
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 5vh;
}

@media (max-width: 768px) {
    .content2-png {
        flex-direction: column;
        gap: 20px;
    }
}

.content1 a,
.content2 a,
.content4 a {
    text-decoration: none;
    color: #A35C0A;
}


.title1 {
    font-size: 1.8rem;
    background-color: rgb(191, 138, 72, 0.8);
    width: 100px;
    height: 250px;
    position: absolute;
    top: -10%;
    left: 5%;
    writing-mode: vertical-rl;
    /* 设置竖直排列，从右到左 */
    padding: 10px;
    /* 增加一些内边距，使其看起来更美观 */
    text-align: center;
    /* 水平居中对齐 */
    letter-spacing: 10px;


}

.title2 {
    font-size: 1.8rem;
    background-color: rgb(191, 138, 72, 0.8);
    width: 100px;
    height: 250px;
    position: absolute;
    top: -10%;
    right: 5%;
    writing-mode: vertical-rl;
    /* 设置竖直排列，从右到左 */
    padding: 10px;
    /* 增加一些内边距，使其看起来更美观 */
    text-align: center;
    /* 水平居中对齐 */
}

.content4-png {
    position: relative;
    background-color: #E8CEA5;
    max-width: 1150px;
    margin: 120px auto;
    padding: 50px 20px;
}

.content4 div {
    border-radius: 10px;
}

.content4-png img {
    z-index: 88;
}

.content4-png1,
.content4-png2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 0px;
}

/* 版尾 */
footer {
    background-color: #5A2B17;
    color: #EBE4D2;
    text-align: center;
    padding: 50px;
    font-size: 0.65rem;
}