/* ====== 基础样式 ====== */
:root {
    --color-primary: #1a1a1a;
    --color-secondary: #333333;
    --color-accent: #0066cc;
    --color-accent-light: #3388ee;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray: #666666;
    --color-yellow: #3b68c5;
    --color-light-gray: #e9ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-heavy: 0 5px 20px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --border-radius: 20px;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif; 
    color: #212529; 
    line-height: 1.6; 
    background: var(--color-white);
}

/* ====== 导航栏 ====== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: transparent;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: var(--color-white);

    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header:not(.scrolled) .nav-link {
    color: white;
}

.header:not(.scrolled) .nav-link:hover, 
.header:not(.scrolled) .nav-link.active {
    color: rgba(255, 255, 255, 1);
}

.header:not(.scrolled) .nav-link::after {
    background: white;
}

.header:not(.scrolled) .header-logo {
    color: white;
}

.header:not(.scrolled) .nav-cta {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header:not(.scrolled) .nav-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    height: 40px;
}

.logo-image {
    height: 100%;
    width: auto;
    max-height: 40px;
    object-fit: contain;
}

/* 默认（中文） */
.nav-list {
    display: flex;
    list-style: none;
    gap: 90px; /* 中文默认间距 */
}

/* 英文时增大间距 */
body.lang-en .nav-list {
    gap: 100px;
}

.nav-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif; /* 统一中英文字体 */
    line-height: 1.2;
    vertical-align: middle;
    display: inline-block;
    
}

.nav-link:hover, .nav-link.active {
    color: var(--color-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: 8px 24px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.nav-cta:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.2);
}

/* ====== 页脚 ====== */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 50px 0 25px;
}

/* 关键修改：让 footer-content 行内块 + 居中 */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 0px;
    text-align: left;
}

/* 关键修改：让 footer-content 中的内容左对齐 */
/* 默认（中文） */
.footer-content {
    display: flex;
    justify-content: center; /* 保持整个内容块在父元素中水平居中 */
    flex-wrap: wrap;
    gap: 150px; /* 中文默认间距 */
    margin-bottom: 40px;
}

/* 英文时缩小间距 */
body.lang-en .footer-content {
    gap: 100px;
}

.footer-col {
    text-align: left; /* 确保每一列内的文本都左对齐 */
    min-width: 120px; /* 防止过窄 */
    box-sizing: border-box; /* 确保padding和border包含在元素的width内 */
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: left; /* 标题也应左对齐 */
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
	white-space: normal;
}

/* 确保备案号链接样式与 footer 列表项一致 */
.footer-col ul li a,
.copyright a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    display: inline-block; /* 使 padding-left 生效 */
}

.footer-col ul li a,
.footer-col ul li {
    word-break: keep-all; /* 默认不乱断词 */
}

.footer-col ul li a:hover,
.copyright a:hover {
    color: var(--color-accent-light);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ====== 通用动画类 ====== */
.animate-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.animate-text.animated {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* 背景图片动画样式 */
.company-background img,
.team-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 2s cubic-bezier(0.4, 0, 0.2, 1), opacity 2s ease-out;
    will-change: filter, opacity;
}

/* 初始状态 - 模糊 */
.company-background img {
    filter: blur(12px) brightness(0.6);
    opacity: 0.8;
}

.team-background img {
    filter: blur(12px);
    opacity: 0.8;
}

/* 清晰状态 - 使用类控制 */
.company-background img.cleared {
    filter: blur(0) brightness(1);
    opacity: 1;
}

.team-background img.cleared {
    filter: blur(0);
    opacity: 1;
}

/* 按钮样式 */
.company-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 12px 40px;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid #888;
    overflow: hidden;
    background-color: transparent;
    transition: color 0.4s ease 0.1s;
    min-width: 160px;
    z-index: 1;
    cursor: pointer;
}

/* 扩散背景层 */
.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #3b68c5;
    border-radius: 50px;
    transform: scale(0);
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

/* 悬停状态：触发所有变化 */
.company-cta:hover {
    color: #fff;
    border-color: #3b68c5;
}

.company-cta:hover .cta-bg {
    transform: scale(1);
}

/* 桌面端下拉菜单样式 */
/* 默认（中文）下的宽度 */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    min-width: 180px;
    z-index: 1000;
    /* 替换 margin-top 为 padding-top + 负 margin */
    padding-top: 8px;      /* 在菜单内部增加顶部内边距 */
    margin-top: 0;         /* 移除原来的 margin-top */
    border: 1px solid #eaeaea;
    text-align: center;
}

