/* 引入Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

main > * {
    margin-top: 20px;
    margin-bottom: 20px;
}
h1 {
    margin-top: 30px;
    margin-bottom: 30px;
}
h2 {
    margin-top: 25px;
    margin-bottom: 25px;
}
h3 {
    margin-top: 20px;
    margin-bottom: 20px;
}
h4 {
    margin-top: 15px;
    margin-bottom: 15px;
}
h5 {
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Global Styles */
body {
    font-family: 'Cairo', Arial, sans-serif;
    line-height: 1.6;
    background-color: #fff;
}

.img {
    border-radius: 15px; /* 调整圆角的大小 */
}
/* Header Styles */

header {
    background-color: #000; /* 设置背景色为黑色 */
    color: #02b5ac; /* 设置字体颜色 */
}
.custom-header {
    margin: 0 auto;
    position: sticky;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030; 
}


.custom-header .navbar {
    justify-content: flex-end;
    width: 100%;
    background-color: #000;
    margin-bottom: -20px;
    margin-right: 10px;
}
.custom-header .navbar-collapse {
    justify-content: flex-end; /* 确保菜单在右侧 */
}

.custom-header .navbar-nav {
    /* 确保导航项靠右排列 */
    margin-left: auto; 

}

.custom-header .navbar-nav .nav-item {
    text-align: center;
    margin-right: 10px;
    padding-right: 20px
}



/*logo内文字样式*/
.custom-header .header-content {
    position: relative;
}

.custom-header img {
    position: relative;

    margin-top: 0px;
    height: 150px;
    width: auto;  
    display: block;
    z-index: 10; /* 确保图片在下层 */
}
/*logo内文字样式*/
.custom-header .header-text {
    position: absolute;
    top: 50%; /* 根据需要调整定位 */
    left:0px; /* 设定整体的左边距 */
    width: 100%;
    transform: translateY(-50%); 
    z-index: 5;
    text-align: right;
    color: #02b5ac; /* 文字颜色 */
}

.custom-header .header-text p {
    margin: 0;
    font-size: 14px; /* 可以调整为所需的字体大小 */
    text-align: left; /* 确保文本靠左对齐 */
    /*padding-left: 110px; */
    margin-left: 110px;
}

.custom-header .header-text p:nth-child(2) {
    font-size: 12px; 
    margin-left: 140px;
}

.custom-header .header-text p:nth-child(3) {
    font-size: 12px; 
    margin-left: 140px;
}


.custom-header .navbar {
    margin-right: 0px;
    position: absolute;
    top: 50%; 
    left: -10px;
    right: 0px;
    width: 105%;
    /*transform: translateY(-50%);*/
    z-index: 3;
    color: #02b5ac; 
}



/* 导航链接的默认状态 */
.custom-header .navbar-nav .nav-link {
    color: #02b5ac; /* 设置导航链接的默认字体颜色为#02b5ac */
    transition: color 0.3s ease; /* 添加过渡效果，使颜色变化更加平滑 */
}

/* 鼠标悬停时的状态 */
.custom-header .navbar-nav .nav-link:hover {
    color: #808080; /* 当鼠标悬停时，字体颜色变为灰色 (#808080) */
}

/* 活动页面的导航字体颜色 */
.custom-header .navbar-nav .nav-link.active {
    color: #fff; /* 活动页面的导航字体颜色为白色 */
}

/* 如果需要确保当前页面的导航项始终为白色 */
.custom-header .navbar-nav .nav-link:focus, 
.custom-header .navbar-nav .nav-link:active {
    color: #fff; /* 当前页面或点击时字体颜色为白色 */
}
/* Footer Styles */
footer {
    background-color: #000; 
     /*background-color: #fff;*/
    color: #02b5ac; /* 设置字体颜色 */
}



footer a {
    color: #02b5ac; /* 确保链接的颜色也为#02b5ac */
    text-decoration: none; /* 移除链接下划线 */
}

footer a:hover {
    color: #808080; /* 当鼠标悬停在链接上时，颜色变为灰色 */
}

.footer-contact li {
    color: #02b5ac; /* 设置联系信息列表中的字体颜色 */
}

.footer-contact i {
    color: #02b5ac; /* 设置图标的颜色 */
}

