<!DOCTYPE html>
<html lang="zh-hans" dir="ltr" prefix="og: https://ogp.me/ns#">

<head>
    <meta charset="utf-8">
    <!--首页seo标题-->
    <title>电感式编码器芯片_电感编码器芯片_英达森斯半导体</title>
    <!--首页seo关键词-->
    <meta name="keywords" content="电感式编码器芯片,电感编码器芯片,位置传感器,PCB线圈设计工具,iCoil Studio,边缘AI算法,高精度位置传感器,绝对位置编码器,功能安全,ISO 26262" />
    <!--首页seo描述-->
    <meta name="description" content="英达森斯半导体源自上海，专注于电感编码器芯片及工程化赋能，提供全场景高精度电感传感器芯片、全球领先的PCB线圈设计工具iCoil Studio及边缘AI算法，服务于汽车电子、机器人、工业自动化等领域。" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="canonical" href="https://www.induxense.com/index_m_home_c_Lists_a_index_tid_4.html" />
    <meta property="og:title" content="电感式编码器芯片_电感编码器芯片_英达森斯半导体" />
    <meta property="og:description" content="英达森斯半导体专注于电感式编码器芯片及工程化赋能，提供全场景高精度电感传感器芯片、PCB线圈设计工具iCoil Studio及边缘AI算法。" />
    <meta property="og:type" content="website" />
    <meta property="og:url" content="https://www.induxense.com/index_m_home_c_Lists_a_index_tid_4.html" />
    <meta property="og:site_name" content="英达森斯半导体" />
    <meta property="og:image" content="https://www.induxense.com/assets/og-share-default.jpg" />
    <meta name="twitter:card" content="summary_large_image" />
    <meta name="twitter:title" content="电感式编码器芯片_电感编码器芯片_英达森斯半导体" />
    <meta name="twitter:description" content="英达森斯半导体专注于电感式编码器芯片及工程化赋能，提供全场景高精度电感传感器芯片、PCB线圈设计工具iCoil Studio及边缘AI算法。" />
    <meta name="twitter:image" content="https://www.induxense.com/assets/og-share-default.jpg" />
    <link rel="icon" type="image/png" href="/favicon.ico" />
    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
    <script type="application/ld+json">
    {"@context":"https://schema.org","@type":"Organization","name":"英达森斯半导体","alternateName":"上海英达森斯半导体科技有限公司","url":"https://www.induxense.com","logo":"/uploads/allimg/20250929/1-2509291S3311O.png","description":"英达森斯半导体源自上海，专注于电感编码器芯片及工程化赋能，提供全场景高精度电感传感器芯片、PCB线圈设计工具iCoil Studio及边缘AI算法","address":{"@type":"PostalAddress","addressLocality":"上海","addressCountry":"CN"},"sameAs":["https://www.induxense.com"]}
    </script>
    <script type="application/ld+json">
    {"@context":"https://schema.org","@type":"WebSite","name":"英达森斯半导体","url":"https://www.induxense.com","description":"电感式编码器芯片_电感编码器芯片","inLanguage":"zh-Hans"}
    </script>
    <script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"首页","item":"https://www.induxense.com/"},{"@type":"ListItem","position":2,"name":"页面","item":"https://www.induxense.com/index_m_home_c_Lists_a_index_tid_4.html"}]}</script><script type="text/javascript" src="/public/static/common/js/ey_global.js?v=v1.8.1"></script>
</head>

<body>
    <div class="header__wrapper">
        <div class="dialog-off-canvas-main-canvas" data-off-canvas-main-canvas>
            <div class="l-container">

<style>
    /* === Global CSS Variables === */
    :root {
        --font-display: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        --font-body: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        --font-mono: 'SF Mono', Menlo, Consolas, monospace;
    }
/* v=20260622-009 */
html {
    /* 恒定预留竖向滚动条槽位：短页面滚动条消失时，居中头部不再横向跳动 */
    scrollbar-gutter: stable;
    overflow-y: scroll;
}
body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Navigation Header - Professional Style */
.modern-header {
    background: linear-gradient(135deg, #F8FBFF 0%, #F0F7FF 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modern-header.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.06);
}

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

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.375rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.02em;
}

.header-logo:hover {
    color: #0573C3;
    text-decoration: none;
}

.header-logo-icon {
    width: auto;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-logo-icon img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.header-logo-text {
    font-size: 20px;
    font-weight: 700;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    letter-spacing: -0.4px;
    color: inherit;
    white-space: nowrap;
    background: linear-gradient(135deg, #1a1a1a 0%, #1A1A1A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 14.5px;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 40px;
    box-sizing: border-box;
    letter-spacing: -0.01em;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #FFA505;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
    opacity: 0;
}

.nav-link:not(.active):hover::before {
    width: calc(100% - 28px);
    opacity: 1;
}

.nav-link:hover,
.nav-link.active {
    color: #FFA505;
    text-decoration: none;
    font-weight: 600;
    background: none;
}

.nav-link.active:hover {
    background: transparent;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: calc(100% - 28px);
    height: 2px;
    background: #FFA505;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(5, 115, 195, 0.2);
}

/* ===== Mega Dropdown (Professional Style) ===== */
.nav-dropdown {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100vw;
    background: linear-gradient(180deg, #F0F6FF 0%, #E8F2FF 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 0;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 10px 15px -3px rgba(0, 0, 0, 0.04),
        0 20px 40px -8px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.32, 1);
    z-index: 9999;
    border-bottom: 1px solid rgba(5, 115, 195, 0.15);
}

/* 透明桥接区域，消除nav-item与dropdown之间的hover间隙 */
.nav-item.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    max-width: 1440px;
    margin: 0;
    padding: 56px 48px;
    position: relative;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 48px;
    right: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(5, 115, 195, 0.2) 50%, transparent 100%);
}

.dropdown-header {
    margin-bottom: 48px;
    position: relative;
}

.dropdown-header::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #FFA505;
    margin: 20px auto 0;
    border-radius: 2px;
}

.dropdown-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.dropdown-subtitle {
    color: #737373;
    font-size: 15px;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .dropdown-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.dropdown-card {
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF7ED 100%);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.32, 1);
    border: 1px solid #F0F3F7;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    position: relative;
}

.dropdown-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(5, 115, 195, 0.08) 0%, transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 24px -8px rgba(255, 165, 5, 0.15),
        0 4px 8px -4px rgba(255, 165, 5, 0.1);
    border-color: #FFA505;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    text-decoration: none;
    color: inherit;
}

.dropdown-card:hover::before {
    opacity: 1;
}

.dropdown-card-image {
    display: none;
}

.dropdown-card:hover .dropdown-card-image {
    background: linear-gradient(135deg, #EBF4FF 0%, #F5F7FA 100%);
}

.dropdown-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.32, 1);
}

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

.dropdown-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.03) 0%, transparent 100%);
    pointer-events: none;
}

.dropdown-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: #0573C3;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.dropdown-card-content {
    padding: 20px 0;
    position: relative;
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF7ED 100%);
    border-radius: 16px;
}

.dropdown-card-category {
    color: #0573C3;
    font-size: 11px;
    font-weight: 600;
    margin: 16px 20px 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dropdown-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 0 20px 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.dropdown-card:hover .dropdown-card-title {
    color: #FFA505;
}

.dropdown-card-description {
    color: #737373;
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 20px;
    padding: 12px 0 20px;
    border-top: 1px solid #F8F9FB;
}

.dropdown-footer {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #F0F3F7;
    position: relative;
}

.dropdown-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 2px;
    background: #FFA505;
}

.dropdown-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #FFA505;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.32, 1);
    box-shadow: 0 4px 12px rgba(5, 115, 195, 0.2);
    letter-spacing: 0.01em;
}

.dropdown-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 115, 195, 0.3);
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #3498DB 0%, #0573C3 100%);
}

.dropdown-view-all svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.dropdown-view-all:hover svg {
    transform: translateX(4px);
}

/* ===== Tree Dropdown Menu (Clean Professional Style) ===== */
.nav-dropdown-tree {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    transform: translateY(-8px);
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    min-width: 240px;
    padding: 10px 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-item:hover > .nav-dropdown-tree,
.nav-item:focus-within > .nav-dropdown-tree,
.nav-dropdown-tree:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tree-level1-item {
    position: relative;
    margin: 0;
}

.tree-level1-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.3s ease;
    white-space: nowrap;
    border-radius: 0;
    letter-spacing: -0.01em;
    position: relative;
}

.tree-level1-link:hover {
    background: #dbeafe;
    color: #1e293b;
    box-shadow: inset 3px 0 0 #0573C3;
}

