@font-face {
  font-family: 'OFL Sorts Mill Goudy TT';
  src: url('../Fonts/OFL Sorts Mill Goudy TT') format('woff2'),
       url('../Fonts/OFL Sorts Mill Goudy TT') format('woff'),
       url('../Fonts/OFL Sorts Mill Goudy TT') format('TrueType');
  font-weight: normal;
  font-style: italic;
}
/* 默认样式 */
body {
    /*font-size: 18px;*/
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-family: 'OFL Sorts Mill Goudy TT', "Goudy St MTT Italic", cursive;
    color:#333;
    height: 100%;
    background-size: 100% auto;
}
/* 小屏幕设备（手机） */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }
    table {
        width: 100%;
    }
    .product-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .product-item {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* 中等屏幕设备（平板） */
@media (min-width: 601px) and (max-width: 1024px) {
    body {
        font-size: 15px;
    }
    table {
        width: 100%;
    }
    .product-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .product-item {
        width: 48%;
        margin-bottom: 20px;
    }
}

/* 大屏幕设备（桌面） */
@media (min-width: 1025px) {
    body {
        font-size: 16px;
    }
    table {
        width: 1024px;
        margin: 0 auto;
    }
}
/* 针对小屏幕设备的样式 */
/*@media (max-width: 400px) {
    body {
        font-size: 14px;
    }
    /* 更多移动端样式 */
}*/

.container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.item {
    flex: 1 1 300px; /* 每个项目至少300px宽，并且可以增长和收缩 */
}


img, video {
    max-width: 100%;
    height: auto;
}

.border-line {
    border-top: 1px solid #a6a6a6; /* 添加顶部横线 */
    /* 或者使用 border-bottom 来添加底部横线 */
}

a {
  text-decoration: none; /* 默认情况下移除下划线 */
    color:#333
}



a:hover {
  text-decoration: none; /* 鼠标悬停时显示下划线 */
    color:#333;
}
/* 激活链接（点击时） */
a:active {
  color:#333;
}

.child-category {
    /* 在这里添加你想要的CSS样式 */
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}
ul.menu {
    position: relative;
    list-style-type: none;
    padding: 20px;
    font-size: large;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    /*width: 100%;*/
    cursor: pointer;
    /*min-width: 100%;*/
    z-index: 1000;
    /*box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);*/
}
ul.menu li {
    position: relative;
    padding: 12px 16px;
}
ul.menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f9f9f9;
    border: 1px solid #cccccc;
    width: 250%;
}
ul.menu li:hover > ul {
    display: block;
    background-color: #f9f9f9;
    border: none;
}
/* 移除所有菜单链接的下划线 */
ul.menu li a {
    text-decoration: none;
    color: black;
    display: block;
}

.banner {
    position: relative;
    /*width: 100%;*/
    /*height: 300px; !* Adjust as needed *!*/
    width:1024px;
    height:353px;
    overflow: hidden;
    /*z-index: revert;*/
}
.banner img {
    width: 100%;
    height: auto;
    animation: scroll 10s linear infinite;
}

