/* 基础容器 */
.tech-banner-wrapper {
position: relative;
width: 100%;
height: 85vh;
min-height: 600px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
font-family: ‘Inter’, ‘Roboto’, sans-serif;
color: #ffffff;
box-sizing: border-box;
}
/* 动态背景与遮罩 */
.tech-banner-bg {
position: absolute; top: 0; left: 0; width: 100%; height: 100%;
background-size: cover; background-position: center;
transition: background-image 1s ease-in-out, transform 10s ease-out;
z-index: 1; transform: scale(1);
}
.tech-banner-bg.zoom-effect { transform: scale(1.1); }
.tech-banner-overlay {
position: absolute; top: 0; left: 0; width: 100%; height: 100%;
background: linear-gradient(135deg, rgba(10, 25, 47, 0.85) 0%, rgba(10, 25, 47, 0.5) 100%);
z-index: 2;
}
/* 玻璃拟态文字容器 – 默认靠左样式 (适配第2、3张) */
.tech-banner-content {
position: relative; z-index: 3;
text-align: left; /* 默认文字靠左 */
max-width: 650px;
margin-left: calc((100% – 1140px) / 2 + 40px); /* 默认靠左,适配Kadence 1140px */
margin-right: auto;
padding: 50px;
background: rgba(255, 255, 255, 0.08);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.15);
border-left: 4px solid #64ffda;
border-radius: 4px;
box-shadow: 0 20px 50px rgba(0,0,0,0.3);
opacity: 0; transform: translateY(30px);
transition: opacity 0.8s ease, transform 0.8s ease;
}
.tech-banner-content.content-visible { opacity: 1; transform: translateY(0); }
/* 🆕 修改:强制玻璃块居中,但文字保持靠左 */
.tech-banner-content.align-center {
text-align: left; /* 保持文字靠左对齐 */
margin: 0 auto; /* 让整个玻璃块水平居中 */
border-left: 1px solid rgba(255, 255, 255, 0.15); /* 居中时取消左侧强调线,保持对称 */
}
/* 窄版布局适配 (750px) */
@media (max-width: 1200px) {
.tech-banner-content {
margin-left: calc((100% – 750px) / 2 + 30px);
}
}
/* 文字排版 */
.tech-tag { display: inline-block; font-size: 0.85rem; letter-spacing: 3px; color: #64ffda; margin-bottom: 15px; text-transform: uppercase; font-weight: 600; }
.tech-title {
font-size: 3.2rem; line-height: 1.1; font-weight: 700; margin: 0 0 20px 0;
color: #ffffff !important;
text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.tech-desc { font-size: 1.15rem; color: #e6f1ff; margin-bottom: 35px; font-weight: 300; line-height: 1.6; }
/* 按钮组 */
.tech-btn-group { display: flex; gap: 20px; justify-content: flex-start; }
/* 居中时按钮也保持靠左,与文字对齐 */
.tech-banner-content.align-center .tech-btn-group { justify-content: flex-start; }
.tech-btn { padding: 14px 32px; text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; border-radius: 2px; font-size: 0.9rem; }
.tech-btn.primary { background: transparent; color: #64ffda; border: 1px solid #64ffda; }
.tech-btn.primary:hover { background: rgba(100, 255, 218, 0.1); box-shadow: 0 0 20px rgba(100, 255, 218, 0.4); transform: translateY(-2px); }
.tech-btn.secondary { background: #fff; color: #0a192f; border: 1px solid #fff; }
.tech-btn.secondary:hover { background: #e6f1ff; transform: translateY(-2px); }
/* 装饰线条 */
.tech-line { position: absolute; width: 120px; height: 120px; border: 2px solid rgba(100, 255, 218, 0.2); z-index: 3; pointer-events: none; }
.tech-line.top-left { top: 40px; left: 40px; border-right: none; border-bottom: none; }
.tech-line.bottom-right { bottom: 40px; right: 40px; border-left: none; border-top: none; }
/* 右侧导航条样式 */
.banner-nav {
position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
z-index: 10; display: flex; flex-direction: column; align-items: flex-end; gap: 25px;
}
.banner-nav-item {
padding: 8px 15px; border-radius: 4px; cursor: pointer;
font-size: 0.9rem; font-weight: 500; letter-spacing: 1px;
color: rgba(255, 255, 255, 0.6); border-left: 2px solid transparent;
transition: all 0.3s ease; text-align: right;
}
.banner-nav-item.active {
color: #64ffda; background: rgba(100, 255, 218, 0.1);
border-left: 2px solid #64ffda; padding: 8px 13px;
box-shadow: 0 0 15px rgba(100, 255, 218, 0.2);
}
.banner-nav-item:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
/* 移动端适配 (小于768px) */
@media (max-width: 768px) {
.tech-banner-wrapper { justify-content: center; }
.tech-banner-content {
margin: 20px !important;
padding: 30px 20px;
max-width: 90%;
text-align: left !important; /* 移动端也保持文字靠左 */
border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.tech-title { font-size: 2rem; }
.tech-btn-group { flex-direction: column; justify-content: flex-start !important; }
.tech-line { width: 60px; height: 60px; }
.banner-nav { right: 15px; gap: 15px; }
.banner-nav-item { font-size: 0.8rem; padding: 6px 10px; }
}
(function() {
if (document.readyState === ‘loading’) {
document.addEventListener(‘DOMContentLoaded’, initBanner);
} else {
initBanner();
}
function initBanner() {
const bgElement = document.getElementById(‘techBg’);
const contentElement = document.getElementById(‘techContent’);
const titleH1 = document.getElementById(‘techTitle’);
const titleH2 = document.getElementById(‘techTitleH2’);
const descElement = document.getElementById(‘techDesc’);
const tagElement = document.getElementById(‘techTag’);
const navContainer = document.getElementById(‘bannerNav’);
if (!bgElement || !contentElement || !navContainer) return;
const bannerData = [
{
tag: “LED LIGHTING MANUFACTURER”,
image: “https://hlled.com/wp-content/uploads/2026/05/Helian-LED-Profiles-manufacturer.jpg”,
title: “PROFESSIONAL LED LIGHTING MANUFACTURER
& PROFILE SPECIALIST”,
desc: “19 Years of Production Excellence. Building on our heritage in aluminum extrusion, we engineer high-performance linear and neon lighting systems for global B2B partners.”,
navText: “LED MANUFACTURER”
},
{
tag: “LED aluminum profile”,
image: “https://hlled.com/wp-content/uploads/2026/06/LED-profiles-manufacture.jpg”,
title: “PRECISION-ENGINEERED
LED ALUMINUM PROFILES”,
desc: “The Cornerstone of Linear Lighting. With 500+ in-house designs, we provide the hardware foundation for superior thermal management and lighting aesthetics.”,
navText: “LED Aluminum Profile”
},
{
tag: “Solutions and Customization”,
image: “https://hlled.com/wp-content/uploads/2026/06/the-application-of-Helian-LED-profiles.jpg”,
title: “INTEGRATED LINEAR & NEON LIGHTING SYSTEMS”,
desc: “From Concept to Creation. We offer customizable LED solutions and deep OEM/ODM support to bring your unique lighting vision to life.”,
navText: “Customization/OEM/ODM”
}
];
let currentIndex = 0;
let autoPlayTimer;
// 动态生成右侧导航条
bannerData.forEach((item, index) => {
const navItem = document.createElement(‘div’);
navItem.classList.add(‘banner-nav-item’);
navItem.textContent = item.navText;
navItem.addEventListener(‘click’, () => {
goToSlide(index);
resetAutoPlay();
});
navContainer.appendChild(navItem);
});
const navItems = document.querySelectorAll(‘.banner-nav-item’);
// 初始化第一张
updateBannerContent(0, false);
startAutoPlay();
function goToSlide(index) {
contentElement.classList.remove(‘content-visible’);
bgElement.classList.remove(‘zoom-effect’);
setTimeout(() => {
currentIndex = index;
updateBannerContent(currentIndex, true);
}, 800);
}
function updateBannerContent(index, withAnimation) {
const data = bannerData[index];
bgElement.style.backgroundImage = `url(‘${data.image}’)`;
tagElement.textContent = data.tag;
descElement.textContent = data.desc;
// SEO逻辑:第1张显示H1,其余显示H2
const isFirstSlide = (index === 0);
titleH1.innerHTML = data.title;
titleH2.innerHTML = data.title;
titleH1.style.display = isFirstSlide ? ‘block’ : ‘none’;
titleH2.style.display = isFirstSlide ? ‘none’ : ‘block’;
// 布局切换逻辑:第1张(index 0)添加 align-center 类居中,其余移除该类(恢复默认靠左)
if (isFirstSlide) {
contentElement.classList.add(‘align-center’);
} else {
contentElement.classList.remove(‘align-center’);
}
void bgElement.offsetWidth;
// 更新导航条状态
navItems.forEach(item => item.classList.remove(‘active’));
navItems[index].classList.add(‘active’);
if (withAnimation) {
contentElement.classList.add(‘content-visible’);
bgElement.classList.add(‘zoom-effect’);
} else {
contentElement.style.transition = ‘none’;
contentElement.classList.add(‘content-visible’);
bgElement.classList.add(‘zoom-effect’);
setTimeout(() => { contentElement.style.transition = ”; }, 50);
}
}
function startAutoPlay() {
autoPlayTimer = setInterval(() => {
currentIndex = (currentIndex + 1) % bannerData.length;
goToSlide(currentIndex);
}, 4000);
}
function resetAutoPlay() {
clearInterval(autoPlayTimer);
startAutoPlay();
}
const wrapper = document.querySelector(‘.tech-banner-wrapper’);
wrapper.addEventListener(‘mouseenter’, () => clearInterval(autoPlayTimer));
wrapper.addEventListener(‘mouseleave’, startAutoPlay);
}
})();
HELIAN LED SYSTEMS
PROFESSIONAL LED LIGHTING MANUFACTURER
LED ALUMINUM PROFILES
19 Years of Production Excellence. Building on our heritage in aluminum extrusion, we engineer high-performance linear and neon lighting systems for global B2B partners.