/* 针对 Firefox 浏览器 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scrollbar-width: auto;
    scrollbar-color: #e60012 #f1f1f1;
}
/* 针对 IE 和旧版 Edge */
body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
    overflow-y: overlay; /* 添加这一行，让滚动条浮动 */

        
    scrollbar-base-color: #e60012;
    scrollbar-face-color: #e60012;
    scrollbar-track-color: #f1f1f1;
    scrollbar-shadow-color: #e60012;
    scrollbar-highlight-color: #e60012;
    scrollbar-3dlight-color: #e60012;
    scrollbar-darkshadow-color: #b3000e;
    scrollbar-arrow-color: #f1f1f1;
    
}



/* ========== 自定义滚动条样式 ========== */
/* 针对 Webkit 内核浏览器（Chrome, Safari, Edge等） */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffffff;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e60012, #b3000e, #8a000b);
    border-radius: 8px;
    border: 2px solid #ffffff;
    box-shadow: 
        inset 2px 2px 4px rgba(255, 255, 255, 0.5),
        inset -2px -2px 4px rgba(0, 0, 0, 0.3),
        0 3px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

::-webkit-scrollbar-thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 20px;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.1) 60%,
        rgba(0, 0, 0, 0.2) 80%,
        rgba(0, 0, 0, 0.3) 100%);
    border-radius: 4px;
    opacity: 0.7;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff0015, #cc0011, #a3000e);
    box-shadow: 
        inset 2px 2px 5px rgba(255, 255, 255, 0.6),
        inset -2px -2px 5px rgba(0, 0, 0, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #b3000e, #8a000b, #660008);
    box-shadow: 
        inset 2px 2px 3px rgba(0, 0, 0, 0.4),
        inset -2px -2px 3px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-corner {
    background: #f1f1f1;
}



/* 特殊处理：为特定容器保留原来的滚动条样式（如果需要） */
.scrollbar-original {
    scrollbar-width: auto;
}

.scrollbar-original::-webkit-scrollbar {
    width: 17px;
}



/* ========== 导航栏样式 - 使用半透明黑色背景 ========== */
.navbar {
    background-color: rgba(0, 0, 0, 0.85);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    transition: all 0.3s ease;
    height: 80px;
    backdrop-filter: blur(5px);
}

.navbar.scrolled {
    height: 60px;
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* 修改导航栏容器为三列布局 */
.nav-container {
    display: flex;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar.scrolled .nav-container {
    height: 60px;
}

/* 左侧Logo区域 - 20%宽度 */
.nav-left {
    width: 20%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

/* ========== LOGO自适应修改开始 ========== */
/* 修改 .brand 类以支持更好的自适应 */
.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    width: 100%; /* 使容器占满可用空间 */
    max-width: 300px; /* 设置最大宽度限制 */
    height: 100%; /* 使用父容器高度 */
}

/* 完全响应式的Logo样式 - 修改点 */
.brand img {
    width: auto; /* 宽度自适应 */
    height: auto; /* 高度自适应 */
    max-width: 100%; /* 最大宽度不超过容器 */
    max-height: 45px; /* 设置最大高度 */
    object-fit: contain; /* 保持比例 */
    transition: max-height 0.3s ease; /* 修改过渡效果为max-height */
}

/* 滚动时Logo大小调整 */
.navbar.scrolled .brand img {
    max-height: 35px; /* 滚动时减小最大高度 */
}
/* ========== LOGO自适应修改结束 ========== */

/* 中间菜单区域 - 60%宽度 */
.nav-center {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 1;
}

/* 主导航菜单 - 居中显示 */
.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin: 0 8px;
}

/* 增大菜单字体到18px */
.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.2s;
    border-radius: 4px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* ========== 菜单项底部线条特效 ========== */

/* 当前页菜单项下方显示白色横线 */
.nav-link.active {
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* 非当前页菜单项的悬停动画效果 */
.nav-link:not(.active)::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 0;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.nav-link:not(.active):hover::after {
    width: 80%;
    transform: translateX(-50%) scaleX(1);
}

/* ========== 修正下拉菜单宽度问题 ========== */

/* 普通下拉菜单 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 6px 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
    z-index: 100;
    border-top: 3px solid #00ac69;
    pointer-events: none;
}

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

.dropdown-link {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
    font-size: 16px;
    white-space: nowrap;   /* 禁止换行 */
}

.dropdown-link:hover {
    background-color: #f5f9ff;
    color: #0066cc;
    padding-left: 25px;
}

.dropdown-link i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
    color: #666;
}

/* ========== 产品中心特殊下拉菜单 - 修正宽度问题 ========== */
.product-nav-item {
    position: static;
}

.product-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
    z-index: 99;
    border-top: 3px solid #00ac69;
    padding: 30px 0;
    overflow: hidden;
    pointer-events: none;
    display: none;
}