.tree-level1-link .arrow-right {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.tree-level1-item:hover > .tree-level1-link .arrow-right {
    transform: translateX(3px);
    color: #1e293b;
}

.tree-level2-wrap {
    position: absolute;
    top: -10px;
    left: calc(100% + 4px);
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    min-width: 200px;
    padding: 10px 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tree-level1-item:hover > .tree-level2-wrap {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.tree-level2-link {
    display: flex;
    align-items: center;
    padding: 8px 14px 8px 16px;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.3s ease;
    white-space: nowrap;
    border-radius: 0;
    position: relative;
    letter-spacing: -0.01em;
}

.tree-level2-link:hover {
    background: #ffedd5;
    color: #1e293b;
    box-shadow: inset 3px 0 0 #E67E22;
}

/* 产品栏目平铺分组样式 */
.tree-group {
    padding: 6px 4px;
}
.tree-group + .tree-group {
    border-top: 1px solid #F1F5F9;
    margin-top: 4px;
    padding-top: 10px;
}
.tree-group-title {
    padding: 6px 14px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.02em;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tree-group-title-link {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tree-group-title-link:hover {
    color: #0573C3;
    background: rgba(5, 115, 195, 0.06);
    border-radius: 4px;
}
.tree-group-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 12px;
    background: #94a3b8;
    border-radius: 2px;
    flex-shrink: 0;
}
.tree-group-items {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.tree-flat-item {
    padding-left: 23px !important;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* header-nav 保持自然宽度，不裁切 */

.header-action-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #DDE4ED;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #525252;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF7ED 100%);
    position: relative;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.header-action-btn.icon-only {
    width: 40px;
    padding: 0;
}

.header-action-btn span {
    display: inline-block;
}

.header-action-btn:hover {
    background: none;
    border-color: rgba(255, 165, 5, 0.3);
    color: #0573C3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 115, 195, 0.08);
}

.header-action-btn svg {
    width: 18px;
    height: 18px;
    transition: all 0.2s ease;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #0573C3 0%, #3498DB 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(5, 115, 195, 0.4);
    border: 2px solid #ffffff;
}

/* User Account - Logged In */
.header-action-btn.user-logged-in {
    padding: 0 12px 0 6px;
    gap: 8px;
    background: linear-gradient(135deg, #FFF8F0 0%, #FFF0E0 100%);
    border-color: rgba(255, 165, 5, 0.25);
    color: #E67E22;
}

.header-action-btn.user-logged-in:hover {
    background: linear-gradient(135deg, #FFF0E0 0%, #FFE8D0 100%);
    border-color: rgba(255, 165, 5, 0.5);
    color: #D35400;
    box-shadow: 0 4px 16px rgba(230, 126, 34, 0.15);
}

/* Admin logged-in style */
.header-action-btn.admin-logged-in {
    background: linear-gradient(135deg, #EBF6FF 0%, #D9EDFF 100%);
    border-color: rgba(5, 115, 195, 0.2);
    color: #0573C3;
}
.header-action-btn.admin-logged-in:hover {
    background: linear-gradient(135deg, #D9EDFF 0%, #C5E4FF 100%);
    border-color: rgba(5, 115, 195, 0.4);
    color: #045691;
    box-shadow: 0 4px 16px rgba(5, 115, 195, 0.12);
}

/* User dropdown menu */
.user-dropdown-wrap:hover .user-dropdown-menu,
.user-dropdown-wrap .user-dropdown-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}
.user-dropdown-menu a:hover {
    background: #F8FAFC !important;
}
.user-dropdown-menu a:last-child:hover {
    background: #EFF7FF !important;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.user-name {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    font-size: 13px;
}

/* User Account - Not Logged In */
.header-action-btn.user-not-logged-in {
    color: #999999;
    background: linear-gradient(135deg, #F8F9FA 0%, #F0F1F2 100%);
    border-color: #E0E0E0;
}

.header-action-btn.user-not-logged-in:hover {
    color: #666666;
    border-color: #CCCCCC;
    background: linear-gradient(135deg, #F0F1F2 0%, #E8E9EA 100%);
}

.user-icon-gray {
    stroke: #AAAAAA;
    transition: stroke 0.2s ease;
}

.header-action-btn.user-not-logged-in:hover .user-icon-gray {
    stroke: #777777;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: #F5F7FA;
    border: 1px solid #DDE4ED;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    color: #525252;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle:hover {
    background: none;
    border-color: rgba(255, 165, 5, 0.3);
    color: #0573C3;
    transform: scale(1.05);
}

.mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* Mobile Menu - Fixed Blue Background */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF7ED 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    z-index: 999;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
    position: relative;
}

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

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-link {
    display: block;
    padding: 14px 20px;
    color: #1A1A1A;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
    line-height: 1.5;
    font-size: 14.5px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #0573C3;
    background: none;
    border-color: rgba(5, 115, 195, 0.08);
    transform: translateX(4px);
    text-decoration: none;
}

/* 移动端分组标题 */
.mobile-group-title {
    padding: 12px 20px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mobile-group-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 12px;
    background: #94a3b8;
    border-radius: 2px;
    flex-shrink: 0;
}
.mobile-group-title-link {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding-right: 20px;
}
.mobile-group-title-link:hover {
    color: #0573C3;
    background: rgba(5, 115, 195, 0.04);
}

/* 二级菜单样式 - Mobile */
.mobile-submenu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF7ED 100%);
    z-index: 10;
    overflow-y: auto;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.submenu-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #F5F7FA;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 11;
}

.submenu-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1A1A1A;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.02);
}

.submenu-back:hover {
    background: none;
    color: #0573C3;
    transform: translateX(-4px);
    text-decoration: none;
}

.submenu-back svg {
    flex-shrink: 0;
}

.submenu-title {
    flex: 1;
    text-align: center;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 16px;
    margin-right: 80px;
}

.submenu-list {
    padding: 16px;
}

.mobile-nav-link.has-submenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arrow-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 32px;
    }
    
    .header-nav {
        margin: 0 12px;
    }
    
    .nav-menu {
        gap: 2px;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 13.5px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .dropdown-content {
        padding: 40px 32px;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 64px;
        padding: 0 20px;
    }

    .header-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-actions {
        gap: 8px;
    }

    .header-action-btn {
        width: 36px;
        height: 36px;
    }

    .header-logo {
        font-size: 1.25rem;
    }

    .header-logo-icon {
        height: 38px;
    }
    
    .header-logo-icon img {
        height: 100%;
        width: auto;
    }

    .nav-dropdown {
        display: none !important;
    }
    
    .mobile-menu {
        max-height: calc(100vh - 64px);
    }
}

@media (max-width: 480px) {
    .header-container {
        height: 56px;
        padding: 0 16px;
    }

    .header-logo {
        font-size: 1.125rem;
        gap: 10px;
    }

    .header-logo-icon {
        height: 34px;
    }
    
    .header-logo-icon img {
        height: 100%;
        width: auto;
    }

    .header-action-btn {
        width: 32px;
        height: 32px;
    }

    .header-action-btn svg {
        width: 16px;
        height: 16px;
    }

    .header-action-btn.user-logged-in {
        padding: 0 8px 0 4px;
        gap: 4px;
    }

    .user-avatar {
        width: 24px;
        height: 24px;
    }

    .user-name {
        max-width: 60px;
        font-size: 12px;
    }

    .mobile-menu {
        max-height: calc(100vh - 56px);
    }
}

/* 搜索表单样式 */
.search-form-inline {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    background: #F5F7FA;
    border-radius: 25px;
    border: 2px solid #DDE4ED;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-form-inline:hover,
.search-form-inline:focus-within {
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF7ED 100%);
    border-color: #C5CDD8;
    box-shadow: 0 0 0 3px rgba(5, 115, 195, 0.08);
}

.search-input-inline {
    width: 160px;
    height: 40px;
    border: none;
    border-radius: 25px;
    padding: 0 20px;
    background: transparent;
    color: #1a1a1a;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-input-inline::placeholder {
    color: #a3a3a3;
}

.search-input-inline:focus {
    background: transparent;
}

.search-btn-inline {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: #DDE4ED;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #525252;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 2px;
}

.search-btn-inline:hover {
    background: #C5CDD8;
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-form-inline {
        display: none;
    }

    .header-actions {
        flex-shrink: 0;
        gap: 6px;
    }

    .header-action-btn.user-not-logged-in span {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 4px;
    }

    .header-action-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
    }

    .header-action-btn.icon-only {
        width: 32px;
        padding: 0;
    }

    .header-action-btn svg {
        width: 16px;
        height: 16px;
    }
}


/* ============================================================
   🎨 品牌色变量（来自 Logo 色彩提取）
   - 蓝色 #0573C3 (89.6%) → 品牌主色，专业、科技、可靠
   - 橙色 #FFA505 (10.3%) → 品牌强调色，能量、活力、行动
   ============================================================ */

/* ===== Clean Dropdown Transitions ===== */

/* Nav link hover - clean, no text shadow */
.nav-link:not(.active):hover {
    text-shadow: none;
}

/* Dropdown tree - simple fade down, no stagger */
.nav-dropdown-tree {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-8px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.nav-item:hover > .nav-dropdown-tree,
.nav-item:focus-within > .nav-dropdown-tree,
.nav-dropdown-tree:hover {
    transform: translateY(0) !important;
}

/* Tree level2 - simple slide in */
.tree-level2-wrap {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    transform: translateX(-6px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.tree-level1-item:hover > .tree-level2-wrap {
    transform: translateX(0) !important;
}

/* Mega dropdown - simple fade */
.nav-dropdown {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Nav active link - clean underline, no glow */
.nav-link.active::after {
    box-shadow: none;
}

/* Header scrolled - simple border */
.modern-header.scrolled {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
.modern-header.scrolled::after {
    display: none;
}

/* ===== Scroll Animation Classes ===== */
.scroll-fade-up,
.scroll-fade-left,
.scroll-fade-right,
.scroll-scale {
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.32, 1), transform 0.9s cubic-bezier(0.16, 1, 0.32, 1);
    will-change: opacity, transform;
}
.scroll-fade-up { transform: translateY(36px); }
.scroll-fade-left { transform: translateX(-30px); }
.scroll-fade-right { transform: translateX(30px); }
.scroll-scale { transform: scale(0.94); }

.scroll-fade-up.visible,
.scroll-fade-left.visible,
.scroll-fade-right.visible,
.scroll-scale.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.scroll-delay-1 { transition-delay: 0.08s; }
.scroll-delay-2 { transition-delay: 0.16s; }
.scroll-delay-3 { transition-delay: 0.24s; }
.scroll-delay-4 { transition-delay: 0.32s; }

/* Hero parallax */
.idx-hero-bg {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-fade-up, .scroll-fade-left, .scroll-fade-right, .scroll-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .nav-dropdown-tree, .tree-level2-wrap, .nav-dropdown {
        transition: none !important;
    }
}

/* ===== FORCE COLOR OVERRIDE 007 ===== */
.nav-dropdown{background:linear-gradient(180deg,#F0F6FF,#E8F2FF)!important}
.dropdown-card,.nav-dropdown .dropdown-card{background:linear-gradient(135deg,#FFFBF5,#FFF7ED)!important;border:1px solid #FED7AA!important}
.dropdown-card:hover,.nav-dropdown .dropdown-card:hover{background:linear-gradient(135deg,#FFF7ED,#FFEDD5)!important;border-color:#FFA505!important;box-shadow:0 12px 24px -8px rgba(255,165,5,.2)!important}
.dropdown-card:hover .dropdown-card-title{color:#FFA505!important}
.dropdown-card-image{display:none!important}
.dropdown-card-content{background:transparent!important}
/* ===== END ===== */
</style>

<!-- Modern Navigation Header -->
<header class="modern-header" id="modernHeader">
    <div class="header-container">
        <!-- Logo -->
        <a href="/" class="header-logo">
            <div class="header-logo-icon">
                <img src="/uploads/allimg/20250929/1-2509291S3311O.png" alt="英达森斯半导体" class="img-responsive"/>
            </div>
            <span class="header-logo-text">英达森斯半导体</span>
        </a>

        <!-- Desktop Navigation -->
        <nav class="header-nav" aria-label="主导航">
            <ul class="nav-menu">
                                <li class="nav-item has-dropdown" aria-haspopup="true">
                                            <a href="/index.php?m=home&c=Lists&a=index&tid=70" class="nav-link">产品</a>
                                                <div class="nav-dropdown-tree">
                                                        <div class="tree-level1-item tree-group">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=70" class="tree-group-title tree-group-title-link">
                                    <span>电感式编码器芯片</span>
                                </a>
                                <div class="tree-group-items">
                                                                        <a href="/index.php?m=home&c=Lists&a=index&tid=71" class="tree-level2-link tree-flat-item">模拟输出芯片</a>
                                                                        <a href="/index.php?m=home&c=Lists&a=index&tid=72" class="tree-level2-link tree-flat-item">数字输出芯片</a>
                                                                        <a href="/index.php?m=home&c=Lists&a=index&tid=22" class="tree-level2-link tree-flat-item">混合信号输出</a>
                                                                    </div>
                            </div>
                                                    </div>
                                    </li>
                                <li class="nav-item has-dropdown" aria-haspopup="true">
                                            <a href="/index.php?m=home&c=Lists&a=index&tid=4" class="nav-link">应用</a>
                                                <div class="nav-dropdown-tree">
                                                        <div class="tree-level1-item">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=98" class="tree-level1-link">
                                    <span>工业自动化</span>
                                                                        <svg class="arrow-right" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 18l6-6-6-6"/></svg>
                                                                    </a>
                                                                <div class="tree-level2-wrap">
                                                                        <a href="/index.php?m=home&c=Lists&a=index&tid=64" class="tree-level2-link">伺服与自动化</a>
                                                                        <a href="/index.php?m=home&c=Lists&a=index&tid=91" class="tree-level2-link">精密量具与仪器</a>
                                                                        <a href="/index.php?m=home&c=Lists&a=index&tid=92" class="tree-level2-link">智能仪表与计量</a>
                                                                    </div>
                                                            </div>
                                                        <div class="tree-level1-item">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=99" class="tree-level1-link">
                                    <span>具身智能与机器人</span>
                                                                        <svg class="arrow-right" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 18l6-6-6-6"/></svg>
                                                                    </a>
                                                                <div class="tree-level2-wrap">
                                                                        <a href="/index.php?m=home&c=Lists&a=index&tid=17" class="tree-level2-link">机器人</a>
                                                                    </div>
                                                            </div>
                                                        <div class="tree-level1-item">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=100" class="tree-level1-link">
                                    <span>汽车电子与线控底盘</span>
                                                                        <svg class="arrow-right" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 18l6-6-6-6"/></svg>
                                                                    </a>
                                                                <div class="tree-level2-wrap">
                                                                        <a href="/index.php?m=home&c=Lists&a=index&tid=66" class="tree-level2-link">汽车电子</a>
                                                                    </div>
                                                            </div>
                                                        <div class="tree-level1-item">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=101" class="tree-level1-link">
                                    <span>新能源与高端装备</span>
                                                                        <svg class="arrow-right" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 18l6-6-6-6"/></svg>
                                                                    </a>
                                                                <div class="tree-level2-wrap">
                                                                        <a href="/index.php?m=home&c=Lists&a=index&tid=94" class="tree-level2-link">航空航天与国防</a>
                                                                        <a href="/index.php?m=home&c=Lists&a=index&tid=97" class="tree-level2-link">能源与重型装备</a>
                                                                    </div>
                                                            </div>
                                                        <div class="tree-level1-item">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=102" class="tree-level1-link">
                                    <span>智慧医疗与智能生活</span>
                                                                        <svg class="arrow-right" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 18l6-6-6-6"/></svg>
                                                                    </a>
                                                                <div class="tree-level2-wrap">
                                                                        <a href="/index.php?m=home&c=Lists&a=index&tid=93" class="tree-level2-link">医疗器械</a>
                                                                        <a href="/index.php?m=home&c=Lists&a=index&tid=95" class="tree-level2-link">智能楼宇与电梯</a>
                                                                        <a href="/index.php?m=home&c=Lists&a=index&tid=96" class="tree-level2-link">消费电子与智能硬件</a>
                                                                    </div>
                                                            </div>
                                                    </div>
                                    </li>
                                <li class="nav-item has-dropdown" aria-haspopup="true">
                                            <a href="/index.php?m=home&c=Lists&a=index&tid=31" class="nav-link">设计与开发</a>
                                                <div class="nav-dropdown-tree">
                                                        <div class="tree-level1-item">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=78" class="tree-level1-link">
                                    <span>评测套件</span>
                                                                        <svg class="arrow-right" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 18l6-6-6-6"/></svg>
                                                                    </a>
                                                                <div class="tree-level2-wrap">
                                                                        <a href="/index.php?m=home&c=Lists&a=index&tid=83" class="tree-level2-link">信号模拟测试输入平台</a>
                                                                    </div>
                                                            </div>
                                                        <div class="tree-level1-item">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=79" class="tree-level1-link">
                                    <span>开发工具</span>
                                                                        <svg class="arrow-right" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 18l6-6-6-6"/></svg>
                                                                    </a>
                                                                <div class="tree-level2-wrap">
                                                                        <a href="/index.php?m=home&c=Lists&a=index&tid=80" class="tree-level2-link">芯片配置工具（ICS）</a>
                                                                        <a href="/index.php?m=home&c=Lists&a=index&tid=81" class="tree-level2-link">芯片编程工具（IPS）</a>
                                                                    </div>
                                                            </div>
                                                        <div class="tree-level1-item">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=82" class="tree-level1-link">
                                    <span>参考设计</span>
                                                                    </a>
                                                            </div>
                                                        <div class="tree-level1-item">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=5" class="tree-level1-link">
                                    <span>算法赋能（AI）</span>
                                                                    </a>
                                                            </div>
                                                        <div class="tree-level1-item">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=32" class="tree-level1-link">
                                    <span>iCoil Studio PCB线圈设计平台</span>
                                                                    </a>
                                                            </div>
                                                    </div>
                                    </li>
                                <li class="nav-item has-dropdown" aria-haspopup="true">
                                            <a href="/index.php?m=home&c=Lists&a=index&tid=19" class="nav-link">电感式编码器百科</a>
                                        </li>
                                <li class="nav-item has-dropdown" aria-haspopup="true">
                                            <a href="/index.php?m=home&c=Lists&a=index&tid=2" class="nav-link">新闻中心</a>
                                                <div class="nav-dropdown-tree">
                                                        <div class="tree-level1-item">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=10" class="tree-level1-link">
                                    <span>公司动态</span>
                                                                    </a>
                                                            </div>
                                                        <div class="tree-level1-item">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=11" class="tree-level1-link">
                                    <span>行业资讯</span>
                                                                    </a>
                                                            </div>
                                                    </div>
                                    </li>
                                <li class="nav-item has-dropdown" aria-haspopup="true">
                                            <a href="/index.php?m=home&c=Lists&a=index&tid=73" class="nav-link">支持与服务</a>
                                                <div class="nav-dropdown-tree">
                                                        <div class="tree-level1-item">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=74" class="tree-level1-link">
                                    <span>文档中心</span>
                                                                    </a>
                                                            </div>
                                                        <div class="tree-level1-item">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=75" class="tree-level1-link">
                                    <span>工具下载</span>
                                                                    </a>
                                                            </div>
                                                        <div class="tree-level1-item">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=76" class="tree-level1-link">
                                    <span>技术支持</span>
                                                                    </a>
                                                            </div>
                                                        <div class="tree-level1-item">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=77" class="tree-level1-link">
                                    <span>常见问题</span>
                                                                    </a>
                                                            </div>
                                                        <div class="tree-level1-item">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=103" class="tree-level1-link">
                                    <span>视频专区</span>
                                                                    </a>
                                                            </div>
                                                    </div>
                                    </li>
                                <li class="nav-item has-dropdown" aria-haspopup="true">
                                            <a href="/index.php?m=home&c=Lists&a=index&tid=1" class="nav-link">关于英达森斯</a>
                                                <div class="nav-dropdown-tree">
                                                        <div class="tree-level1-item">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=8" class="tree-level1-link">
                                    <span>公司简介</span>
                                                                    </a>
                                                            </div>
                                                        <div class="tree-level1-item">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=9" class="tree-level1-link">
                                    <span>简历投递</span>
                                                                    </a>
                                                            </div>
                                                        <div class="tree-level1-item">
                                <a href="/index.php?m=home&c=Lists&a=index&tid=30" class="tree-level1-link">
                                    <span>联系我们</span>
                                                                    </a>
                                                            </div>
                                                    </div>
                                    </li>
                            </ul>
        </nav>

        <!-- Header Actions -->
        <div class="header-actions">
                        <form method="get" action="/index.php?m=home&c=Search&a=lists" id="searchForm" class="search-form-inline" role="search">
                <input name="keywords" id="keywords" type="text" class="search-input-inline" placeholder="搜索">
                <input type="hidden" name="m" value="home" /><input type="hidden" name="c" value="Search" /><input type="hidden" name="a" value="lists" /><input type="hidden" name="method" value="1" />                <button type="submit" class="header-action-btn icon-only search-btn-inline" title="搜索" aria-label="搜索">
                    <svg viewBox="0 0 24 24" fill="none">
                        <circle cx="11" cy="11" r="8" stroke="currentColor" stroke-width="2"/>
                        <path d="m21 21-4.35-4.35" stroke="currentColor" stroke-width="2"/>
                    </svg>
                </button>
            </form>
            
            <!-- Cart Icon -->
            <a href="/index.php?m=user&c=Shop&a=shop_cart_list" class="header-action-btn icon-only" title="购物车">
                <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                    <circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/>
                    <path d="M1 1h4l2.68 13.39a2 2 0 002 1.61h9.72a2 2 0 002-1.61L23 6H6"/>
                </svg>
                <span class="cart-badge" id="cartBadge" style="display:none;">0</span>
            </a>

            <!-- User Account -->
                        <a href="/index.php?m=user&c=Users&a=login" class="header-action-btn user-not-logged-in" title="登录/注册">
                <svg class="user-icon-gray" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
                    <circle cx="12" cy="8" r="4"/>
                    <path d="M20 21a8 8 0 10-16 0"/>
                </svg>
                <span>登录</span>
            </a>
            
            <!-- Mobile Menu Toggle -->
            <button class="mobile-menu-toggle" id="mobileMenuToggle" aria-expanded="false" aria-label="菜单" type="button">
                <svg viewBox="0 0 24 24" fill="none">
                    <line x1="3" y1="6" x2="21" y2="6" stroke="currentColor" stroke-width="2"/>
                    <line x1="3" y1="12" x2="21" y2="12" stroke="currentColor" stroke-width="2"/>
                    <line x1="3" y1="18" x2="21" y2="18" stroke="currentColor" stroke-width="2"/>
                </svg>
            </button>
        </div>
    </div>

    <!-- Mobile Menu -->
    <div class="mobile-menu" id="mobileMenu">
        <!-- 一级菜单 -->
        <ul class="mobile-nav-menu" id="mobileMenuLevel1">
            <li><a href="/" class="mobile-nav-link">首页</a></li>
                        <li>
                                    <a href="javascript:void(0);" class="mobile-nav-link has-submenu" data-typeid="3" data-typename="产品">
                        产品                        <svg class="arrow-icon" viewBox="0 0 24 24" fill="none" style="width: 16px; height: 16px; float: right; margin-top: 8px;">
                            <path d="M9 18l6-6-6-6" stroke="currentColor" stroke-width="2"/>
                        </svg>
                    </a>
                            </li>
                        <li>
                                    <a href="javascript:void(0);" class="mobile-nav-link has-submenu" data-typeid="4" data-typename="应用">
                        应用                        <svg class="arrow-icon" viewBox="0 0 24 24" fill="none" style="width: 16px; height: 16px; float: right; margin-top: 8px;">
                            <path d="M9 18l6-6-6-6" stroke="currentColor" stroke-width="2"/>
                        </svg>
                    </a>
                            </li>
                        <li>
                                    <a href="javascript:void(0);" class="mobile-nav-link has-submenu" data-typeid="31" data-typename="设计与开发">
                        设计与开发                        <svg class="arrow-icon" viewBox="0 0 24 24" fill="none" style="width: 16px; height: 16px; float: right; margin-top: 8px;">
                            <path d="M9 18l6-6-6-6" stroke="currentColor" stroke-width="2"/>
                        </svg>
                    </a>
                            </li>
                        <li>
                                    <a href="/index.php?m=home&c=Lists&a=index&tid=19" class="mobile-nav-link">电感式编码器百科</a>
                            </li>
                        <li>
                                    <a href="javascript:void(0);" class="mobile-nav-link has-submenu" data-typeid="2" data-typename="新闻中心">
                        新闻中心                        <svg class="arrow-icon" viewBox="0 0 24 24" fill="none" style="width: 16px; height: 16px; float: right; margin-top: 8px;">
                            <path d="M9 18l6-6-6-6" stroke="currentColor" stroke-width="2"/>
                        </svg>
                    </a>
                            </li>
                        <li>
                                    <a href="javascript:void(0);" class="mobile-nav-link has-submenu" data-typeid="73" data-typename="支持与服务">
                        支持与服务                        <svg class="arrow-icon" viewBox="0 0 24 24" fill="none" style="width: 16px; height: 16px; float: right; margin-top: 8px;">
                            <path d="M9 18l6-6-6-6" stroke="currentColor" stroke-width="2"/>
                        </svg>
                    </a>
                            </li>
                        <li>
                                    <a href="javascript:void(0);" class="mobile-nav-link has-submenu" data-typeid="1" data-typename="关于英达森斯">
                        关于英达森斯                        <svg class="arrow-icon" viewBox="0 0 24 24" fill="none" style="width: 16px; height: 16px; float: right; margin-top: 8px;">
                            <path d="M9 18l6-6-6-6" stroke="currentColor" stroke-width="2"/>
                        </svg>
                    </a>
                            </li>
                    </ul>

                <div class="mobile-submenu" id="submenu-3" style="display: none;">
            <div class="submenu-header">
                <a href="javascript:void(0);" class="submenu-back">
                    <svg viewBox="0 0 24 24" fill="none" style="width: 20px; height: 20px;">
                        <path d="M15 18l-6-6 6-6" stroke="currentColor" stroke-width="2"/>
                    </svg>
                    返回
                </a>
                <span class="submenu-title">产品</span>
            </div>
            <ul class="mobile-nav-menu submenu-list">
                                    <!-- 产品栏目：分组标题 + 直接显示子分类 -->
                    <li><a href="/index.php?m=home&c=Lists&a=index&tid=70" class="mobile-group-title mobile-group-title-link">电感式编码器芯片</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=71" class="mobile-nav-link" style="padding-left: 40px; font-size: 13px;">模拟输出芯片</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=72" class="mobile-nav-link" style="padding-left: 40px; font-size: 13px;">数字输出芯片</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=22" class="mobile-nav-link" style="padding-left: 40px; font-size: 13px;">混合信号输出</a></li>
                                </ul>
        </div>
                <div class="mobile-submenu" id="submenu-4" style="display: none;">
            <div class="submenu-header">
                <a href="javascript:void(0);" class="submenu-back">
                    <svg viewBox="0 0 24 24" fill="none" style="width: 20px; height: 20px;">
                        <path d="M15 18l-6-6 6-6" stroke="currentColor" stroke-width="2"/>
                    </svg>
                    返回
                </a>
                <span class="submenu-title">应用</span>
            </div>
            <ul class="mobile-nav-menu submenu-list">
                                    <li><a href="/index.php?m=home&c=Lists&a=index&tid=98" class="mobile-nav-link">工业自动化</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=64" class="mobile-nav-link" style="padding-left: 40px; font-size: 13px;">- 伺服与自动化</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=91" class="mobile-nav-link" style="padding-left: 40px; font-size: 13px;">- 精密量具与仪器</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=92" class="mobile-nav-link" style="padding-left: 40px; font-size: 13px;">- 智能仪表与计量</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=99" class="mobile-nav-link">具身智能与机器人</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=17" class="mobile-nav-link" style="padding-left: 40px; font-size: 13px;">- 机器人</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=100" class="mobile-nav-link">汽车电子与线控底盘</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=66" class="mobile-nav-link" style="padding-left: 40px; font-size: 13px;">- 汽车电子</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=101" class="mobile-nav-link">新能源与高端装备</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=94" class="mobile-nav-link" style="padding-left: 40px; font-size: 13px;">- 航空航天与国防</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=97" class="mobile-nav-link" style="padding-left: 40px; font-size: 13px;">- 能源与重型装备</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=102" class="mobile-nav-link">智慧医疗与智能生活</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=93" class="mobile-nav-link" style="padding-left: 40px; font-size: 13px;">- 医疗器械</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=95" class="mobile-nav-link" style="padding-left: 40px; font-size: 13px;">- 智能楼宇与电梯</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=96" class="mobile-nav-link" style="padding-left: 40px; font-size: 13px;">- 消费电子与智能硬件</a></li>
                                </ul>
        </div>
                <div class="mobile-submenu" id="submenu-31" style="display: none;">
            <div class="submenu-header">
                <a href="javascript:void(0);" class="submenu-back">
                    <svg viewBox="0 0 24 24" fill="none" style="width: 20px; height: 20px;">
                        <path d="M15 18l-6-6 6-6" stroke="currentColor" stroke-width="2"/>
                    </svg>
                    返回
                </a>
                <span class="submenu-title">设计与开发</span>
            </div>
            <ul class="mobile-nav-menu submenu-list">
                                    <li><a href="/index.php?m=home&c=Lists&a=index&tid=78" class="mobile-nav-link">评测套件</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=83" class="mobile-nav-link" style="padding-left: 40px; font-size: 13px;">- 信号模拟测试输入平台</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=79" class="mobile-nav-link">开发工具</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=80" class="mobile-nav-link" style="padding-left: 40px; font-size: 13px;">- 芯片配置工具（ICS）</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=81" class="mobile-nav-link" style="padding-left: 40px; font-size: 13px;">- 芯片编程工具（IPS）</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=82" class="mobile-nav-link">参考设计</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=5" class="mobile-nav-link">算法赋能（AI）</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=32" class="mobile-nav-link">iCoil Studio PCB线圈设计平台</a></li>
                                </ul>
        </div>
                <div class="mobile-submenu" id="submenu-2" style="display: none;">
            <div class="submenu-header">
                <a href="javascript:void(0);" class="submenu-back">
                    <svg viewBox="0 0 24 24" fill="none" style="width: 20px; height: 20px;">
                        <path d="M15 18l-6-6 6-6" stroke="currentColor" stroke-width="2"/>
                    </svg>
                    返回
                </a>
                <span class="submenu-title">新闻中心</span>
            </div>
            <ul class="mobile-nav-menu submenu-list">
                                    <li><a href="/index.php?m=home&c=Lists&a=index&tid=10" class="mobile-nav-link">公司动态</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=11" class="mobile-nav-link">行业资讯</a></li>
                                </ul>
        </div>
                <div class="mobile-submenu" id="submenu-73" style="display: none;">
            <div class="submenu-header">
                <a href="javascript:void(0);" class="submenu-back">
                    <svg viewBox="0 0 24 24" fill="none" style="width: 20px; height: 20px;">
                        <path d="M15 18l-6-6 6-6" stroke="currentColor" stroke-width="2"/>
                    </svg>
                    返回
                </a>
                <span class="submenu-title">支持与服务</span>
            </div>
            <ul class="mobile-nav-menu submenu-list">
                                    <li><a href="/index.php?m=home&c=Lists&a=index&tid=74" class="mobile-nav-link">文档中心</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=75" class="mobile-nav-link">工具下载</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=76" class="mobile-nav-link">技术支持</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=77" class="mobile-nav-link">常见问题</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=103" class="mobile-nav-link">视频专区</a></li>
                                </ul>
        </div>
                <div class="mobile-submenu" id="submenu-1" style="display: none;">
            <div class="submenu-header">
                <a href="javascript:void(0);" class="submenu-back">
                    <svg viewBox="0 0 24 24" fill="none" style="width: 20px; height: 20px;">
                        <path d="M15 18l-6-6 6-6" stroke="currentColor" stroke-width="2"/>
                    </svg>
                    返回
                </a>
                <span class="submenu-title">关于英达森斯</span>
            </div>
            <ul class="mobile-nav-menu submenu-list">
                                    <li><a href="/index.php?m=home&c=Lists&a=index&tid=8" class="mobile-nav-link">公司简介</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=9" class="mobile-nav-link">简历投递</a></li>
                                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=30" class="mobile-nav-link">联系我们</a></li>
                                </ul>
        </div>
            </div>
</header>

<script>
// Modern Header JavaScript
document.addEventListener('DOMContentLoaded', function() {
    // Fix nav highlighting - use setTimeout to ensure dropdown items are rendered
    setTimeout(function() {
        var navLinks = document.querySelectorAll('.nav-menu .nav-link');
        navLinks.forEach(function(link) { link.classList.remove('active'); });
        var currentUrl = window.location.href;
        var tidMatch = currentUrl.match(/[?&]tid=(\d+)/);
        var aidMatch = currentUrl.match(/[?&]aid=(\d+)/);
        var currentTid = tidMatch ? parseInt(tidMatch[1]) : 0;
        // 视频专区：伪静态 /video-zone 或播放控制器 /home/Video/ 均无 tid 参数
        if (!currentTid && /\/video-zone|\/home\/Video\/|[?&]c=Video(&|$)/i.test(currentUrl)) currentTid = 103;
        // If aid present (View page), get tid from breadcrumb
        if (!currentTid && aidMatch) {
            var typeLink = document.querySelector('.idx-hero-breadcrumb a:last-child, .breadcrumb a:last-child');
            if (typeLink) {
                var href = typeLink.getAttribute('href') || '';
                var m = href.match(/tid=(\d+)/);
                if (m) currentTid = parseInt(m[1]);
            }
        }
        if (currentTid > 0) {
            // First try direct match with top-level nav links
            var matched = false;
            navLinks.forEach(function(link) {
                if (matched) return;
                var href = link.getAttribute('href') || '';
                var m = href.match(/tid=(\d+)/);
                if (m && parseInt(m[1]) === currentTid) {
                    link.classList.add('active');
                    matched = true;
                }
            });
            // If no direct match, find in dropdown items and highlight parent nav
            if (!matched) {
                var dropdownLinks = document.querySelectorAll('.tree-level1-link, .tree-level2-link');
                dropdownLinks.forEach(function(dl) {
                    if (matched) return;
                    var href = dl.getAttribute('href') || '';
                    var m = href.match(/tid=(\d+)/);
                    if (m && parseInt(m[1]) === currentTid) {
                        var parentNavItem = dl.closest('.nav-item');
                        if (parentNavItem) {
                            var parentLink = parentNavItem.querySelector('.nav-link');
                            if (parentLink) {
                                parentLink.classList.add('active');
                                matched = true;
                            }
                        }
                    }
                });
            }
        }
    }, 100);

    const header = document.getElementById('modernHeader');
    const mobileMenuToggle = document.getElementById('mobileMenuToggle');
    const mobileMenu = document.getElementById('mobileMenu');

    // Header scroll effect
    let lastScrollTop = 0;
    window.addEventListener('scroll', function() {
        const scrollTop = window.pageYOffset || document.documentElement.scrollTop;

        if (scrollTop > 50) {
            header.classList.add('scrolled');
        } else {
            header.classList.remove('scrolled');
        }

        lastScrollTop = scrollTop;
    });

    // Mobile menu toggle
    mobileMenuToggle.addEventListener('click', function() {
        mobileMenu.classList.toggle('active');
        const isActive = mobileMenu.classList.contains('active');
        this.setAttribute('aria-expanded', isActive ? 'true' : 'false');

        // Toggle icon
        const icon = this.querySelector('svg');
        if (isActive) {
            icon.innerHTML = '<line x1="18" y1="6" x2="6" y2="18" stroke="currentColor" stroke-width="2"/><line x1="6" y1="6" x2="18" y2="18" stroke="currentColor" stroke-width="2"/>';
        } else {
            icon.innerHTML = '<line x1="3" y1="6" x2="21" y2="6" stroke="currentColor" stroke-width="2"/><line x1="3" y1="12" x2="21" y2="12" stroke="currentColor" stroke-width="2"/><line x1="3" y1="18" x2="21" y2="18" stroke="currentColor" stroke-width="2"/>';
        }
    });

    // Close mobile menu when clicking outside
    document.addEventListener('click', function(e) {
        if (!header.contains(e.target)) {
            mobileMenu.classList.remove('active');
            mobileMenuToggle.setAttribute('aria-expanded', 'false');
            const icon = mobileMenuToggle.querySelector('svg');
            icon.innerHTML = '<line x1="3" y1="6" x2="21" y2="6" stroke="currentColor" stroke-width="2"/><line x1="3" y1="12" x2="21" y2="12" stroke="currentColor" stroke-width="2"/><line x1="3" y1="18" x2="21" y2="18" stroke="currentColor" stroke-width="2"/>';
            
            // 关闭所有二级菜单
            document.querySelectorAll('.mobile-submenu').forEach(function(submenu) {
                submenu.style.display = 'none';
            });
        }
    });

    // 手机端二级菜单功能
    const submenuLinks = document.querySelectorAll('.mobile-nav-link.has-submenu');
    const submenuBacks = document.querySelectorAll('.submenu-back');

    // 点击有子菜单的一级菜单项
    submenuLinks.forEach(function(link) {
        link.addEventListener('click', function(e) {
            e.preventDefault();
            e.stopPropagation();
            
            const typeid = this.getAttribute('data-typeid');
            const submenu = document.getElementById('submenu-' + typeid);
            
            if (submenu) {
                // 隐藏所有其他二级菜单
                document.querySelectorAll('.mobile-submenu').forEach(function(menu) {
                    if (menu !== submenu) {
                        menu.style.display = 'none';
                    }
                });
                
                // 显示当前二级菜单
                submenu.style.display = 'block';
                
                // 添加滑入动画
                setTimeout(function() {
                    submenu.style.animation = 'slideInRight 0.3s ease';
                }, 10);
            }
        });
    });

    // 点击返回按钮
    submenuBacks.forEach(function(back) {
        back.addEventListener('click', function(e) {
            e.preventDefault();
            e.stopPropagation();
            
            const submenu = this.closest('.mobile-submenu');
            if (submenu) {
                // 添加滑出动画
                submenu.style.animation = 'slideOutRight 0.3s ease';
                
                // 动画结束后隐藏
                setTimeout(function() {
                    submenu.style.display = 'none';
                }, 300);
            }
        });
    });

    // 添加滑出动画
    const style = document.createElement('style');
    style.textContent = `
        @keyframes slideOutRight {
            from {
                transform: translateX(0);
            }
            to {
                transform: translateX(100%);
            }
        }
    `;
    document.head.appendChild(style);

    // Active link highlighting - 基于URL的tid参数
    (function() {
        // 获取当前页面的tid
        const urlParams = new URLSearchParams(window.location.search);
        let currentTid = urlParams.get('tid');
        // 视频专区：伪静态 /video-zone 或播放控制器 /home/Video/ 均无 tid 参数
        if (!currentTid && /\/video-zone|\/home\/Video\/|[?&]c=Video(&|$)/i.test(window.location.href)) currentTid = 103;
        
        // 获取所有导航链接
        const navLinks = document.querySelectorAll('.nav-link');
        
        // 先移除所有现有的active类（避免eyou:eq产生的active）
        navLinks.forEach(link => link.classList.remove('active'));
        
        // 定义顶级菜单tid映射（子分类tid -> 父级菜单tid）
        // 产品与服务(tid=3): 芯片(67+), 定制服务, 设计工具, 参考设计
        // 应用(tid=4): 机器人, 伺服与自动化, 汽车电子
        // 设计资源(tid=31): 文档&工具, 算法赋能, iCoil Studio
        // 关于英达森斯(tid=1): 公司简介, 新闻, 简历投递, 联系我们
        // 电感编码器百科(tid=19): 无子分类
        
        function getParentNavTid(tid) {
            tid = parseInt(tid);
            // 产品与服务子分类 -> 3 (67-72, 78-80)
            if ([67,68,69,70,71,72,78,79,80].includes(tid)) return '3';
            // 支持与服务 -> 73 (子栏目74-77 及视频专区103)
            if ([73,74,75,76,77,103].includes(tid)) return '73';
            // 应用子分类 -> 4
            if ([91,92,93,94,95,96,97,98,99,100].includes(tid)) return '4';
            // 设计资源子分类 -> 31
            if ([101,102,104,105,106,107,108,109,110].includes(tid)) return '31';
            // 关于英达森斯子分类 -> 1
            if ([111,112,113,114,115,116,117,118,119,120].includes(tid)) return '1';
            // 电感编码器百科 -> 19
            if (tid === 19) return '19';
            // 本身就是顶级菜单
            if ([1,3,4,19,31,73].includes(tid)) return String(tid);
            return null;
        }
        
        // 确定当前页面应该激活的顶级菜单tid
        const targetNavTid = currentTid ? getParentNavTid(currentTid) : null;
        
        // 为匹配的导航链接添加active类
        navLinks.forEach(link => {
            const linkHref = link.getAttribute('href') || '';
            const match = linkHref.match(/tid=(\d+)/);
            if (match && targetNavTid && match[1] === targetNavTid) {
                link.classList.add('active');
            }
        });
    })();

    // Dropdown menu functionality
    const dropdownItems = document.querySelectorAll('.has-dropdown');
    let dropdownTimeout;
    let activeDropdown = null;

    function showDropdown(dropdown) {
        // 隐藏其他下拉菜单
        if (activeDropdown && activeDropdown !== dropdown) {
            hideDropdown(activeDropdown);
        }
        
        clearTimeout(dropdownTimeout);
        dropdown.style.opacity = '1';
        dropdown.style.visibility = 'visible';
        dropdown.style.transform = 'translateY(0)';
        activeDropdown = dropdown;
    }

    function hideDropdown(dropdown) {
        dropdown.style.opacity = '0';
        dropdown.style.visibility = 'hidden';
        dropdown.style.transform = 'translateY(-10px)';
        if (activeDropdown === dropdown) {
            activeDropdown = null;
        }
    }

    dropdownItems.forEach(item => {
        const dropdown = item.querySelector('.nav-dropdown');
        if (!dropdown) return;

        // 创建一个更大的感应区域
        const hoverZone = document.createElement('div');
        hoverZone.style.cssText = `
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: -20px;
            z-index: 9999;
            pointer-events: none;
        `;
        item.style.position = 'relative';
        item.appendChild(hoverZone);

        item.addEventListener('mouseenter', function(e) {
            showDropdown(dropdown);
        });

        item.addEventListener('mouseleave', function(e) {
            // 检查鼠标是否移动到下拉菜单区域
            const rect = dropdown.getBoundingClientRect();
            const mouseX = e.clientX;
            const mouseY = e.clientY;
            
            // 如果鼠标在下拉菜单范围内或接近范围内，延迟隐藏
            if (mouseX >= rect.left - 50 && mouseX <= rect.right + 50 && 
                mouseY >= rect.top - 20 && mouseY <= rect.bottom + 20) {
                return;
            }
            
            dropdownTimeout = setTimeout(() => {
                hideDropdown(dropdown);
            }, 300);
        });

        // 下拉菜单本身的鼠标事件
        dropdown.addEventListener('mouseenter', function() {
            clearTimeout(dropdownTimeout);
            showDropdown(dropdown);
        });

        dropdown.addEventListener('mouseleave', function(e) {
            // 检查鼠标是否移回到父菜单项
            const parentRect = item.getBoundingClientRect();
            const mouseX = e.clientX;
            const mouseY = e.clientY;
            
            if (mouseX >= parentRect.left && mouseX <= parentRect.right && 
                mouseY >= parentRect.top && mouseY <= parentRect.bottom) {
                return;
            }
            
            dropdownTimeout = setTimeout(() => {
                hideDropdown(dropdown);
            }, 300);
        });
    });

    // 点击其他地方隐藏下拉菜单
    document.addEventListener('click', function(e) {
        if (activeDropdown && !e.target.closest('.has-dropdown')) {
            hideDropdown(activeDropdown);
        }
    });

    // ===== Scroll Animation System =====
    (function() {
        // Auto-apply animation classes to common elements
        // NOTE: .dv-content-card and .dv-header removed — article detail content
        // must be visible immediately; tall content can fail the 0.08 intersection
        // threshold, causing "gray blank" on articles like aid=351/350/349.
        var selectors = [
            '.dropdown-card', '.category-card', '.app-card', '.news-card',
            '.product-card', '.feature-card', '.info-card',
            '.section-title', '.section-header', '.section-desc',
            '.hero-content', '.idx-hero-content'
        ];

        selectors.forEach(function(sel) {
            document.querySelectorAll(sel).forEach(function(el, i) {
                // Skip elements inside article body to prevent content disappearing
                if (el.closest('.dv-body')) return;
                if (el.classList.contains('scroll-fade-up')) return;
                el.classList.add('scroll-fade-up');
                // Add stagger delay based on position within parent
                var siblings = el.parentElement ? Array.from(el.parentElement.children).filter(function(c) { return c.classList.contains('scroll-fade-up'); }) : [];
                var idx = siblings.indexOf(el);
                if (idx >= 0 && idx < 4) {
                    el.classList.add('scroll-delay-' + (idx + 1));
                }
            });
        });

        // Intersection Observer for scroll animations
        if ('IntersectionObserver' in window) {
            var observer = new IntersectionObserver(function(entries) {
                entries.forEach(function(entry) {
                    if (entry.isIntersecting) {
                        entry.target.classList.add('visible');
                        observer.unobserve(entry.target);
                    }
                });
            }, {
                threshold: 0.08,
                rootMargin: '0px 0px -40px 0px'
            });

            document.querySelectorAll('.scroll-fade-up, .scroll-fade-left, .scroll-fade-right, .scroll-scale').forEach(function(el) {
                observer.observe(el);
            });
        } else {
            // Fallback: show all
            document.querySelectorAll('.scroll-fade-up, .scroll-fade-left, .scroll-fade-right, .scroll-scale').forEach(function(el) {
                el.classList.add('visible');
            });
        }
    })();

    // ===== Hero Parallax =====
    (function() {
        var heroBg = document.querySelector('.idx-hero-bg');
        if (!heroBg) return;

        var ticking = false;
        window.addEventListener('scroll', function() {
            if (!ticking) {
                requestAnimationFrame(function() {
                    var scrolled = window.pageYOffset;
                    if (scrolled < 400) {
                        heroBg.style.transform = 'translateY(' + (scrolled * 0.3) + 'px)';
                    }
                    ticking = false;
                });
                ticking = true;
            }
        }, { passive: true });
    })();

    // ===== Smooth Scroll for Anchor Links =====
    (function() {
        document.querySelectorAll('a[href^="#"]:not([href="#"]):not([href="javascript"])').forEach(function(link) {
            link.addEventListener('click', function(e) {
                var target = document.querySelector(this.getAttribute('href'));
                if (target) {
                    e.preventDefault();
                    var offset = 80;
                    var targetPos = target.getBoundingClientRect().top + window.pageYOffset - offset;
                    window.scrollTo({ top: targetPos, behavior: 'smooth' });
                }
            });
        });
    })();
});
</script><script>
if(/[?&]measure=1/.test(location.search)){
  function __m(){
    function R(sel){var e=document.querySelector(sel);if(!e)return null;var r=e.getBoundingClientRect();return {L:Math.round(r.left),R:Math.round(r.right),W:Math.round(r.width)};}
    var de=document.documentElement;
    var rows=[
      'tid='+new URLSearchParams(location.search).get('tid'),
      'inner '+window.innerWidth+' client '+de.clientWidth+' vbar '+(window.innerWidth-de.clientWidth)+' scrollW '+de.scrollWidth,
      'logo '    +JSON.stringify(R('.header-logo')),
      'navwrap '+JSON.stringify(R('.header-nav')),
      'menu '    +JSON.stringify(R('.nav-menu')),
      'actions ' +JSON.stringify(R('.header-actions')),
      'search '  +JSON.stringify(R('.search-form-inline')),
      'hc '      +JSON.stringify(R('.header-container'))
    ];
    var d=document.createElement('div');
    d.style.cssText='position:fixed;top:0;left:0;right:0;z-index:999999;background:#001100;color:#3f3;font:15px/1.6 monospace;padding:8px 12px;white-space:pre-wrap';
    d.textContent=rows.join('\n');
    document.body.appendChild(d);
  }
  if(document.readyState!=='loading')__m(); else document.addEventListener('DOMContentLoaded',__m);
  setTimeout(__m,600);
}
</script>
<script>
if(/[?&]measure=1/.test(location.search)){
  function __m(){
    function R(sel){var e=document.querySelector(sel);if(!e)return null;var r=e.getBoundingClientRect();return {L:Math.round(r.left),R:Math.round(r.right),W:Math.round(r.width)};}
    var de=document.documentElement;
    var rows=[
      'tid='+new URLSearchParams(location.search).get('tid'),
      'inner '+window.innerWidth+' client '+de.clientWidth+' vbar '+(window.innerWidth-de.clientWidth)+' scrollW '+de.scrollWidth,
      'logo '    +JSON.stringify(R('.header-logo')),
      'navwrap '+JSON.stringify(R('.header-nav')),
      'menu '    +JSON.stringify(R('.nav-menu')),
      'actions ' +JSON.stringify(R('.header-actions')),
      'search '  +JSON.stringify(R('.search-form-inline')),
      'hc '      +JSON.stringify(R('.header-container'))
    ];
    var d=document.createElement('div');
    d.style.cssText='position:fixed;top:0;left:0;right:0;z-index:999999;background:#001100;color:#3f3;font:15px/1.6 monospace;padding:8px 12px;white-space:pre-wrap';
    d.textContent=rows.join('\n');
    document.body.appendChild(d);
  }
  if(document.readyState!=='loading')__m(); else document.addEventListener('DOMContentLoaded',__m);
  setTimeout(__m,600);
}
</script>


  <style>
    /* === Theme CSS variables (homepage only, font vars from header.htm) === */
    :root {
      --bg: #ffffff;
      --bg2: #f5f7fa;
      --surface: #ffffff;
      --ink: #1a1a1a;
      --muted: #555f6d;
      --rule: #e0e4ea;
      --accent: #0573C3;
      --accent2: #045da5;
      --accent-glow: rgba(0, 112, 196, 0.25);
      --orange: #FFA505;
      --orange-glow: rgba(255, 138, 61, 0.3);
      --max: 1280px;
    }

    /* === Base styles (scoped to homepage content only) === */
    html { font-size: 16px; scroll-behavior: smooth; }
    /* Only set font-family/color on body (header.htm handles margin/padding/box-sizing) */
    body {
      font-family: var(--font-body);
      color: var(--ink);
      background: var(--bg);
      line-height: 1.7;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    /* overflow-x hidden only for homepage content */
    .hero, .stats-bar, .section, .cta { overflow-x: hidden; }
    /* Reset only for homepage content sections, not header/footer */
    .hero *, .stats-bar *, .section *, .cta *, .footer *,
    .hero *::before, .stats-bar *::before, .section *::before, .cta *::before, .footer *::before,
    .hero *::after, .stats-bar *::after, .section *::after, .cta *::after, .footer *::after {
      box-sizing: border-box;
    }
    .hero, .stats-bar, .section, .cta, .footer { box-sizing: border-box; }
    ::selection { background: var(--accent); color: var(--bg); }

    /* === Typography (scoped) === */
    .hero h1, .section h2, .section h3, .section h4 {
      font-family: var(--font-display);
      font-weight: 700;
      line-height: 1.1;
      letter-spacing: 0.02em;
    }
    .hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
    .section h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
    .section h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
    .section p { color: var(--muted); }
    .hero a, .section a, .stats-bar a, .cta a { color: inherit; text-decoration: none; }

    /* === Utility === */
    .container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
    .section { padding: 6rem 0; position: relative; }
    .section-header { text-align: center; max-width: 760px; margin: 0 auto 4rem; }
    .section-header h2 { margin-bottom: 1rem; }
    .section-header p { font-size: 1.125rem; }
    .eyebrow {
      display: inline-block;
      font-family: var(--font-mono);
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.2em;
      color: var(--accent);
      margin-bottom: 1rem;
      border: 1px solid var(--rule);
      padding: 0.35rem 0.85rem;
      border-radius: 999px;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.95rem 2rem;
      font-family: var(--font-body);
      font-weight: 700;
      font-size: 0.95rem;
      border-radius: 4px;
      transition: all 0.3s ease;
      cursor: pointer;
      border: 1px solid transparent;
    }
    .btn-primary {
      background: linear-gradient(135deg, var(--accent), var(--orange));
      color: #fff;
      box-shadow: 0 8px 32px rgba(0, 112, 196, 0.25);
    }
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 40px rgba(255, 138, 61, 0.35);
    }
    .btn-outline {
      background: transparent;
      color: var(--ink);
      border-color: var(--rule);
    }
    .btn-outline:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    /* === Navigation === */
    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
      padding: 1.25rem 0;
      transition: all 0.35s ease;
      border-bottom: 1px solid transparent;
    }
    .navbar.scrolled {
      background: rgba(5, 11, 20, 0.92);
      backdrop-filter: blur(16px);
      border-bottom-color: var(--rule);
      padding: 0.85rem 0;
    }
    .navbar .container {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 1.5rem;
      color: var(--ink);
    }
    .logo-mark {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      display: grid;
      place-items: center;
      font-family: var(--font-mono);
      font-size: 0.85rem;
      color: var(--bg);
      font-weight: 700;
    }
    .nav-links {
      display: flex;
      align-items: center;
      gap: 2.5rem;
      list-style: none;
    }
    .nav-links a {
      font-size: 0.95rem;
      color: var(--muted);
      transition: color 0.25s ease;
      position: relative;
    }
    .nav-links a:hover { color: var(--ink); }
    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -6px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--accent);
      transition: width 0.25s ease;
    }
    .nav-links a:hover::after { width: 100%; }
    .mobile-toggle {
      display: none;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.5rem;
      z-index: 1001;
    }
    .mobile-toggle span {
      display: block;
      width: 24px;
      height: 2px;
      background: var(--ink);
      transition: all 0.3s ease;
    }
    .navbar.open .mobile-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .navbar.open .mobile-toggle span:nth-child(2) { opacity: 0; }
    .navbar.open .mobile-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    @media (max-width: 768px) {
      .nav-links {
        display: flex;
        position: fixed;
        inset: 0;
        background: rgba(5, 11, 20, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 999;
      }
      .navbar.open .nav-links { transform: translateX(0); }
      .nav-links a { font-size: 1.25rem; color: var(--ink); }
    }

    /* === Hero === */
    .hero {
      min-height: 420px;
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
      padding-top: 80px;
      padding-bottom: 3rem;
    }
    .hero-bg {
      position: absolute;
      inset: 0;
      z-index: 0;
      background: #031428;
      overflow: hidden;
    }
    .hero-bg canvas {
      width: 100%;
      height: 100%;
      display: block;
    }
    /* 扫描光线 */
    .hero-scanline {
      position: absolute;
      top: 0;
      left: -100%;
      width: 50%;
      height: 100%;
      background: linear-gradient(90deg, transparent 0%, rgba(0,160,255,0.06) 40%, rgba(0,200,255,0.12) 50%, rgba(0,160,255,0.06) 60%, transparent 100%);
      z-index: 0;
      animation: heroScan 8s ease-in-out infinite;
      pointer-events: none;
    }
    @keyframes heroScan {
      0% { left: -50%; }
      100% { left: 100%; }
    }
    /* 浮动芯片轮廓 */
    .hero-chip {
      position: absolute;
      border: 1px solid rgba(0,160,255,0.12);
      border-radius: 4px;
      z-index: 0;
      pointer-events: none;
    }
    .hero-chip::before, .hero-chip::after {
      content: '';
      position: absolute;
      background: rgba(0,160,255,0.15);
    }
    .hero-chip::before {
      top: -3px; bottom: -3px; left: 20%; width: 2px;
    }
    .hero-chip::after {
      left: -3px; right: -3px; top: 20%; height: 2px;
    }
    .hero-chip-1 { width: 80px; height: 80px; top: 15%; right: 8%; animation: heroFloat 12s ease-in-out infinite; }
    .hero-chip-2 { width: 60px; height: 60px; top: 60%; right: 15%; animation: heroFloat 10s ease-in-out infinite 2s; }
    .hero-chip-3 { width: 100px; height: 100px; top: 35%; right: 3%; animation: heroFloat 14s ease-in-out infinite 4s; }
    @keyframes heroFloat {
      0%,100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
      50% { transform: translateY(-20px) rotate(3deg); opacity: 0.7; }
    }
    .hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(110deg, rgba(5,40,80,0.94) 0%, rgba(0,60,110,0.78) 45%, rgba(0,90,150,0.4) 100%);
      z-index: 1;
    }
    .hero-accent {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, #0573C3 0%, #FFA505 100%);
      z-index: 2;
    }
    .hero-grid {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(0, 112, 196, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 112, 196, 0.06) 1px, transparent 1px);
      background-size: 80px 80px;
      z-index: 2;
      pointer-events: none;
    }
    .hero .container { position: relative; z-index: 3; }
    .hero-content { max-width: 860px; }
    .hero h1 {
      margin-bottom: 1rem;
      background: linear-gradient(135deg, #ffffff 0%, #7dd3fc 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .hero-subtitle {
      font-size: clamp(1rem, 1.8vw, 1.25rem);
      color: rgba(255,255,255,0.85);
      margin-bottom: 1.5rem;
      max-width: 680px;
      line-height: 1.6;
    }
    .hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
    .hero .btn-outline {
      border-color: rgba(255,255,255,0.5);
      color: #ffffff;
    }
    .hero .btn-outline:hover {
      border-color: #7dd3fc;
      color: #7dd3fc;
    }

    /* === Stats Bar === */
    .stats-bar {
      background: var(--bg2);
      border-top: 1px solid var(--rule);
      border-bottom: 1px solid var(--rule);
      padding: 3rem 0;
    }
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 2rem;
      text-align: center;
    }
    .stat-item .stat-num {
      font-family: var(--font-display);
      font-size: clamp(1.75rem, 3vw, 2.5rem);
      font-weight: 700;
      color: var(--accent);
      line-height: 1;
    }
    .stat-item .stat-label {
      color: var(--muted);
      font-size: 0.9rem;
      margin-top: 0.5rem;
      font-family: var(--font-body);
      letter-spacing: 0.02em;
    }

    /* === New Products === */
    .new-products { background: var(--bg); }
    .new-products .section-header { margin-bottom: 3rem; }
    .new-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }
    .new-card {
      background: var(--surface);
      border: 1px solid var(--rule);
      border-radius: 16px;
      overflow: hidden;
      transition: all 0.35s ease;
    }
    .new-card:hover {
      transform: translateY(-6px);
      border-color: rgba(0, 112, 196, 0.4);
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    }
    .new-card img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      transition: transform 0.5s ease;
    }
    .new-card:hover img {
      transform: scale(1.05);
    }
    .new-card-content { padding: 1.5rem; }
    .new-card h3 {
      font-size: 1.15rem;
      margin-bottom: 0.5rem;
      font-family: var(--font-body);
    }
    .new-card p { font-size: 0.9rem; }

    /* === Products === */
    .products { background: var(--bg2); }
    .product-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }
    .product-card {
      background: var(--surface);
      border: 1px solid var(--rule);
      border-radius: 12px;
      padding: 2.5rem;
      transition: all 0.35s ease;
      position: relative;
      overflow: hidden;
    }
    .product-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--accent), transparent);
      opacity: 0;
      transition: opacity 0.35s ease;
    }
    .product-card:hover {
      transform: translateY(-6px);
      border-color: rgba(0, 112, 196, 0.4);
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    }
    .product-card:hover::before { opacity: 1; }
    .product-icon {
      width: 56px;
      height: 56px;
      border-radius: 12px;
      background: rgba(0, 112, 196, 0.08);
      border: 1px solid var(--rule);
      display: grid;
      place-items: center;
      margin-bottom: 1.5rem;
      color: var(--accent);
      font-size: 1.5rem;
    }
    .product-card h3 { margin-bottom: 0.75rem; }
    .product-card p { font-size: 0.95rem; margin-bottom: 1.25rem; }
    .product-card .link {
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--accent);
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }

    /* === About / Intro === */
    .about { background: var(--bg); }
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: center;
    }
    .about-media {
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid var(--rule);
    }
    .about-media img {
      width: 100%;
      height: auto;
      display: block;
    }
    .about-content h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1.25rem; }
    .about-content h2 .h2-sub { display: block; font-size: 0.68em; font-weight: 500; color: var(--muted); margin-top: 0.3em; white-space: nowrap; }
    .about-content p { margin-bottom: 1.25rem; font-size: 1.05rem; }
    .about-content .feature-list { margin-top: 2rem; }

    /* === Solutions === */
    .solutions { background: var(--bg2); }
    .solution-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.5rem;
    }
    .solution-grid-3 {
      grid-template-columns: repeat(3, 1fr);
    }
    .solution-card {
      background: var(--surface);
      border: 1px solid var(--rule);
      border-radius: 12px;
      overflow: hidden;
      transition: all 0.35s ease;
      display: block;
    }
    .solution-more {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--accent);
      text-decoration: none;
      margin-top: 1rem;
      transition: gap 0.25s ease;
    }
    .solution-more:hover { gap: 0.6rem; }
    .solution-card-image {
      width: 100%;
      aspect-ratio: 16 / 10;
      overflow: hidden;
      position: relative;
    }
    .solution-card-image::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.25) 0%, transparent 50%);
    }
    .solution-card-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }
    .solution-card:hover .solution-card-image img {
      transform: scale(1.05);
    }
    .solution-card-body {
      padding: 2rem;
    }
    .solution-card:hover {
      transform: translateY(-6px);
      border-color: rgba(0, 112, 196, 0.4);
    }
    .solution-card h3 {
      margin-bottom: 1rem;
      font-family: var(--font-body);
      font-size: 1.35rem;
      color: var(--text);
    }
    .solution-card p { font-size: 0.95rem; color: var(--text-secondary); }

    /* === Tech Specs === */
    .tech-specs { background: var(--bg); position: relative; }
    .specs-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
    }
    .spec-card {
      background: var(--surface);
      border: 1px solid var(--rule);
      border-radius: 12px;
      padding: 2rem;
      display: flex;
      gap: 1.25rem;
      transition: all 0.3s ease;
      align-items: flex-start;
    }
    .spec-card:hover {
      border-color: var(--accent);
      background: var(--bg2);
    }
    .spec-icon {
      width: 56px;
      height: 56px;
      flex-shrink: 0;
      border-radius: 12px;
      overflow: hidden;
      background: rgba(0, 112, 196, 0.06);
    }
    .spec-icon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .spec-card h4 { margin-bottom: 0.5rem; }
    .spec-card p { font-size: 0.95rem; }

    /* === Resources === */
    .resources { background: var(--bg2); }
    .resource-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }
    .resource-card {
      background: var(--surface);
      border: 1px solid var(--rule);
      border-radius: 12px;
      overflow: hidden;
      transition: all 0.3s ease;
    }
    .resource-card-image {
      width: 100%;
      height: 160px;
      position: relative;
      overflow: hidden;
    }
    .resource-card-image::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 55%);
    }
    .resource-card-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }
    .resource-card:hover .resource-card-image img {
      transform: scale(1.05);
    }
    .resource-card-body { padding: 1.5rem 2rem 2rem; }
    .resource-card:hover {
      border-color: var(--accent);
      transform: translateY(-4px);
    }
    .resource-card h4 { margin-bottom: 0.75rem; }
    .resource-card p { font-size: 0.95rem; margin-bottom: 1.25rem; }
    .resource-card .link {
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--accent);
    }

    /* === News === */
    .news { background: var(--bg); }
    .news-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }
    .news-card {
      background: var(--surface);
      border: 1px solid var(--rule);
      border-radius: 12px;
      overflow: hidden;
      transition: all 0.3s ease;
    }
    .news-card:hover {
      transform: translateY(-4px);
      border-color: rgba(0, 112, 196, 0.4);
    }
    .news-date {
      font-family: var(--font-mono);
      font-size: 0.8rem;
      color: var(--accent);
      padding: 1.25rem 1.5rem 0;
    }
    .news-card h4 {
      font-size: 1.15rem;
      padding: 0.75rem 1.5rem 1.25rem;
      font-family: var(--font-body);
      font-weight: 700;
      line-height: 1.4;
    }
    .news-card-image-wrap {
      width: 100%;
      height: 180px;
      overflow: hidden;
      background: var(--bg2);
    }
    .news-card-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.4s ease;
    }
    .news-card:hover .news-card-image {
      transform: scale(1.05);
    }

    /* === Wiki === */
    .wiki { background: var(--bg2); }
    .wiki-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }
    .wiki-card {
      background: var(--surface);
      border: 1px solid var(--rule);
      border-radius: 12px;
      overflow: hidden;
      transition: all 0.3s ease;
    }
    .wiki-card:hover {
      transform: translateY(-4px);
      border-color: rgba(0, 112, 196, 0.4);
    }
    .wiki-card img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      display: block;
    }
    .wiki-card h4 {
      font-size: 1.05rem;
      padding: 1.25rem 1.5rem;
      font-family: var(--font-body);
      font-weight: 700;
      line-height: 1.4;
    }

    /* === CTA === */
    .cta {
      background: linear-gradient(135deg, #0573C3 0%, #045da5 100%);
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .cta::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 50%);
      pointer-events: none;
    }
    .cta .container { position: relative; z-index: 2; }
    .cta h2 { margin-bottom: 1rem; color: #ffffff; }
    .cta p { font-size: 1.125rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; color: rgba(255,255,255,0.9); }
    .cta .eyebrow {
      color: #ffffff;
      border-color: rgba(255,255,255,0.6);
      background: rgba(255,255,255,0.12);
    }
    .cta .btn-primary {
      background: #ffffff;
      color: #0573C3;
      box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    }
    .cta .btn-primary:hover {
      background: #e6f2ff;
      color: #045da5;
      box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    }

    /* === Footer === */
    .footer {
      background: var(--bg);
      border-top: 1px solid var(--rule);
      padding: 4rem 0 2rem;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 1.5fr repeat(3, 1fr);
      gap: 3rem;
      margin-bottom: 3rem;
    }
    .footer-brand .logo { margin-bottom: 1rem; }
    .footer-brand p { font-size: 0.9rem; max-width: 320px; }
    .footer-col h4 {
      font-size: 0.9rem;
      font-family: var(--font-body);
      color: var(--ink);
      margin-bottom: 1.25rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }
    .footer-col ul { list-style: none; }
    .footer-col li { margin-bottom: 0.75rem; }
    .footer-col a {
      color: var(--muted);
      font-size: 0.9rem;
      transition: color 0.25s ease;
    }
    .footer-col a:hover { color: var(--accent); }
    .footer-bottom {
      border-top: 1px solid var(--rule);
      padding-top: 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
    }
    .footer-bottom p { font-size: 0.85rem; }

    /* === Animations === */
    .fade-in {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .fade-in.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* === Responsive === */
    @media (max-width: 1024px) {
      .product-grid,
      .new-grid,
      .solution-grid,
      .solution-grid-3,
      .resource-grid,
      .news-grid,
      .wiki-grid { grid-template-columns: repeat(2, 1fr); }
      .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
      .footer-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 768px) {
      .container { padding: 0 1.25rem; }
      .section { padding: 4rem 0; }
      .nav-links { display: none; }
      .mobile-toggle { display: flex; }
      .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
      .product-grid,
      .new-grid,
      .solution-grid,
      .solution-grid-3,
      .resource-grid,
      .specs-grid,
      .news-grid,
      .wiki-grid,
      .footer-grid { grid-template-columns: 1fr; }
    }
  </style>

  <!-- Navigation -->

  <!-- Hero -->
  <section class="hero" id="home">
    <div class="hero-bg">
      <canvas id="heroCanvas"></canvas>
      <div class="hero-scanline"></div>
      <div class="hero-chip hero-chip-1"></div>
      <div class="hero-chip hero-chip-2"></div>
      <div class="hero-chip hero-chip-3"></div>
    </div>
    <div class="hero-overlay"></div>
    <div class="hero-grid"></div>
    <div class="hero-accent"></div>
    <div class="container">
      <div class="hero-content fade-in visible">
        <span class="eyebrow">INDUXENSE SEMICONDUCTOR</span>
        <h1>电感式编码器芯片<br>重新定义位置感知</h1>
        <p class="hero-subtitle">上海英达森斯半导体专注于电感编码器芯片及工程化赋能，团队由顶尖高校博士领衔，提供全场景高精度电感传感器芯片、全球领先的 PCB 线圈设计工具及边缘 AI 算法。</p>
        <div class="hero-cta">
          <a href="/index.php?m=home&c=Lists&a=index&tid=3" class="btn btn-primary">探索产品系列</a>
          <a href="/index.php?m=home&c=Lists&a=index&tid=4" class="btn btn-outline">了解解决方案</a>
        </div>
      </div>
    </div>
  </section>

  <!-- Stats Bar -->
  <section class="stats-bar">
    <div class="container">
      <div class="stats-grid">
        <div class="stat-item">
          <div class="stat-num">ISO26262</div>
          <div class="stat-label">功能安全体系认证</div>
        </div>
        <div class="stat-item">
          <div class="stat-num">24bit</div>
          <div class="stat-label">高分辨率</div>
        </div>
        <div class="stat-item">
          <div class="stat-num">3μs</div>
          <div class="stat-label">超低时延</div>
        </div>
        <div class="stat-item">
          <div class="stat-num">24bit</div>
          <div class="stat-label">多圈计数</div>
        </div>
      </div>
    </div>
  </section>

  <!-- New Products -->
  <section class="section new-products" id="new-products">
    <div class="container">
      <div class="section-header fade-in">
        <span class="eyebrow">New Products</span>
        <h2>新产品</h2>
        <p>探索我们最新的创新产品和解决方案，为您的项目提供强大的技术支持。</p>
      </div>
      <div class="new-grid">
        <a href="/index.php?m=home&c=View&a=index&aid=283" class="new-card fade-in">
          <img src="/assets/wafer_1024x576.jpg" alt="IDX3531 电感式编码器旗舰芯片" loading="lazy">
          <div class="new-card-content">
            <h3>IDX3531 电感式编码器旗舰芯片</h3>
            <p>高性能绝对位置电感式编码器芯片，面向机器人、伺服与汽车电子应用。</p>
          </div>
        </a>
        <a href="/index.php?m=home&c=View&a=index&aid=266" class="new-card fade-in">
          <img src="/assets/fab_1024x576.jpg" alt="多圈绝对位置电感式传感器芯片" loading="lazy">
          <div class="new-card-content">
            <h3>多圈绝对位置电感式传感器芯片</h3>
            <p>支持多圈计数与高可靠性位置反馈，满足复杂运动控制场景需求。</p>
          </div>
        </a>
        <a href="/index.php?m=home&c=View&a=index&aid=140" class="new-card fade-in">
          <img src="/assets/application_1024x576.jpg" alt="绝对位置电感式编码器芯片" loading="lazy">
          <div class="new-card-content">
            <h3>绝对位置电感式编码器芯片</h3>
            <p>高精度、抗干扰的位置检测方案，适配工业与汽车严苛环境。</p>
          </div>
        </a>
      </div>
    </div>
  </section>

  <!-- Products -->
  <section class="section products" id="products">
    <div class="container">
      <div class="section-header fade-in">
        <span class="eyebrow">Product Portfolio</span>
        <h2>产品中心</h2>
        <p>覆盖从芯片到设计工具的全栈产品，助力客户快速实现高精度位置感知系统。</p>
      </div>
      <div class="product-grid">
        <article class="product-card fade-in">
          <div class="product-icon">01</div>
          <h3>双组线圈模拟/数字输出</h3>
          <p>双组线圈架构，支持模拟与数字双输出模式，灵活适配不同控制器接口。</p>
          <a href="/index.php?m=home&c=Lists&a=index&tid=71" class="link">查看详情 →</a>
        </article>
        <article class="product-card fade-in">
          <div class="product-icon">02</div>
          <h3>双组线圈数字输出</h3>
          <p>纯数字输出方案，抗干扰能力强，适合长距离传输与复杂电磁环境。</p>
          <a href="/index.php?m=home&c=Lists&a=index&tid=72" class="link">查看详情 →</a>
        </article>
        <article class="product-card fade-in">
          <div class="product-icon">03</div>
          <h3>单组线圈模拟输出</h3>
          <p>简化线圈设计，模拟输出响应快速，适用于成本敏感型应用。</p>
          <a href="/index.php?m=home&c=Lists&a=index&tid=70" class="link">查看详情 →</a>
        </article>
        <article class="product-card fade-in">
          <div class="product-icon">◉</div>
          <h3>多圈绝对位置传感器芯片</h3>
          <p>集成多圈记忆功能，掉电位置保持，保障系统安全启动与闭环控制。</p>
          <a href="/index.php?m=home&c=Lists&a=index&tid=70" class="link">查看详情 →</a>
        </article>
        <article class="product-card fade-in">
          <div class="product-icon">◎</div>
          <h3>绝对位置编码器芯片</h3>
          <p>高精度绝对角度/位置检测，单圈分辨率领先，支持高速旋转应用。</p>
          <a href="/index.php?m=home&c=Lists&a=index&tid=70" class="link">查看详情 →</a>
        </article>
        <article class="product-card fade-in">
          <div class="product-icon">▣</div>
          <h3>iCoil Studio</h3>
          <p>全球领先的 PCB 线圈设计平台，降低电感编码器线圈设计门槛，加速产品落地。</p>
          <a href="/index.php?m=home&c=Lists&a=index&tid=32" class="link">查看详情 →</a>
        </article>
      </div>
    </div>
  </section>

  <!-- About -->
  <section class="section about" id="about">
    <div class="container">
      <div class="about-grid">
        <div class="about-media fade-in">
          <img src="/assets/about_team_lab.jpg" alt="英达森斯团队与实验室" loading="lazy">
        </div>
        <div class="about-content fade-in">
          <span class="eyebrow">About Induxense</span>
          <h2>电感编码器芯片 <span class="h2-sub">线圈工具 · 算法 · AI 具身智能</span></h2>
          <p>英达森斯半导体源自上海，专注于电感编码器芯片及工程化赋能。团队由顶尖高校博士领衔，深耕高精度位置传感技术，致力于以自主核心技术与完整工具链重新定义位置感知。</p>
          <p>公司产品已通过 ISO 9001 / ISO 26262 双认证，兼容AEC-Q100标准开发，广泛应用于机器人、伺服与自动化、汽车电子等高端领域，为客户提供从芯片到算法、从设计工具到量产支持的一站式解决方案。</p>
          <ul class="feature-list">
            <li>顶尖高校博士领衔的研发团队</li>
            <li>全场景高精度电感传感器芯片</li>
            <li>全球领先的 PCB 线圈设计工具</li>
            <li>边缘 AI 算法与具身智能赋能</li>
          </ul>
        </div>
      </div>
    </div>
  </section>

  <!-- Solutions -->
  <section class="section solutions" id="solutions">
    <div class="container">
      <div class="section-header fade-in">
        <span class="eyebrow">Solutions</span>
        <h2>解决方案</h2>
        <p>为不同行业和应用场景提供专业的技术解决方案，助力您的业务发展。</p>
      </div>
            <div class="solution-grid solution-grid-3">
                <div class="solution-card fade-in">
                    <div class="solution-card-image">
            <img src="/uploads/allimg/20260828/cat_industrial_automation_v3.jpg" alt="工业自动化" loading="lazy">
          </div>
                    <div class="solution-card-body">
            <h3>工业自动化</h3>
            <p>电感编码器以磁编价格实现光编性能，兼具耐温、抗粉尘/油污/电磁干扰优势，突破磁编温漂局限，赋能工业自动化升级。</p>
            <a href="/index.php?m=home&c=Lists&a=index&tid=98" class="solution-more">更多 →</a>
          </div>
        </div>
                <div class="solution-card fade-in">
                    <div class="solution-card-image">
            <img src="/uploads/allimg/20260828/cat_robotics_v3.jpg" alt="具身智能与机器人" loading="lazy">
          </div>
                    <div class="solution-card-body">
            <h3>具身智能与机器人</h3>
            <p>电感编码器提供微米级定位、耐粉尘油污及电磁干扰能力，角秒级精度、微秒级延时，-40°C 至 125°C 宽温适配，赋能工业及人形机器人精密运动控制。</p>
            <a href="/index.php?m=home&c=Lists&a=index&tid=99" class="solution-more">更多 →</a>
          </div>
        </div>
                <div class="solution-card fade-in">
                    <div class="solution-card-image">
            <img src="/uploads/allimg/20260828/cat_automotive_v3.jpg" alt="汽车电子与线控底盘" loading="lazy">
          </div>
                    <div class="solution-card-body">
            <h3>汽车电子与线控底盘</h3>
            <p>电感编码器芯片通过 ISO 26262 功能安全认证，符合 AEC-Q100 可靠性标准，精准检测电机转速、踏板行程及方向盘转角，为汽车安全系统提供关键传感保障。</p>
            <a href="/index.php?m=home&c=Lists&a=index&tid=100" class="solution-more">更多 →</a>
          </div>
        </div>
              </div>
    </div>
  </section>

  <!-- Tech Specs -->
  <section class="section tech-specs">
    <div class="container">
      <div class="section-header fade-in">
        <span class="eyebrow">Technical Edge</span>
        <h2>核心技术优势</h2>
        <p>持续投入电感传感技术研发创新，在精度、可靠性、环境适应性与工程化赋能等维度构建竞争壁垒。</p>
      </div>
      <div class="specs-grid">
        <div class="spec-card fade-in">
          <div class="spec-icon">
            <img src="/assets/tech_high_resolution.jpg" alt="高分辨率" loading="lazy">
          </div>
          <div>
            <h4>20~22 位 高分辨率</h4>
            <p>数字输出分辨率可达 20~22 位，配合 ±5 角秒重复精度，实现细腻的角度与位置感知。</p>
          </div>
        </div>
        <div class="spec-card fade-in">
          <div class="spec-icon">
            <img src="/assets/tech_low_latency.jpg" alt="低延迟" loading="lazy">
          </div>
          <div>
            <h4>小于 3 微秒 输出延时</h4>
            <p>微秒级响应速度，适配机器人关节、伺服电机等高动态闭环控制场景。</p>
          </div>
        </div>
        <div class="spec-card fade-in">
          <div class="spec-icon">
            <img src="/assets/tech_multiturn.jpg" alt="多圈绝对位置" loading="lazy">
          </div>
          <div>
            <h4>多圈绝对位置</h4>
            <p>集成多圈记忆功能，掉电位置保持，支持复杂运动控制与安全启动。</p>
          </div>
        </div>
        <div class="spec-card fade-in">
          <div class="spec-icon">
            <img src="/assets/tech_func_safety.jpg" alt="功能安全" loading="lazy">
          </div>
          <div>
            <h4>ISO 26262 功能安全</h4>
            <p>通过 ISO 26262 功能安全体系认证，芯片符合 AEC-Q100 可靠性标准，满足汽车安全关键应用要求。</p>
          </div>
        </div>
        <div class="spec-card fade-in">
          <div class="spec-icon">
            <img src="/assets/tech_coil_tool.jpg" alt="线圈设计工具" loading="lazy">
          </div>
          <div>
            <h4>PCB 线圈设计工具</h4>
            <p>自研 iCoil Studio 平台，自动生成并优化 PCB 线圈布局，显著降低设计门槛与周期。</p>
          </div>
        </div>
      </div>
    </div>
  </section>

  <!-- Resources -->
  <section class="section resources" id="resources">
    <div class="container">
      <div class="section-header fade-in">
        <span class="eyebrow">Design & Development</span>
        <h2>设计与开发</h2>
        <p>提供评估套件、开发工具、线圈设计平台与参考设计，帮助工程师高效完成产品开发。</p>
      </div>
            <div class="resource-grid">
                <article class="resource-card fade-in">
                    <div class="resource-card-image">
            <img src="/uploads/allimg/20260726/card_eval_kit.jpg" alt="评估与测试套件" loading="lazy">
          </div>
                    <div class="resource-card-body">
            <h4>评估与测试套件</h4>
            <p>信号模拟测试输入平台，快速验证芯片功能与系统性能。</p>
            <a href="/index.php?m=home&c=Lists&a=index&tid=78" class="link">了解详情 →</a>
          </div>
        </article>
                <article class="resource-card fade-in">
                    <div class="resource-card-image">
            <img src="/uploads/allimg/20260726/card_dev_tools.jpg" alt="开发工具（ICS / IPS）" loading="lazy">
          </div>
                    <div class="resource-card-body">
            <h4>开发工具（ICS / IPS）</h4>
            <p>芯片配置工作室与编程工作室，一站式完成参数配置与固件烧录。</p>
            <a href="/index.php?m=home&c=Lists&a=index&tid=79" class="link">了解工具 →</a>
          </div>
        </article>
                <article class="resource-card fade-in">
                    <div class="resource-card-image">
            <img src="/uploads/allimg/20260726/card_icoil_studio.jpg" alt="iCoil Studio" loading="lazy">
          </div>
                    <div class="resource-card-body">
            <h4>iCoil Studio</h4>
            <p>全球领先的 PCB 线圈设计平台，自动生成与优化电感线圈布局，显著降低设计周期。</p>
            <a href="/index.php?m=home&c=Lists&a=index&tid=32" class="link">访问平台 →</a>
          </div>
        </article>
              </div>
    </div>
  </section>

  <!-- News -->
  <section class="section news" id="news">
    <div class="container">
      <div class="section-header fade-in">
        <span class="eyebrow">News & Insights</span>
        <h2>新闻中心</h2>
        <p>浏览新闻公告和博客文章，为您提供灵感和资讯。</p>
      </div>
      <div class="news-grid">
                <a href="/index.php?m=home&c=View&a=index&aid=348" class="news-card fade-in">
                    <div class="news-card-image-wrap">
            <img src="/uploads/allimg/20251120/1-251120100631620.jpeg" alt="喜报 | 英达森斯半导体入库2026年国家科技型中小企业" loading="lazy" class="news-card-image">
          </div>
                    <div class="news-card-content">
            <div class="news-date">2026.09.01</div>
            <h4>喜报 | 英达森斯半导体入库2026年国家科技型中小企业</h4>
          </div>
        </a>
                <a href="/index.php?m=home&c=View&a=index&aid=322" class="news-card fade-in">
                    <div class="news-card-image-wrap">
            <img src="/uploads/allimg/20260728/1-260HQ91941B6.webp" alt="英达森斯半导体成功晋级2026年“创·在上海”浦东赛区复赛" loading="lazy" class="news-card-image">
          </div>
                    <div class="news-card-content">
            <div class="news-date">2026.07.29</div>
            <h4>英达森斯半导体成功晋级2026年“创·在上海”浦东赛区复赛</h4>
          </div>
        </a>
                <a href="/index.php?m=home&c=View&a=index&aid=282" class="news-card fade-in">
                    <div class="news-card-image-wrap">
            <img src="/uploads/allimg/20260416/1-260416103935S7.jpg" alt="英达森斯发布电感式编码器旗舰芯片IDX3531" loading="lazy" class="news-card-image">
          </div>
                    <div class="news-card-content">
            <div class="news-date">2026.04.15</div>
            <h4>英达森斯发布电感式编码器旗舰芯片IDX3531</h4>
          </div>
        </a>
              </div>
    </div>
  </section>

  <!-- Wiki -->
  <section class="section wiki" id="wiki">
    <div class="container">
      <div class="section-header fade-in">
        <span class="eyebrow">Knowledge Base</span>
        <h2>电感式编码器百科</h2>
        <p>英达森斯半导体为您提供电感编码器芯片和系统百科知识。</p>
      </div>
      <div class="wiki-grid">
                <a href="/index.php?m=home&c=View&a=index&aid=353" class="wiki-card fade-in">
          <img src="/uploads/allimg/20251202/1-2512021R444628.jpg" alt="电感式编码器游标算法：从原理到应用" loading="lazy">
          <h4>电感式编码器游标算法：从原理到应用</h4>
        </a>
                <a href="/index.php?m=home&c=View&a=index&aid=352" class="wiki-card fade-in">
          <img src="/uploads/allimg/20260904/1-260Z4130414601.jpg" alt="电感式编码器在机器人灵巧手中的应用" loading="lazy">
          <h4>电感式编码器在机器人灵巧手中的应用</h4>
        </a>
                <a href="/index.php?m=home&c=View&a=index&aid=351" class="wiki-card fade-in">
          <img src="/uploads/allimg/20251027/1-25102GA000T9.jpeg" alt="电感式编码器误差来源与补偿方法：从线圈设计到信号处理" loading="lazy">
          <h4>电感式编码器误差来源与补偿方法：从线圈设计到信号处理</h4>
        </a>
              </div>
    </div>
  </section>

  <!-- CTA -->
  <section class="section cta" id="contact">
    <div class="container">
      <div class="fade-in">
        <span class="eyebrow">Get in Touch</span>
        <h2>开启位置感知创新合作</h2>
        <p>无论您需要电感编码器芯片、定制线圈设计还是算法支持，英达森斯团队随时准备为您服务。</p>
        <a href="/index.php?m=home&c=Lists&a=index&tid=30" class="btn btn-primary">联系我们的团队</a>
      </div>
    </div>
  </section>

  <!-- Footer -->

  <script>
    (function() {
      // Navbar scroll effect
      const navbar = document.getElementById('navbar');
      window.addEventListener('scroll', function() {
        if (window.scrollY > 60) {
          navbar.classList.add('scrolled');
        } else {
          navbar.classList.remove('scrolled');
        }
      });

      // Intersection Observer for fade-in animations
      const observerOptions = {
        threshold: 0.12,
        rootMargin: '0px 0px -40px 0px'
      };
      const observer = new IntersectionObserver(function(entries) {
        entries.forEach(function(entry) {
          if (entry.isIntersecting) {
            entry.target.classList.add('visible');
            observer.unobserve(entry.target);
          }
        });
      }, observerOptions);

      document.querySelectorAll('.fade-in').forEach(function(el) {
        observer.observe(el);
      });

      // Number counter animation
      function countUp(el, target, duration) {
        const start = 0;
        const startTime = performance.now();
        const isFloat = target % 1 !== 0;

        function update(currentTime) {
          const elapsed = currentTime - startTime;
          const progress = Math.min(elapsed / duration, 1);
          const easeOut = 1 - Math.pow(1 - progress, 3);
          const current = start + (target - start) * easeOut;
          el.textContent = isFloat ? current.toFixed(2) : Math.floor(current);
          if (progress < 1) {
            requestAnimationFrame(update);
          } else {
            el.textContent = isFloat ? target.toFixed(2) : target;
          }
        }
        requestAnimationFrame(update);
      }

      const numObserver = new IntersectionObserver(function(entries) {
        entries.forEach(function(entry) {
          if (entry.isIntersecting) {
            const el = entry.target;
            const target = parseFloat(el.getAttribute('data-count'));
            if (!isNaN(target)) {
              countUp(el, target, 1800);
              numObserver.unobserve(el);
            }
          }
        });
      }, { threshold: 0.5 });

      document.querySelectorAll('[data-count]').forEach(function(el) {
        numObserver.observe(el);
      });

      // Smooth scroll for nav links
      document.querySelectorAll('a[href^="#"]').forEach(function(link) {
        link.addEventListener('click', function(e) {
          const targetId = this.getAttribute('href');
          if (targetId === '#') return;
          const target = document.querySelector(targetId);
          if (target) {
            e.preventDefault();
            target.scrollIntoView({ behavior: 'smooth', block: 'start' });
            navbar.classList.remove('open');
          }
        });
      });

      // Mobile menu toggle
      const mobileToggle = document.querySelector('.mobile-toggle');
      if (mobileToggle) {
        mobileToggle.addEventListener('click', function() {
          navbar.classList.toggle('open');
        });
      }
    })();
  </script>

  <!-- Hero Canvas 动态科技背景 -->
  <script>
  (function(){
    const canvas = document.getElementById('heroCanvas');
    if (!canvas) return;
    const ctx = canvas.getContext('2d');
    let W, H, particles, nodes, dpr;

    function resize() {
      dpr = window.devicePixelRatio || 1;
      const rect = canvas.parentElement.getBoundingClientRect();
      W = rect.width;
      H = rect.height;
      canvas.width = W * dpr;
      canvas.height = H * dpr;
      canvas.style.width = W + 'px';
      canvas.style.height = H + 'px';
      ctx.scale(dpr, dpr);
    }

    // 粒子（光点）
    function initParticles() {
      particles = [];
      const count = Math.min(80, Math.floor(W * H / 12000));
      for (let i = 0; i < count; i++) {
        particles.push({
          x: Math.random() * W,
          y: Math.random() * H,
          vx: (Math.random() - 0.5) * 0.3,
          vy: (Math.random() - 0.5) * 0.3,
          r: Math.random() * 1.5 + 0.5,
          a: Math.random() * 0.5 + 0.2,
          pulse: Math.random() * Math.PI * 2
        });
      }
    }

    // 电路节点连线
    function initNodes() {
      nodes = [];
      const cols = 6, rows = 4;
      for (let r = 0; r < rows; r++) {
        for (let c = 0; c < cols; c++) {
          nodes.push({
            x: (c / (cols-1)) * W * 0.9 + W * 0.05 + (Math.random()-0.5)*40,
            y: (r / (rows-1)) * H * 0.85 + H * 0.08 + (Math.random()-0.5)*30,
            pulse: Math.random() * Math.PI * 2,
            speed: Math.random() * 0.02 + 0.01
          });
        }
      }
    }

    // 科技感元素
    let rings = [], orbs = [], streaks = [], dataStreams = [], circuitLines = [], hexHighlights = [];
    let mathCurves = [], neuralNet = [], chipDie = [], bezierRibbons = [];
    // AI神经网络各层节点数（draw 与 initElements 共用，需保持脚本级作用域）
    const nnLayers = [3, 5, 4, 2];

    function initElements() {
      rings = [];
      orbs = [];
      streaks = [];
      dataStreams = [];
      circuitLines = [];
      hexHighlights = [];
      mathCurves = [];
      neuralNet = [];
      chipDie = [];
      bezierRibbons = [];
      // 大型旋转光环 — 右侧
      for (let i = 0; i < 3; i++) {
        rings.push({
          x: W * (0.65 + i * 0.12),
          y: H * (0.35 + i * 0.1),
          r: 80 + i * 60,
          speed: (i % 2 === 0 ? 1 : -1) * (0.0015 + i * 0.0008),
          phase: Math.random() * Math.PI * 2,
          arcLen: 0.3 + i * 0.15,
          thickness: 1 + i * 0.5
        });
      }
      // 呼吸光球 — 散布右侧
      for (let i = 0; i < 4; i++) {
        orbs.push({
          x: W * (0.55 + Math.random() * 0.4),
          y: H * (0.15 + Math.random() * 0.7),
          r: 60 + Math.random() * 80,
          phase: Math.random() * Math.PI * 2,
          speed: 0.006 + Math.random() * 0.008
        });
      }
      // 流动光带 — 水平方向
      for (let i = 0; i < 5; i++) {
        streaks.push({
          y: H * (0.1 + i * 0.18 + Math.random() * 0.05),
          speed: 0.3 + Math.random() * 0.5,
          offset: Math.random() * W,
          len: 80 + Math.random() * 120,
          a: 0.08 + Math.random() * 0.06
        });
      }
      // 数字数据流 — 垂直下落
      for (let i = 0; i < 12; i++) {
        dataStreams.push({
          x: W * (0.5 + Math.random() * 0.5),
          y: Math.random() * H,
          speed: 0.5 + Math.random() * 1.5,
          chars: [],
          maxLen: 5 + Math.floor(Math.random() * 8),
          a: 0.04 + Math.random() * 0.06
        });
      }
      // 电路走线 — 右侧直角路径
      for (let i = 0; i < 6; i++) {
        const sx = W * (0.55 + Math.random() * 0.4);
        const sy = H * Math.random();
        const path = [{x: sx, y: sy}];
        let cx = sx, cy = sy;
        const segs = 3 + Math.floor(Math.random() * 3);
        for (let s = 0; s < segs; s++) {
          if (Math.random() > 0.5) {
            cx += (Math.random() - 0.5) * 80;
          } else {
            cy += (Math.random() - 0.5) * 80;
          }
          path.push({x: cx, y: cy});
        }
        circuitLines.push({
          path: path,
          phase: Math.random() * Math.PI * 2,
          speed: 0.008 + Math.random() * 0.01,
          a: 0.06 + Math.random() * 0.04
        });
      }
      // 六边形高亮
      const hexSize = 40;
      const hexW = hexSize * 1.7;
      const hexH = hexSize * 1.5;
      for (let i = 0; i < 8; i++) {
        hexHighlights.push({
          col: Math.floor(Math.random() * (W / hexW)),
          row: Math.floor(Math.random() * (H / hexH)),
          phase: Math.random() * Math.PI * 2,
          speed: 0.01 + Math.random() * 0.02
        });
      }
      // 数学优美曲线 — 正弦波/利萨如曲线
      for (let i = 0; i < 3; i++) {
        mathCurves.push({
          type: i,
          cx: W * (0.6 + i * 0.15),
          cy: H * (0.3 + i * 0.2),
          amp: 30 + i * 20,
          freq: 0.008 + i * 0.003,
          freq2: 0.012 + i * 0.002,
          phase: Math.random() * Math.PI * 2,
          speed: 0.005 + i * 0.002,
          len: 200 + i * 50,
          a: 0.10 + i * 0.03
        });
      }
      // AI神经网络 — 层间连接
      const nnSpacing = 50;
      const nnStartX = W * 0.7;
      const nnStartY = H * 0.5;
      for (let l = 0; l < nnLayers.length; l++) {
        for (let n = 0; n < nnLayers[l]; n++) {
          const neuron = {
            x: nnStartX + l * nnSpacing,
            y: nnStartY - ((nnLayers[l] - 1) * 25) / 2 + n * 25,
            layer: l,
            phase: Math.random() * Math.PI * 2,
            speed: 0.02 + Math.random() * 0.03,
            r: 2.5
          };
          neuralNet.push(neuron);
        }
      }
      // 芯片晶圆轮廓 — 柔美圆角
      for (let i = 0; i < 2; i++) {
        chipDie.push({
          x: W * (0.55 + i * 0.25),
          y: H * (0.15 + i * 0.5),
          w: 70 + i * 20,
          h: 70 + i * 20,
          r: 8,
          phase: Math.random() * Math.PI * 2,
          speed: 0.006 + Math.random() * 0.004,
          a: 0.08 + i * 0.02
        });
      }
      // 贝塞尔柔美曲线丝带
      for (let i = 0; i < 4; i++) {
        bezierRibbons.push({
          x1: W * (0.5 + Math.random() * 0.1),
          y1: H * Math.random(),
          cx1: W * (0.65 + Math.random() * 0.15),
          cy1: H * (0.2 + Math.random() * 0.6),
          cx2: W * (0.75 + Math.random() * 0.15),
          cy2: H * (0.2 + Math.random() * 0.6),
          x2: W * (0.9 + Math.random() * 0.08),
          y2: H * Math.random(),
          phase: Math.random() * Math.PI * 2,
          speed: 0.004 + Math.random() * 0.003,
          a: 0.06 + Math.random() * 0.04
        });
      }
    }

    let frame = 0;
    function draw() {
      frame++;
      ctx.clearRect(0, 0, W, H);

      // 深蓝背景渐变
      const grad = ctx.createLinearGradient(0, 0, W, H);
      grad.addColorStop(0, '#020e1f');
      grad.addColorStop(0.4, '#051c3a');
      grad.addColorStop(0.7, '#041830');
      grad.addColorStop(1, '#020e1f');
      ctx.fillStyle = grad;
      ctx.fillRect(0, 0, W, H);

      // 呼吸光球（大型柔光）
      orbs.forEach(o => {
        o.phase += o.speed;
        const scale = 0.8 + Math.sin(o.phase) * 0.2;
        const r = o.r * scale;
        const a = 0.10 + Math.sin(o.phase) * 0.04;
        const og = ctx.createRadialGradient(o.x, o.y, 0, o.x, o.y, r);
        og.addColorStop(0, 'rgba(0,140,240,' + a + ')');
        og.addColorStop(0.5, 'rgba(0,100,200,' + (a * 0.4) + ')');
        og.addColorStop(1, 'rgba(0,80,180,0)');
        ctx.fillStyle = og;
        ctx.fillRect(o.x - r, o.y - r, r * 2, r * 2);
      });

      // 贝塞尔柔美曲线丝带
      bezierRibbons.forEach(b => {
        b.phase += b.speed;
        const wobble = Math.sin(b.phase) * 15;
        ctx.strokeStyle = 'rgba(0,200,255,' + b.a + ')';
        ctx.lineWidth = 1.5;
        ctx.beginPath();
        ctx.moveTo(b.x1, b.y1);
        ctx.bezierCurveTo(b.cx1, b.cy1 + wobble, b.cx2, b.cy2 - wobble, b.x2, b.y2);
        ctx.stroke();
        // 内层亮线
        ctx.strokeStyle = 'rgba(0,255,255,' + (b.a * 0.5) + ')';
        ctx.lineWidth = 0.5;
        ctx.beginPath();
        ctx.moveTo(b.x1, b.y1);
        ctx.bezierCurveTo(b.cx1, b.cy1 + wobble * 0.5, b.cx2, b.cy2 - wobble * 0.5, b.x2, b.y2);
        ctx.stroke();
      });

      // 数学优美曲线
      mathCurves.forEach(mc => {
        mc.phase += mc.speed;
        ctx.strokeStyle = 'rgba(0,210,255,' + mc.a + ')';
        ctx.lineWidth = 1.5;
        ctx.beginPath();
        if (mc.type === 0) {
          // 正弦波
          for (let x = -mc.len / 2; x <= mc.len / 2; x += 2) {
            const y = Math.sin(x * mc.freq + mc.phase) * mc.amp;
            if (x === -mc.len / 2) ctx.moveTo(mc.cx + x, mc.cy + y);
            else ctx.lineTo(mc.cx + x, mc.cy + y);
          }
          ctx.stroke();
        } else if (mc.type === 1) {
          // 利萨如曲线
          for (let t = 0; t < Math.PI * 2; t += 0.02) {
            const x = Math.sin(t * 3 + mc.phase) * mc.amp;
            const y = Math.sin(t * 2) * mc.amp * 0.7;
            if (t === 0) ctx.moveTo(mc.cx + x, mc.cy + y);
            else ctx.lineTo(mc.cx + x, mc.cy + y);
          }
          ctx.stroke();
        } else {
          // 螺旋线
          for (let t = 0; t < Math.PI * 6; t += 0.05) {
            const r = t * 4;
            const x = Math.cos(t + mc.phase) * r;
            const y = Math.sin(t + mc.phase) * r;
            if (t === 0) ctx.moveTo(mc.cx + x, mc.cy + y);
            else ctx.lineTo(mc.cx + x, mc.cy + y);
          }
          ctx.stroke();
        }
        // 曲线上的流动光点
        const tFlow = (mc.phase * 2) % 1;
        if (mc.type === 0) {
          const fx = mc.cx - mc.len / 2 + tFlow * mc.len;
          const fy = mc.cy + Math.sin((fx - mc.cx) * mc.freq + mc.phase) * mc.amp;
          ctx.beginPath();
          ctx.arc(fx, fy, 3, 0, Math.PI * 2);
          ctx.fillStyle = 'rgba(0,255,255,0.6)';
          ctx.fill();
          ctx.beginPath();
          ctx.arc(fx, fy, 6, 0, Math.PI * 2);
          ctx.fillStyle = 'rgba(0,255,255,0.12)';
          ctx.fill();
        }
      });

      // 芯片晶圆轮廓 — 柔美圆角矩形 + 内部走线
      chipDie.forEach(cd => {
        cd.phase += cd.speed;
        const a = cd.a + Math.sin(cd.phase) * 0.03;
        ctx.save();
        ctx.translate(cd.x, cd.y);
        // 主体圆角矩形
        ctx.strokeStyle = 'rgba(0,200,255,' + a + ')';
        ctx.lineWidth = 1.2;
        ctx.beginPath();
        ctx.roundRect(-cd.w / 2, -cd.h / 2, cd.w, cd.h, cd.r);
        ctx.stroke();
        // 内部边框
        ctx.strokeStyle = 'rgba(0,180,255,' + (a * 0.5) + ')';
        ctx.lineWidth = 0.5;
        ctx.beginPath();
        ctx.roundRect(-cd.w / 2 + 8, -cd.h / 2 + 8, cd.w - 16, cd.h - 16, cd.r - 2);
        ctx.stroke();
        // 内部交叉走线
        ctx.strokeStyle = 'rgba(0,220,255,' + (a * 0.4) + ')';
        ctx.lineWidth = 0.4;
        for (let i = 1; i < 4; i++) {
          ctx.beginPath();
          ctx.moveTo(-cd.w / 2 + 8, -cd.h / 2 + (i * (cd.h - 16)) / 4);
          ctx.lineTo(cd.w / 2 - 8, -cd.h / 2 + (i * (cd.h - 16)) / 4);
          ctx.stroke();
          ctx.beginPath();
          ctx.moveTo(-cd.w / 2 + (i * (cd.w - 16)) / 4, -cd.h / 2 + 8);
          ctx.lineTo(-cd.w / 2 + (i * (cd.w - 16)) / 4, cd.h / 2 - 8);
          ctx.stroke();
        }
        // 中心发光点
        const cg = ctx.createRadialGradient(0, 0, 0, 0, 0, cd.w * 0.15);
        cg.addColorStop(0, 'rgba(0,255,255,' + (a * 1.5) + ')');
        cg.addColorStop(1, 'rgba(0,255,255,0)');
        ctx.fillStyle = cg;
        ctx.fillRect(-cd.w * 0.15, -cd.h * 0.15, cd.w * 0.3, cd.h * 0.3);
        // 四角标记
        ctx.fillStyle = 'rgba(0,220,255,' + (a * 1.2) + ')';
        [[-1,-1],[1,-1],[-1,1],[1,1]].forEach(([dx,dy]) => {
          ctx.beginPath();
          ctx.arc(dx * (cd.w/2 - 4), dy * (cd.h/2 - 4), 1.5, 0, Math.PI * 2);
          ctx.fill();
        });
        ctx.restore();
      });

      // AI神经网络 — 层间连接 + 激活脉冲
      // 先画连线
      ctx.lineWidth = 0.4;
      for (let l = 0; l < nnLayers.length - 1; l++) {
        const layer1 = neuralNet.filter(n => n.layer === l);
        const layer2 = neuralNet.filter(n => n.layer === l + 1);
        layer1.forEach(n1 => {
          layer2.forEach(n2 => {
            const a = 0.05;
            ctx.strokeStyle = 'rgba(0,180,255,' + a + ')';
            ctx.beginPath();
            ctx.moveTo(n1.x, n1.y);
            ctx.lineTo(n2.x, n2.y);
            ctx.stroke();
          });
        });
      }
      // 激活脉冲 — 沿连线流动
      const pulseLayer = Math.floor(frame * 0.01) % (nnLayers.length - 1);
      const pulseT = (frame * 0.02) % 1;
      const layer1 = neuralNet.filter(n => n.layer === pulseLayer);
      const layer2 = neuralNet.filter(n => n.layer === pulseLayer + 1);
      layer1.forEach((n1, i) => {
        layer2.forEach((n2, j) => {
          if ((i + j + Math.floor(frame * 0.005)) % 3 === 0) {
            const px = n1.x + (n2.x - n1.x) * pulseT;
            const py = n1.y + (n2.y - n1.y) * pulseT;
            ctx.beginPath();
            ctx.arc(px, py, 2, 0, Math.PI * 2);
            ctx.fillStyle = 'rgba(0,255,200,0.7)';
            ctx.fill();
            ctx.beginPath();
            ctx.arc(px, py, 5, 0, Math.PI * 2);
            ctx.fillStyle = 'rgba(0,255,200,0.1)';
            ctx.fill();
          }
        });
      });
      // 神经元节点
      neuralNet.forEach(n => {
        n.phase += n.speed;
        const a = 0.3 + Math.sin(n.phase) * 0.2;
        ctx.beginPath();
        ctx.arc(n.x, n.y, n.r, 0, Math.PI * 2);
        ctx.fillStyle = 'rgba(0,220,255,' + a + ')';
        ctx.fill();
        ctx.beginPath();
        ctx.arc(n.x, n.y, n.r * 2.5, 0, Math.PI * 2);
        ctx.fillStyle = 'rgba(0,220,255,' + (a * 0.15) + ')';
        ctx.fill();
      });

      // 唯美流动光丝 — 正弦波曲线沿屏幕流动
      for (let i = 0; i < 6; i++) {
        const baseY = H * (0.1 + i * 0.15);
        const freq = 0.008 + i * 0.002;
        const amp = 20 + i * 8;
        const speed = frame * (0.008 + i * 0.003);
        ctx.strokeStyle = 'rgba(0,200,255,' + (0.06 + i * 0.015) + ')';
        ctx.lineWidth = 1;
        ctx.beginPath();
        for (let x = 0; x <= W; x += 3) {
          const wave = Math.sin(x * freq + speed) * amp;
          const y = baseY + wave + Math.sin(x * 0.003 + frame * 0.01) * 10;
          if (x === 0) ctx.moveTo(x, y);
          else ctx.lineTo(x, y);
        }
        ctx.stroke();
        // 光丝上的流动光点
        const dotX = (frame * (1 + i * 0.3)) % W;
        const dotWave = Math.sin(dotX * freq + speed) * amp;
        const dotY = baseY + dotWave + Math.sin(dotX * 0.003 + frame * 0.01) * 10;
        ctx.beginPath();
        ctx.arc(dotX, dotY, 2, 0, Math.PI * 2);
        ctx.fillStyle = 'rgba(0,255,255,0.5)';
        ctx.fill();
      }

      // 六边形网格 — 整体波浪呼吸效果
      const hexSize = 40;
      const hexW = hexSize * 1.7;
      const hexH = hexSize * 1.5;
      const wavePhase = frame * 0.01;
      for (let row = -1; row < H / hexH + 1; row++) {
        for (let col = -1; col < W / hexW + 1; col++) {
          const baseHx = col * hexW + (row % 2) * hexW / 2;
          const baseHy = row * hexH;
          // 波浪偏移
          const offsetY = Math.sin(col * 0.15 + wavePhase) * 4 + Math.sin(row * 0.1 + wavePhase * 0.7) * 3;
          const hx = baseHx;
          const hy = baseHy + offsetY;
          // 距离中心的亮度
          const distCenter = Math.sqrt(Math.pow(hx - W * 0.7, 2) + Math.pow(hy - H * 0.4, 2));
          const brightness = Math.max(0.03, 0.08 - distCenter / Math.max(W, H) * 0.05);
          ctx.strokeStyle = 'rgba(0,160,255,' + brightness + ')';
          ctx.lineWidth = 0.6;
          ctx.beginPath();
          for (let k = 0; k < 6; k++) {
            const ang = (k / 6) * Math.PI * 2 + Math.PI / 6;
            const px = hx + Math.cos(ang) * hexSize * 0.5;
            const py = hy + Math.sin(ang) * hexSize * 0.5;
            if (k === 0) ctx.moveTo(px, py);
            else ctx.lineTo(px, py);
          }
          ctx.closePath();
          ctx.stroke();
        }
      }
      // 高亮六边形 — 沿波浪流动
      hexHighlights.forEach(h => {
        h.phase += h.speed;
        const a = 0.10 + Math.sin(h.phase) * 0.06;
        const baseHx = h.col * hexW + (h.row % 2) * hexW / 2;
        const baseHy = h.row * hexH;
        const offsetY = Math.sin(h.col * 0.15 + wavePhase) * 4 + Math.sin(h.row * 0.1 + wavePhase * 0.7) * 3;
        const hx = baseHx;
        const hy = baseHy + offsetY;
        ctx.beginPath();
        for (let k = 0; k < 6; k++) {
          const ang = (k / 6) * Math.PI * 2 + Math.PI / 6;
          const px = hx + Math.cos(ang) * hexSize * 0.5;
          const py = hy + Math.sin(ang) * hexSize * 0.5;
          if (k === 0) ctx.moveTo(px, py);
          else ctx.lineTo(px, py);
        }
        ctx.closePath();
        ctx.fillStyle = 'rgba(0,220,255,' + a + ')';
        ctx.fill();
        ctx.strokeStyle = 'rgba(0,255,255,' + (a * 1.5) + ')';
        ctx.lineWidth = 1.2;
        ctx.stroke();
        // 中心发光
        ctx.beginPath();
        ctx.arc(hx, hy, 3, 0, Math.PI * 2);
        ctx.fillStyle = 'rgba(0,255,255,' + (a * 0.8) + ')';
        ctx.fill();
      });

      // 交叉光线 — 从边缘射入，缓慢扫过
      for (let i = 0; i < 4; i++) {
        const angle = (frame * 0.002 + i * Math.PI / 2) % (Math.PI * 2);
        const startX = W * 0.5 + Math.cos(angle) * W * 0.6;
        const startY = H * 0.5 + Math.sin(angle) * H * 0.6;
        const endX = W * 0.5 + Math.cos(angle + Math.PI) * W * 0.6;
        const endY = H * 0.5 + Math.sin(angle + Math.PI) * H * 0.6;
        const rg = ctx.createLinearGradient(startX, startY, endX, endY);
        rg.addColorStop(0, 'rgba(0,200,255,0)');
        rg.addColorStop(0.3, 'rgba(0,200,255,0.03)');
        rg.addColorStop(0.5, 'rgba(0,220,255,0.08)');
        rg.addColorStop(0.7, 'rgba(0,200,255,0.03)');
        rg.addColorStop(1, 'rgba(0,200,255,0)');
        ctx.strokeStyle = rg;
        ctx.lineWidth = 2;
        ctx.beginPath();
        ctx.moveTo(startX, startY);
        ctx.lineTo(endX, endY);
        ctx.stroke();
      }

      // 电路走线（直角路径 + 数据流光点）
      circuitLines.forEach(cl => {
        cl.phase += cl.speed;
        ctx.strokeStyle = 'rgba(0,160,255,' + cl.a + ')';
        ctx.lineWidth = 1;
        ctx.beginPath();
        cl.path.forEach((p, i) => {
          if (i === 0) ctx.moveTo(p.x, p.y);
          else ctx.lineTo(p.x, p.y);
        });
        ctx.stroke();
        // 端点
        cl.path.forEach((p, i) => {
          if (i === 0 || i === cl.path.length - 1) {
            ctx.beginPath();
            ctx.arc(p.x, p.y, 2.5, 0, Math.PI * 2);
            ctx.fillStyle = 'rgba(0,220,255,' + (cl.a * 2) + ')';
            ctx.fill();
          }
        });
        // 流动光点
        const totalSegs = cl.path.length - 1;
        const segT = (cl.phase % 1) * totalSegs;
        const segIdx = Math.floor(segT);
        const segFrac = segT - segIdx;
        if (segIdx < totalSegs) {
          const p1 = cl.path[segIdx];
          const p2 = cl.path[segIdx + 1];
          const px = p1.x + (p2.x - p1.x) * segFrac;
          const py = p1.y + (p2.y - p1.y) * segFrac;
          ctx.beginPath();
          ctx.arc(px, py, 2, 0, Math.PI * 2);
          ctx.fillStyle = 'rgba(0,255,255,0.8)';
          ctx.fill();
          // 光晕
          ctx.beginPath();
          ctx.arc(px, py, 5, 0, Math.PI * 2);
          ctx.fillStyle = 'rgba(0,255,255,0.15)';
          ctx.fill();
        }
      });

      // 数字数据流（垂直下落）
      ctx.font = '10px monospace';
      dataStreams.forEach(ds => {
        ds.y += ds.speed;
        if (ds.y > H + 100) {
          ds.y = -50;
          ds.x = W * (0.5 + Math.random() * 0.5);
        }
        for (let i = 0; i < ds.maxLen; i++) {
          const charY = ds.y - i * 12;
          if (charY < 0 || charY > H) continue;
          const fadeA = ds.a * (1 - i / ds.maxLen);
          const char = Math.random() > 0.5 ? (Math.floor(Math.random() * 2)) : String.fromCharCode(0x30 + Math.floor(Math.random() * 2));
          ctx.fillStyle = 'rgba(0,200,255,' + fadeA + ')';
          ctx.fillText(char, ds.x, charY);
        }
      });

      // 流动光带（水平穿越）
      streaks.forEach(s => {
        s.offset += s.speed;
        if (s.offset > W + s.len) s.offset = -s.len;
        const sg = ctx.createLinearGradient(s.offset - s.len, 0, s.offset, 0);
        sg.addColorStop(0, 'rgba(0,200,255,0)');
        sg.addColorStop(0.5, 'rgba(0,200,255,' + s.a + ')');
        sg.addColorStop(1, 'rgba(0,200,255,0)');
        ctx.strokeStyle = sg;
        ctx.lineWidth = 1.5;
        ctx.beginPath();
        ctx.moveTo(s.offset - s.len, s.y);
        ctx.lineTo(s.offset, s.y);
        ctx.stroke();
      });

      // 大型旋转光环 + 雷达扫描
      rings.forEach(ring => {
        ring.phase += ring.speed;
        const a = 0.18 + Math.sin(frame * 0.008 + ring.phase) * 0.06;
        ctx.save();
        ctx.translate(ring.x, ring.y);
        ctx.rotate(ring.phase);
        // 主弧线
        ctx.strokeStyle = 'rgba(0,210,255,' + a + ')';
        ctx.lineWidth = ring.thickness;
        ctx.beginPath();
        ctx.arc(0, 0, ring.r, 0, Math.PI * 2 * ring.arcLen);
        ctx.stroke();
        // 对侧短弧
        ctx.beginPath();
        ctx.arc(0, 0, ring.r, Math.PI, Math.PI + Math.PI * 2 * ring.arcLen * 0.4);
        ctx.strokeStyle = 'rgba(0,190,255,' + (a * 0.5) + ')';
        ctx.stroke();
        // 外圈虚线
        ctx.setLineDash([2, 12]);
        ctx.lineWidth = 0.5;
        ctx.strokeStyle = 'rgba(0,170,255,' + (a * 0.4) + ')';
        ctx.beginPath();
        ctx.arc(0, 0, ring.r + 12, 0, Math.PI * 2);
        ctx.stroke();
        ctx.setLineDash([]);
        ctx.restore();
        // 雷达扫描扇形
        const sweepAng = (frame * 0.015) % (Math.PI * 2);
        const sweepGrad = ctx.createRadialGradient(ring.x, ring.y, 0, ring.x, ring.y, ring.r);
        sweepGrad.addColorStop(0, 'rgba(0,255,200,0)');
        sweepGrad.addColorStop(1, 'rgba(0,255,200,0.06)');
        ctx.fillStyle = sweepGrad;
        ctx.beginPath();
        ctx.moveTo(ring.x, ring.y);
        ctx.arc(ring.x, ring.y, ring.r, sweepAng - 0.4, sweepAng);
        ctx.closePath();
        ctx.fill();
        // 扫描线
        ctx.strokeStyle = 'rgba(0,255,200,0.15)';
        ctx.lineWidth = 1;
        ctx.beginPath();
        ctx.moveTo(ring.x, ring.y);
        ctx.lineTo(ring.x + Math.cos(sweepAng) * ring.r, ring.y + Math.sin(sweepAng) * ring.r);
        ctx.stroke();
      });

      // 电路节点连线
      ctx.lineWidth = 0.5;
      for (let i = 0; i < nodes.length; i++) {
        for (let j = i+1; j < nodes.length; j++) {
          const dx = nodes[i].x - nodes[j].x;
          const dy = nodes[i].y - nodes[j].y;
          const dist = Math.sqrt(dx*dx + dy*dy);
          if (dist < W * 0.22) {
            const alpha = (1 - dist / (W*0.22)) * 0.10;
            ctx.strokeStyle = 'rgba(0,170,255,' + alpha + ')';
            ctx.beginPath();
            ctx.moveTo(nodes[i].x, nodes[i].y);
            ctx.lineTo(nodes[j].x, nodes[j].y);
            ctx.stroke();
            // 数据流光点
            if ((i + j + Math.floor(frame * 0.015)) % 9 === 0) {
              const t = ((frame * 0.008 + i * 0.3) % 1);
              const px = nodes[i].x + (nodes[j].x - nodes[i].x) * t;
              const py = nodes[i].y + (nodes[j].y - nodes[i].y) * t;
              ctx.beginPath();
              ctx.arc(px, py, 1.5, 0, Math.PI * 2);
              ctx.fillStyle = 'rgba(0,255,255,0.5)';
              ctx.fill();
            }
          }
        }
      }

      // 节点闪烁
      nodes.forEach(n => {
        n.pulse += n.speed;
        const a = 0.25 + Math.sin(n.pulse) * 0.15;
        ctx.beginPath();
        ctx.arc(n.x, n.y, 1.5, 0, Math.PI * 2);
        ctx.fillStyle = 'rgba(0,210,255,' + a + ')';
        ctx.fill();
        ctx.beginPath();
        ctx.arc(n.x, n.y, 4, 0, Math.PI * 2);
        ctx.fillStyle = 'rgba(0,210,255,' + (a * 0.15) + ')';
        ctx.fill();
      });

      // 浮动粒子
      particles.forEach(p => {
        p.x += p.vx;
        p.y += p.vy;
        p.pulse += 0.03;
        if (p.x < 0) p.x = W;
        if (p.x > W) p.x = 0;
        if (p.y < 0) p.y = H;
        if (p.y > H) p.y = 0;
        const a = p.a * (0.5 + Math.sin(p.pulse) * 0.3);
        ctx.beginPath();
        ctx.arc(p.x, p.y, p.r, 0, Math.PI * 2);
        ctx.fillStyle = 'rgba(100,200,255,' + a + ')';
        ctx.fill();
      });

      requestAnimationFrame(draw);
    }

    function init() {
      resize();
      initParticles();
      initNodes();
      initElements();
      draw();
    }

    let resizeTimer;
    window.addEventListener('resize', function() {
      clearTimeout(resizeTimer);
      resizeTimer = setTimeout(function() {
        resize();
        initParticles();
        initNodes();
        initElements();
      }, 200);
    });

    init();
  })();
  </script>
<style>
/* ========== Footer Layout ========== */
.simple-footer {
    background: #f5f7fa;
    color: #333;
    position: relative;
    overflow: hidden;
    border-top: 3px solid #0573C3;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 32px 0;
    position: relative;
    z-index: 1;
}

/* --- Top: Company Info + Nav Links --- */
.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e4ea;
}

/* Company Info Column */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.footer-brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.footer-brand-logo img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.footer-brand-logo .brand-text {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.5px;
}

/* Phone Number */
.footer-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.footer-phone svg {
    width: 20px;
    height: 20px;
    color: #0573C3;
    flex-shrink: 0;
    stroke-width: 2;
}

.footer-phone span {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    letter-spacing: 1px;
}

/* --- Nav Columns --- */
.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr 1fr 1fr;
    gap: 0;
}