.f2 {
    width: 100%;
    background-color: #fff;
    color: #000;
}

footer img {

    height: 150px;
    width: auto;  
    
}

footer p {
    font-size: 0.9rem;
    color: #02b5ac; /* 确保链接的颜色也为#02b5ac */
}

/*背景色*/
.footer customFooter {
        background-color: black;
    }

.footer-contact {
    list-style-type: none; /* 去掉圆点 */
    padding: 0; /* 去掉默认的内边距 */
    margin: 10px; /* 去掉默认的外边距 */
}

.footer-contact li {
    display: flex; /* 使用Flexbox以使图标和文本对齐 */
    align-items: center; /* 垂直居中对齐 */
    margin-bottom: 10px; /* 每项之间的间距 */
}

.footer-contact i {
    margin-right: 10px; /* 图标与文本之间的间距 */
}


/* Media Queries for smaller screens */
@media (max-width: 768px) {
    .custom-header .navbar-nav {
        text-align: center; /* 让导航在小屏幕上居中 */
        margin: 0;
    }
    .custom-header img {
        height: 100px; /* 缩小Logo的高度以适应小屏幕 */
    }
    .custom-header p {
        font-size: 12px; /* 调整文字大小 */
        text-align: center; /* 让文字在小屏幕上居中 */
    }
    .custom-header .header-nav {
        position: relative;
        top: -20px; /* 根据需要调整数值 */
    }
    footer img {
        height: 100px; /* 调整Footer Logo大小 */
    }
    .footer-contact li {
        font-size: 12px; /* 调整联系信息字体大小 */
    }
    .footer-contact i {
        font-size: 14px; /* 调整图标大小 */
    }
}

@media (max-width: 576px) {
    .navbar-nav {
        flex-direction: column; /* 导航在小屏幕上垂直排列 */
    }
}

/* 加载容器的样式 */  
.loading-container {  
    position: fixed;  
    top: 0;  
    left: 0;  
    width: 100%;  
    height: 100%;  
    display: flex;  
    justify-content: center;  
    align-items: center;  
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */  
    z-index: 1000; /* 确保在顶层 */  
}  
  
/* Loader的样式 */  
.loader {  
    border: 16px solid #f3f3f3; /* Light grey */  
    border-top: 16px solid #3498db; /* Blue */  
    border-radius: 50%;  
    width: 120px;  
    height: 120px;  
    animation: spin 2s linear infinite; /* 应用动画 */  
}  
  
/* 创建旋转动画 */  
@keyframes spin {  
    0% { transform: rotate(0deg); }  
    100% { transform: rotate(360deg); }  
}
/*图片轮播*/
#carouselExample {
    width: 100%; /* 确保轮播组件宽度填满父容器 */
}

.col-md-6 {
    width: 100%;
    margin: 0 auto; /* 使父容器水平居中 */
}

.carousel-inner img {
    width: 90%; /* 图片宽度填满轮播容器 */
    height: 350px; /* 高度保持自动调整 */
    
    object-fit: cover; /* 使图片内容根据父容器裁剪，保持适当的比例 */
    display: block; /* 确保图片是块级元素 */
    margin: 0 auto; /* 使图片水平居中 */
}

.carousel-indicators {
    position: relative;
    bottom: 10px; /* 将指示器稍微移到底部以下 */
    margin-top: 50px; /* 与图片间的间距适当调整 */
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 20%; /* 改成圆点效果 */
    background-color: #555; /* 默认圆点颜色 */
}

.carousel-indicators .active {
    background-color: #fff; /* 当前显示图片的圆点颜色 */
}



.p-3 i {
    font-size: 80px; /* 设置图标大小 */
    color: #333; /* 设置图标颜色 (可以根据需要调整) */
    transition: background-color 0.3s ease, color 0.3s ease; /* 设置背景色和颜色的过渡效果 */
    padding: 10px; /* 为图标添加内边距，使背景色能显示 */
    border-radius: 20px; /* 圆角边框 */
    background-color: #fff
}
.p-3 p {
    font-size: 20px; /* 设置字体大小 */

}

.p-3 i:hover {
    background-color: #38364d; /* 鼠标悬停时背景色加深 (可以根据需要调整) */
    color: #fff; /* 鼠标悬停时图标颜色 (可以根据需要调整) */
}
