/* 核心修改：将所有 Primary 颜色覆盖为高级绿色 */
:root {
    --bs-primary: #008d00; /* Bootstrap Success Green */
    --bs-primary-rgb: 25, 135, 84;
}

/* 强制按钮和文本使用这个绿色 */
.btn-primary { 
    background-color: var(--bs-primary) !important; 
    border-color: var(--bs-primary) !important; 
}
.text-primary { 
    color: var(--bs-primary) !important; 
}
.btn-outline-primary {
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}
.btn-outline-primary:hover {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}

/* 桌面端 hover 自动展开 dropdown */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* 下拉菜单基础样式优化 */
.dropdown-menu {
border: none;
min-width: 220px;
padding: 0.5rem 0;
}

/* 下拉菜单项 */
.dropdown-item {
padding: 0.6rem 1.2rem;
transition: all 0.2s ease;
}

/* hover 绿色背景 */
.dropdown-item:hover {
background-color: var(--bs-primary);
color: #fff;
}

/* 一级菜单 hover 变绿 */
.navbar .nav-link:hover {
color: var(--bs-primary) !important;
}

.card-img-hover {
    transition: transform 0.3s ease;
}
.card:hover .card-img-hover {
    transform: scale(1.05);
}

.navbar .dropdown:hover > .nav-link {
    color: var(--bs-primary) !important;
}

.dropdown-menu {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-radius: 6px;
}
/* hover 绿色背景 */

#btn-back-to-top {
    position: fixed;
    bottom: 40px; /* 提高位置，避开手机浏览器自带的导航条 */
    right: 20px;
    width: 50px;
    height: 50px;
    z-index: 99999 !important; /* 确保不被任何幻灯片或导航遮挡 */
    border-radius: 50%;
    border: none;
    background-color: var(--bs-primary);
    color: white;
    
    /* 解决显示问题的关键：改用透明度控制 */
    opacity: 0; 
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s ease; /* 增加平滑过渡 */
    
    /* 强制居中 */
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* 显示状态 */
#btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}



.case_detail img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* 图片居中（避免奇怪的左对齐） */
.case_detail img {
    margin-left: auto;
    margin-right: auto;
}

/* 防止图片被写死 width/height 撑破 */
.case_detail img[width] {
    width: auto !important;
}




/* case 和 Solutions 简单的交互增强 */
.shadow-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important;
}
.transition-all {
    transition: all 0.3s ease-in-out;
}
.hover-primary:hover {
    color: #007bff !important;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* 每个图片css*/

/* 保持第一个版本的 Hero 布局，更换背景图色调 */
.bread-bg-index {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), 
    url('/static/assets/img/w1.webp') center/cover no-repeat;
    min-height: 80vh;
}

.bread-bg-about {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
                url('/static/assets/img/breadcumb_bg.webp') no-repeat center center / cover;
    min-height: 500px;
    height: 60vh;
}

.bread-bg-product {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
                url('/static/assets/img/breadcumb_bg.webp') no-repeat center center / cover;
    min-height: 500px;
    height: 60vh;
}

.bread-bg-about {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
                url('/static/assets/img/breadcumb_bg.webp') no-repeat center center / cover;
    min-height: 500px;
    height: 60vh;
}

.bread-bg-how-it-works {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
                url('/static/assets/img/breadcumb_bg.webp') no-repeat center center / cover;
    min-height: 500px;
    height: 60vh;
}

.bread-bg-knowledge {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
                url('/static/assets/img/breadcumb_bg.webp') no-repeat center center / cover;
    min-height: 500px;
    height: 60vh;
}

.bread-bg-solutions {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
                url('/static/assets/img/breadcumb_bg.webp') no-repeat center center / cover;
    min-height: 500px;
    height: 60vh;
}

.bread-bg-case {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
                url('/static/assets/img/breadcumb_bg.webp') no-repeat center center / cover;
    min-height: 500px;
    height: 60vh;
}

.bread-bg-contact {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
                url('/static/assets/img/contact_b.jpg') no-repeat center center / cover;
    min-height: 500px;
    height: 60vh;
}
.bread-bg-fqa {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
                url('/static/assets/img/breadcumb_bg.webp') no-repeat center center / cover;
    min-height: 500px;
    height: 60vh;
}