.footer-nav-col {
    padding: 0 15px;
}

.footer-nav-col:first-child {
    padding-left: 0;
}

.footer-nav-col:last-child {
    padding-right: 0;
}

.footer-nav-col h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 16px;
    letter-spacing: 0.3px;
}

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

.footer-nav-links li {
    margin: 0;
    padding: 5px 0;
}

.footer-nav-links a {
    color: #5a6270;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: inline-block;
    white-space: nowrap;
}

.footer-nav-links a:hover {
    color: #0573C3;
}

/* Footer产品分类分组标题 */
.footer-nav-links .footer-group-title {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.02em;
    padding: 8px 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: -3px;
}
.footer-nav-links .footer-group-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 12px;
    background: #94a3b8;
    border-radius: 2px;
    flex-shrink: 0;
}
.footer-nav-links .footer-group-title-link {
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
}
.footer-nav-links .footer-group-title-link:hover {
    color: #0573C3;
    text-decoration: underline;
}
.footer-nav-links .footer-sub-item {
    padding-left: 9px;
}

/* --- Bottom Bar --- */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    margin-top: 0;
}

.footer-copyright {
    font-size: 13px;
    color: #6a7280;
}

.footer-copyright a {
    color: #6a7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-copyright a:hover {
    color: #0573C3;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 0;
    }

    .footer-nav-col {
        padding: 0;
    }
}