/* 滚动时下拉菜单也需要跟着导航栏调整位置 */
.navbar.scrolled .product-dropdown {
    top: 60px;
}

.product-nav-item:hover .product-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    display: block;
}

/* 产品下拉菜单容器 */
.product-dropdown-container {
    margin: 0 auto;
    display: flex;
    padding: 0 20px;
}

/* 左侧区域 - 标题和描述 */
.nav-product-left {
    width: 40%;
    padding-left:40px;
    padding-right: 40px;
    border-right: 1px solid #e0e0e0;
}

.product-title {
    font-size: 24px;
    color: #142b44;
    margin-bottom: 15px;
    font-weight: 700;
}

.product-desc {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

/* 右侧区域 - 分类 */
.nav-product-right {
    width: 60%;
    padding-left: 40px;
}

/* 二级分类区域 - 居中对齐 */
.secondary-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 0px;
}

.secondary-category {
    min-width: 180px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 15px 10px;
    border-radius: 8px;
    position: relative;
}

.secondary-category:hover {
    background-color: #f5f9ff;
    color: red; /* 鼠标悬停时文字变成红色 */
}

.secondary-category:active {
    background-color: #f5f9ff;
    color: red; /* 激活状态文字也变成红色 */
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f8ff;
    border-radius: 50%;
}

.category-icon img {
    max-width: 40px;
    max-height: 40px;
}

.category-name {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.category-name:hover{
    color:#990000;
}
/* 三级分类区域 - 居中对齐 */
.tertiary-categories {

    border-top: 0px solid #e0e0e0;
    padding-top: 20px;
}

.tertiary-category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s;
}

.tertiary-category-list.active {
    opacity: 1;
    visibility: visible;
    height: auto;
}

.tertiary-category {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: all 0.3s;
    text-align: center;
    min-width: 150px;
    flex-shrink: 0;
}

.tertiary-category:hover {
    background-color: #e8f5f0;
}

.tertiary-category a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: block;
}

/* ========== 服务菜单的特殊下拉菜单 - 同样修正宽度 ========== */
.service-nav-item {
    position: static;
}

.nav-service-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
    z-index: 99;
    border-top: 3px solid #00ac69;
    padding: 30px 0;
    overflow: hidden;
    pointer-events: none;
    display: none;
}

/* 滚动时下拉菜单也需要跟着导航栏调整位置 */
.navbar.scrolled .nav-service-dropdown {
    top: 60px;
}

/* 服务下拉菜单激活状态 - 修复：使用JavaScript控制 */
.nav-service-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    display: block;
}

/* 服务下拉菜单容器 */
.nav-service-dropdown-container {
/*    max-width: 1200px; */
    margin: 0 auto;
    display: flex;
    padding: 0 20px;
}

/* 左侧区域 - 标题和描述 */
.nav-service-left {
    width: 30%;
    padding-right: 40px;
    border-right: 1px solid #e0e0e0;
}

.service-title {
    font-size: 24px;
    color: #142b44;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 右侧区域 - 分类 */
.nav-service-right {
    width: 100%;
    padding-left: 40px;
}

/* 服务分类网格 - 居中对齐 */
.nav-service-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;

}

