/* 基础样式重置 */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; /* 适配固定导航栏 */ scroll-timeline: --page-scroll block; }
/* 添加滚动动画配置 */
:root {   /* ... 现有变量 ... */
  --scroll-duration: 800ms; /* 延长滚动时间使效果更明显 */
 --scroll-easing: ease-out; /* 使用缓出效果 */
}
/* 自定义滚动条样式 */
::-webkit-scrollbar {
 width: 8px;
 height: 8px;
}

::-webkit-scrollbar-track {
 background: #f1f1f1;
 border-radius: 4px;
}

::-webkit-scrollbar-thumb {
 background: #07769C;
 border-radius: 4px;
 transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
 background: #055a7a;
}
/* Firefox 支持 */
* { scrollbar-width: thin; scrollbar-color: #07769C #f1f1f1; }
body { font-family: 'PingFang SC', 'Microsoft YaHei', 'Microsoft YaHei UI', 'SimSun', 'SimHei', 'Arial'; line-height: 1.6; color: #333; scroll-behavior: smooth; /* 添加平滑滚动效果 */ }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: 100%; max-width: 1800px; margin: 0 auto; padding: 0 15px; }
/* 头部导航样式 */

.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: all 0.3s ease; background-color: rgba(24, 76, 105, 0); }
.newsheader { background-color: rgba(24, 76, 105, 0.95); }
.header.scrolled { background-color: rgba(24, 76, 105, 0.95); padding: 15px 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
.header.scrolled .logo { flex: 0 0 140px; /* 从原来的180px缩小到140px */ }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { flex: 0 0 160px; }
.logo img { max-width: 100%; height: auto; }
.nav ul { display: flex; }
.nav ul li { margin: 0 15px; }
.nav ul li a { color: #fff; font-size: 16px; font-weight: 500; padding: 5px 0; position: relative; transition: all 0.3s ease; }
.nav ul li a:after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: #4CAF50; /* 点缀绿色 */ transition: width 0.3s ease; }
.nav ul li a:hover:after,  .nav ul li a.active:after { width: 100%; }
.header-right { display: flex; align-items: center; }
/* 搜索按钮和下拉 */

.search-container { position: relative; margin-right: 20px; }
.search-btn { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; padding: 5px; }
.search-dropdown { position: absolute; top: 100%; right: 0; width: 0; overflow: hidden; background-color: #fff; border-radius: 4px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; opacity: 0; visibility: hidden; }
.search-dropdown.active { width: 300px; opacity: 1; visibility: visible; padding: 10px; margin-top: 10px; }
.search-dropdown form { display: flex; align-items: center; }
.search-dropdown input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 4px 0 0 4px; outline: none; }
.search-dropdown button { background-color: #184C69; color: #fff; border: none; padding: 10px 15px; border-radius: 0 4px 4px 0; cursor: pointer; }
/* 语言切换 */

.language-switch { display: flex; align-items: center; color: #fff; }
.language-switch a { padding: 0 5px; transition: color 0.3s ease; }
.language-switch a:hover,  .language-switch a.active { color: #4CAF50; /* 点缀绿色 */ }
/* 移动端菜单按钮 */

.mobile-menu-btn { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 20px; cursor: pointer; }
.mobile-menu-btn span { display: block; height: 2px; width: 100%; background-color: #fff; transition: all 0.3s ease; }
/* Banner视频背景样式 */

.hero-banner { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.video-background { position: absolute; top: 0; left: 0; width: 100%; height: 120%; /* 增加高度以实现视差滚动 */ z-index: -1; transform: translateY(0); }
.video-background video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translateX(-50%) translateY(-50%); object-fit: cover; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); /* 半透明黑色遮罩 */ }
.banner-content { position: relative; z-index: 2; max-width: 650px; color: #fff; text-align: left; padding: 0 15px; transform: translateY(0); transition: transform 0.1s ease-out; }
.banner-content h1 { font-size: 48px; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.banner-content p { font-size: 20px; margin-bottom: 30px; text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3); }

/* 响应式调整 */

@media (max-width: 768px) {
.banner-content h1 { font-size: 36px; }
.banner-content { text-align: center; }
.banner-content p { font-size: 18px; }
}
.btn { display: inline-block; background-color: #4CAF50; /* 点缀绿色 */ color: #fff; padding: 12px 30px; border-radius: 4px; font-weight: 500; transition: all 0.3s ease; }
.btn:hover { background-color: #3d8b40; transform: translateY(-3px); }
.btn-primarybanner { display: inline-block; padding: 14px 35px; border: 2px solid #FFF; color: #FFF; font-weight: 500; border-radius: 4px; transition: all 0.3s ease; align-self: flex-start; }
.btn-primarybanner:hover { background-color: #4CAF50; color: #fff; }
.btn-primarys { display: inline-block; padding: 14px 35px; border: 2px solid #184C69; color: #184C69; font-weight: 500; border-radius: 4px; transition: all 0.3s ease; align-self: flex-start; font-size: 16px; }
.btn-primarys:hover { background-color: #4CAF50; color: #fff; }
.btn-primarys a{ display:block;}
/* 响应式设计 */

@media (max-width: 992px) {
.nav { position: fixed; top: 0; right: -300px; width: 300px; height: 100vh; background-color: #184C69; padding: 80px 20px 20px; transition: all 0.3s ease; overflow-y: auto; }
.nav.active { right: 0; }
.nav ul { flex-direction: column; }
.nav ul li { margin: 10px 0; }
.mobile-menu-btn { display: flex; z-index: 1001; }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
.banner-content h1 { font-size: 36px; }
.banner-content p { font-size: 18px; }
}

@media (max-width: 768px) {
.header-right { margin-right: 50px; }
.search-dropdown.active { width: 250px; }
.banner-content h1 { font-size: 30px; }
.banner-content p { font-size: 16px; }
}

@media (max-width: 576px) {
.logo { flex: 0 0 140px; }
.language-switch { display: none; }
.search-dropdown.active { width: 250px; }
}
/* 页脚样式 */

.footer { background-color: #333; color: #fff; padding: 60px 0 20px; }
.footer-top { display: flex; flex-wrap: wrap; margin-bottom: 40px; }
.footer-col { flex: 1; min-width: 250px; padding: 0 15px; margin-bottom: 30px; }
.footer-logo { margin-bottom: 20px; }
.footer-logo img { max-width: 160px; height: auto; }
.footer-desc { margin-bottom: 20px; line-height: 1.6; color: rgba(255, 255, 255, 0.8); }
.social-links { display: flex; gap: 15px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background-color: rgba(255, 255, 255, 0.1); border-radius: 50%; color: #fff; font-size: 16px; transition: all 0.3s ease; }
.social-links a:hover { background-color: #4CAF50; transform: translateY(-3px); }
.footer-col h4 { font-size: 18px; font-weight: 600; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4:after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background-color: #4CAF50; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255, 255, 255, 0.8); transition: all 0.3s ease; position: relative; padding-left: 15px; }
.footer-links a:before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 2px; color: #4CAF50; }
.footer-links a:hover { color: #fff; padding-left: 20px; }
.footer-contact { list-style: none; }
.footer-contact li { margin-bottom: 15px; display: flex; align-items: flex-start; color: rgba(255, 255, 255, 0.8); }
.footer-contact li i { margin-right: 10px; color: #4CAF50; font-size: 16px; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.copyright, .icp { margin-bottom: 10px; }
.copyright p, .icp p { font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.copyright a, .icp a { color: rgba(255, 255, 255, 0.6); transition: color 0.3s ease; }
.copyright a:hover, .icp a:hover { color: #4CAF50; }

/* 响应式调整 */

@media (max-width: 992px) {
.footer-col { flex: 0 0 50%; }
}

@media (max-width: 768px) {
.footer-col { flex: 0 0 100%; }
/* 添加移动端两列布局样式 */
.footer-col--half { flex: 0 0 50% !important; min-width: auto !important; /* 添加此行覆盖默认最小宽度 */ }
.footer-bottom { flex-direction: column; text-align: center; }
}
/* 向上按钮样式 */

.back-to-top { position: fixed; right: 30px; bottom: 30px; width: 50px; height: 50px; background-color: #184C69; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s ease; z-index: 999; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background-color: #4CAF50; transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
.back-to-top i { font-size: 20px; }
/* 动画效果 - 浮动出现效果 */

/* 基础动画类 - 用于初始状态设置 */
.fade-in-element { opacity: 0; transition: opacity 0.8s ease, transform 0.8s ease; }
/* 从下方浮动出现 */
.float-up { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
/* 从左侧浮动出现 */
.float-right { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s ease, transform 0.8s ease; }
/* 从右侧浮动出现 */
.float-left { opacity: 0; transform: translateX(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
/* 缩放浮动出现 */
.float-scale { opacity: 0; transform: scale(0.8); transition: opacity 0.8s ease, transform 0.8s ease; }
/* 动画激活状态 */
.fade-in-element.animate, .float-up.animate, .float-right.animate, .float-left.animate, .float-scale.animate { opacity: 1; transform: translate(0) scale(1); }

/* 缓慢放大动画 */
@keyframes slowZoom {
 from {
transform: scale(1);
}
 to {
transform: scale(1.05);
}
}
.banner-zoom { animation: slowZoom 5s ease-in-out infinite alternate; }
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
