/* 公共样式整合文件 */


/* 预加载动画样式 */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #dee2e6;
    z-index: 9999;
    overflow: hidden;
    /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px; */
}

.preloader-bar {
    position: absolute;
    width: 250px;
    height: 2px;
    background-color: rgba(24, 66, 182, 0.2);
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 40px);
    box-shadow: 2px -2px 8px rgba(24, 66, 182, 0.3);
}

.preloader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #1842b6;
    /* 删除自动动画 */
    box-shadow: 2px -2px 8px rgba(24, 66, 182, 0.5);
    transition: width 0.03s linear;
    /* 添加平滑过渡效果，与js中计时器间隔匹配 */
}

.preloader .title {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    color: transparent;
    width: 300px;
    height: 60px;
    text-align: center;
}

.preloader .title .text-outline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: transparent;
    -webkit-text-stroke: 1px #1842b6;
    text-shadow: 2px -2px 8px rgba(24, 66, 182, 0.3);
}

.preloader .title .text-strok {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: #1842b6;
    clip-path: inset(100% 0% 0% 0%);
    transition: clip-path 0.1s ease;
    text-shadow: 2px -2px 8px rgba(24, 66, 182, 0.5);
}

.preloader .title .percent {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #1842b6;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

.v-middle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes progress {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes textFillVertical {
    0% {
        --fill-percent: 0%;
    }
    100% {
        --fill-percent: 100%;
    }
}


/* 表单样式 */

.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}


/* 表单输入样式 */

.form-control {
    color: #eee !important;
}

.form-control:focus {
    color: #eee !important;
    background-color: rgba(30, 41, 59, 0.8) !important;
    border-color: #1842b6 !important;
    box-shadow: 0 0 0 0.2rem rgba(24, 66, 182, 0.25) !important;
}


/* 单选框样式 */

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
    border: 1px solid #ced4da;
}

.form-check-input:checked {
    background-color: #4caf50;
    border-color: #4caf50;
}

.form-check-label {
    color: #555;
    font-size: 15px;
    padding-left: 5px;
}

.was-validated .form-check-input:invalid {
    border-color: #dc3545;
}


/* 下拉框样式 */

.form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    appearance: none;
}

.form-control {
    background-color: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid #1842b6 !important;
    border-radius: 0.25rem !important;
}


/* 标题布局 */

.section-title {
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
    padding-bottom: 2rem;
}


/* 产品/方案卡片 */

.product-img-box {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f7f7f7;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* 战略伙伴样式 */

.team-item {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.5);
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    height: 14rem;
    display: flex;
    flex-direction: column;
    margin: 10px 5px;
}

.team-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
}

