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

body {
    font-family: Arial, Helvetica, sans-serif;
    /* 小屏笔记本：禁止因内部大图/定宽元素产生横向滚动条 */
    overflow-x: hidden;
}

/* 所有图片最大不超过父容器，避免小屏被撑破 */
img {
    max-width: 100%;
}
a,
a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
}

/* header 默认 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 999;
    background: transparent;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);

}

/* 滚动后的 header */
.header.scrolled {
    background: #2b373e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header.scrolled2 {
    background: #f0b260;
}
.header.scrolled3 {
    background: #59e2f7;
}

.header.scrolled4 {
    background: #fff;
}

.header.scrolled5 {
    background: #9eceef;
}

.header.scrolled6 {
    background: #ccd9d8;
}
/* container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* logo */
.logo img {
    height: 40px;
}

/* nav */
.menu {
    display: flex;
    list-style: none;
    height: 100%;
    align-items: center;
}

.menu li {
    position: relative;

}

.menu .mag40 {
    margin-left: 20px;
    padding-left: 24px;
    padding-right: 24px;
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    height: 80px;
}

/* hover 下划线 */
.menu .bot:hover > a::after,
.menu .bot.active > a::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    font-weight: 700;
}

.menu .bot:hover > a,
.menu .bot.active > a {
    font-weight: 700;
}

/* 一级下拉 */
.submenu {
    position: absolute;
    top: 80px;
    left: 0;
    background: #848484;
    list-style: none;
    min-width: 120px;
    display: none;
}

/* 防止 hover 消失 */
.dropdown:hover .submenu {
    display: block;
}

/* submenu item */
.submenu li {
    position: relative;
}

.submenu a {
    height: auto;
    padding: 12px 0;
    color: #ddd;

    display: inline-block;
    text-align: center;
    width: 100%;
}

.submenu a:hover {
    /*background: #2e3a40;*/
    color: #ffe100;
}

/* 二级菜单 */
.child-menu {
    position: absolute;
    top: 0;
    left: 100%;
    background: #848484;
    list-style: none;
    min-width: 120px;
    display: none;
}

/* hover 出现 */
.has-child:hover .child-menu {
    display: block;
}

/* language */
.lang a {
    /*border-left: 1px solid rgba(255, 255, 255, 0.3);*/
    /*padding-left: 20px;*/
}

.lang .header1 {
    width: 16px;
    height: 16px;
    margin-right: 10px;
}

.lang .header2 {
    width: 12px;
    height: 6px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}


/* hover 时旋转 */
.lang:hover .header2 {
    transform: rotate(180deg);
}

.w1200 {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: auto;
}


.site-footer {
    /*background-color: #050505;*/
    background: url("/static/img/footer_bg1.png") no-repeat center/cover;
    color: #a0a0a0;
    padding: 50px 20px 20px;
    font-size: 12px;
    line-height: 1.8;
    position: relative;
    /* 原来是 hidden，会把鼠标悬浮时向上弹出的二维码裁掉，改为 visible */
    overflow: visible;
}

/* 主容器：分为左右两大部分 */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px; /* 左边 Logo 和右边内容的间距 */
    position: relative;
    z-index: 2;
}

/* --- 左侧：Logo 区域 (独立，不受横线影响) --- */
.footer-left {
    flex-shrink: 0;
    width: 140px;
    text-align: center;
    padding-top: 10px; /* 微调垂直对齐 */
}

.footer-logo-placeholder {
    width: 100%;
    height: 70px;
    /*background-color: #222;*/
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    /*border: 1px dashed #555;*/
    font-size: 12px;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.footer-social-icons a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #a0a0a0;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-social-icons a:hover {
    color: #ffd700;
}

