/* 将CSS按功能模块组织 */

/* 1. 变量与全局设置 */
:root {
    --primary-color: #606F8B;    /* 钢蓝 */
    --secondary-color: #00C1D4;  /* 数位青 */
    --accent-color: #FF4D4D;     /* 赤红 */
    --dark-color: #1A2438;       /* 深钢蓝 */
    --main-color: #00a2ff;    /* 主题颜色蓝色 */
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

/* 2. 基础样式 */
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    background-color: #f5f7fa;
    overflow-x: hidden;
}

/* 3. 布局组件 */
.container-fluid {
    padding: 0;
}

/* 4. 导航相关 */
.navbar {
    background-color: #f5f5f5;
    padding: 0.15rem 0;
    transition: var(--transition);
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
    height: 35px;
}

.navbar.scrolled {
    padding: 0.3rem 0;
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 24px;
}

/* 导航链接基础样式 */
.navbar-dark .navbar-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-item.active .nav-link {
    color: var(--secondary-color) !important;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    border-radius: var(--border-radius);
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 1rem;
}

.slogan-container {
    overflow: hidden;
    height: 25px;
    position: relative;
}

.slogan-text {
    position: absolute;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    opacity: 0.9;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.nav-link:hover, .nav-link:focus {
    color: var(--main-color) !important;
}

/* 统一下拉菜单样式 */
.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 0.7rem 0;
    margin-top: 0.5rem;
    /* border-top: 3px solid var(--accent-color); */
    /* border-top: 3px solid var(--main-color); */
    min-width: 160px;
    background: #fff;
    box-shadow: 1px 1px 5px 5px rgba(0,0,0,0.1);

}

.dropdown-item {
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.dropdown-item:hover, 
.dropdown-item:focus,
.dropdown-item.active {
    background-color: rgba(0, 102, 204, 0.05);
    color: var(--main-color);
}

/* 语言切换下拉菜单特定样式 */
#languageDropdown {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 移除语言切换下拉菜单的特殊样式 */
.language-switcher .btn,
.language-switcher .dropdown-menu {
    border: none;
    background: transparent;
}

/* 下拉菜单箭头样式统一 */
.dropdown-toggle::after {
    margin-left: 0.5em;
    vertical-align: middle;
}

/* 新的主轮播图样式 */
.hero-section {
    margin-top: 177px;
    position: relative;
    background-color: var(--dark-color);
}

.hero-img-container {
    position: relative;
    height: 85vh;
    overflow: hidden;
}

.hero-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 36, 56, 0.3);
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 80%;
    max-width: 800px;
    padding: 0;
}