.team-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.team-img-icon {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.team-img-icon img {
    max-width: 180px;
    max-height: 140px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.team-name {
    margin-top: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-name h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.team-name p {
    color: #666;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}


/* 解决方案卡片 */

.project-item {
    height: 340px;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.project-img {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.project-title {
    pointer-events: none;
    background: transparent !important;
    color: #fff;
    padding: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute !important;
    width: 100%;
    text-align: center;
}

.project-title h4 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.project-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 70%;
    min-height: 60px;
    /*max-width: 90%;*/
    max-height: 100px;
    background: rgba(24, 66, 182, 0.85);
    border-radius: 18px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(24, 66, 182, 0.08);
    z-index: 2;
    padding: 15px;
}

.project-content p {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    text-align: center;
    line-height: 1.5;
    word-break: break-all;
}

.project-img:hover .project-content {
    background: rgba(24, 66, 182, 0.8);
}


/* 媒体查询 */

@media (max-width: 992px) {
    .main-flex-3d {
        flex-direction: column;
        height: auto;
    }
    .carousel-container-3d {
        width: 100% !important;
        height: 50vh !important;
        min-height: 300px;
    }
    .indicators-3d {
        margin-top: 8px;
    }
}

@media (max-width: 700px) {
    .carousel-container-3d {
        width: 98vw !important;
        height: 220px !important;
    }
    .indicators-3d {
        margin-top: 4px;
    }
}


/* 404错误页面样式 */

.error-page {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.error-page .error-code {
    font-size: 8rem;
    font-weight: 700;
    color: #1842b6;
    text-shadow: 2px 2px 8px rgba(24, 66, 182, 0.2);
    margin-bottom: 1rem;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.error-page .error-message {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 2rem;
}

.error-page .error-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.error-page .error-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
}

.error-page .btn-primary {
    background: #1842b6;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(24, 66, 182, 0.2);
}

.error-page .btn-primary:hover {
    background: #1335a1;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(24, 66, 182, 0.3);
}

.error-page .btn-outline {
    background: transparent;
    color: #1842b6;
    border: 2px solid #1842b6;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-left: 1rem;
}

.error-page .btn-outline:hover {
    background: rgba(24, 66, 182, 0.1);
    transform: translateY(-3px);
}

.error-page .actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.error-page .background-element {
    position: absolute;
    opacity: 0.1;
    z-index: -1;
}

.error-page .circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #1842b6;
    top: 10%;
    left: 5%;
}

.error-page .square {
    width: 200px;
    height: 200px;
    background: #1842b6;
    bottom: 10%;
    right: 5%;
    transform: rotate(45deg);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 768px) {
    .navbar .navbar-nav {
        /* background-color: rgba(255, 255, 255, 0.8); */
        background-color: #fff;
        padding: 15px 0;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
    .main-flex-3d {
        flex-direction: column !important;
        justify-content: center !important;
        /* 移动端保持居中布局 */
    }
    .carousel-container-3d {
        width: 100% !important;
        height: 35vh !important;
    }
    .indicators-3d {
        margin-top: 15px !important;
    }
    /* 恢复移动端的轮播图位置和圆角 */
    #carousel-left-3d .slide-3d,
    #carousel-right-3d .slide-3d {
        left: 10% !important;
        width: 80% !important;
        border-radius: 20px 20px 0 0 !important;
    }
    /* 错误页面移动端样式 */
    .error-page .error-code {
        font-size: 6rem;
    }
    .error-page .error-message {
        font-size: 1.25rem;
    }
    .error-page .actions {
        flex-direction: column;
    }
    .error-page .btn-outline {
        margin-left: 0;
        margin-top: 1rem;
    }
    .back-to-top {
        /* display: none !important; */
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
        opacity: 0.5 !important;
    }
}


/* 响应式卡片尺寸调整 */

@media (min-width: 1200px) and (max-width: 1600px) {
    /* 核心产品卡片调整 */
    /* 解决方案卡片调整 */
    .col-lg-4 {
        width: 28% !important;
    }
    .col-xl-4 {
        width: 28% !important;
    }
    .services-item .p-4 {
        padding: 1rem !important;
    }
    .services-item .product-img-box,
    .blog-img-box {
        max-height: 180px;
        overflow: hidden;
    }
    .services-item h4,
    blog-img-box h5 {
        font-size: 1.25rem;
    }
    .services-item .btn-view-detail,
    .blog-btn {
        padding: 0.5rem 1.5rem !important;
        font-size: 0.9rem;
    }
    .project-item .project-title h4 {
        font-size: 1.25rem !important;
    }
    .blog-content {
        min-height: 120px;
        max-height: 120px;
        overflow: scroll;
    }
}

@media (min-width: 1601px) {
    .blog-content {
        min-height: 140px;
        max-height: 140px;
        overflow: scroll;
    }
}

#aboutus-menu.menu-open {
    opacity: 1;
}


/* 优化动画性能 */

.dropdown-menu.slideUp,
.dropdown-menu.slideDown {
    will-change: height, opacity;
    transition: height 0.2s ease, opacity 0.2s ease;
}


/* 移动端导航样式 */

@media (max-width: 991.98px) {
    .mobile-dropdown {
        position: relative;
        cursor: pointer;
    }
    .mobile-dropdown .mobile-caret {
        transition: transform 0.2s ease;
    }
    /* 移动端隐藏下拉箭头，使用自定义箭头 */
    .navbar .dropdown-toggle::after {
        display: none;
    }
    /* 移动端子菜单初始隐藏 */
    .navbar .dropdown-menu {
        display: none;
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: #f8f9fa;
        padding-left: 15px;
        margin-top: 0;
    }
    #aboutus-menu .dropdown-item {
        padding: 8px 15px;
    }
    .nav-item .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        padding-top: 0;
        margin-top: 0;
        border: none;
        max-height: 300px;
        /* 限制最大高度 */
        overflow-y: auto;
        /* 内容过多时可滚动 */
    }
}


/* PC端导航样式 */

@media (min-width: 992px) {
    /* PC端悬停显示子菜单 */
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
    }
    /* PC端隐藏移动端箭头图标 */
    .mobile-caret {
        display: none !important;
    }
    /* PC端显示标准下拉箭头 */
    .navbar .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;
    }
}


/* 页脚区域特殊处理 */

#section-footer.section.fp-auto-height {
    padding: 0;
    width: 100vw !important;
    position: relative;
    min-height: 200px;
    /* 确保页脚有足够的高度 */
}


/* 页脚内部元素对齐 */

#footer-container .container {
    max-width: 1200px;
    margin: 0 auto;
}


/* 联系卡片样式统一 */

.contact-card {
    height: 76px;
    overflow: hidden;
    padding: 15px 10px !important;
}

.contact-card .h6 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-top: 5px;
}


/* 隐藏滚动条 */

html,
body {
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}


/* Chrome, Safari and Opera */

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}


/* 为了确保页面不水平滚动 */

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}


/* 确保内容区域能占满整个视口高度 */

.navbar-toggler {
    font-size: 0.8rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    font-size: 0.8rem;
}

#bg-container {
    z-index: 0 !important;
}

#footer-container {
    position: relative;
    z-index: 10;
}