@media (max-width: 640px) {
    .footer-container {
        padding: 32px 20px 0;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 0;
    }

    .footer-nav-col h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .footer-nav-links a {
        font-size: 13px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px 0;
    }

    .footer-phone span {
        font-size: 18px;
    }
}
</style>

<footer class="simple-footer">
  <div class="footer-container">
    <!-- Top Section: Brand + Nav -->
    <div class="footer-top">
      <!-- Left: Company Info -->
      <div class="footer-brand">
        <a href="/" class="footer-brand-logo" aria-label="Home">
          <img src="/uploads/allimg/20250929/1-2509291S3311O.png" alt="英达森斯半导体" onerror="this.style.display='none'">
          <span class="brand-text">英达森斯半导体</span>
        </a>
        <div class="footer-phone">
          <svg viewBox="0 0 24 24" fill="none" stroke="currentColor"><path d="M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72c.127.96.361 1.903.7 2.81a2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0122 16.92z"/></svg>
          <span>021 - 5877 8728</span>
        </div>
      </div>

      <!-- Right: Nav Links (4 columns) -->
      <nav class="footer-nav" aria-label="Footer navigation">
        <div class="footer-nav-col">
          <h4>产品</h4>
          <ul class="footer-nav-links">
            <li class="footer-group-title"><a href="/index.php?m=home&c=Lists&a=index&tid=70" class="footer-group-title-link">电感式编码器芯片</a></li><li class="footer-sub-item"><a href="/index.php?m=home&c=Lists&a=index&tid=71">模拟输出芯片</a></li><li class="footer-sub-item"><a href="/index.php?m=home&c=Lists&a=index&tid=72">数字输出芯片</a></li><li class="footer-sub-item"><a href="/index.php?m=home&c=Lists&a=index&tid=22">混合信号输出</a></li>          </ul>
        </div>

        <div class="footer-nav-col">
          <h4>解决方案</h4>
          <ul class="footer-nav-links">
                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=98">工业自动化</a></li>
                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=99">具身智能与机器人</a></li>
                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=100">汽车电子与线控底盘</a></li>
                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=101">新能源与高端装备</a></li>
                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=102">智慧医疗与智能生活</a></li>
                      </ul>
        </div>

        <div class="footer-nav-col">
          <h4>设计与开发</h4>
          <ul class="footer-nav-links">
                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=78">评测套件</a></li>
                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=79">开发工具</a></li>
                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=82">参考设计</a></li>
                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=5">算法赋能（AI）</a></li>
                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=32">iCoil Studio PCB线圈设计平台</a></li>
                      </ul>
        </div>

        <div class="footer-nav-col">
          <h4>服务和支持</h4>
          <ul class="footer-nav-links">
                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=74">文档中心</a></li>
                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=75">工具下载</a></li>
                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=76">技术支持</a></li>
                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=77">常见问题</a></li>
                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=103">视频专区</a></li>
                      </ul>
        </div>

        <div class="footer-nav-col">
          <h4>关于英达森斯</h4>
          <ul class="footer-nav-links">
                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=8">公司简介</a></li>
                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=9">简历投递</a></li>
                        <li><a href="/index.php?m=home&c=Lists&a=index&tid=30">联系我们</a></li>
                      </ul>
        </div>
      </nav>
    </div>

    <!-- Bottom Bar -->
    <div class="footer-bottom">
      <div class="footer-copyright">© 2026 英达森斯半导体. All rights reserved.</div>
      <div class="footer-copyright"><a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank"><a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">沪ICP备2024093817号-1</a></a></div>
    </div>
  </div>
