/* 页脚 */
.small-text {
    font-size: 0.8rem;
    /* 设置字体大小为0.8倍 */
}

/* 联系我们板块样式 */
.content-section {
    background-color: #f8f9fa;
    /* 背景颜色 */
    padding: 40px 20px;
    /* 内边距 */
    border-radius: 8px;
    /* 边框圆角 */
    text-align: center;
    /* 文本居中 */
}

.content-section h2 {
    color: #fff;
    /* 标题颜色 */
    font-size: 2rem;
    /* 字体大小 */
}

.content-section p {
    color: #343a40;
    /* 段落颜色 */
    font-size: 1.2rem;
    /* 字体大小 */
}

.content-section i {
    margin-bottom: 10px;
    /* 图标和文本之间的间隔 */
}

.content-section .row {
    margin-top: 20px;
    /* 行间距 */
}


/* network项样式 */
.network-item {
    position: relative;
    display: inline-block;
    margin: 5px;
    /* 添加外边距 */
}

.network-img {
    width: 100%;
    /* 图片宽度 */
    transition: transform 0.6s;
    /* 平滑过渡 */
    border: 5px solid #ccc;
    /* 图片边框 */
    border-radius: 10px;
    /* 边框圆角 */
}

.network-desc {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    transition: transform 0.6s;
}

.network-item:hover .network-img {
    transform: rotateY(180deg);
}

.network-item:hover .network-desc {
    transform: rotateY(0deg);
}


/* 为什么选择我们板块样式 */
#why-choose-us {
    background-color: #f8f9fa;
    /* 背景颜色 */
    padding: 20px;
    /* 内边距 */
    border-radius: 8px;
    /* 边框圆角 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* 阴影效果 */
}

#why-choose-us h2 {
    color: #343a40;
    /* 标题颜色 */
}

#why-choose-us p {
    color: #6c757d;
    /* 段落颜色 */
    font-size: 1.1rem;
    /* 字体大小 */
}

#why-choose-us .col-md-4 {
    padding: 20px;
    /* 列内边距 */
    background-color: #fff;
    /* 列背景颜色 */
    border-radius: 8px;
    /* 列边框圆角 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* 列阴影效果 */
    transition: transform 0.3s;
    /* 平滑过渡效果 */
}

#why-choose-us .col-md-4:hover {
    transform: translateY(-10px);
    /* 鼠标悬停时上移效果 */
}


/* 关于我们板块样式 */
.about-us {
    background-color: #7c9fcb;
    /* 背景颜色 */
    color: black;
    /* 文本颜色 */
    padding: 20px;
    text-align: center;
}

.about-us h2 {
    color: black;
    /* 标题颜色 */
}

.about-us p {
    color: black;
    /* 段落颜色 */
    font-size: 1rem;
    /* 字体大小 */
}


/* 自定义导航栏位置 */
.top-10 {
    top: 10%;
    /* 将导航栏向上移动到轮播图的30%高度位置 */
}

/* 自定义导航栏水平位置 */
.navbar {
    left: 10%;
    /* 向右移动10% */
    right: 10%;
    /* 向左移动10% */
}

/* 自定义导航链接的水平位置 */
.navbar-nav {
    margin-right: 5%;
    /* 将导航链接向右移动20% */
}

/* 增大导航栏链接字体大小 */
.nav-link {
    font-size: 1rem;
    /* 设置字体大小为1.2倍 */
    font-weight: bold;
    /* 设置字体为粗体 */
    color: white !important;
    /* 设置字体颜色为白色 */
}

.nav-link:hover {
    color: #FFD700 !important;
    /* 设置鼠标悬停时的颜色为金色 */
}


/* 导航栏品牌样式 */
.navbar-brand {
    color: white;
    /* 设置文本颜色为白色 */
    display: flex;
    /* 使用flex布局 */
    align-items: center;
    /* 垂直居中 */
}

.navbar-brand img {
    margin-right: 30px;
    /* 图片向右移动 */
}

.navbar-brand span {
    font-size: 2rem;
    /* 设置字体大小 */
}


/* 为轮播图的标题和描述文本添加边框 */
.carousel-caption {
    border: 2px solid #ccc;
    /* 边框颜色和宽度 */
    border-radius: 8px;
    /* 边框圆角 */
    padding: 10px;
    /* 内边距 */
    background-color: rgba(0, 0, 0, 0.5);
    /* 背景颜色，半透明 */
    color: white;
    /* 文本颜色 */
    text-align: center;
    /* 文本居中 */
    width: 100%;
    /* 宽度覆盖整个轮播图 */
    position: absolute;
    /* 绝对定位 */
    left: 0;
    /* 左侧对齐 */
    right: 0;
    /* 右侧对齐 */
    bottom: 20%;
    /* 底部位置 */
}


/* 全局样式 */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar-expand-lg {
    flex-wrap: nowrap;
    /* 禁止换行 */
    overflow-x: auto;
    /* 允许横向滚动 */
    white-space: nowrap;
    /* 禁止文本换行 */
}

.navbar-nav .nav-item {
    flex: 0 0 auto;
    /* 禁止导航项伸缩 */
}

/* 导航链接样式 */
.nav-link {
    padding: 0.5rem 1rem;
    /* 调整内边距 */
    font-size: 1rem;
    /* 字体大小 */
    color: white;
    /* 文本颜色 */
}

.nav-link:hover,
.nav-link:focus {
    color: #ffc107;
    /* 悬停时文本颜色 */
}

/* 导航栏图标样式 */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3c%3csvg viewBox='0 0 30 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3c/svg%3e");
}

/* 自定义轮播图标题和描述的样式 */
.carousel-caption {
    bottom: 50%;
    /* 调整垂直位置 */
    transform: translateY(50%);
    /* 垂直居中 */
    left: 50%;
    /* 水平居中 */
    transform: translateX(-50%);
    /* 水平居中 */
    text-align: center;
    /* 文本居中 */
    width: 100%;
    /* 确保宽度覆盖整个轮播图 */
}

.carousel-caption h2,
.carousel-caption p {
    margin: 0 auto;
    /* 确保标题和描述在容器内居中 */
    width: 80%;
    /* 设置最大宽度，避免内容过于拥挤 */
}

/* 返回顶部按钮样式 */
.scroll-to-top-btn {
    display: none;
    /* 默认隐藏按钮 */
    position: fixed;
    /* 固定定位 */
    bottom: 20px;
    /* 距离底部20px */
    right: 20px;
    /* 距离右侧20px */
    z-index: 99;
    /* 高于其他元素 */
    border-radius: 50%;
    /* 圆形按钮 */
    background-color: #007BFF;
    /* 背景颜色 */
    color: white;
    /* 文本颜色 */
    border: none;
    /* 无边框 */
    cursor: pointer;
    /* 鼠标悬停时显示指针 */
    width: 50px;
    /* 按钮宽度 */
    height: 50px;
    /* 按钮高度 */
    font-size: 20px;
    /* 图标大小 */
    line-height: 50px;
    /* 垂直居中 */
    text-align: center;
    /* 水平居中 */
}

.scroll-to-top-btn:hover {
    background-color: #0056b3;
    /* 悬停时背景颜色 */
}
/* 响应式调整 */
/* @media (max-width: 768px) {
    .navbar-brand img {
        height: 30px;
    }
} */