/* 鼠标悬浮图标时向上弹出的二维码 */
.footer-qrcode {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    z-index: 20;
    /*
     * 必须显式给宽度：绝对定位元素的宽度本来是靠内容撑，
     * 但内部图片受全局 img { max-width: 100% } 约束，而那个百分比又依赖这个容器宽度，
     * 互相依赖的结果是宽度被算成 0，只剩 padding 那点白边。
     */
    width: 162px;
    padding: 6px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

/* 指向图标的小三角 */
.footer-qrcode::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #fff;
}

.footer-qrcode img {
    display: block;
    width: 150px;
    /* 解除全局 img { max-width: 100% } 带来的依赖 */
    max-width: none;
    height: auto;
    border-radius: 4px;
}

.footer-social-item:hover .footer-qrcode,
.footer-social-item:focus-within .footer-qrcode {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .footer-qrcode {
        width: 132px;
    }

    .footer-qrcode img {
        width: 120px;
    }
}

/* --- 右侧：所有内容区 (包含横线和列) --- */
.footer-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* ✅ 关键修正：横线现在只在这个右侧容器内，且贯穿所有列 */
.section-header-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #333; /* 这就是那条连起来的线 */
    padding-bottom: 15px;
    margin-bottom: 20px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: normal;
}

/* 让标题宽度与下方的列对应，保证视觉对齐 */
.header-col-1 { width: 15%; } /* 关于耐德佳 */
.header-col-2 { width: 15%; } /* 产品与应用 */
.header-col-3 { width: 15%; } /* 新闻动态 */
.header-col-4 { width: 15%; } /* 联系我们 */
.header-col-5 { width: 40%; } /* 联系方式 (占剩余空间) */

/* 下方的列内容 */
.section-content-row {
    display: flex;
    justify-content: space-between;
}

.content-col {
    display: flex;
    flex-direction: column;
}

/* 保持列宽与上方标题一致 */
.col-1 { width: 15%; }
.col-2 { width: 15%; }
.col-3 { width: 15%; }
.col-4 { width: 15%; }
.col-5 { width: 40%; }

.footer-nav-column ul {
    list-style: none;
}

.footer-nav-column ul li {
    margin-bottom: 10px;
}

.footer-nav-column ul li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav-column ul li a:hover {
    color: #ffd700;
}

/* 联系方式部分 */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.contact-item i {
    margin-right: 10px;
    margin-top: 3px;
    width: 14px;
    text-align: center;
    color: #a0a0a0;
}

.contact-item a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ffd700;
}

/* --- 底部光晕效果 (暂留空) --- */
.footer-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 100px;
    z-index: 1;
    pointer-events: none;
}

/* --- 版权信息区域 --- */
.footer-copyright {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #222;
    text-align: center;
    font-size: 11px;
    color: #666;
    position: relative;
    z-index: 2;
}

.footer-copyright a {
    color: #666;
    text-decoration: none;
}





/* --- Banner 主容器 --- */
.page-banner {
    position: relative;
    width: 100%;
    /* 高度随视口缩放：小屏笔记本不会顶出屏幕，大屏保持 525px */
    height: clamp(340px, 32vw, 525px);

    /* 背景图设置 */
    /* 请将 url('...') 替换为您实际的图片路径 */


    /* 关键：添加黑色遮罩层，让文字更清晰 */
    /* 这里的 rgba(0,0,0,0.6) 表示 60% 的黑色透明度，数字越大背景越黑 */
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.1);

    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: flex-start; /* 水平靠左 */
    padding-left: clamp(24px, 10%, 160px); /* 左侧留白，小屏不至于挤到边 */
    color: #ffffff;
    overflow: hidden;
}

/* --- 文字内容区域 --- */
.banner-content {
    max-width: 1200px; /* 限制最大宽度，防止在大屏幕上文字太靠右 */
    width: 100%;
    z-index: 2; /* 确保文字在遮罩层之上 */
}

/* 大标题 */
.banner-title {
    font-size: clamp(30px, 3vw, 48px); /* 字号较大，突出主题；小屏自动缩小 */
    font-weight: 700; /* 加粗 */
    margin-bottom: 16px;
    letter-spacing: 1px; /* 字间距微调 */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* 给文字加点阴影增加立体感 */
}

