body {margin:0;padding:0;line-height:2;color:#111;font-family:Helvetica, Arial, sans-serif;font-size:16px;}
a{outline: none;text-decoration:none;transition: color .3s,opacity .3s,transform .3s;color:#111;}
a:hover{outline:none;color: #018acc;}

/* ================================================= */
/* ======        桌面端样式 (无改动)           ====== */
/* ================================================= */

/* ====== Header Base ====== */
#site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 99;
    padding:0px;
}

.header-inner {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.header-inner .logo {
    padding:20px 0;
    line-height: 0;
}
.header-inner .logo img {
    height: 60px;
    width: auto;
    display:block;
}

/* ====== Navigation - 横向主导航并让高度填满 header ====== */
.main-nav {
    height: 100px;
}

.main-nav .nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
}

.main-nav .nav-menu > li {
    position: relative;
    list-style: none;
    height: 100%;
}

.main-nav .nav-menu > li > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 15px;
    position: relative;
    color: #222;
    font-size: 18px;
    text-decoration: none;
}

/* 桌面端下划线动画 */
.main-nav .nav-menu > li > a::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0px;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: #018acc;
    transition: width .28s cubic-bezier(.4,0,.2,1);
}
.main-nav .nav-menu > li:hover > a::before,
.main-nav .nav-menu > li:focus-within > a::before {
    width: 80%;
}

/* 桌面端箭头 */
.main-nav .nav-menu > li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 6px;
    vertical-align: middle;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23222" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>') no-repeat center;
    background-size: contain;
    transition: transform 0.3s ease;
}
.main-nav .nav-menu > li:hover > a::after,
.main-nav .nav-menu > li:focus-within > a::after {
    transform: rotate(180deg);
}
/* 桌面端二级菜单（下拉） */
.main-nav .nav-menu > li > .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #eee;
    padding: 6px 0;
    box-shadow: 0 6px 12px rgba(0,0,0,0.06);
    z-index: 999;
    min-width: 180px;
    margin: 0;
    list-style: none;
}

.main-nav .nav-menu > li > .sub-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .nav-menu > li > .sub-menu > li > a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 20px;
    font-size: 16px;
    color: #222;
    text-decoration: none;
    white-space: normal;
}

.main-nav .nav-menu > li > .sub-menu > li > a:hover {
    background: #f5f5f5;
    color: #018acc;
}

/* 桌面端显示下拉菜单 */
.main-nav .nav-menu > li:hover > .sub-menu,
.main-nav .nav-menu > li:focus-within > .sub-menu {
    display: block;
}

/* ====== Header Search Box ====== */
.header-right form {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 3px 10px;
    background: #f9f9f9;
}
.header-right input[type="search"] {
    border: none;
    outline: none;
    padding: 5px;
    font-size: 14px;
    background: transparent;
}
.header-right input[type="submit"] {
    font-size: 0;
    width: 20px;
    height: 20px;
    border: none;
    background: url("../images/search.svg") no-repeat center center;
    background-size: 16px 16px;
    cursor: pointer;
}