/* 英文时增加宽度 */
body.lang-en .dropdown-menu {
    min-width: 240px; /* 英文环境下更宽 */
}

/* 关键：让 .dropdown 的 hover 区域延伸到菜单上方 */
.dropdown {
    position: relative;
    /* 可选：给 .dropdown 增加一点 padding-bottom，扩大 hover 区域 */
    padding-bottom: 8px; /* 这样 hover 区域就覆盖了 8px 间隙 */
    margin-bottom: -8px; /* 抵消 padding 对布局的影响 */
}

.dropdown-menu li {
    list-style: none;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 16px 24px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #000;
}

.dropdown:hover .dropdown-menu {
    display: block; /* 鼠标悬停时显示 */
}

.mobile-controls {
	display: none;
}

//适配手机
/* ====== 移动端汉堡菜单 ====== */
/* 关键修复：让 span 显示为横线 */
.mobile-menu-toggle span {
    display: none;
    width: 100%;
    height: 3px;                /* 横线高度 */
    background-color: white;    /* 默认颜色（透明 header 时用白色） */
    border-radius: 2px;         /* 圆角更美观 */
    transition: all 0.3s ease-in-out;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
/* 当 header 滚动后变为深色背景时，汉堡按钮也变为深色 */
.header.scrolled .mobile-menu-toggle span {
    background-color: var(--color-black); /* 深色背景时用黑色 */
}

/* 激活状态：变成叉号 */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 桌面端隐藏 footer logo */
.footer-logo {
    display: none;
}

/* ========== 通用显示控制 ========== */
/* 默认隐藏移动端图片 */
.mobile-image {
    display: none !important;
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-top: 0px;
}

/* 桌面端图片默认显示 */
.desktop-image {
    display: block !important;
}

.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}
/* ========== 通用显示控制 ========== */
/* ====== 响应式设计 ====== */
/* 在小屏设备上显示汉堡菜单 */
@media (max-width: 1236px) {/* ========== 150% ========== ipad air 820*1180 ========== */
/* ========== 通用显示控制 ========== */
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .desktop-image {
        display: none !important;
    }
    
    .mobile-image {
        display: block !important;
    }
    
    /* 移动端下拉菜单样式 */
    .mobile-dropdown-toggle {
        width: 100%;
        padding: 15px;
        margin: 10px 10px 0px 10px;
        background: var(--color-white);
        border: 2px solid black;
        border-radius: 30px;
        font-size: 1.4rem;
        font-weight: 500;
        color: var(--color-black);
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
        box-shadow: var(--shadow);
    }

    .mobile-dropdown-toggle:hover {
        background: #f5f5f5;
    }

    /* 下拉菜单默认隐藏 */
    .mobile-dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        border-radius: 8px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.1);
        z-index: 1000;
        margin-top: 10px;
        overflow: hidden;
    }

    .mobile-dropdown-menu.active {
        display: block;
    }

    /* 下拉菜单项 */
    .mobile-dropdown-item {
        padding: 15px 20px;
        text-align: left;
        border: none;
        background: transparent;
        color: var(--color-gray);
        font-size: 1.1rem;
        width: 100%;
        border-bottom: 1px solid #eee;
        cursor: pointer;
        transition: all 0.3s ease;
    }

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

    .mobile-dropdown-item:hover,
    .mobile-dropdown-item.active {
        background: var(--color-accent-light);
        color: white;
    }

    /* 箭头动画 */
    .mobile-dropdown-toggle i {
        transition: transform 0.3s ease;
    }

    .mobile-dropdown-toggle.active i {
        transform: rotate(180deg);
    }
