html,
body {
    margin: 0;
    padding: 0;
}

body {
    background-color: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
}

#gallery {
    width: 100%;
    height: auto;
}

.gallery {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}

.batten {
    min-height: 300px;
    max-height: 500px;
    width: 100%;
    /* height: 40vh; */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.batten h2 {
    color: rgb(0, 60, 100);
}

.batten span {
    color: rgb(0, 60, 100);
    font-size: 20px;
}

.batten img {
    width: 100%;
    height: auto;
    /* position: absolute;
    top: 0;
    left: 0; */
    z-index: -1;
}

.img-hover-magnify {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.img-hover-magnify:hover {
    transform: scale(1.15);
}

#mobile-nav {
    display: none;
    width: 100%;
    height: auto;
    justify-content: center;
}

#mobile-nav div {
    width: 80%;
    height: auto;
    padding-right: 10px;
    padding-left: 10px;
}

#mobile-nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 30px;
    padding: 0;
    margin: 0;
    margin-bottom: 5px;
    background-color: rgb(0, 60, 100);
    justify-content: space-around;
}

#mobile-nav ul li {
    width: 25%;
    height: 100%;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#mobile-nav ul li a {
    width: 100%;
    height: 100%;
    color: rgb(255, 150, 0);
    display: block;
    text-align: center;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

.product {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.back {
    width: 80%;
    height: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#left-nav-bar {
    position: -webkit-sticky;
    /* For Safari */
    position: sticky;
    top: 90px;
    /* 当滚动到距离顶部90px时固定 */
    z-index: 100;
    /* 确保菜单在其他内容之上 */
}

.product .left {
    min-width: 250px;
    max-width: 300px;
    width: 20%;
    height: auto;
}

.product .left ul {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.product .left li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.product .left .sort {
    margin: 0;
    width: 100%;
    height: 28%;
    background-color: #f1f1f1;
}

.product .left a {
    display: flex;
    width: 100%;
    height: 100%;
    color: #000;
    text-decoration: none;
    padding: 5px 50px;
    transition: padding-left 0.3s ease;
}

.product .left .sort .sort-head {
    color: rgb(255, 255, 255);
    margin: 0;
    padding: 10px 25px;
    font-size: 24px;
    background-color: rgb(0, 60, 100);
}

.product .left .sort ul {
    width: 100%;
    height: 72%;
}

.product .left .item {
    width: 100%;
    height: 25%;
    border-bottom: 1px solid rgb(201, 201, 201);
}

.product .left .item:hover {
    background-color: azure;
}

.product .left .item:hover a {
    padding-left: 30px;
}

.product .left .info {
    width: 100%;
    height: auto;
    margin-top: 40px;
}



.product .right {
    width: 80%;
    height: auto;
}

.product .right .top-bar {
    width: 100%;
    height: 40px;
    background-color: rgb(0, 60, 100);
    display: flex;
    align-items: center;
}

#navbar {
    width: auto;
    height: 100%;
    display: flex;
    align-items: center;
    color: #9f9f9f;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#navbar li {
    width: auto;
    height: 100%;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#navbar a {
    display: flex;
    align-items: center;
    width: auto;
    height: 100%;
    color: #ffffff;
    text-decoration: none;
    padding-left: 10px;
    text-align: center;
}

#navbar .text {
    content: ">";
    padding-left: 0px;
    color: #e0e0e0;
    font-size: 15px;
}

#navbar .text::before {
    content: ">";
    margin-right: 5px;
    margin-left: 5px;
    color: #ffffff;
}

.product .show {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.product .show .up {
    min-height: 80vh;
    width: 100%;
    height: auto;
}


.product .show .items {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 三列等宽 */
    gap: 10px;
    /* 格子之间的间距 */
}

.product .show .item {
    display: flex;
    height: auto;
    width: auto;
    padding: 5px 10px;
    margin-bottom: 30px;
}

.product .show .item-back {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.product .show .item-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    overflow: hidden;
    object-fit: contain;
}

.product .show .item-img img {
    max-width: 100%;
    height: auto;
}

.product .show .item-info {
    width: 100%;
    height: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#pagebar {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

#pagebar div {
    width: auto;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


#pagebar a {
    color: #000000;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid rgb(150, 150, 150);
    margin-left: 5px;
    margin-right: 5px;
}

#pagebar a:hover {
    background-color: rgb(0, 60, 100, 0.4);
}

.no-click-hover {
    background-color: rgb(238, 238, 238, 0.8);
}

.no-click-hover:hover {
    cursor: not-allowed;
    background-color: rgb(238, 238, 238, 0.8);
}

#pagebar a.active {
    background-color: rgb(0, 60, 100, 1);
    color: #ffffff;
    cursor: not-allowed;
}

@media (max-width: 1440px) {
    .batten {
        min-height: 100px;
        max-height: 300px;
    }

    .batten img {
        position: initial !important;
        width: auto;
        height: 170%;
    }
}

@media (max-width: 1024px) {
    .batten img {
        height: 130%;
    }

    .product .show .items {
        grid-template-columns: repeat(2, 1fr);
        /* 三列等宽 */
        gap: 10px;
        /* 格子之间的间距 */
    }
}

@media (max-width: 768px) {
    .batten {
        height: 30vh;
    }

    #left-nav-bar {
        display: none;
    }

    #mobile-nav {
        display: flex;
    }

    .product .right {
        width: 100%;
    }

    .product .show .item {
        margin-bottom: 0px;
    }

}

@media (max-width: 600px) {
    .batten img {
        height: 100%;
    }

    #page-prev:before {
        content: "<";
    }

    #page-prev span {
        display: none;
    }

    #page-next:after {
        content: ">";
    }

    #page-next span {
        display: none;
    }
}

@media (max-width: 425px) {
    #mobile-nav div {
        width: 90%;
    }

    #gallery .back {
        width: 90%;
    }

    .product .show .items {
        grid-template-columns: repeat(1, 1fr);
        /* 三列等宽 */
        gap: 10px;
        /* 格子之间的间距 */
    }
}