/* ====== 桌面端：高亮当前菜单项 ====== */
@media (min-width: 769px) {
  /* 顶级菜单当前页 */
  .main-nav .nav-menu > li.current-menu-item > a,
  .main-nav .nav-menu > li.current_page_item > a,
  .main-nav .nav-menu > li.current-menu-parent > a,
  .main-nav .nav-menu > li.current-menu-ancestor > a {
    color: #018acc;
  }

  /* 保持 hover 时也为蓝色 */
  .main-nav .nav-menu > li.current-menu-item > a:hover,
  .main-nav .nav-menu > li.current_page_item > a:hover {
    color: #018acc;
  }

  /* 下划线动画保持蓝色 */
  .main-nav .nav-menu > li.current-menu-item > a::before,
  .main-nav .nav-menu > li.current_page_item > a::before,
  .main-nav .nav-menu > li.current-menu-parent > a::before,
  .main-nav .nav-menu > li.current-menu-ancestor > a::before {
    width: 80%;
    background-color: #018acc;
  }

  /* 子菜单选中项也可蓝色（可选） */
  .main-nav .nav-menu .sub-menu li.current-menu-item > a,
  .main-nav .nav-menu .sub-menu li.current_page_item > a {
    color: #018acc;
  }
}
/* ====== 汉堡按钮 ====== */
.hamburger { display: none; width: 28px; height: 20px; position: relative; cursor: pointer; flex-direction: column; justify-content: space-between; }
.hamburger span { position: absolute; left: 0; width: 100%; height: 3px; background: #111; border-radius: 2px; transition: all 0.4s ease; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* 默认隐藏移动端子菜单展开按钮 (由 JS 动态添加) */
.submenu-toggle { display: none; }


/* ================================================= */
/* ======     Responsive: 移动端样式 (最终版)     ====== */
/* ================================================= */
@media (max-width: 768px) {
    .header-inner { max-width: 100%; padding: 0 15px; box-sizing: border-box; }
    .header-inner .logo { padding:10px 0; }
    .header-right { display: none; }
    .hamburger { display: flex; }

    .main-nav { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; overflow: hidden; max-height: 0; transition: max-height 0.4s ease; border-bottom: 1px solid #eee; z-index: 999; height: auto !important; }
    .main-nav.active { max-height: 80vh; overflow-y: auto; }
    .main-nav .nav-menu { display: block; padding: 10px 0; height: auto; }
    .main-nav .nav-menu > li { display: block; height: auto !important; position: relative; }
    .main-nav .nav-menu > li > a { display: block; padding: 12px 20px; height: auto !important; border-bottom: 1px solid #f0f0f0; }

    /* 禁用桌面端的下划线动画效果 */
    .main-nav .nav-menu > li > a::before {
        display: none;
    }
    
    /* 隐藏桌面端的箭头 */
    .main-nav .nav-menu > li.menu-item-has-children > a::after {
        display: none;
    }
    
    /* 重置子菜单的定位，使其在文档流中展开 */
    .main-nav .nav-menu > li > .sub-menu {
        display: block; 
        position: static; 
        top: auto;
        left: auto;
        border: none;
        box-shadow: none;
        min-width: 100%;
        border-top: 1px solid #eee;
        
        /* 实现平滑展开/收起 */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;

        padding: 0;
        margin: 0;
        background-color: #f8f8f8;
    }

    /* 【关键修正】: 移除了上一版错误的 li:hover > .sub-menu { display: none; } 规则。
     * 那条规则导致了 max-height 动画失效。
     * 现在，我们不再干预 hover 状态，完全由 JS 控制 .submenu-open 类来显示/隐藏。
    */

    /* 子菜单通过添加 .submenu-open 类来展开 */
    .main-nav .nav-menu > li.submenu-open > .sub-menu {
        max-height: 1000px;
    }
    
    /* 子菜单项的样式 */
    .main-nav .nav-menu .sub-menu li a {
        padding: 10px 20px 10px 35px; /* 增加左侧缩进 */
        border-bottom: 1px solid #eee;
        font-size: 15px;
    }
    .main-nav .nav-menu .sub-menu li:last-child a {
        border-bottom: none;
    }

    /* 子菜单展开/收起按钮的样式 */
    .submenu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        width: 50px;
        height: 49px;
        line-height: 49px;
        text-align: center;
        font-size: 22px;
        color: #333;
        cursor: pointer;
        z-index: 10;
        font-weight: bold;
    }
}

/* ===== Footer Base ===== */
#site-footer {
    background: #1c1c1c;
    color: #fff;
    padding: 60px 0 40px 0;
    position: relative;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 90%;
    margin: 0 auto;
}

.footer-col {
    flex: 1;
    min-width:30%;
    margin-bottom: 30px;
}

/* Footer Info */
.footer-info {
  padding:0 80px 0 0;
}
.footer-info .footer-logo img {
    height:60px;
    width:auto;
    margin-bottom: 15px;
}

.footer-info p {
    line-height: 2;
    margin-bottom: 25px;
}
.footer-social{
    margin-bottom: 10px;

}
.footer-social a {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    margin-right: 8px;
    background: #2c2c2c;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

/* Footer Products */
.footer-products {
    padding: 0 0 0 80px;
}
.footer-products h3,
.footer-contact h3 {
    font-size: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

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

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

.footer-products ul li a {
    color: #fff;
    text-decoration: none;
    display:inline-block;
    position: relative;
    padding-left:18px;
}
.footer-products ul li a::before {
    position:absolute;
    content:"";
    width:5px;
    height:5px;
    background: #fff;
    border-radius: 50%;
    left:0;
    top:50%;
    margin-top:-3px;
}
.footer-products ul li a:hover {
    color: #018acc;
}

/* Footer Contact */
.footer-contact p,
.footer-contact a {
    line-height: 2;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}
.footer-contact a {
    display: inline-block;
}

.footer-contact p {
    position:relative;
    padding-left:30px;
    line-height:1.5;
}
.footer-contact p::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 0;
    top: 6px;
    background-size: 16px auto;
}
.footer-contact p.footer-icon-tel::before {
    background: url("../images/tel_icon.svg") no-repeat center center;
}
.footer-contact p.footer-icon-mob::before {
    background: url("../images/phone_icon.svg") no-repeat center center;
}
.footer-contact p.footer-icon-email::before {
    background: url("../images/email_icon.svg") no-repeat center center;
}
.footer-contact p.footer-icon-company::before {
    background: url("../images/company_icon.svg") no-repeat center center;
}
.footer-contact p.footer-icon-factory::before {
    background: url("../images/factory_icon.svg") no-repeat center center;
}
/* Floating Buttons */
.footer-floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.float-btn {
    width: 50px;
    height: 50px;
    background: #fff url('/images/placeholder.png') center center no-repeat;
    background-size: 60%;
    border-radius: 10px;
    display: block;
}

/* 分别自定义每个按钮的图标 */
.float-btn.support { background-image: url('/images/support.svg'); }
.float-btn.whatsapp { background-image: url('/images/whatsapp.svg'); }
.float-btn.wechat { background-image: url('/images/wechat.svg'); }
.float-btn.teams { background-image: url('/images/teams.svg'); }
.float-btn.top { background-image: url('/images/top.svg'); }

/* 响应式 */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Main中公共部分 */
.banner_title1 {
    font-size:54px;
    color:#fff;
    font-weight: bold;
    text-align: center;
}
.banner_text1 {
    color:#fff;
    font-size:18px;
    line-height: 2.5;
    text-align: center;
    margin:0 auto;
}
.yoast-breadcrumbs {
padding-left:10px;
background: url("../images/Home-icon.svg") no-repeat left center;
background-size:18px auto;
}
.yoast-breadcrumbs span {
  margin: 0 8px;
}
.title_h1 {
    font-size:48px;
    text-align: center;
    margin:0 0 25px 0;
    line-height:1.2;
    position: relative;
    padding:0 0 10px 0;
}
.title_h1::after {
    width:80px;
    height:4px;
    position: absolute;
    background:#0088cd;
    left:50%;
    bottom:0;
    content:"";
    transform:translateX(-50%);
}
.title_p {
    line-height:2;
    text-align: center;
}


/*                  404页面                        */

.error_icon {
            width: 0;
            height: 0;
            border-left: 60px solid transparent;
            border-right: 60px solid transparent;
            border-bottom: 100px solid #00cc99; /* Green color for the triangle */
            position: relative;
            margin: 0 auto 20px;
        }

        .error_icon::after {
            content: '!';
            position: absolute;
            top: 30px;
            left: -18px;
            font-size: 60px;
            color: #ffffff;
            font-weight: bold;
        }

        .error_h1 {
            font-size: 120px;
            margin: 0;
            color: #333333;
        }

        .error_h2 {
            font-size: 36px;
            margin: 10px 0;
            color: #333333;
        }

        .error_p {
            font-size: 16px;
            color: #666666;
            margin: 20px 0;
        }

        .error_button {
            background-color: #00cc99; /* Green button */
            color: #ffffff;
            padding: 12px 24px;
            border: none;
            border-radius: 30px;
            font-size: 16px;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
        }

        .error_button:hover {
            background-color: #00b386;
        }