/* 全局颜色变量 */
:root {
    --primary-color: #076BB0;
    --secondary-color: #3B82F6;
    --accent-color: #F97316;
    --dark-color: #1E293B;
    --light-color: #F8FAFC;
    --text: #9ca3af;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --footer-text-color: #f6f6f6;
}

/* 通用样式 */
body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-color);
    /* background-color: var(--light-color); */
    /*background: linear-gradient(10deg, rgba(0, 98, 255, 0.15), rgba(27, 209, 255, 0.01));*/
}

body.modal-open {
    padding-right: 0 !important;
    overflow: auto !important;
}

h2,h3,h4 {
    color: var(--primary-color);
}

.display-4 {
    font-weight: 500;
}

a {
    text-decoration: none
}
a:hover, a:focus, a:active{
    color: white;
}
/* Remove default ul styles */
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.display-6{
    font-weight: 500;
}
.row{
    margin-left: 0;
    margin-right: 0;
}
.row>*{
    padding-left: 0;
    padding-right: 0;
}
img {

    -webkit-user-drag: none;

    -webkit-user-select: none;

    -moz-user-select: none;

    -ms-user-select: none;

    user-select: none;

}
.main-bg{
    padding: 2%;
    /*box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);*/
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 98, 255, 0.15), rgba(27, 209, 255, 0.1));
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    overflow: hidden;
}
/*fluentform中多选框样式*/
.choices__input.choices__input--cloned{
    width: 100% !important;
}
.breadcrumb-zt{
    /*box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);*/
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 3%;
    padding-right: 3%;    
}

/* 小banner高度 */
.small-carousel-item {
    height: 350px;
}

.mb-4 {
    margin-bottom: 20px !important;
}

.max-w-2xl {
    margin-bottom: 2%;
}

.row .col-lg-6 img {
    border-radius: 10px;
}

.section-padding {
    overflow: hidden;
}

/* 分页样式 */
.pagination {
    /* margin-top: 3rem; */
    flex-direction: row;
    justify-content: space-between;
    gap: 5px;
    justify-content: center;
}

.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #e5e7eb;
    margin: 0 0.25rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link,
.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 侧边栏样式 */
.common-sidebar {
    /* padding:5px 10px; */
    /*padding-left: 2rem;*/
    position: sticky;
    top: 80px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    transition: transform 0.3s ease;
    padding: 5px;
}

/* 自定义滚动条样式 - 增强浏览器兼容性 */
/* Webkit内核浏览器 (Chrome, Safari, Edge) */
.common-sidebar::-webkit-scrollbar {
    display: none;
    width: 6px;
    margin-right: 200px;
    border-radius: 3px;
    background-color: white;
}

.common-sidebar::-webkit-scrollbar-track {
    background: white;
    border-radius: 3px;
}

.common-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
    -webkit-transition: background 0.2s ease;
    transition: background 0.2s ease;
}

.common-sidebar::-webkit-scrollbar-thumb:hover {
    background: #0052a3;
}

/* Firefox 滚动条样式 */
/* .common-sidebar {
            scrollbar-width: thin;
            scrollbar-color: var(--primary-color) ;
        } */

/* IE/Edge 旧版滚动条样式 */
.common-sidebar {
    -ms-overflow-style: -ms-autohiding-scrollbar;
    
}

/* 为IE10+ 添加自定义滚动条颜色 */
@media screen and (-ms-high-contrast: active),
(-ms-high-contrast: none) {
    .common-sidebar {
        scrollbar-base-color: var(--primary-color);
        scrollbar-track-color: transparent;
        scrollbar-arrow-color: transparent;
    }
}

/* 侧边栏切换按钮 - 仅移动端显示 */
.sidebar-toggle {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1040;
    display: none;
    /* 默认隐藏，仅在移动端显示 */
}

.sidebar-toggle i {
    font-size: 18px;
}

/* 侧边栏打开状态 */
.common-sidebar.open {
    transform: translateX(0);
}

