/* 定义字体族 */
@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;
    box-sizing: border-box;
}

a,
a:hover {
    text-decoration: none;
}

html {
    /* 公式：clamp(最小值, 理想值, 最大值) */
    font-size: clamp(16px, 1.5vw + 0.5rem, 28px);
}

body {
    background-image: url(../images/bgc.png);
    background-size: cover;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    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;
        /* 恢复原边框半径 */
    }
}

/* 导航栏 */


/* 回到顶部 */
#gettop {
    position: fixed;
    bottom: 30px;
    left: 95%;
    display: none;
}

#gettop img {
    width: 45px;
    height: 45px;
}

/* 主要内容 */
main {
    display: flex;
    justify-content: center;
    align-items: center;
}

#main {

    height: 85vh;
    width: 80vw;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#click-section {
    width: 30%;
    height: 100%;
    padding: 20px 0;
    position: relative;
}

#drawerboxes {
    margin-left: 10%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

#drawerboxes::before {
    content: "";
    width: 8px;
    height: 94%;
    position: absolute;
    left: -10px;
    top: 3%;
    z-index: 1000;
}

.drawerbox {
    height: calc(100% / 5.5);
    width: 70%;
    position: relative;
    z-index: 100;
    transform: translateX(-70%);
    transition: transform .5s ease-in-out;
}

.drawerbox.active {
    transform: translateX(0);
}

.drawer-btn {
    width: 100%;
    height: 85%;
    font: 800 50px '';
    background-color: #E8CEA5;
    border: none;
    transition: background-color .5s ease-in-out;
    color: #ffffff00;
    border-radius: 10px;
}

.drawer-btn.active {
    background-image: url(../images/bgc2.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    /* 融合模式 */
    opacity: 0.4;
    /* 调整背景图片的透明度 */
    color: #A35C0A;

}

.drawer-btn:hover {
    cursor: pointer;
}

.drawer-head {
    position: absolute;
    color: rgb(255, 255, 255);
    font-size: 200px;
    font-weight: 700;
    right: -70px;
    top: calc(50% - 150px);
    text-shadow: 2px -1px 8px rgba(250, 80, 193, 0.323);
}

.drawer-head img {
    width: 150px;
    height: 150px;
}


#slide-section {
    position: relative;
    height: 100%;
    width: 70%;
    display: flex;
    justify-content: center;
    padding: 0 40px;
    background: linear-gradient(to right bottom,
            rgba(255, 255, 255, .6),
            rgba(255, 255, 255, .3),
            rgba(255, 255, 255, .2));
    backdrop-filter: blur(11px);
    border-radius: 10px;
}

#slide-bar {
    position: absolute;
    top: 10%;
    left: 40px;
    height: 80%;
    width: 1px;
    background-color: #E9D2AE;
}

#bar {
    position: absolute;
    height: calc(100% / 5);
    width: 5px;
    top: 0;
    left: -1.2px;
    background-color: #A35C0A;
    transition: transform .5s ease-in-out;
}

#card-section {
    height: 100%;
    width: 95%;
    overflow: hidden;
}

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 2% 0;
    transition: transform .5s ease-in-out;
    position: relative;
    font-size: 18px;

}

.card-img {
    width: 100%;
    height: auto;
    overflow: visible;
    position: relative;
    z-index: 10;
}

