.container {
    width: 1200px;
    margin: 22px auto;
    padding-top: 74px;
    padding-left: 0;
}

.menu {
    width: 1120px;
    height: 55px;
    align-items: center;
    display: flex;
    background-color: #fff;
    border-left: 1px solid #e3e3e3;
    border-top: 1px solid #e3e3e3;
    border-right: 1px solid #e3e3e3;
    padding: 0 25px;
}

.menu-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 15px 25px 15px 0;
}

.menu-item-logo {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    background-size: cover;
    margin-bottom: 10px
}

.menu-item-text {
    font-size: 17px;
    transition: color 0.3s;
    font-weight: bolder;
}

/* 品牌目录 */
.brand-list {
    min-height: 616px;
    height: auto;
    overflow: hidden;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 20px;
    /*padding-left: 40px;*/
    background-color: white;
    border: 1px solid #e3e3e3;
    width: 1120px;
}
.brand-top {
    width: 1018px;
    border-bottom: 1px solid #e3e3e3;
}
.brand-index {
    padding: 10px 0 10px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.index-p {
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.index-p.selected {
    color: #fff;
    border-radius: 3px;
    background-color: #3366cc;
}

.selected-index{
    font-weight: bold;
    font-size: 15px;
    padding: 5px 0 5px 0;
}

.brand-container {
    position: relative;
    /*height: 616px;*/
}
.brand-content {
    padding-left: 40px;
    /*max-height: 600px;*/
}
.brand-content-item {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 100%;
    overflow: hidden;
}
.brand-content-item p {
    padding-top: 10px;
    cursor: pointer;
    width: fit-content;
    /* 防止文本换行 */
    white-space: nowrap;
    /* 控制溢出的内容 */
    overflow: hidden;
    text-overflow: ellipsis;
    /* 确保 p 标签不会超出其父容器 */
    max-width: 100%;
    font-weight: bold;
    font-size: 15px;
}
.brand-content-item p:hover {
    color: red;
}

.brand-container .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;

    position: absolute; /* 设置绝对定位 */
    bottom: 0; /* 固定在底部 */
    left: 0;
    right: 0;
}

.brand-container .pagination span {
    width: 6px;
    height: 6px;
    background-color: #ccc;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    outline: none;
}

.brand-container .pagination span.active {
    background-color: #007bff;
}
.select-brand {
    position: relative;
    float: left;
}
.brand-trigger {
    /*margin: 15px 0 0;*/
    border: 1px solid #3366cc;
    line-height: 38px;
    border-right: none;
    cursor: pointer;
    width: 150px;
    padding-left: 10px;
    padding-right: 5px;
    color: #737373;
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: space-between; /* 如果需要在水平方向上分开文本和箭头 */
}

.brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1; /* 让文本部分尽可能占据剩余空间 */
    text-align: center;
    color: #333;
}
.arrow-icon {
    margin-left: 5px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #000; /* 箭头颜色 */
    transition: transform 0.3s ease; /* 平滑的旋转效果 */
}

.brand-trigger.open .arrow-icon {
    /*transform: rotate(180deg); !* 点击后箭头向上 *!*/
    border-bottom: 6px solid #000;
    border-top: none;
}

.brand-popup {
    position: absolute;
    width: 519px;
    border: 1px solid #3366CC;
    display: none;
    line-height: 32px;
    background: #fff;
    padding: 0 10px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 997;
    border-top: none;
    max-height: 310px;
}

.brand-popup .brand-search-wrapper {
    position: relative;
    width: 470px;
    display: inline-block;
    margin: 10px 5px 5px;
}

.brand-popup .brand-search-wrapper .filter-search {
    height: 30px;
    width: 100%;
    outline: none;
    font-weight: normal;
    border: 1px solid #bbbbbb;
    padding: 0 30px 0 8px;
}

.brand-popup .brand-search-wrapper .clear-filter-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    pointer-events: auto;
}

.brand-popup ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 三列等宽 */
    max-width: 600px; /* 设置最大宽度以防止内容溢出 */
    overflow: hidden; /* 隐藏超出部分的内容 */
}

.brand-popup ul li {
    padding: 5px 10px;
    cursor: pointer;
    white-space: nowrap; /* 禁止文本换行 */
    overflow: hidden; /* 隐藏溢出的文本 */
    text-overflow: ellipsis; /* 显示省略号 */
}

/* 可选：为最后一行添加额外样式以确保其对齐 */
.brand-popup ul::after {
    content: "";
    display: block;
    height: 0;
    clear: both;
}

.brand-popup ul li:hover {
    background-color: #f0f0f0;
}

.brand-popup ul li.disabled {
    color: #ccc;
    cursor: default;
    pointer-events: none;
}

.personal .top .top-content .top-serch input {
    width: 364px !important;
}

.personal .top .top-content .top-serch .closeText {
    left: 340px !important;
}
.hostory {
    width: 369px
}
/* 禁用状态下的样式 */
#searchModel[disabled], .cearch-botton.disabled, .closeText.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
/* 启用状态下的样式 */
#searchModel, .cearch-botton, .closeText {
    transition: opacity 0.3s;
}