.sidebar-section {
    background: linear-gradient(135deg, rgba(0, 98, 255, 0.1), rgba(27, 209, 255, 0.05));
    padding: 1.5rem;
    border-radius: 10px;
    /* border: 1px solid rgba(7, 107, 176,0.1); */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-section:first-child {
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* 热门文章 */
.hot-article-item {
    display: flex;
    margin-bottom: 1.2rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.2s ease;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
}

.hot-article-item:hover {
    transform: translateX(5px);
}

.hot-article-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hot-article-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.hot-article-info {
    flex: 1;
}

.hot-article-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-article-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hot-article-title a:hover {
    color: var(--primary-color);
}

.hot-article-date {
    font-size: 0.8rem;
    color: #999;
}

/* 文章分类 */
.category-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    /* border: 1px solid var(--primary-color); */
}

.category-item-active {
    background-color: var(--primary-color);
}

.category-item:hover {
    background-color: var(--primary-color);
    transform: translateX(5px);

    & a {
        color: white;
    }

    & .category-count {
        color: var(--primary-color);
    }
}

.category-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-item-active a {
    color: white;
}

.category-count {
    background-color: var(--light-gray);
    padding: 0.1rem 0.4rem;
    border-radius: 5px;
    font-size: 0.8rem;
}

.category-item-active .category-count {
    color: var(--primary-color);
}

/* 面包屑导航 */
.breadcrumb {
    background: transparent;
    padding: 15px 0;
    margin: 0;
}


.breadcrumb a {
    color: var(--text);
    font-weight: 500;
    font-size: 16px;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .active {
    color: var(--primary-color);
    font-weight: 500;
}

/* 下划线 */
.underline {
    position: relative;
}

.underline::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.underline:hover::before,
.underline.custom-header-active::before{
    width: 100%;
}

/* Animation Keyframes */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-600px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(600px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade Out Animations */
@keyframes fadeOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-600px);
    }
}

@keyframes fadeOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(600px);
    }
}
/*图片滚动*/
.hover-scroll-container {
    border-radius: 10px;
    height: 520px;
    /* box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); */
    overflow: hidden;
    background-color: transparent;
}

.hover-scroll-image {
    transition: transform 1s ease-out;
    transform-origin: center top;
    /* scale: 1.1; */
}

/*.hover-scroll-container:hover .hover-scroll-image {*/
/*    transform: translateY(calc(-100% + 400px));*/
/*}*/
/* 搜索栏样式 */
.form-control:focus {
    box-shadow: none;
}