.card-img img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* 修改部分 */
@media (max-width: 1024px) {
    .card {
        font-size: 16px;
    }

    .card-img img {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .card {
        font-size: 14px;
    }

    .card-img img {
        width: 200px;
        height: 200px;
    }
}

/* 修改部分 */


.shape-img1 {
    float: left;
    height: 300px;
    shape-outside: circle(50%);
}

.shape-img2 {
    float: left;
    height: 300px;
    shape-outside: circle(50%);
}

.shape-img3 {
    float: left;
    height: 300px;
    shape-outside: circle(50%);
}

.shape-img4-1 {
    float: left;
    height: 300px;
    shape-outside: circle(50%);
}

.shape-img4-2 {
    float: right;
    height: 300px;
    shape-outside: circle(50%);
}

.shape-img5 {
    float: left;
    height: 300px;
    shape-outside: circle(50%);
}

.tedian {
    color: #A35C0A;
    font-size: 19px;
}

h3 span {
    color: #A35C0A;
    font-size: 30px;
    display: inline-block;
}

h3 {
    display: flex;
    align-items: center;
    /* 垂直居中对齐 */
    justify-content: center;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.waibian {
    margin-top: 80px;
}

.waibian1 {
    margin-top: 30px;
}

h3 img,
h3 span {
    margin: 0;
    /* 去除默认的外边距 */
}

h3 img {
    width: 70px;

}



h3 img,
h3 span {
    vertical-align: middle;
    /* 垂直居中对齐 */
}

.picture {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.shell {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    transform-style: preserve-3d;
    perspective: 900px;
    padding: 10px;
}

.shell .box {
    position: relative;
    width: calc(16.666% - 10px);
    min-width: 90px;
    transition: 0.3s;
    overflow: hidden;
    margin: 5px;
    transform: rotateY(0deg);
    transition-delay: .1s;
}

.shell .box .images {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    overflow: hidden;
}

.shell .box .images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
}

@media (max-width: 600px) {
    .shell .box {
        width: calc(33.333% - 10px);
    }
}


.shell:hover .box {
    transform: rotateY(20deg);
    border-radius: 10px;

}


.shell .box:hover {
    transform: rotateY(0deg) scale(1.25);
    box-shadow: 0 25px 40px rgba(219, 179, 132, 0.7);
    z-index: 1;
    border-radius: 10px;
}

.shell .box:hover~.box {
    transform: rotateY(-20deg);
}

.shell .box .images img {
    width: 100%;
}

/* 按样式分 */

.container {
    width: 90%;
    max-width: 1024px;
    height: 60vh;
    margin: 0px auto;
    overflow: hidden;
    position: relative;
}

.page {
    transform: translateX(-110%);
    position: absolute;
    width: 70%;
    height: 100%;
    transition: .5s;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.page.small-image {
    background-size: 70%;
}

.label-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    position: absolute;
    right: 110px;
    top: 50%;
    transform: translateY(-50%);
    width: 20%;
    min-width: 180px;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 18px;
    padding: 12px 20px;
    background-color: #A35C0A;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 5px;
    min-height: 50px;
}

@media (max-width: 1024px) {
    .label-container {
        gap: 8px;
        right: 10px;
    }

    .button {
        font-size: 14px;
        padding: 6px 12px;
    }

    .page {
        width: 65%;
    }
}

@media (max-width: 768px) {
    .label-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
        right: 5px;
        gap: 5px;
    }

    .button {
        font-size: 12px;
        padding: 4px 8px;
    }

    .page {
        width: 75%;
    }
}

.button:hover {
    background-color: #E9D2AE;
    transform: translateX(-5px);
}



@keyframes fade {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0;
        transform: translateY(-50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

input {
    display: none;
}

input:checked+.page {
    transform: translateX(0px);
    transition: .4s;
}

input:checked+.page .page_content {
    width: 100%;
    display: block;
}



.page h1 {
    font-size: 70px;
}

.page p {
    font-size: 30px;
    padding: 10px;
    background-color: rgba(0, 0, 0, .3);
    border-radius: 10px;
    margin: 30px 0;
}

.page span {
    font-size: 26px;
    letter-spacing: 2px;
    color: rgb(56, 56, 56);
}

label:hover {
    cursor: pointer;
    border-bottom: solid 4px #E9D2AE;
}

/* 版尾 */
footer {
    background-color: #5A2B17;
    color: #EBE4D2;
    text-align: center;
    padding: 50px;
    font-size: 0.65rem;
}