/* 副标题/描述 */
.banner-subtitle {
    font-size: clamp(15px, 1.3vw, 20px);
    font-weight: 300; /* 字体较细，显得精致 */
    color: #e0e0e0; /* 稍微灰一点，区分层级 */
    line-height: 1.5;
}

.logo2{
    width: 144px;
    height: 140px;
}

.fab{
    width: 34px;
    height: 34px;
}
.fa-lingying{
	 width: 14px;
    height: 14px;
	margin-top: 10px;
	margin-left: 10px;
}

.header-pro{
    border-bottom: 1px solid rgba(41, 41, 41, 0.5);
}

.header-pro .newa{
    color: #000;
}

.header-pro .bot:hover > .newa::after, .header-pro .bot.active > .newa::after{
    background: #000;
}


/* ==========================================================
   小屏笔记本适配（仅针对 1024~1440 的电脑屏幕，不含平板/手机）
   ========================================================== */

/* 1440 及以下的笔记本 */
@media (max-width: 1440px) {
    .menu .mag40 {
        margin-left: 12px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .footer-container {
        gap: 30px;
    }
}

/* 1366 / 1280 笔记本 */
@media (max-width: 1366px) {
    .menu .mag40 {
        margin-left: 8px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .menu a {
        font-size: 13px;
    }

    .logo img {
        height: 34px;
    }

    .footer-container {
        gap: 24px;
    }

    .footer-left {
        width: 120px;
    }

    /* 页脚：联系方式列收窄，其余列等分 */
    .header-col-1, .col-1,
    .header-col-2, .col-2,
    .header-col-3, .col-3,
    .header-col-4, .col-4 {
        width: 17%;
    }

    .header-col-5, .col-5 {
        width: 32%;
    }
}

/* 1024~1200 小屏电脑 */
@media (max-width: 1200px) {
    .container,
    .w1200 {
        padding: 0 16px;
    }

    .menu .mag40 {
        margin-left: 0;
        padding-left: 8px;
        padding-right: 8px;
    }

    .menu a {
        font-size: 12px;
    }

    .logo img {
        height: 30px;
    }

    .lang .header1 {
        margin-right: 6px;
    }

    .lang .header2 {
        margin-left: 6px;
    }

    /* 页脚：收窄 Logo 区，给右侧 5 列留足空间 */
    .footer-container {
        gap: 16px;
    }

    .footer-left {
        width: 110px;
    }

    .header-col-1, .col-1,
    .header-col-2, .col-2,
    .header-col-3, .col-3,
    .header-col-4, .col-4 {
        width: 16%;
    }

    .header-col-5, .col-5 {
        width: 36%;
    }

    .section-header-row,
    .section-content-row {
        gap: 12px;
    }

    .page-banner {
        padding-left: 24px;
    }
}


/* ==========================================================
   平板 / 手机端适配（<=1024px，PC 端样式不受影响）
   ========================================================== */

.nav-toggle,
.nav-mask {
    display: none;
}

@media (max-width: 1024px) {
    /* ---------- 头部 ---------- */
    .header {
        height: 64px;
    }

    .header .container {
        padding: 0 16px;
    }

    .logo img {
        height: 30px;
    }

    .nav-toggle {
        position: relative;
        z-index: 1002;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #fff;
        cursor: pointer;
        /* 浅色背景（首屏 banner）下也能看清 */
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
    }

    .header-pro .nav-toggle {
        color: #1a1a1a;
    }

    .header.scrolled .nav-toggle,
    .header.scrolled2 .nav-toggle,
    .header.scrolled3 .nav-toggle {
        color: #fff;
    }

    .header.scrolled4 .nav-toggle,
    .header.scrolled5 .nav-toggle,
    .header.scrolled6 .nav-toggle {
        color: #1a1a1a;
    }

    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .header.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .header.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .header.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* 抽屉导航 */
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1001;
        width: min(86vw, 360px);
        height: 100vh;
        height: 100dvh;
        padding: 84px 22px 40px;
        background: #2b373e;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        box-shadow: -8px 0 28px rgba(0, 0, 0, 0.25);
    }

    .header.nav-open .nav {
        transform: translateX(0);
    }

    .nav-mask {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .header.nav-open .nav-mask {
        opacity: 1;
        visibility: visible;
    }

    body.nav-open {
        overflow: hidden;
    }

    .header .nav .menu {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        height: auto;
    }

    .header .nav .menu .mag40 {
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .header .nav .menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header .nav .menu > li:last-child {
        border-bottom: 0;
    }

    .header .nav .menu a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        height: auto;
        padding: 15px 0;
        font-size: 15px;
        font-weight: 400;
        color: #fff;
    }

    .header .nav .menu .bot:hover > a::after,
    .header .nav .menu .bot.active > a::after {
        display: none;
    }

    .header .nav .menu .bot.active > a {
        color: #ffd700;
    }

    /* 展开箭头 */
    .nav .menu .dropdown > a::before,
    .nav .menu .has-child > a::before {
        content: '';
        order: 1;
        flex: 0 0 auto;
        margin-left: auto;
        margin-right: 4px;
        width: 0;
        height: 0;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 5px solid currentColor;
        transition: transform 0.3s ease;
    }

    .nav .menu .dropdown.open > a::before,
    .nav .menu .has-child.open > a::before {
        transform: rotate(180deg);
    }

    /* 子菜单 */
    .nav .submenu,
    .nav .child-menu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        margin: 0 0 10px;
        padding: 2px 0 2px 12px;
        background: transparent;
        border-left: 1px solid rgba(255, 255, 255, 0.14);
    }

    .nav .child-menu {
        margin-left: 12px;
        padding-left: 10px;
    }

    /* 移动端不依赖 hover */
    .nav .dropdown:hover > .submenu,
    .nav .has-child:hover > .child-menu {
        display: none;
    }

    .nav .dropdown.open > .submenu,
    .nav .has-child.open > .child-menu {
        display: block;
    }

    .header .nav .submenu a,
    .header .nav .child-menu a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 11px 0;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.72);
    }

    .header .nav .submenu a:hover,
    .header .nav .child-menu a:hover {
        color: #ffd700;
    }

    /* 语言切换 */
    .header .nav .menu > .lang > a {
        gap: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header .nav .menu > .lang .header2 {
        transform: rotate(0deg);
    }

    .nav .lang.open > a .header2 {
        transform: rotate(180deg);
    }

    /* ---------- 页脚 ---------- */
    .site-footer {
        padding: 40px 16px 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 0;
    }

    .footer-logo-placeholder {
        height: auto;
        margin-bottom: 0;
    }

    .footer-social-icons {
        margin-top: 16px;
        gap: 20px;
        flex-wrap: wrap;
    }

    .footer-right {
        width: 100%;
    }

    .section-header-row {
        display: none;
    }

    .section-content-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 28px 20px;
    }

    .content-col,
    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5 {
        width: auto;
    }

    .content-col::before {
        content: attr(data-title);
        display: block;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid #333;
        font-size: 14px;
        color: #e0e0e0;
    }

    .col-5 {
        grid-column: 1 / -1;
    }

    .footer-copyright {
        margin-top: 28px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    /* 手机端底部：隐藏装饰背景图，改用纯黑背景 */
    .site-footer {
        background-image: none;
        background-color: #050505;
    }

    /* 手机端 banner：压低高度，减少宽幅背景图左右被裁掉的部分 */
    .page-banner {
        height: 200px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .banner-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .banner-subtitle {
        font-size: 14px;
        line-height: 1.6;
    }
}

@media (max-width: 600px) {
    .nav {
        width: min(88vw, 340px);
    }

    .section-content-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }

    .footer-nav-column ul li {
        margin-bottom: 8px;
    }

    .footer-copyright p {
        line-height: 1.8;
    }
}