/* 3D左右翻转特效类 */
.flip-container {
    perspective: 1000px;
    /* 提供3D透视效果 */
    width: 100%;
    height: 100%;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* 卡片翻转效果 */
.flip-container:hover .flip-card {
    transform: rotateY(180deg);
}

/* 卡片正面 */
.flip-card-front {
    position: relative;
    padding: 2rem;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    z-index: 2;
}

/* 卡片背面 */
.flip-card-back {
    position: absolute;
    padding: 2rem;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: rotateY(180deg);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    background-color: var(--primary-color);

    & h3 {
        color: white;
    }
}

/* 简化版翻转效果（单元素） */
.flip-single {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-single:hover {
    transform: rotateY(180deg);
}

/* 单元素翻转后的内容样式 */
.flip-single:hover>* {
    position: relative;
    z-index: 2;
}

/* Fade Out Classes */
.fade-out-left {
    animation: fadeOutLeft 1s ease-out forwards;
}

.fade-out-right {
    animation: fadeOutRight 1s ease-out forwards;
}

/* Animation Classes */
.fade-in-left {
    opacity: 0;
    /*animation: fadeInLeft 1s cubic-bezier(0.2, 1, 0.36, 1) forwards;*/
    /*animation-play-state: paused;*/
}

.fade-in-left.is-visible {
    animation-play-state: running;
}

.fade-in-right {
    opacity: 0;
    /*animation: fadeInRight 1s cubic-bezier(0.2, 1, 0.36, 1) forwards;*/
    /*animation-play-state: paused;*/
}

.fade-in-right.is-visible {
    animation-play-state: running;
}

/* Section Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(150px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* 响应式调整 */
@media (min-width: 768px) {
    .row{
        gap: 2%;
    }
    footer .row{
        gap: 0;
    }
    .col-lg-9{
        width: 74.5%;
    }
    .col-lg-6,
    .col-md-6{
        width: 49%;
    }
    .col-lg-4,
    .col-md-4{
        width: 32%;
    }
    .col-lg-3,
    .col-md-3{
        width: 23.5%;
    }
    .col-lg-2,
    .col-md-2{
        width: 18.4%;
    }
}
@media (min-width: 1400px) {
    .container {
        max-width: 1440px;
    }
}

@media (min-width: 1200px) {

    .h3,
    h3 {
        font-size: 1.3rem;
    }
    .h4,
    h4{
        font-size: 1.1rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .carousel-caption {
        bottom: 25%;
    }

    .carousel-caption h1 {
        font-size: 2.5rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* 隐藏客户通 */
    #LRfloater3{
        display: none;
    }
    /* Fix container width for mobile */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
    }

    .row {
        gap: 1.5rem;
    }

    /* 侧边栏样式 */
    .common-sidebar {
        padding-left: 0;
        position: fixed;
        left: 0;
        top: 70px;
        width: 400px;
        /* max-width: 90vw; */
        height: calc(100vh - 80px);
        background-color: white;
        z-index: 1030;
        transform: translateX(-100%);
        border-radius: 10px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 1.5rem;
    }

    .common-sidebar::-webkit-scrollbar {
        display: none;
    }

    /* 显示侧边栏切换按钮 */
    .sidebar-toggle {
        display: flex;
    }

    /* Mobile menu button styles */
    .navbar-toggler {
        border: 2px solid var(--primary-color);
        color: var(--primary-color);
        background-color: transparent;
        transition: all 0.3s ease;
        box-shadow: none;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }

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

    /* Active state when menu is open */
    .navbar-toggler[aria-expanded="true"] {
        border-color: white;
        background-color: var(--primary-color);
        color: white;
    }


    /* Active icon color */
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icons {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-collapse {
        background-color: white;
        margin: 1rem 0 0.5rem 0;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 0px 10px rgba(0, 0, 0, 0.1);
    }

    /* Footer margin adjustment */
    footer {
        padding-bottom: 6% !important;
        padding-top: 6% !important;
    }

    .navbar-transparent .navbar-collapse {
        background-color: white;
    }

    .navbar-transparent .navbar-nav .nav-link {
        color: var(--dark-color);
    }

    /* Mobile dropdown styling */
    .dropdown-menu {
        box-shadow: none;
        border-radius: 0;
        padding-left: 1rem;
        margin-top: 0;
        background-color: transparent;
    }

    /* Fix section padding for mobile */
    .section-padding {
        padding: 6% 0;
    }

    /* Fix footer column widths for mobile */
    footer .container>.row:first-child>div {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 2rem;
    }

    footer .container .border-t .row .col-md-6 .d-flex {
        justify-content: center !important;
    }

    /* Hide quick links and our services sections on mobile */
    footer .container>.row:first-child>div:nth-child(2),
    footer .container>.row:first-child>div:nth-child(3) {
        display: none !important;
    }

    .dropdown-item {
        color: var(--dark-color);
        padding: 1rem;
        margin-bottom: 15px;
    }
    .dropdown-menu li:last-child .dropdown-item{
        margin-bottom: 0;
    }
    .dropdown-item:hover, .dropdown-item.custom-header-active{
        border-radius: 10px;
        background: rgba(7, 107, 176, 0.8);
        color: white;
    }
    .nav-link {
        color: var(--dark-color);
    }

    .section-padding {
        padding: 5% 2% !important;
    }
    #contact .ff-column-container{
        flex-direction: column;
        padding: 0 1.5rem;
    }
}

.wechat-qrcode {
    position: absolute;
    top: -130px;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translateX(-50%);
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    & img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.wechat-button-container:hover .wechat-qrcode {
    opacity: 1;
    visibility: visible;
}

/* 确保二维码在小屏幕上也能正常显示 */
@media (max-width: 576px) {
    .wechat-qrcode {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}
/*表单样式*/
.modal-content .fluentform{
    display: flex;
    flex-direction: column;
    align-items: center;
    /*padding: 1.5rem;*/
}
.modal-content .fluentform #fluentform_1{
    width: 60%;
}
.modal-content fieldset{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ff-el-form-control{
    width: 100% !important;
    border-radius: 5px;
}
.modal-content .ff_submit_btn_wrapper{
    align-items: center;
}
.fluentform button{
    display: block;
    margin: auto;
    color: white;
    /*background-color: var(--primary-color);*/
    border-radius: 5px;
    border: 1px solid transparenit;
    transition: all 0.3s ease;
}
.fluentform button:hover,
.fluentform button:focus,
.fluentform button:active{
    color: var(--primary-color);
    background-color: white;
    /*border: 1px solid var(--primary-color);*/
}
.btn-close{
    --bs-btn-close-opacity: 0.2;
    transition: all 0.3s ease;
}
.btn-close:hover{
    width: 1.5em;
    height: 1.5em;
    background-color: white;
}

.breadcrumb-item+.breadcrumb-item::before{
    all: initial;
}
/*底部表单样式*/
#contact .ff-column-container{
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}