.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-item.active {
    opacity: 1;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.search-container {
    display: flex;
    align-items: center;
    /*vertical-align: baseline;*/
}

.search-input {
    border: 1px solid #ccc;
    border-radius: 20px; /* 圆角 */
    padding: 5px 10px;
    width: 180px;
    outline: none;
    /*background-color: rgba(206, 206, 206, 0.26);*/
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.search-button {
  /*background-color: #007BFF;*/
    background-color: rgba(243, 235, 235, 0.32);
    color: #666666;
    border: none;
    border-radius: 20px; /* 圆角 */
    padding: 5px 7px;
    cursor: pointer;
    margin-left: -33px; /* 调整按钮位置以覆盖输入框的一部分，形成椭圆形效果 */
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: rgba(243, 235, 235, 0.32);
    color: #666666;
}
input::placeholder {
  color: #999; /* 设置颜色 */
  /*font-style: italic; !* 设置字体样式 *!*/
}

.product-detail-image{
    width: 300px;
    height: auto;
}

.product-container {
    display: flex; /* 使用Flexbox布局 */
    flex-wrap: wrap; /* 允许换行 */
    gap: 20px; /* 设置项目之间的间距 */
    color: #333;
}
.product-item {
    flex: 1 1 calc(25% - 20px); /* 每个项目占据25%宽度，减去间距 */
    box-sizing: border-box;
    color: #333;
}
.product-image {
    width: 100%;
    height: auto;
}

/* 添加响应式设计 */
@media (max-width: 1024px) {
    .product-item {
        flex: 1 1 calc(33.33% - 20px); /* 在小屏幕上每行显示3个项目 */
    }
}

@media (max-width: 768px) {
    .product-item {
        flex: 1 1 calc(50% - 20px); /* 在更小的屏幕上每行显示2个项目 */
    }
}

@media (max-width: 480px) {
    .product-item {
        flex: 1 1 100%; /* 在手机屏幕上每行显示1个项目 */
    }
}

/*============================================*/


/*------------------------*/

.shop-container {
    display: flex; /* 使用Flexbox布局 */
    flex-wrap: wrap; /* 允许换行 */
    gap: 20px; /* 设置项目之间的间距 */
    width: 1024px;
    align-items: center;
}
.shop-item {
    flex: 1 1 calc(25% - 20px); /* 每个项目占据25%宽度，减去间距 */
    box-sizing: border-box;
}
.shop-image {
    width: 200px;
    height: auto;
}

/* 添加响应式设计 */
@media (max-width: 1024px) {
    .shop-item {
        flex: 1 1 calc(33.33% - 20px); /* 在小屏幕上每行显示3个项目 */
    }
}

@media (max-width: 768px) {
    .shop-item {
        flex: 1 1 calc(50% - 20px); /* 在更小的屏幕上每行显示2个项目 */
    }
}

@media (max-width: 480px) {
    .shop-item {
        flex: 1 1 100%; /* 在手机屏幕上每行显示1个项目 */
    }
}
/*------------*/

.product_list-container {
    display: flex; /* 使用Flexbox布局 */
    flex-wrap: wrap; /* 允许换行 */
    gap: 20px; /* 设置项目之间的间距 */
    width: 1024px;
    align-items: center;
}
.product_list-item {
    flex: 1 1 calc(25% - 20px); /* 每个项目占据25%宽度，减去间距 */
    box-sizing: border-box;
}
.product_list-image {
    width: 200px;
    height: auto;
}

/* 添加响应式设计 */
@media (max-width: 1024px) {
    .product_list-item {
        flex: 1 1 calc(33.33% - 20px); /* 在小屏幕上每行显示3个项目 */
    }
}

@media (max-width: 768px) {
    .product_list-item {
        flex: 1 1 calc(50% - 20px); /* 在更小的屏幕上每行显示2个项目 */
    }
}

@media (max-width: 480px) {
    .product_list-item {
        flex: 1 1 100%; /* 在手机屏幕上每行显示1个项目 */
    }
}



.more{
    display: inline-block;
    padding: 5px 20px;
    background-color: #F6F1ED;
    color: #837E7A;
    text-decoration: none;
    border-radius: 5px;
}

/* styles.css */
.more-button {
    display: inline-block;
    padding: 5px 20px;
    background-color: #FFFFFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}


.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 创建三列，每列等宽 */
  gap: 10px; /* 图片之间的间距 */
}

.grid-container img {
  width: 100%; /* 图片宽度填满各自单元格 */
  height: auto; /* 保持图片宽高比 */
}
@media (max-width: 600px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pagination {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
}

.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color .3s;
  border: 1px solid #ddd;
}

.pagination a.active {
  background-color: #4CAF50;
  color: white;
  border: 1px solid #4CAF50;
}

.pagination a:hover:not(.active) {
  background-color: #dddddd;
}

.background-image-link {
  display: block;
  background-image: url('/static/images/banner/banner_r1_c1.png');
  /*width: 1024px;*/
  /*height: auto;*/
  width: 141px;
  height: 77px;
  background-size: cover;
  background-position: center;
}
.background-image {
    background-image: url('/static/images/index/foot.jpg');
    width: 1024px;
    height: 238px;
    /*height: auto;*/
    background-size: cover;
    background-position: center;
}

/*.container {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    min-height: 100vh;*/
/*}*/

footer {
    /*background-color: #333;*/
    color: #333;
    text-align: center;
    /*padding: 20px 0;*/
    /*background-image: url("../images/index/index_r22_c1.jpg");*/
}

.footer-content {
    max-width: 1024px;
    margin: 0 auto;
}

.about-link {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    margin-right: 10px;
}

.about-link:hover {
    text-decoration: underline;
}

.copyright-text {
    font-size: 16px;
}


.left {
	float: left;
	width: 65%;

}
.right {
	float: right;
	width: 35%;

}



/*
.box {
  width: 100px;
  height: 100px;
  background-color: red;
  position: absolute;
  animation: moveUpDown 2s linear infinite;
}

@keyframes moveUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(100px);
  }
}*/
.box {
  width: 100px;
  height: 100px;
  background-color: red;
  position: absolute;
  flex: 1 1 calc(25% - 20px); /* 每个项目占据25%宽度，减去间距 */
  box-sizing: border-box;
  animation: moveFromRightToLeft 5s linear infinite;
}

@keyframes moveFromRightToLeft {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}


/*-------------------------------------------------------------------------*/
.box-carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 5px;
}
.box-carousel-slide {
    display: flex;
    animation: slide 20s infinite;

}
.box-carousel-slide img {
    /*width: 100%;*/
    width: 300px;
    /*flex-shrink: 0;*/
    height: auto;
}
.box-carousel-slide.active {
    display: block;
}
@keyframes slide {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.box-carousel-container:hover img {
    animation-play-state: paused;
}

.tite_h{
    font-family: 'OFL Sorts Mill Goudy TT', "Goudy St MTT Italic", cursive;
    font-size: 30px;

}

.tite_h1{
    font-family: 'OFL Sorts Mill Goudy TT', "Goudy St MTT Italic", cursive;
    font-size: 14px;
    /*letter-spacing: 2px;设置字体间距宽度*/
    line-height: 24px;
}
.about_page_h1{
    font-family: 'OFL Sorts Mill Goudy TT', "Goudy St MTT Italic", cursive;
    font-size: 14px;
    /*letter-spacing: 2px;设置字体间距宽度*/
    line-height: 24px;
}
.contents_all{
    font-family: 'OFL Sorts Mill Goudy TT', "Goudy St MTT Italic", cursive;
    font-size: 14px;
    /*letter-spacing: 2px;设置字体间距宽度*/
    line-height: 24px;
}