/* 定义字体族 */
@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;
    background-image: url(../images/bgc.png);
}


/* 导航栏 */
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;
        /* 恢复原边框半径 */
    }
}

/* 导航栏 */

/* 回到顶部 */
#gettop {
    position: fixed;
    bottom: 30px;
    left: 95%;
    display: none;
}

#gettop img {
    width: 45px;
    height: 45px;

}

h3 span {
    color: #A35C0A;
    font-size: 1.3rem;
    display: inline-block;
}

h3 {
    display: flex;
    align-items: center;
    /* 垂直居中对齐 */
    justify-content: center;
    text-align: center;
    padding-top: 50px;
    margin-top: 40px;
}


h3 img {
    width: 70px;

}

h3 img,
h3 span {
    margin: 0;
    /* 去除默认的外边距 */
    vertical-align: middle;
    /* 垂直居中对齐 */
}





.shell {
    width: 100%;
    position: relative;
    padding: 80px 0;
    background-attachment: fixed;
    background-size: cover;
}

.shell:before {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 99, 99, 0.8);
    content: "";
}

.header {
    width: 100%;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.title {
    color: #fff;
    font-size: 46px;
    font-weight: normal;
    margin: 0;
}

.timeline {
    display: flex;
    margin: 0 auto;
    flex-wrap: wrap;
    flex-direction: column;
    max-width: 700px;
    position: relative;
}

.content-title {
    font-weight: normal;
    font-size: 66px;
    margin: -10px 0 0 0;
    transition: 0.4s;
    padding: 0 10px;
    box-sizing: border-box;
    color: #fff;
}

.content-desc {
    margin: 0;
    font-size: 18px;
    box-sizing: border-box;
    color: rgba(255, 255, 255, 0.7);
    line-height: 25px;
}

.timeline:before {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
    content: "";
    background: rgba(255, 255, 255, 0.07);
}

.item {
    padding: 40px 0;
    opacity: 0.3;
    filter: blur(2px);
    transition: 0.5s;
    box-sizing: border-box;
    width: calc(50% - 40px);
    display: flex;
    position: relative;
    transform: translateY(-80px);
}

.item:before {
    /* 设置在伪元素before中的内容  */
    content: attr(data-text);
    letter-spacing: 3px;
    width: 100%;
    position: absolute;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    border-left: 2px solid rgba(255, 255, 255, 0.5);
    top: 70%;
    margin-top: -5px;
    padding-left: 15px;
    opacity: 0;
    right: calc(-100% - 56px);
    font: 900 20px '';
    letter-spacing: 5px;
}

.item:nth-child(even) {
    align-self: flex-end;
}

.item:nth-child(even):before {
    right: auto;
    text-align: right;
    left: calc(-100% - 56px);
    padding-left: 0;
    border-left: none;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    padding-right: 15px;
}

.item--active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
}

.item--active:before {
    top: 50%;
    transition: 0.3s all 0.2s;
    opacity: 1;
}

.item--active .content-title {
    margin: -50px 0 20px 0;
}

.img {
    max-width: 100%;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
}

.subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    letter-spacing: 5px;
    margin: 10px 0 0 0;
    font-weight: normal;
}



@media only screen and (max-width: 767px) {
    .item {
        align-self: baseline !important;
        width: 100%;
        padding: 0 30px 150px 80px;
    }

    .item:before {
        left: 10px !important;
        padding: 0 !important;
        top: 50px;
        text-align: center !important;
        width: 60px;
        border: none !important;
    }

    .item:last-child {
        padding-bottom: 40px;
    }
}

@media only screen and (max-width: 767px) {
    .timeline:before {
        left: 40px;
    }
}

footer {
    background-color: #5A2B17;
    color: #EBE4D2;
    text-align: center;
    padding: 50px;
    font-size: 0.65rem;
}