/*
    代码提取自 https://www.nnr985.com/template/nice/static/css/menu.css?v=1.0.5
    用于实现目标网站的导航和搜索样式
*/
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
.index-cat-box {
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 15px;
    overflow: hidden;
    box-shadow: 0 5px 10px rgba(0,0,0,.05);
}

.index-cat-title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 15px;
}

.index-cat-title .title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.index-cat-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: -5px;
}

.index-cat-list .cat-item {
    font-size: 14px;
    color: #555;
    background-color: #f4f7fd;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 5px;
    -webkit-transition: all .3s;
    transition: all .3s;
}

.index-cat-list .cat-item:hover {
    color: #fff;
    background-color: #007bff;
}

.index-search-box {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.index-search-box form {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.index-search-box .search-input {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    height: 50px;
    border: 0;
    padding: 0 20px;
    font-size: 16px;
    color: #555;
    background-color: #fff;
}

.index-search-box .search-btn {
    width: 60px;
    height: 50px;
    border: 0;
    background-color: #007bff;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
.iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.icon-search:before {
    content: "\e600"; /* 这是一个放大镜图标代码，如果您的模板没有这个字体，可能不显示 */
}

/* 简单的放大镜图标CSS实现，以防字体图标无效 */
.icon-search {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
}
.icon-search:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
}
.icon-search:after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 8px;
    height: 2px;
    background: #fff;
    transform: rotate(45deg);
}

@media (max-width: 767px) {
    .index-cat-title .title { font-size: 18px; }
    .index-cat-list .cat-item { font-size: 13px; padding: 8px 12px; }
    .index-search-box .search-input { height: 45px; font-size: 14px; }
    .index-search-box .search-btn { height: 45px; }
    
    
    
    /*
/*
======================================================
    新增样式：将父分类标签美化为蓝色
======================================================
*/
.section-menu .row-item-content .item.is-parent a {
    background-color: #1d7ad9; /* 蓝色背景 */
    border-color: #1d7ad9;     /* 蓝色边框 */
    color: #ffffff;            /* 白色文字 */
    font-weight: bold;         /* 字体加粗 */
}

/* 父分类标签的鼠标悬停效果 */
.section-menu .row-item-content .item.is-parent a:hover {
    background-color: #1662b3; /* 悬停时颜色变得稍深 */
    border-color: #1662b3;
    color: #ffffff;
}