.carousel-caption h2 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.carousel-caption p {
    font-size: 1.3rem;
    margin-bottom: 1.8rem;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.feature-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-tags span {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.feature-tags span i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.btn-hero {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background: var(--gradient-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

/* 轮播控制按钮样式 */
.carousel-control-prev, .carousel-control-next {
    width: 5%;
    opacity: 0.7;
    z-index: 15;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 50%;
    background-size: 50%;
}

.carousel-indicators {
    z-index: 15;
    margin-bottom: 2rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators button.active {
    background-color: var(--accent-color);
}

/* 产品卡片样式 */
.featured-section {
    padding: 5rem 0;
    background-color: #fff;
}

.product-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 193, 212, 0.2);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-info {
    padding: 1.5rem;
}

.product-info h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.product-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
    font-weight: 500;
}

.product-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* 合作企业样式 */
.partners-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.partner-logo {
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
}

/* 资讯卡片样式 */
.news-section {
    padding: 5rem 0;
    background-color: #fff;
}

.news-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    background-color: #fff;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-content {
    padding: 1.5rem;
}

.news-content h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.news-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.read-more {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(3px);
}

/* 客服和聊天样式 */
.support-section {
    padding: 5rem 0  0.5rem 0;
    background-color: #f8f9fa;
    background-image: linear-gradient(135deg, rgba(0, 86, 179, 0.03) 0%, rgba(0, 86, 179, 0.05) 100%);
}

.support-content {
    padding: 2rem;
}

.support-content h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.support-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.support-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.support-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.support-features li i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.support-actions {
    margin-top: 2rem;
}

.chat-container {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
}

.chat-title {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.chat-title i {
    margin-right: 0.5rem;
}

.chat-status {
    background-color: #4caf50;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
}

.chat-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chat-message {
    margin-bottom: 1.5rem;
    max-width: 80%;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.message-content {
    padding: 1rem;
    border-radius: 1rem;
    position: relative;
}

.chat-message.bot .message-content {
    background-color: #f1f5f9;
    border-bottom-left-radius: 0;
}

.chat-message.user .message-content {
    background-color: var(--primary-color);
    color: #fff;
    border-bottom-right-radius: 0;
}

.message-time {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.5rem;
    margin-left: 0.5rem;
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
}

.chat-input .form-control {
    border: 1px solid #eee;
    border-radius: 50px;
    padding: 0.7rem 1.5rem;
}

.chat-input .btn {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 页脚样式 */
.footer {
    background-color: #f8f9fa;
    font-size: 0.9rem;
    padding: 0;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.footer-links {
    list-style: none;
    margin-bottom: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-contact {
    list-style: none;
    margin-bottom: 0;
}

.footer-contact li {
    margin-bottom: 0.5rem;
    color: #666;
    display: flex;
    align-items: center;
    line-height: 1;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.footer-divider {
    border-color: rgba(0,0,0,0.1);
}

.copyright {
    color: #777;
}
@media (max-width: 767px) {
    .bottom-links {
        justify-content: flex-start;
        margin-top: 15px;
    }
    
    .bottom-links li {
        margin-left: 0;
        margin-right: 20px;
    }
}

/* 响应式调整 */
@media (max-width: 1199.98px) {
    .carousel-caption h2 {
        font-size: 3rem;
    }
    
    .carousel-features {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .carousel-features span {
        font-size: 0.85rem;
        padding: 4px 10px;
    }
}

@media (max-width: 991.98px) {
    .slick-carousel .carousel-item {
        height: 500px;
    }
    
    .carousel-caption h2 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1.1rem;
    }
    
    .carousel-features {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .carousel-features span {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    .footer-divider {
        margin: 2rem 0 1.5rem;
    }
    
    .main-nav {
        top: 35px !important;
    }
    
    .hero-section {
        margin-top: 0px;
        
    }
    
    .navbar-slogan {
        display: none;
    }
    
    /* 顶部导航栏 */
    .navbar {
        padding: 0.3rem 0;
    }
    
    /* 导航菜单背景 */
    .navbar-collapse {
        background-color: #ffffff;
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
    }

    
    /* 主导航菜单背景 */
    #mainNavbar {
        background-color: #ffffff;
        padding: 0.5rem;
        border-radius: var(--border-radius);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
    }
    
    /* 导航菜单项间距 */
    .navbar-nav .nav-item {
        margin: 0.2rem 0;
    }
    
    /* 下拉菜单样式 */
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        background-color: rgba(0, 0, 0, 0.02);
    }
    
    /* 折叠按钮颜色 */
    .navbar-toggler {
        border-color: rgba(0, 0, 0, 0.1);
    }
    
    /* 轮播图位置调整 */
    .hero-section {
        margin-top: 180px;
    }
}

@media (max-width: 767.98px) {
    .hero-carousel {
        margin-top: 110px;
    }
    
    .slick-carousel .carousel-item {
        height: 450px;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .carousel-features {
        margin-bottom: 12px;
    }
    
    .carousel-caption .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 1.2rem;
    }
    
    .support-content {
        padding: 1rem 0 2rem;
    }
    .companies-container,.hero-banner{
        margin-top:209px !important
    }
}

@media (max-width: 575.98px) {
    .slick-carousel .carousel-item {
        height: 400px;
    }
    
    .carousel-caption h2 {
        font-size: 1.75rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .carousel-features {
        display: none;
    }
    
    .carousel-caption .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .slick-dots {
        bottom: 15px;
    }
    
    .slick-dots li button:before {
        font-size: 10px;
    }
}

/* 企业展示卡片样式 */
.featured-enterprises-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.enterprise-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.enterprise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.enterprise-logo {
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enterprise-logo img {
    max-height:90px;
    max-width: 80%;
}

.enterprise-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.enterprise-info h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
}

.enterprise-category {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 12px;
    padding: 4px 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: inline-block;
}

.enterprise-desc {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 15px;
    flex: 1;
}

.enterprise-info .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* 更新搜索框样式 */
.search-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 1rem 0;
}

@media (max-width: 767.98px) {
    .enterprise-card {
        margin-bottom: 20px;
    }
}

/* 图片容器样式 */
.image-container {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.image-container img {
    width: 100%;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.03);
}

/* 维保中心修改样式 */
.support-section {
    padding: 5rem 0 0.5rem 0;
    background-color: #f8f9fa;
}

.support-section h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 0.7rem;
}

.support-section h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
}

.support-section .row {
    /* margin-bottom: 4rem; */
}

.navbar-scrolled {
    /* background-color: var(--dark-color); */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-brand .brand-name.scrolled {
    font-size: 1.3rem;
}

.navbar-collapse.show-menu {
    display: block;
    background: var(--dark-color);
    border-radius: 0 0 10px 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载动画 */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(0, 193, 212, 0.2);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spinner 1s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* LOGO图片样式 */
.logo-image {
    height: 32px;
    width: auto;
    margin-right: 0px;
    /* margin-left: 15px; */
}

/* 可以移除或注释掉不再需要的CSS动画LOGO样式 */
/*
.modern-logo {
    position: relative;
    width: 45px;
    height: 45px;
    margin-right: 12px;
}

.logo-hexagon {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0066cc, #00C1D4);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 193, 212, 0.5);
}

.logo-inner {
    position: relative;
    width: 85%;
    height: 85%;
    background: rgba(255, 255, 255, 0.1);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    backdrop-filter: blur(5px);
}

.logo-circuit {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        linear-gradient(to right, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 20px 20px, 20px 20px, 10px 10px, 10px 10px;
    background-position: 0 0, 0 0, 5px 5px, 5px 5px;
    opacity: 0.3;
}

.logo-drone {
    position: absolute;
    width: 60%;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    top: 40%;
    left: 20%;
}

.logo-drone::before,
.logo-drone::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    top: -3px;
}

.logo-drone::before {
    left: -4px;
    animation: pulse 2s infinite alternate;
}

.logo-drone::after {
    right: -4px;
    animation: pulse 2s infinite alternate-reverse;
}

.logo-robot-arm {
    position: absolute;
    width: 3px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    transform-origin: bottom center;
    animation: arm-move 4s ease-in-out infinite;
}

.logo-robot-arm::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF4D4D;
    top: -3px;
    left: -1.5px;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.8);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0.7; }
}

@keyframes arm-move {
    0% { transform: translateX(-50%) rotate(-15deg); }
    50% { transform: translateX(-50%) rotate(15deg); }
    100% { transform: translateX(-50%) rotate(-15deg); }
}
*/

.brand-name {
    font-weight: 700;
    background: linear-gradient(to right, #0066cc, #00C1D4);
    /*background: #00a2ff;*/
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: 0.5px;
    /* margin-left: 5px; */
    font-size: 1.2rem;
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--dark-color);
    opacity: 0.8;
    letter-spacing: 0.3px;
    font-weight: 500;
    margin-top: -3px;
}

/* 导航栏LOGO样式 */
.navbar-brand {
    display: flex;
    align-items: center;
    padding-top:0;
    margin-right:10px;
    /* padding: 0.5rem 0; */
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
    margin-left: 12px;
}

/* 页脚LOGO样式 */
.footer-logo .logo-container {
    margin-right: 10px;
}

.footer-logo .brand-name {
    font-size: 1.2rem;
}

.footer-logo .brand-tagline {
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    margin-top: 20px;
}

.social-link {
    color: rgba(255, 255, 255, 0.8);
}

.social-link:hover {
    color: #4e9af1;
}

.footer-heading:after {
    background-color: #FF4D4D;
}

/* RTL语言支持 */
.rtl-language {
    text-align: right;
}

.rtl-language .navbar-nav {
    padding-right: 0;
}

.rtl-language .dropdown-menu {
    text-align: right;
}

.rtl-language .carousel-caption {
    direction: rtl;
}

.rtl-language .product-card,
.rtl-language .enterprise-card {
    text-align: right;
}

.rtl-language .product-tag {
    left: auto;
    right: 10px;
}

.rtl-language .product-footer {
    flex-direction: row-reverse;
}

/* 主体导航样式 - 修改为固定定位 */
.main-nav {
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
    /*padding:10px 0;*/
    margin-top: 0 !important;
    position: fixed;
    height: auto;
    top: 120px;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.main-nav .navbar-nav {
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    flex: 1;
}

.main-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight:550;
    padding: 0.7rem 1rem !important;
    transition: var(--transition);
}

.main-nav .nav-link:hover, 
.main-nav .nav-link:focus,
.main-nav .nav-item.active .nav-link {
    color: var(--main-color) !important;
}

.main-nav .dropdown-menu {
    background-color: #ffffff;
    margin-top: 0;
    /* border-top: 3px solid var(--main-color); */
}

.main-nav .dropdown-item {
    color: var(--dark-color);
}

.main-nav .dropdown-item:hover,
.main-nav .dropdown-item:focus {
    background-color: rgba(0, 120, 204, 0.1);
    color: var(--main-color);
}

/* 顶部导航右侧样式优化 */
.navbar.fixed-top .navbar-nav {
    height: 35px;
    display: flex;
    align-items: center;
}

.navbar.fixed-top .nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* 添加分隔线 */
.navbar.fixed-top .nav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 14px;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
}

/* 导航链接样式 */
.navbar.fixed-top .nav-link {
    padding: 0 15px !important;
    font-size: 0.75rem;
    color: #666 !important;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar.fixed-top .nav-link:hover {
    color: var(--primary-color) !important;
}

/* 登录注册按钮组样式 */
.login-not-user {
    display: flex;
    align-items: center;
    height: 100%;
}

.login-not-user .nav-link {
    padding: 0 12px !important;
}

/* 语言切换下拉菜单样式 */
.navbar.fixed-top .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .navbar.fixed-top .nav-item::after {
        display: none;
    }
    
    .navbar.fixed-top .nav-link {
        padding: 2px 6px !important;
    }
    
    .navbar.fixed-top .navbar-nav {
        height: auto;
    }

}

/* 搜索框样式优化 */
.search-container {
    width: 500px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    /* border: 2px solid var(--primary-color); */
    border-radius: 0;
    padding: 0;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 1rem;
    color: var(--dark-color);
    height: 42px;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    outline: none;
}

.search-button {
    border: none;
    background: var(--primary-color);
    color: #fff;
    width: 66px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0;
    margin: 0;
}

.search-button:hover {
    background: var(--secondary-color);
}

.search-button i {
    font-size: 1.1rem;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .search-container {
        width: 100%;
    }
}

/* 中间口号图片样式 */
.navbar-slogan {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    margin: 0 15px;
}

.slogan-image {
    max-height: 30px;
    max-width: 100%;
    /*opacity: 0.9;*/
}

/* 导航栏折叠按钮样式优化 */
.navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.1rem rgba(0, 0, 0, 0.1);
}

/* 导航栏品牌名称滚动效果 */
.navbar-brand .brand-name.scrolled {
    font-size: 1.2rem;
}

.navbar-brand .brand-tagline.scrolled {
    font-size: 0.7rem;
}

/* 导航栏LOGO滚动效果 */
.logo-image.scrolled {
    height: 40px;
}

/* 视频背景Banner样式 */
.video-banner {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    margin-top: 110px;
}

#banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    color: #fff;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.banner-buttons .btn {
    padding: 0.8rem 2rem;
    font-weight: 500;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-buttons .btn-outline-light {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.banner-buttons .btn-outline-light:hover {
    background-color: #fff;
    color: var(--dark-color);
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .banner-content p {
        font-size: 1.2rem;
    }
    
    .banner-buttons .btn {
        padding: 0.6rem 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .video-banner {
        height: 60vh;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .banner-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .banner-buttons .btn {
        width: 100%;
    }
    .main-nav .navbar-nav{
        flex-direction: column;
    }
    .navbar-brand-box{
        top:75px !important
    }
}

/* 购物车图标样式修复 */
.nav-item .nav-link .bi-cart {
    position: relative;
    display: inline-block;
}

.nav-link .position-absolute.badge {
    position: absolute !important;
    top: 5px !important;
    right: -12px !important;
    font-size: 0.65rem;
    padding: 2px 4px;
    min-width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    z-index: 5;
}

/* 确保购物车图标容器有正确的相对定位 */
.nav-item .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .nav-link .position-absolute.badge {
        top: 5px !important;
        right: -10px !important;
    }
}

/* 智能客服样式 */
.ai-customer-service {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.ai-service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.ai-service-icon:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

.ai-service-icon i {
    color: white;
    font-size: 28px;
}

.ai-service-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.ai-service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--primary-color);
    color: white;
}

.ai-service-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
}

.ai-service-title i {
    margin-right: 8px;
    font-size: 18px;
}

.ai-service-actions {
    display: flex;
    align-items: center;
}

.ai-service-actions button {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 5px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.ai-service-actions button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ai-service-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-service-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f5f7fa;
}

.ai-message {
    display: flex;
    margin-bottom: 15px;
    max-width: 85%;
}

.ai-message-received {
    align-self: flex-start;
}

.ai-message-sent {
    align-self: flex-end;
    flex-direction: row-reverse;
    margin-left: auto;
}

.ai-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 10px;
    flex-shrink: 0;
}

.ai-message-sent .ai-message-avatar {
    margin-right: 0;
    margin-left: 10px;
    background: var(--secondary-color);
}

.ai-message-content {
    background: white;
    padding: 10px 12px;
    border-radius: 12px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    position: relative;
}

.ai-message-received .ai-message-content {
    border-top-left-radius: 0;
}

.ai-message-sent .ai-message-content {
    background: var(--primary-color);
    color: white;
    border-top-right-radius: 0;
}

.ai-message-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.ai-message-time {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    text-align: right;
}

.ai-message-sent .ai-message-time {
    color: rgba(255, 255, 255, 0.8);
}

.ai-service-input {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-top: 1px solid #eee;
    background: white;
}

.ai-service-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 0;
    font-size: 13px;
}

.ai-service-input button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-left: 10px;
}

.ai-service-input button:hover {
    background: var(--secondary-color);
}

.ai-service-input button i {
    font-size: 16px;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .ai-service-panel {
        width: 300px;
        height: 400px;
        bottom: 80px;
    }
}

/* 服务图标样式 */
.service-icon-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.service-icon-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-icon-item:hover .service-icon {
    background: var(--primary-color);
    color: #fff;
}

.service-icon-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-icon-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-icon-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-icon-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.service-icon-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-icon-link:hover i {
    transform: translateX(5px);
}

/* 导航栏图标和文字的间距调整 */
.nav-link i.bi {
    margin-right: 6px;
    vertical-align: -1px;
}

/* 购物车图标特殊处理 */
.nav-link i.bi-cart {
    margin-right: 0;
}

/* 搜索图标特殊处理 */
.search-button i.bi-search {
    margin-right: 0;
}

/* 语言切换图标特殊处理 */
.dropdown-toggle i.bi-globe {
    margin-right: 4px;
}

/* 导航链接内边距调整 */
.nav-item .nav-link {
    padding: 0.5rem 0.8rem !important;
}
.my-3{
    margin:0 !important;
    padding:30px 0 20px 0
}

/* 当搜索框激活时隐藏搜索图标 */
.search-container.active .search-icon {
    opacity: 0;
    visibility: hidden;
}

/* 搜索框激活状态 */
.search-container.active .search-box {
    /* width: 200px; */
    padding: 0 0px;
    /* border: 2px solid  var(--dark-color); */
}

/* 分享按钮样式优化 */
.share-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #fff !important;
    font-size: 16px;
    transition: transform 0.2s;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    color: #fff !important;
}

/* 分享按钮背景色 */
.share-button.weixin {
    background-color: #07C160 !important;
}

.share-button.weibo {
    background-color: #E6162D !important;
}

.share-button.linkedin {
    background-color: #0077B5 !important;
}

.share-button.facebook {
    background-color: #1877F2 !important;
}

/* LOGO和标语区域样式 */
.navbar-brand-box {
    padding: 20px 0 !important;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding:10px 0;
    margin-top: 0 !important;
    position: fixed;
    height: auto;
    top: 35px;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.brand-box-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

/* LOGO样式 */
.navbar-brand {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    margin-right:30px;
}

.brand-top {
    display: flex;
    align-items: center;
    /* margin-bottom: 8px; */
}

.logo-image {
    height: 70px;
    margin-right: 6px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 600;
    color:transparent;
    line-height: 1;
    margin-top: -1px;
}

.brand-bottom {
    text-align: left;
}

.brand-tagline {
    font-size: 0.8rem;
    color: #666;
}

/* 功能区域样式 */
.function-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 搜索框样式 */
.search-container {
    width: 400px;
    border:2px solid #06c;
    border-radius: 2px;
}

.search-box {
    display: flex;
    align-items: center;
    /* background: #f5f5f5; */
    border-radius: 20px;
    padding: 8px 15px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 5px 10px;
    font-size: 0.9rem;
}

.search-input:focus {
    outline: none;
}

.search-button {
    border: none;
    background:#06c;
    color: #fff;
    padding: 5px;
    cursor: pointer;
}
.search-button:hover{
    background:#06c;
}

/* 购物车样式 */
.cart-box {
    position: relative;
}

.cart-link {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    text-decoration: none;
    padding:7px 6px;
    /* border-radius: 20px; */
    transition: all 0.3s ease;
    border: 1px solid #ccc;
}

.cart-link:hover {
    background: #f5f5f5;
    color: var(--main-color);
}

.cart-link i {
    font-size: 1.2rem;
    margin-right: 5px;
}

.cart-link .badge {
    /* position: absolute;
    top: -5px;
    right: -5px; */
    background: #dc3545;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    display: inline-block;
    margin-left: 10px;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .brand-box-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .navbar-brand {
        align-items: center;
    }
    
    .brand-bottom {
        text-align: center;
    }
    
    .function-box {
        width: 100%;
    }
    
    .search-container {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .logo-image {
        height: 30px;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
    
    .brand-tagline {
        font-size: 0.85rem;
    }
    
    .cart-link span:not(.badge) {
        display: none;
    }
}

/* 地区选择器样式 */
.region-selector {
    margin-right: 20px;
    font-size: 0.75rem;
    color: var(--dark-color);
}

.region-selector .nav-link {
    color: var(--dark-color) !important;
    font-size: 0.9rem;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.region-selector .nav-link:hover {
    color: var(--primary-color);
}

.region-selector .bi-geo-alt {
    font-size: 1rem;
    color: var(--primary-color);
}

.region-selector .current-region {
    font-weight: 500;
}

.region-selector .dropdown-menu {
    min-width: 160px;
    padding: 8px 0;
    margin-top: 5px;
}

.region-selector .dropdown-header {
    color: #999;
    font-size: 0.8rem;
    padding: 8px 15px;
}

.region-selector .dropdown-item {
    font-size: 0.9rem;
    padding: 6px 15px;
}

.region-selector .dropdown-item.active {
    background-color: rgba(0, 102, 204, 0.05);
    color: var(--primary-color);
}

.region-selector .dropdown-divider {
    margin: 5px 0;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .region-selector {
        margin-right: 15px;
    }
}
