/*
Theme Name: Astra News Child
Template: astra
Author: GenialTech
Description: 健奥科技子主题 - 新闻动态、产品展示等页面样式
Version: 1.0
*/

/* 隐藏滚动条但保留滚动功能 */
.adv-slide .swiper-wrapper {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox: 隐藏滚动条 */
    -ms-overflow-style: none; /* IE/Edge: 隐藏滚动条 */
}

/* Chrome/Safari/Opera: 隐藏滚动条 */
.adv-slide .swiper-wrapper::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.products-subMenu{
    margin-top: 50px;
}

@media(max-width:768px) {
    .products-subMenu{
        margin-top: 110px;
    }
}

.cx-submenu-wrap {
    margin-top: 40px;
}

.cx-submenu-list {
    background: none !important;
}

.cx-submenu-list ul {
    display: flex;
    justify-content: center;
}

.cx-submenu-list li {
    width: 180px !important;
    margin: 0 10px;
    line-height: 44px !important;
    text-align: center;
}

.cx-submenu-list li a {
    color: #666;
    border: #ddd solid 1px;
    padding: 0 !important;
}

/* ============================================
   二级分类导航样式（同级分类）
   ============================================ */
.cx-submenu-list ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cx-submenu-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cx-submenu-item {
    display: inline-block;
    padding: 10px 30px !important;
    color: #666;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.cx-submenu-item:hover {
    background: #ed7020;
    border-color: #ed7020;
    color: #fff !important;
    transform: translateY(-2px);
}

/* 当前分类高亮 */
.cx-submenu-item.cur {
    background: #ed7020 !important;
    border-color: #ed7020 !important;
    color: #fff !important;
}

@media (max-width: 1200px) {
    .cx-submenu-wrap {
        padding-right: 0 !important;
        height: auto !important;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .cx-submenu-list {
        margin-top: 40px;
    }

    .cx-submenu-list ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .cx-submenu-list ul::-webkit-scrollbar {
        height: 3px;
    }
    
    .cx-submenu-list ul::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 3px;
    }
    
    .cx-submenu-list ul::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 3px;
    }
    
    .cx-submenu-item {
        white-space: nowrap;
        padding: 8px 20px !important;
        font-size: 14px;
    }
}

.products-subMenu {
    margin-top: 50px;
}

@media (max-width: 768px) {
    .products-subMenu {
        margin-top: 110px;
    }
}