/* ========== 通用显示控制 ========== */




    /* 显示 footer logo */
    .footer-logo {
        display: block;
    }
    /* ===== 隐藏不需要的内容 ===== */
    /* 隐藏公司名称标题 */
    .footer-col:first-child h3 {
        display: none;
    }

    /* 显示log图标*/
    .footer-col:first-child ul li:first-child {
        display: block;
    }
    
 	/* 隐藏地址 */
 	.footer-col:first-child ul li:nth-child(2) {
   	 	display: none;
  	}
    /* 隐藏“产品方案”、“关于我们”、“核心能力”三列 */
    .footer-col:nth-child(2),
    .footer-col:nth-child(3),
    .footer-col:nth-child(4) {
        display: none;
    }
    
    /* === 重置第一列样式 === */
    .footer-col:first-child {
        width: 100%;
        text-align: left;
        margin-left:30px; /* ← 关键：移除 padding */
       
        align-items: left;
    }

    /* === 重置 ul 默认样式 === */
  	.footer-col:first-child ul {
    	display: flex;
    	flex-direction: column;
    	gap: 12px; /* ✅ 现在 gap 会正确作用于 logo img 和 邮箱之间 */
    	align-items: flex-start; /* 左对齐 */
  	}

  	.footer-logo img {
  		margin-left:30px;
    	width: 150px;
    	height: auto;
  	}



    /* === 邮箱样式优化 === */
	/* 所有屏幕下统一用 .footer-email */
	.footer-email {
		display: flex;
		align-items: left;
		margin-left: 30px;
		gap: 6px;
		color: rgba(255, 255, 255, 0.8);
	}

	.footer-email a {
	  font-size: 1.1rem;
	  color: inherit;
	  text-decoration: none;
	}

	.footer-email a:hover {
	  color: var(--color-accent-light) !important;
	  padding-left: 5px;
	}

	.footer-email a::before {
	  content: attr(data-email-prefix);
	  color: rgba(255, 255, 255, 0.8);
	  font-size: 1.1rem;
	  font-weight: normal;
	}

    .footer-col:first-child .fas {
        width: 14px;
        text-align: center;
        font-size: 14px;
        display: none;
    }

    /* === 版权信息紧凑化 === */
    .copyright {
        text-align: center;
        padding-top: 16px; /* ← 减小 */
        margin-top: 0;     /* ← 移除多余 margin */
        font-size: 0.85rem;
        opacity: 0.7;
        border-top: 1px solid rgba(255,255,255,0.1);
    
	}
    

    /* ===== 导航相关（保持原有）===== */
    .nav-list {
        gap: 25px;
    }

    .mobile-menu-toggle {
        display: flex;/* � 关键：让汉堡按钮显示出来 */
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        margin-right: 20px; /* ← 关键：增加右侧外边距 */
    }

    /* 关键：让 span 显示为横线 */
    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    /* 同时隐藏桌面导航 */
    .nav-list {
        display: none;
    }

    /* 如果有 .nav-wrapper，也需要配合显示/隐藏 */
    .nav-wrapper {
        display: none;
    }

    /* 当菜单激活时显示导航 */
    .nav-wrapper.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 999;
    }

    .nav-wrapper.active .nav-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .nav-wrapper.active .nav-link,
    .nav-wrapper.active .dropdown > a {
        color: var(--color-primary) !important;
        padding: 8px 20px;
        width: 100%;
        text-align: center;
        border-radius: 0;
    }

    /* 隐藏下拉菜单（移动端通常展开为平铺）*/
    .dropdown-menu {
        display: none !important;
    }
    
    
    .mobile-controls {
        display: flex; /* ✅ 使用 flex 更可控 */
        align-items: center;
        gap: 15px;
        margin-left: auto; /* 靠右对齐 */
    }
    
        /* 确保语言链接在移动端有合适样式 */
    .mobile-lang-toggle {
        color: var(--color-primary); /* 或根据 header scrolled 状态调整 */
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
    }
    
	/* 透明 header 时：白色 */
	.header:not(.scrolled) .mobile-lang-toggle,
	.header:not(.scrolled) .mobile-menu-toggle span {
		color: white;
	  
	}

	.header:not(.scrolled) .mobile-menu-toggle span {
		background-color: white !important;
	}

	/* 滚动后：深色 */
	.header.scrolled .mobile-lang-toggle {
		color: var(--color-primary);
	}

	.header.scrolled .mobile-menu-toggle span {
		background-color: var(--color-black) !important;
	}
		
    
}
@media (max-width: 927px) {/* ========== 200% ========== */

}

@media (max-width: 649px) {/* ========== 280% ========== */
	.logo-image {
	  max-height: 20px;
	}
	.header {
		margin: 0 0;
		padding: 0 0px;
	}
	
	/* 了解更多按钮样式 */
	.company-cta {
		padding: 3px 0px ;
		min-width: 80px;
		font-size: 10px;
	}



}

@media (max-width: 525px) {/* ========== 350% ========== */
    
}

@media (max-width: 428px) {/* ========== 450% ========== iphone 12/13 pro max 428*926 ========== */
	/* 了解更多按钮样式 */
	body.lang-en .company-cta {
		padding: 3px 0px ;
		min-width: 80px;
		font-size: 6px;
	}

}

@media (max-width: 414px) {

}
@media (max-width: 412px) {

}
@media (max-width: 390px) {

}
@media (max-width: 384px) {

}

@media (max-width: 360px) {

}

