.slideshow {
    height: 400px;
    object-fit: cover;
}
.nav-link{
    padding-right: 0.7rem !important;
    padding-left: 0.7rem !important;
    font-size: 18px !important;
}
/* 修改导航链接字体颜色 */
.navbar-nav .nav-link {
    color: #3a3d4b !important;
    transition: all 0.3s ease;
}

/* 修改导航链接在hover状态下的颜色 */
.navbar-nav .nav-link:hover {
    color: #014099 !important;
    transform: scale(1.05);
}

/* 修改激活状态下的导航链接颜色 */
.navbar-nav .nav-item.active .nav-link {
    color: #014099 !important;
    font-weight: 500;
}

.banner-fullscreen{
    background-image: url(../images/index/banner-bg.jpg);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    height: 100vh;
}

.banner-content {
    width: 100%;
    padding: 0 15px;
}

.banner-title01{
    color: #222328;
    font-size: 2.6rem;
}

.lead {
    font-size: 2.5rem;
    color: #0a0909;
}

@media (max-width: 767.98px) {
    .banner-fullscreen {
        height: 70vh; /* 在小屏幕上减小高度 */
    }
    .banner-fullscreen .wow.fadeInUp {
        display: none !important;
    }
}

/* 添加导航栏浮动效果 */
.navbar {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.6rem 1rem;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* 确保导航栏在顶部时的初始状态 */
.navbar.fixed-top {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 语言切换样式 */
.language-switch {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.language-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.language-item:last-child {
    margin-right: 0;
}

.lang-icon {
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

.lang-link {
    font-size: 14px;
    color: #3a3d4b;
    text-decoration: none;
}

.lang-link:hover {
    text-decoration: none;
    color: #014099;
}

.language-item.active .lang-link {
    font-weight: bold;
    color: #014099;
}

/* Applications Section Styles */
.applications-section {
    padding: 2rem 0;
}

.applications-header {
    text-align: center;
    margin-bottom: 2rem;
}

.applications-header img {
    max-width: 100%;
    height: auto;
}

.applications-header p {
    font-size: 1.2rem;
    margin-top: 1rem;
}

@media (max-width: 767.98px) {
    .applications-header img {
        max-width: 80%; /* 在小屏幕上限制图片最大宽度 */
        margin: 0 auto; /* 居中显示 */
    }
}

.applications-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 0 1rem;
}

.application-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.application-item:hover {
    transform: translateY(-5px);
}

/* 第一张图片较宽 */
.application-one,
.application-five {
    flex: 0 0 calc(60.5% - 1.5rem);
}

.application-three, .application-four {
    flex: 0 0 calc(50% - 1.5rem);
}

/* 第二张图片较窄 */
.application-two,
.application-six {
    flex: 0 0 calc(40% - 1.5rem);
}

.application-item img {
    width: 100%;
    height: auto;
    display: block;
}

.application-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: transparent; /* 移除背景色 */
    color: white;
    opacity: 1; /* 默认显示 */
    transition: opacity 0.3s ease;
    padding: 1rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8); /* 添加文字阴影以确保在各种背景上都能看清 */
}

.application-item:hover .application-text {
    background-color: rgba(0, 0, 0, 0.6); /* 悬停时才显示半透明背景 */
}


.application-text div:first-child {
    font-size: 2rem; /* 增大字体 */
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: 1px; /* 字符间距 */
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.application-text div:last-child {
    font-size: 1.2rem; /* 增大字体 */
    font-weight: 300;
    letter-spacing: 2px; /* 字符间距 */
    transform: translateY(0);
    transition: transform 0.3s ease 0.1s; /* 稍微延迟 */
    margin-top: 4rem;
}
/* 悬停时文字稍微上移 */
.application-item:hover .application-text div:first-child,
.application-item:hover .application-text div:last-child {
    transform: translateY(-5px);
}
.application-view-all {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    justify-content: center;
}
.application-view-all-text{
    font-size: 1.2rem;
    background: #00a73c;
    padding: 0.5rem 2rem;
    color: #fff;
    border-radius: 2rem;
}
.application-view-all-text:hover{
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 767.98px) {
    .applications-grid {
        gap: 1rem;
    }
    /*.application-one,*/
    /*.application-five {*/
    /*    flex: 0 0 calc(60.5% - 1rem);*/
    /*}*/
    /*.application-three, .application-four {*/
    /*    flex: 0 0 calc(50% - 1rem);*/
    /*}*/
    /*.application-two,*/
    /*.application-six {*/
    /*    flex: 0 0 calc(40% - 1rem);*/
    /*}*/
    .application-one,
    .application-two,
    .application-three,
    .application-four,
    .application-five,
    .application-six {
        flex: 0 0 calc(100% - 1rem);
    }

    .application-text div:first-child {
        font-size: 2rem;
    }

    .application-text div:last-child {
        font-size: 0.8rem;
    }

    .banner-fullscreen .wow.fadeInUp {
        display: none !important;
    }
}

/* Medium devices */
@media (min-width: 768px) and (max-width: 991.98px) {
    .application-one,
    .application-two,
    .application-three,
    .application-four,
    .application-five,
    .application-six {
        flex: 0 0 calc(100% - 1.5rem);
    }
    /*.application-one,*/
    /*.application-five {*/
    /*    flex: 0 0 calc(60.5% - 1.5rem);*/
    /*}*/
    /*.application-three, .application-four {*/
    /*    flex: 0 0 calc(50% - 1.5rem);*/
    /*}*/
    /*.application-two,*/
    /*.application-six {*/
    /*    flex: 0 0 calc(40% - 1.5rem);*/
    /*}*/
}

/* Company Stats Section */
.company-stats-section {
    width: 100vw;
    background-color: #eef4f5;
    padding: 4rem 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #221815;
    margin-bottom: 0.5rem;
}

.stat-number span {
    font-size: 1.8rem;
    vertical-align: super;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-description {
    font-size: 1.5rem;
    color: #666;
    font-weight: 300;
}

/* 响应式设计 */
@media (max-width: 767.98px) {
    .company-stats-section {
        padding: 2rem 0;
    }

    .stats-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        min-width: auto;
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-number span {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }
}
.banner-section {
    width: 100vw;
    height: 70vh; /* 降低高度以适应移动设备 */
    background-size: cover;
    background-position: center center; /* 修改为居中显示 */
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    background-image: url(../images/index/banner-02.jpg);
}



.factory-section {
    width: 100vw;
    height: 70vh; /* 降低高度以适应移动设备 */
    background-size: cover;
    background-position: center center; /* 修改为居中显示 */
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
    margin: 0;
    padding: 0;
    background-image: url(../images/index/banner-03.jpg);  
    padding-bottom: 10rem;
}

.factory-section .application-view-all-text{

}

/* Mobile responsiveness for banner */
@media (max-width: 767.98px) {
    .banner-section,.factory-section {
        height: 60vh; /* 在小屏幕上进一步降低高度 */
        background-position: center center; /* 确保重要内容可见 */
    }
}

/* Medium devices */
@media (min-width: 768px) and (max-width: 991.98px) {
    .banner-section,.factory-section {
        height: 65vh;
    }
}

/* Large devices */
@media (min-width: 1200px) {
    .banner-section,.factory-section {
        height: 80vh; /* 在大屏幕上增加高度 */
    }
}


/* About Section Styles */
.about-section {
    background-color: #ffffff;
}

.about-title {
    text-align: center;
    margin-bottom: 3rem;
}

.about-title img:first-child {
    max-width: 100%;
    height: auto;
}

.about-title img:last-child {
    display: block;
    margin: 1rem auto 0;
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-content > div:first-child {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.about-content > div:first-child img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about-content > div:first-child img:hover {
    transform: translateY(-5px);
}

.about-content > div:last-child {
    flex: 1;
    min-width: 300px;
    padding: 1rem;
    background: #e3e3e3;
}

.about-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: justify;
}

/* Responsive design for about section */
@media (max-width: 767.98px) {
    .about-section {
        padding: 2rem 0;
    }
    
    .about-title {
        margin-bottom: 2rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .about-content > div:first-child {
       grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .about-content > div:first-child {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 联系我们部分样式 */
.contact-wrapper {
    background-color: #222328 !important;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}

.contact-wrapper h2 {
    font-size: 2.5rem;
}

.search-bar-container {
    width: 100%;
}

.contact-info p {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .contact-wrapper {
        height: auto;
        min-height: 400px;
        gap: 2rem;
        padding: 2rem 1rem !important;
    }
    
    .contact-wrapper h2 {
        font-size: 2rem;
        padding: 1.5rem 0 !important;
    }
    
    .search-bar-container .input-group {
        width: 95%;
    }
}

.rounded-50 {
    border-radius: 50px !important;
}

.search-bar {
  display: flex;
  align-items: center;
  border-radius: 50px;
  background-color: #2b2b2b;
  padding: 5px;
  border: 1px solid #39393e;
}

.search-bar input {
  border: none;
  background: transparent;
  flex: 1;
  color: #b3b3b3;
  padding: 10px;
  font-size: 16px;
  outline: none;
}

.search-bar input::placeholder {
  color: #b3b3b3;
}

.search-bar button {
  background-color: #2ee59d;
  border: none;
  border-radius: 50px;
  color: #221815;
  font-size: 16px;
  padding: 10px 20px;
  cursor: pointer;
}

.search-bar button:hover {
  background-color: #26d08c;
}

/* OUR LOCATION 部分样式 */
.location-map-container {
    height: 400px;
    width: 100%;
    margin: 0 auto;
}

/* 大屏幕设备上的地图高度调整 */
@media (min-width: 768px) {
    .location-map-container {
        height: 600px;
    }
    
    .location-map-container iframe {
        height: 600px;
    }
}

/* 小屏幕设备上的标题调整 */
@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .pb-5 {
        padding-bottom: 1.5rem !important;
    }
}