body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.header {
    overflow: hidden;
}

.header-msc {
    max-width: 100%;
    margin-right: 18px;
    margin-left: 5%;
    padding-right: 0;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    height: 60px;
    color: #fff;
    z-index: 99;
    transition: background-color 0.5s ease;
}

@media screen and (max-width: 768px) {
    .navbar {
        height: 64px;
    }
}

.navbar-active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #007bff;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-link.active {
    color: #fff;
    opacity: 1;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    margin-left: auto;
    margin-right: 15px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand {
    position: relative;
    padding: 0;
}

.navbar-brand img.logo {
    height: 40px;
    width: 72px;
    object-fit: contain;
}

.navbar-brand .line {
    width: 1px;
    height: 92px;
    background-color: #fff;
    transform: scale(0.5);
}

.navbar-brand img.tips {
    height: 20px;
    width: 218px;
    object-fit: contain;
}

@media screen and (max-width: 1200px) {
    .navbar-brand img.tips {
        display: none;
    }

    .navbar-brand .line {
        display: none;
    }
}

.banner-bg {
    width: 100%;
    animation: iconScale 8s ease both;
    transform: scale(1.3);
    vertical-align: middle;
}
.banner-bg-no-animation {
    width: 100%;
    /* animation: iconScale 8s ease both; */
    /* transform: scale(1.3); */
    vertical-align: middle;
}

@keyframes iconScale {
    from {
        transform: scale(1.3);
    }
    to {
        transform: scale(1);
    }
}

.language-switcher {
    margin-left: 0;
    height: 100%;
    display: flex;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: white;
    text-decoration: none;
    width: 70px;
    height: 100%;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.lang-btn:hover {
    background-color: rgba(0, 75, 161, 0.8);
    color: white;
}

.navbar-active .lang-btn {
    background-color: #004BA1;
}

.navbar-active .lang-btn:hover {
    background-color: #003b80;
}

@media (max-width: 991px) {
    .header-msc {
        width: 100%;
        padding: 0 15px;
        margin: 0;
    }
    
    .navbar {
        height: auto;
        min-height: 64px;
        padding: 10px 0;
    }
    
    .navbar-brand {
        padding-left: 0;
    }
    
    .navbar-toggler {
        margin-right: 0;
        padding: 6px 10px;
        border-color: rgba(255, 255, 255, 0.8);
        border-radius: 4px;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
    
    .navbar-collapse {
        background-color: #007bff;
        margin-top: 0;
        padding: 0;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .navbar-collapse {
        transition: max-height 0.3s ease;
    }
    
    .navbar-nav {
        padding: 15px 0;
    }
    
    .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 15px;
        display: block;
    }
    
    .language-switcher {
        margin: 0;
        padding: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .lang-btn {
        width: 60px;
        height: 40px;
        background-color: #004BA1;
        margin: 0;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 500;
    }
}

.navbar-collapse.show,
.navbar-collapse.collapsing {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-active {
    background-color: #007bff !important;
}

/* 行业解决方案下拉菜单样式 */
.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    background-color: white;
    border: none;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
    padding: 10px 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    color: #333;
    padding: 8px 20px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #f5f5f5;
    color: #007bff;
}

/* 桌面端下拉菜单悬停效果 */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    /* 当导航栏是透明背景时 */
    .navbar:not(.navbar-active) .dropdown-menu {
        border-top: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    /* 当导航栏有背景色时 */
    .navbar-active .dropdown-menu {
        border-top: 2px solid #0056b3;
    }

    .dropdown-menu-below{
        background-color: white !important;
    }

    /* 语言切换下拉菜单右对齐 */
    .dropdown-menu-end {
        right: 0 !important;
        left: auto !important;
    }
}

/* 移动端下拉菜单样式 */
@media (max-width: 991px) {
    .dropdown-menu {
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        pointer-events: auto;
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    .dropdown-item {
        color: white;
        padding: 10px 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .dropdown-item:hover, .dropdown-item:focus {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .dropdown-menu-below{
        background-color: #007bff !important;
    }
}

/* 语言切换器下拉菜单样式 */
.language-switcher.dropdown {
    position: relative;
}

.language-switcher .lang-btn.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.language-switcher .dropdown-menu {
    min-width: 120px;
    right: 0;
    left: auto;
}

.language-switcher .dropdown-item.active {
    background-color: #007bff;
    color: white;
}

.language-switcher .dropdown-item.active:hover {
    background-color: #0056b3;
    color: white;
}

/* 桌面端语言切换器 */
@media (min-width: 992px) {
    .language-switcher .dropdown-menu {
        position: absolute;
        top: 100%;
        margin-top: 0;
    }
}

/* 移动端语言切换器 */
@media (max-width: 991px) {
    .language-switcher {
        width: 100%;
    }
    
    .language-switcher .lang-btn {
        width: 100%;
        justify-content: space-between;
        padding: 0 15px;
    }
    
    .language-switcher .dropdown-menu {
        position: static;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }
}