.nav-service-category {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
    width: 100%;
    min-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-service-category:hover {
    background-color: #f5f9ff;
    border-color: #00ac69;
    transform: translateY(-2px);
}

.nav-service-category h4 {
    font-size: 18px;
    color: #142b44;
    margin-bottom: 10px;
    font-weight: 600;
}

.nav-service-category p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 右侧选择器区域 - 20%宽度，有最小宽度 */
.nav-right {
    width: 20%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    min-width: 180px;
}

.nav-selectors {
    display: flex;
    align-items: center;
    gap: 15px;
}

.selector {
    position: relative;
    display: inline-block;
}

.selector-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.selector-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 国旗图标 */
.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    background-size: cover;
    background-position: center;
}

.flag-cn {
    background-image: url('https://flagcdn.com/w20/cn.png');
}

.flag-us {
    background-image: url('https://flagcdn.com/w20/us.png');
}

.flag-jp {
    background-image: url('https://flagcdn.com/w20/jp.png');
}

.flag-mx {
    background-image: url('https://flagcdn.com/w20/mx.png');
}

.selector-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
    z-index: 1001;
    margin-top: 8px;
    border: 1px solid #e0e0e0;
    pointer-events: none;
}

/* 修复：使用JavaScript控制的激活状态 */
.selector-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.selector-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.selector-item:hover {
    background-color: #f5f9ff;
    color: #0066cc;
}

.selector-item:last-child {
    border-bottom: none;
}

.selector-item.active {
    background-color: #e8f5f0;
    color: #00ac69;
    font-weight: 600;
}

/* 移动端菜单按钮 - 只在768px以下显示 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0;
}

/* 移动端选择器 - 只在768px以下显示 */
.mobile-selectors {
    display: none;
}

/* 移动端菜单 - 只在768px以下显示 */
.mobile-menu {
    display: none;
}

/* ========== 移动端菜单样式 - 优化 ========== */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.98);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .mobile-menu {
    top: 60px;
}

.mobile-menu.active {
    min-height: 80vh;
    overflow-y: auto;
    display: block;
}

.mobile-menu .nav-item {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu .nav-item:last-child {
    border-bottom: none;
}

.mobile-menu .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
    background-color: rgba(230, 0, 18, 0.2);
    color: #ffffff;
}

.mobile-menu .nav-link.active {
    position: relative;
}

.mobile-menu .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #e60012;
}

.mobile-arrow {
    font-size: 12px;
    transition: transform 0.3s;
    margin-left: 8px;
}

.mobile-menu .nav-item.active .mobile-arrow {
    transform: rotate(180deg);
}

.mobile-menu .dropdown {
    background-color: rgba(30, 30, 30, 0.9);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    display: none;
}

.mobile-menu .dropdown.active {
    display: block;
    max-height: 400px;
}

.mobile-menu .dropdown-link {
    display: flex;
    align-items: center;
    padding: 14px 20px 14px 40px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.mobile-menu .dropdown-link:last-child {
    border-bottom: none;
}

.mobile-menu .dropdown-link:hover {
    background-color: rgba(230, 0, 18, 0.15);
    color: #ffffff;
    padding-left: 45px;
}

.mobile-menu .dropdown-link i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* 移动端选择器 */
.mobile-selectors {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(20, 20, 20, 0.95);
}

.mobile-selectors .selector {
    margin-bottom: 15px;
    width: 100%;
}

.mobile-selectors .selector:last-child {
    margin-bottom: 0;
}

.mobile-selectors .selector-btn {
    width: 100%;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 15px;
    font-size: 14px;
}

.mobile-selectors .selector-dropdown {
/*    position: static; */
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(40, 40, 40, 0.95);
    margin-top: 5px;
    margin-bottom: 10px;
    width: 100%;
}

.mobile-selectors .selector-item {
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-selectors .selector-item:hover {
    background-color: rgba(230, 0, 18, 0.2);
    color: #ffffff;
}

.mobile-selectors .selector-item.active {
    background-color: rgba(230, 0, 18, 0.3);
    color: #ffffff;
}



/* ========== 底部样式 - 更新颜色方案 ========== */
footer {
    width: 100%;
    overflow: hidden;
}

/* 区域1: Logo和标语区域 - 背景色改为#eeeff0 */
.ft-logo {
    background-color: #eeeff0;
    padding: 40px 0;
    text-align: center;
    width: 100%;
}

.ft-logo .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 20px;
}

.flogo {
    margin-right: 30px;
}

.flogo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.ftit {
    text-align: left;
    max-width: 600px;
}

.ftit h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.ftit p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* 区域2: 联系方式和导航链接区域 - 背景色改为#eeeff0 */
.ft-nav {
    background-color: #eeeff0;
    padding: 40px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    width: 100%;
}

.ft-nav .container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 20px;
}

