 /* 自定义样式 */
body {
    font-family: Arial, sans-serif;
}
/* 导航栏高度 */
.navbar {
    padding-top: 15px;
    padding-bottom: 15px;
}
.navbar-nav .dropdown-menu {
    border: none; /* 去掉所有边框 */
}

.navbar-brand {
    font-weight: bold;
}

.dropdown-item:active {
    background-color: #dc3545 !important; /* 修改成你需要的颜色 */
    color: #fff; /* 可选：修改文字颜色 */
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}
/* 导航栏样式 */
.container-xl {
    max-width: 1920px; /* 设置最大宽度为 1920px */
}

/* 轮播图样式 */
.carousel-item img {
    width: 100%; /* 图片宽度占满容器 */
    height: 500px;
    object-fit: cover;
}

/* 下拉菜单样式 */
/*.navbar-nav .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    margin-top: 0;
    border-top: none;
    position: absolute; 
    top: 100%; 
    left: 0;
}

.navbar-nav .nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}*/
.marketing .col-lg-4 {
  margin-bottom: 1.5rem;
  text-align: center;
}
.marketing .col-lg-4 p {
  margin-right: .75rem;
  margin-left: .75rem;
}

.grid-item {
width: calc(33.33% - 2px);
margin: 0.5px;
background-color: #dedede;
position: relative;
text-decoration: none;
color: inherit;
min-width: 0;
color: #999;
}
.grid-item:hover{
  color: #71614a;
  background-color: #f1f1f1;
}

.grid-item:nth-child(5) h1{
 color: #fff;
 font-size: 2.5rem;
 white-space: nowrap;
 top: 45%;
}
.grid-item:nth-child(5) p{
 top: 55%;
 font-size: 2rem;
 white-space: nowrap;
}
/* 保持正方形的关键样式 */
/*.grid-item::before {*/
/*content: "";*/
/*display: block;*/
/*padding-top: 100%;*/
/*}*/

/*.grid-item > * { 
position: relative;
z-index: 1;
}*/


.grid-item h1{
font-size: 5rem;
position: absolute; /* 将 h1 和 p 元素设置为相对定位 */
left: 50%;
top: 50%;
transform: translate(-50%, -50%); /* 添加 transform 属性 */
}
.grid-item p {
position: absolute; /* 将 h1 和 p 元素设置为相对定位 */
left: 50%;
top: 50%;
transform: translate(-50%, -50%); /* 添加 transform 属性 */
color: #fff;
}

@media (max-width: 768px) {
.grid-item {
  width: calc(50% - 2px);
}
}

@media (max-width: 768px) {
.grid-item h1{
  font-size: 2.3rem;
}
}


.grid-item1{
            transition: transform 0.3s ease; /* 添加平滑过渡效果 */
            overflow: hidden; 
        }

        .grid-item1 img {
            width: 100%;
            display: block; /* 防止图片下方出现额外空间 */
        }
      .grid-item1 img:hover {
            transform: scale(1.05); /* 鼠标悬停时放大 */
        }

        .grid-item1 img {
            transition: transform 0.3s ease, opacity 0.3s ease; 
        }

        /* 初始隐藏第二张图片 */
        .grid-item1 img:nth-child(2) {
            opacity: 0;
            position: absolute;
            top: 0;
            left: 0;
        }

        /* 鼠标悬停时显示第二张图片并隐藏第一张 */
        /*.grid-item1:hover img:nth-child(1) {*/
        /*    opacity: 0;*/
        /*}*/

        /*.grid-item1:hover img:nth-child(2) {*/
        /*    opacity: 1;*/
        /*}*/




.cover .swiper-container {
    width: 100%;
    height: 450px;
    margin: 10px auto;
}
.cover .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    
    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}
.cover .append-buttons {
    text-align: center;
    margin-top: 20px;
}
.cover .append-buttons a {
    display: inline-block;
    border: 1px solid #007aff;
    color: #007aff;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    margin: 0 10px;
    font-size: 13px;
}


.focus{
  width: 100%;
  height: 800px;
}
.focus .swiper-container {
    width: 100%;
    height: 800px;
    margin-left: auto;
    margin-right: auto;
}
.focus .swiper-slide {
    background-size: cover;
    background-position: center;
}
.focus .gallery-top {
    height: 80%;
    width: 100%;
}
.focus .gallery-thumbs {
    height: 20%;
    box-sizing: border-box;
    padding: 10px 0;
}
.focus .gallery-thumbs .swiper-slide {
    height: 100%;
    opacity: 0.4;
}
.focus .gallery-thumbs .swiper-slide-active {
    opacity: 1;
}

.focusOS{
  width: 100%;
  height: 400px;
}
.focusOS .swiper-container {
    width: 100%;
    height: 400px;
    margin-left: auto;
    margin-right: auto;
}
.focusOS .swiper-slide {
    background-size: cover;
    background-position: center;
}
.focusOS .gallery-top_m {
    height: 80%;
    width: 100%;
}
.focusOS .gallery-thumbs_m {
    height: 20%;
    box-sizing: border-box;
    padding: 10px 0;
}
.focusOS .gallery-thumbs_m .swiper-slide {
    height: 100%;
    opacity: 0.4;
}
.focusOS .gallery-thumbs_m .swiper-slide-active {
    opacity: 1;
}




    