</footer>
<script defer src="/public/plugins/Ueditor/third-party/jquery-1.10.2.min.js"></script>
<script defer src="/public/plugins/layer-v3.1.0/layer.js"></script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?fc96e815e6f2d660cb3ca6c41688c320";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();

// Update cart badge on page load
// jQuery 以 defer 方式加载，需等待 DOMContentLoaded（defer 脚本先于此事件执行）后再调用 $
document.addEventListener('DOMContentLoaded', function() {
  $.ajax({
    url: '/index.php?m=user&c=Shop&a=shop_cart_num&_ajax=1',
    type: 'get',
    dataType: 'json',
    success: function(res) {
      if (res.code == 1 && res.data > 0) {
        var badge = document.getElementById('cartBadge');
        if (badge) {
          badge.textContent = res.data;
          badge.style.display = 'flex';
        }
      }
    }
  });
});
</script>

<script>
/* 强制所有内部链接在当前窗口打开 */
document.addEventListener('DOMContentLoaded', function() {
    document.querySelectorAll('a').forEach(function(a) {
        var href = a.getAttribute('href');
        if (href && !href.startsWith('http') && !href.startsWith('//') && !href.startsWith('javascript')) {
            a.removeAttribute('target');
        }
        if (href && href.startsWith('/') && !href.startsWith('//')) {
            a.removeAttribute('target');
        }
    });
});
</script>

<script type="text/javascript">var root_dir="";var ey_aid=0;</script>
<script language="javascript" type="text/javascript" src="/public/static/common/js/ey_footer.js?v=v1.8.1.0"></script>
</body>
</html>