.ft-lxfs {
    width: 18%;
    padding-right: 30px;
    color: #333;
    box-sizing: border-box;
}

.ft-lxfs h5 {
    font-size: 22px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 700;
    margin-top: 0;
}

.ft-lxfs p {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    margin-top: 0;
}

.ft-lxfs span {
    display: block;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-top: 10px;
}

/* 社交媒体样式 - 添加自适应和美化效果 */
.smlist {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0 20px 0;
}

.sm-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.smicon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e0e0e0;
}

/* 各个社交媒体图标悬停效果 */
.sm-link:hover .smicon.fa-tiktok {
    background-color: #000000;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sm-link:hover .smicon.fa-youtube {
    background-color: #FF0000;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.15);
}

.sm-link:hover .smicon.fa-x-twitter {
    background-color: #000000;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.15);
}

.sm-link:hover .smicon.fa-linkedin-in {
    background-color: #0A66C2;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.15);
}



.ft-tel{
    font-size:28px;
    color:#dd1f1f;
    font-weight: bold;
    margin-bottom:20px;
}
.ft-email{
    color:red;
    font-size:28px;
    font-weight:bold;
    text-decoration:none;
}
.ft-email a{
    text-decoration:none;
}

.ft-address{
    font-size:18px;
    margin-bottom:20px;
}

.fnav {
    width: 82%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.fpro {
    min-width: 25%;
    min-width: 180px;
    margin-bottom: 0;
}



.ftil {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
    margin-top: 0;
    
}
.ftil a{
    color: #333;
    text-decoration: none;
}
.ftil a:hover {
    color: #e60012;
    font-weight: 500;
}

.fcpo {
    margin-bottom: 10px;
}

.fcpo a {
    color: #555;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}



/* ========== 底部链接悬停效果修改 - 变红色 ========== */
.fcpo a:hover {
    color: #e60012;
    font-weight: 500;
}

/* ========== 邮箱悬停效果 - 跳动动画和下划线 ========== */
.ft-email {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
/*    border-bottom: 2px solid transparent; */
}

/* ========== 邮箱自动跳动动画 - 新增 ========== */
.ft-email.auto-jump {
    animation: emailJumpAuto 1s ease;
/*    border-bottom: 2px solid #e60012; */
}

@keyframes emailJumpAuto {
    0%, 100% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(-6px);
    }
    40% {
        transform: translateY(0);
    }
    60% {
        transform: translateY(-4px);
    }
    80% {
        transform: translateY(0);
    }
}

.ft-email:hover {
    animation: emailJump 0.5s ease;
/*    border-bottom: 2px solid #e60012; */
    text-decoration: none;
}

@keyframes emailJump {
    0%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
    50% {
        transform: translateY(0);
    }
    70% {
        transform: translateY(-3px);
    }
}

/* ========== 邮箱链接悬停效果 ========== */
.ft-email a {
    transition: all 0.3s ease;
}

.ft-email a:hover {
    color: #e60012;
    text-decoration: none;
}

/* ========== WhatsApp链接样式 - 与邮箱相同的动效 ========== */
.whatsapp-link {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
/*    border-bottom: 2px solid transparent; */
}

/* WhatsApp自动跳动动画 - 新增 */
.whatsapp-link.auto-jump {
    animation: whatsappJumpAuto 1s ease;

}

@keyframes whatsappJumpAuto {
    0%, 100% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(-6px);
    }
    40% {
        transform: translateY(0);
    }
    60% {
        transform: translateY(-4px);
    }
    80% {
        transform: translateY(0);
    }
}

.whatsapp-link:hover {
    animation: whatsappJump 0.5s ease;
    text-decoration: none;
}

@keyframes whatsappJump {
    0%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
    50% {
        transform: translateY(0);
    }
    70% {
        transform: translateY(-3px);
    }
}

