:root {
    --theme-color: rgb(0, 140, 214);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    overflow-y: scroll;

    visibility: hidden;
}


.navbar-brand {
    color: var(--theme-color) !important;
    font-weight: bold;
}

.nav-link {
    color: #333 !important;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    padding-bottom: 8px;
}

.nav-link:hover {
    color: var(--theme-color) !important;
}

.navbar-transparent {
    background-color: transparent !important;
    box-shadow: none !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-scrolled,
.navbar-hovered {
    background-color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--theme-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 控制菜单项不换行 */
.navbar-nav {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    white-space: nowrap;
}

.navbar-nav .nav-item {
    flex: 0 0 auto;
}

/* 移动端优化：防止挤压 logo 和菜单 */
@media (max-width: 991.98px) {
    .navbar .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* 菜单折叠时居左显示（可选） */
    .navbar-collapse {
        text-align: left;
    }
}

/* 防止 .nav-link 换行 */
.nav-link {
    white-space: nowrap;
}

/* 防止横向滚动条过于突兀 */
.navbar-nav::-webkit-scrollbar {
    display: none;
}

.navbar-nav {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* 导航栏抽屉 */
.nav-drawer {
    position: fixed;
    /* 用 fixed 让抽屉固定在页面顶部 */
    top: 66px;
    /* 距离导航栏高度 */
    left: 0;
    width: 100vw;
    /* 整个页面宽度 */
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 20px 0;
    border-radius: 0;
    /* 如果想全宽就去掉圆角 */
    z-index: 1050;
    display: none;

    display: flex;
    /* 用flex布局 */
    justify-content: center;
    /* 水平居中 */
    align-items: center;
    /* 垂直居中 */
    gap: 20px;
    /* 链接之间间距 */
    white-space: nowrap;
    /* 防止换行 */
}

.nav-drawer a {
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.nav-drawer a:hover {
    background-color: #f2f2f2;
    color: var(--theme-color);
}

.nav-link.active {
    color: var(--theme-color) !important;
    font-weight: bold;
}

.nav-link.active::after {
    width: 100%;
    background-color: var(--theme-color);
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 轮播图 */
/* .carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
}


.carousel-fade .carousel-item {
    transition: opacity 1s ease-in-out;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active.carousel-item-start,
.carousel-fade .carousel-item.active.carousel-item-end {
    opacity: 0;
}

.carousel-control-prev,
.carousel-control-next {
    display: none;
}

.carousel-indicators {
    bottom: 15px;
}

.carousel-indicators [data-bs-target] {
    width: 20px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 6px;
    transition: background-color 0.3s;
}

.carousel-indicators .active {
    background-color: rgb(206, 12, 12);
} */

/* 设置轮播图容器高度约为半屏 */
/* .carousel-item img {
    height: 75vh;
    width: 100%;
    object-fit: cover;
    object-position: center;
} */

.carousel-item {
    height: 70vh;
    /* 无论移动端还是 PC，统一高度 */
    background-color: #000;
    /* 防止图像裁剪露出白边 */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 水平裁剪两侧，垂直方向完整显示 */
    object-position: center;
    /* 居中裁剪 */
    display: block;
}

.carousel-indicators [data-bs-target] {
    width: 55px;
    height: 4.5px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 6px;
    transition: background-color 0.3s;
}

.carousel-indicators .active {
    background-color: rgb(230, 0, 18);
}


/* 关于我们部分样式 */
#contentSection {
    background-color: #fff;
}

.about-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
}

.about-content h2 {
    font-weight: 600;
    margin-bottom: 2rem;
    color: #333;
}

@media (max-width: 992px) {
    .about-content {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    #contentSection {
        flex-direction: column;
        padding: 20px 15px !important;

    }

    #productSection {
        flex-direction: column;
        padding: 20px 15px !important;
    }

    .carousel-item {
        max-height: 200px;
        /* 移动端最大高度，保持图片比例 */
    }

    .first-pic {
        max-height: 200px;
        /* 移动端最大高度，保持图片比例 */
    }

}

/* 返回顶部按钮 */
#backToTop {
    position: fixed;
    bottom: 40px;
    right: 20px;
    z-index: 999;
    display: none;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop:hover {
    background-color: var(--theme-color);
    transform: scale(1.1);
}

/* 产品服务卡片 */
.service-card-link {
    display: block;
    color: inherit;
}

.service-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: #fff;
    height: 100%;
}

.service-card:hover {
    background-color: var(--theme-color);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.service-card:hover .text-muted {
    color: #f0f0f0 !important;
}

.service-icon i {
    color: var(--theme-color);
    transition: color 0.3s ease;
}

.service-card:hover .service-icon i {
    color: white;
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

.card-img-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    /* 容器保持统一比例，例如 4:3 */
    overflow: hidden;
    background-color: #f8f9fa;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 保持比例填满容器，适当裁剪 */
}

/* 底部整体背景浅灰色 */
footer {
    background-color: rgb(242, 242, 242);
    padding: 40px 0 20px;
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
    font-size: 14px;
    color: #666;
    /* 默认文字为中灰色 */
}

/* 栏目标题样式：黑色 */
footer h5 {
    color: #000;
    /* 黑色标题 */
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* 列表项样式 */
footer ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: #666;
    /* 中灰色文字 */
    text-decoration: none;
    transition: color 0.2s ease;
}

footer ul li a:hover {
    color: rgb(0, 140, 214);
    /* 鼠标悬停蓝色 */
}

/* 电话号码：主题蓝色 */
footer .phone {
    color: rgb(0, 140, 214);
    font-weight: bold;
    font-size: 16px;
}

/* 分割线 */
footer hr {
    border-color: #ddd;
    margin: 20px 0;
}

/* 版权文字 */
footer .copyright {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 20px;
}

/* 移动端优化 */
@media (max-width: 576px) {
    footer .row>div {
        margin-bottom: 20px;
        text-align: center;
    }

    footer h5 {
        font-size: 15px;
    }
}


/* 行业案例主页 */
/* 横幅图标题适配移动端 */
.banner-image h1 {
    font-size: 2rem;
}

@media (min-width: 768px) {
    .banner-image h1 {
        font-size: 2.5rem;
    }
}

/* 行业按钮组滚动处理（移动端横向滚动） */
#industry-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.5rem;
}

#industry-filters::-webkit-scrollbar {
    display: none;
}

/* 案例卡片间距调整 */
#case-list .card {
    transition: transform 0.3s;
}

#case-list .card:hover {
    transform: scale(1.03);
}

/* 查看更多按钮优化 */
.btn-see-more {
    background-color: white;
    border: 2px solid var(--theme-color);
    color: var(--theme-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-see-more:hover {
    background-color: var(--theme-color);
    color: white;
}