/* WhatsApp链接悬停效果 */
.whatsapp-link a {
    transition: all 0.3s ease;
}

.whatsapp-link a:hover {
    color: #e60012; /* 改为红色 */
    text-decoration: none;
}

/* 移动端WhatsApp跳动动画优化 */
@media (max-width: 768px) {
    .whatsapp-link:hover {
        animation: whatsappJumpMobile 0.5s ease;
    }
    
    @keyframes whatsappJumpMobile {
        0%, 100% {
            transform: translateY(0);
        }
        30% {
            transform: translateY(-3px);
        }
        50% {
            transform: translateY(0);
        }
        70% {
            transform: translateY(-2px);
        }
    }
}

/* 区域3: 备案和版权区域 - 背景色改为#e9e9e9 */
.ffotm {
    background-color: #e9e9e9;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

.ffotm .container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 20px;
}

.fcopy {
    color: #666;
    font-size: 14px;
}

.fcopy p {
    margin: 0;
    line-height: 1.6;
}

.fcopy a {
    color: #666;
    text-decoration: none;
    margin-left: 10px;
}

.fcopy a:hover {
    color: #333;
    text-decoration: underline;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 移动端底部导航 */
.footer-bottom {
    display: none;
    background-color: #222;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
}

.footer-bottom .col-xs-3 {
    float: left;
    width: 25%;
    text-align: center;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    display: block;
}

.footer-bottom i {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.footer-bottom span {
    font-size: 12px;
}

/* ========== 响应式设计 - 优化中等屏幕范围 ========== */
/* 0. 大屏幕 (1400px以上) - 保持桌面端样式 */
@media (max-width: 1650px) {
    /* 显示移动端菜单按钮 */
    .mobile-menu-btn {
        display: block;
    }
    
    /* 隐藏桌面端菜单和选择器 */
    .nav-center, .nav-selectors {
        display: none;
    }
    
    /* 显示移动端选择器 */
    .mobile-selectors {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    /* 调整导航栏布局为左右结构 */
    .nav-left {
        width: 50%;
        justify-content: flex-start;
    }
    
    .nav-right {
        width: 50%;
        justify-content: flex-end;
        min-width: auto;
    }
    
    /* 隐藏产品中心和服务复杂下拉菜单 */
    .product-dropdown,
    .nav-service-dropdown {
        display: none;
    }
    
    /* 显示移动端菜单 */
    .mobile-menu {
        display: block;
    }
    
    /* 调整导航栏Logo大小 */
    .brand {
        max-width: 250px;
    }
    
    .brand img {
        max-height: 40px;
    }
    
    .navbar.scrolled .brand img {
        max-height: 32px;
    }
}

/* 1. 中等屏幕 (1200px - 1400px) - 优化调整 */
@media (max-width: 1650px) {
    /* 进一步调整导航栏Logo大小 */
    .brand {
        max-width: 230px;
    }
    
    .brand img {
        max-height: 38px;
    }
    
    .navbar.scrolled .brand img {
        max-height: 30px;
    }
    
    /* 调整功能卡片布局 */
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 调整底部布局 */
    .ft-lxfs {
        width: 100%;
        margin-bottom: 30px;
        padding-right: 0;
        text-align: center;
    }
    
    .fnav {
        width: 100%;
        justify-content: space-between;
    }
    
    .fpro {
        width: 48%;
        margin-bottom: 20px;
    }
    
    .smlist {
        gap: 12px;
        justify-content: center;
    }
    
    .smicon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    /* 调整底部字体大小 */
    .ft-tel {
        font-size: 26px;
    }
    
    .ft-email {
        font-size: 26px;
    }
    
    .ft-address {
        font-size: 17px;
    }
}

/* 2. 中等偏小屏幕 (900px - 1200px) - 进一步优化 */
@media (max-width: 900px) {
    /* 进一步调整导航栏Logo大小 */
    .brand {
        max-width: 200px;
    }
    
    .brand img {
        max-height: 36px;
    }
    
    .navbar.scrolled .brand img {
        max-height: 28px;
    }
    
    /* 调整底部布局 */
    .ft-logo {
        padding: 35px 0;
    }
    
    .ftit h2 {
        font-size: 24px;
    }
    
    .ftit p {
        font-size: 20px;
        font-weight:600;
    }
    
    .ft-tel {
        font-size: 24px;
    }
    
    .ft-email {
        font-size: 24px;
    }
    
    .ft-address {
        font-size: 16px;
    }
}

/* 3. 移动端 (768px以下) - 显示移动菜单 */
@media (max-width: 768px) {
    /* 进一步调整导航栏Logo大小 */
    .brand {
        max-width: 200px;
    }
    
    .brand img {
        max-height: 36px;
    }
    
    .navbar.scrolled .brand img {
        max-height: 28px;
    }
    
    /* 调整底部布局 */
    .ft-logo {
        padding: 30px 0;
    }

    .ft-logo .container {
        flex-direction: column;
        text-align: center;
    }

    .flogo {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .ftit {
        text-align: center;
    }

    .ft-nav {
        padding: 30px 0;
    }

    .fpro {
        width: 100%;
    }
    
    /* 显示移动端底部导航 */
    .footer-bottom {
        display: block;
    }
    
    /* 调整主标题大小 */
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* 调整内边距 */
    .nav-container, .ft-logo .container, .ft-nav .container, .ffotm .container {
        padding: 0 15px;
    }

    .smlist {
        gap: 10px;
        justify-content: center;
        margin: 15px 0;
    }
    
    .smicon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    
    .ft-lxfs {
        text-align: center;
    }
    
    /* 移动端响应式调整 */
    .mobile-menu .nav-link {
        font-size: 15px;
        padding: 14px 20px;
    }
    
    .mobile-menu .dropdown-link {
        font-size: 13px;
        padding: 12px 20px 12px 35px;
    }
    
    .mobile-selectors {
        padding: 15px;
    }
    
    /* 移动端邮箱跳动动画优化 */
    .ft-email:hover {
        animation: emailJumpMobile 0.5s ease;
    }
    
    /* 移动端WhatsApp跳动动画优化 */
    .whatsapp-link:hover {
        animation: whatsappJumpMobile 0.5s ease;
    }
    
    @keyframes emailJumpMobile {
        0%, 100% {
            transform: translateY(0);
        }
        30% {
            transform: translateY(-3px);
        }
        50% {
            transform: translateY(0);
        }
        70% {
            transform: translateY(-2px);
        }
    }
}

/* 4. 超小屏幕 (480px以下) */
@media (max-width: 480px) {
    /* ========== LOGO超小屏幕自适应 ========== */
    .brand {
        max-width: 160px;
    }
    
    .brand img {
        max-height: 32px;
    }
    
    .navbar.scrolled .brand img {
        max-height: 24px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 20px;
    }

    .ftit h2 {
        font-size: 20px;
    }

    .ftit p {
        font-size: 14px;
    }
    
    .ft-lxfs p {
        font-size: 16px;
    }
    
    .smlist {
        gap: 8px;
    }
    
    .smicon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    /* 移动端菜单调整 */
    .mobile-menu .nav-link {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .mobile-menu .dropdown-link {
        font-size: 12px;
        padding: 10px 15px 10px 30px;
    }
    
    /* 底部联系方式调整 */
    .ft-tel {
        font-size: 22px;
    }
    
    .ft-email {
        font-size: 22px;
    }
    
    .ft-address {
        font-size: 15px;
    }
}

/* .address-block 默认显示（小屏） */
.address-block {
    display: block;
}

/* 独立地址行默认隐藏（小屏） */
.ft-address-line {
    display: none;
    width: 100%;
    text-align: left;
    padding: 10px 0;
    margin-top: 20px;
    border-top: 1px solid #ddd;
}

.ft-address-line h5 {
    font-size: 22px;
    color: #333;
    font-weight: 700;
    display: inline;
    margin-right: 10px;
}

.ft-address-line .ft-address {
    display: inline;
    font-size: 18px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ===== 大屏（≥1200px）切换 ===== */
@media (min-width: 1650px) {
    .address-block {
        display: none;          /* 隐藏原来地址块 */
    }
    .ft-address-line {
        display: block;         /* 显示独立地址行 */
    }
}
