* {
    margin: 0;
    padding: 0;
}
.box {
    background: #ffffff;
}

/* 头部样式 */
header {
    width: 100%;
    height: 90px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    box-sizing: border-box;
}
header .left {
    display: flex;
    align-items: center;
    justify-content: center;
}
header .left img {
    width: 79px;
    height: 62px;
    margin-right: 23px;
}

header .left h1 {
    font-family: MicrosoftSansSerif;
    font-size: 18px;
    color: #333333;
    line-height: 21px;
}

header .right {
    display: flex;
    align-items: center;
    justify-content: center;
}

header .right .phone {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}
header .right .phone img {
    width: 24px;
    height: 25px;
    margin-right: 10px;
}
header .right .phone p {
    font-family: MicrosoftSansSerif;
    font-size: 16px;
    color: #333333;
    line-height: 18px;
}

header .right .language {
    display: flex;
    align-items: center;
    justify-content: center;
}

header .right .language img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
}

header .right .language p {
    width: 42px;
    height: 31px;
    background: #dfdfdf;
    border-radius: 16px;
    font-family: SourceHanSansCN, SourceHanSansCN;
    font-weight: 400;
    font-size: 16px;
    color: #6d6d6d;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    cursor: pointer;
}

header .right .language p.active {
    background: #3f2f2f;
    color: #fff;
}

/* 导航栏样式 */
nav {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        90deg,
        #3d2d2d 0%,
        #292525 1%,
        #574747 50%,
        #292525 100%
    );
}

nav ul {
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav ul li a {
    margin-right: 30px;
    font-family: MicrosoftSansSerif;
    font-size: 18px;
    color: #ffffff;
    line-height: 21px;
    text-align: left;
    font-style: normal;
}

/* 主要内容样式 */
main {
    width: 100%;
    box-sizing: border-box;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* min-height: 500px; */
    background: #f7f7f7;
}

.products-container {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.products-container h2 {
    font-family: Helvetica, Helvetica;
    font-weight: bold;
    font-size: 22px;
    color: #333333;
    line-height: 26px;
    margin: 20px 0;
    text-align: center;
}
.products-container p {
    font-family: Helvetica;
    font-size: 16px;
    color: #333333;
    line-height: 26px;
    text-align: center;
}

.explore-box {
    width: 100%;
    padding: 20px 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #f3f3f3;
    padding: 0 300px;
    box-sizing: border-box;
}

.explore-box h2 {
    font-family: Helvetica;
    font-size: 22px;
    color: #333333;
    line-height: 26px;
    letter-spacing: 1px;
    margin-bottom: 40px;
    margin-top: 40px;
    text-align: center;
}

.products-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 85%;
    gap: 15px;
    margin: 20px 0 30px;
    padding: 0 50px;
}

.products-filter .filter-item {
    flex: 0 0 calc(20% - 12px); /* 大屏幕下一行五个 */
    padding: 14px 30px;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #cdcdcd;
    cursor: pointer;
    font-family: Helvetica;
    font-size: 16px;
    color: #555555;
    line-height: 22px;
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-sizing: border-box;
    /* min-height: 100px; */
}

.products-filter .filter-item img {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

.products-filter .filter-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.products-filter .filter-item.active {
    background: #ffffff;
    border-radius: 4px;
    border: 2px solid #554646;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.products-filter .filter-item.active::after {
    content: "";
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background-image: url("../../images/select.png");
    background-size: 12px 12px;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.search-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 600px;
    margin: 20px auto 30px;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #cdcdcd;
    overflow: hidden;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 10px 0 15px;
    position: relative;
}

.search-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: Helvetica;
    font-size: 14px;
    color: #333333;
    line-height: 60px;
    height: 60px;
}

.search-input::placeholder {
    color: #999999;
}

.search-btn {
    width: 137px;
    height: 60px;
    background: #493d3d;
    border-radius: 4px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 14px;
    color: #ffffff;
    line-height: 60px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 10px;
    margin-right: 0;
}

.search-btn:hover {
    background: #3a2f2f;
}

.filter-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.filter-dropdown h2 {
    margin: 20px 0;
}
.filter-dropdown .custom-select-item {
    margin-bottom: 50px;
}

/* 外层容器：控制项之间的间距 + 整体对齐 */
.custom-select-group {
    display: flex;
    align-items: center;
    gap: 20px; /* 对应图中的20px间距 */
    /* background: #fff; */
    padding: 0;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

/* 单个下拉项：包含label和select */
.custom-select-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #cdcdcd;
    padding: 8px 12px;
    min-width: 200px;
    flex: 0 0 auto;
}

/* 标签样式 */
.custom-select-label {
    font-family: Helvetica;
    font-size: 14px;
    color: #555555;
    line-height: 26px;
    margin-right: 10px;
    white-space: nowrap;
}

/* Element UI el-select组件样式覆盖 */
/* 覆盖el-select的边框和背景 */
.el-select .el-input__inner {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 0 5px !important;
}

/* 覆盖el-select的hover/active状态 */
.el-select:hover .el-input__inner,
.el-select.is-focus .el-input__inner {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

/* 覆盖下拉箭头样式 */
.el-select .el-select__caret {
    color: #555555 !important;
}

/* 覆盖下拉面板样式 */
.el-select-dropdown {
    border: 1px solid #e4e7ed !important;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1) !important;
}

/* 覆盖选项样式 */
.el-select-dropdown__item {
    color: #606266 !important;
}

/* 覆盖选项hover状态 */
.el-select-dropdown__item:hover {
    background-color: #f5f7fa !important;
}

/* 覆盖选中状态 */
.el-select-dropdown__item.selected {
    color: #409eff !important;
    font-weight: bold !important;
}

/* Bootstrap select样式覆盖 - 去掉边框和hover/focus样式 */
.filter-dropdown .form-control {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    outline: none !important;
    cursor: pointer !important;
}

.filter-dropdown .form-control:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.filter-dropdown .form-control:hover {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 分页组件样式 - 避免与nav冲突 */
.pagination-container .pagination {
    margin: 0;
}

.pagination-container .pagination .page-item {
    margin: 0 5px;
}

.pagination-container .pagination .page-link {
    color: #555555;
    border: 1px solid #cdcdcd;
    border-radius: 4px;
    padding: 8px 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-container .pagination .page-link:hover {
    background-color: #f5f5f5;
    color: #333333;
    border-color: #999999;
}

.pagination-container .pagination .page-item.active .page-link {
    background-color: #554646;
    border-color: #554646;
    color: #ffffff;
}

.pagination-container .pagination .page-item.disabled .page-link {
    color: #cccccc;
    background-color: #f9f9f9;
    border-color: #eeeeee;
    cursor: not-allowed;
}

/* 响应式适配：中等屏幕 */
@media (max-width: 992px) {
    .search-box {
        width: 90%;
        max-width: 500px;
    }

    .search-btn {
        width: 100px;
        font-size: 13px;
    }

    .products-filter {
        padding: 0 30px;
        gap: 15px;
    }

    .products-filter .filter-item {
        flex: 0 0 calc(33.333% - 10px); /* 中等屏幕下一行三个 */
        padding: 12px 8px;
        min-height: 90px;
    }

    .products-filter .filter-item img {
        width: 28px;
        height: 28px;
    }

    .products-filter .filter-item.active::after {
        width: 18px;
        height: 18px;
        background-size: 10px 10px;
    }

    /* Custom Select Group响应式优化 */
    .custom-select-group {
        gap: 15px;
        padding: 0 20px;
        width: 70%;
    }

    .custom-select-item {
        min-width: 180px;
        padding: 6px 10px;
    }

    .custom-select-label {
        font-size: 13px;
        margin-right: 8px;
    }
}

/* 产品分类样式 */
.product-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #fff;
    /* min-height: 100px; */
}
.product-box h2 {
    font-family: Helvetica, Helvetica;
    font-weight: bold;
    font-size: 22px;
    color: #333333;
    line-height: 26px;
    margin: 20px 0;
    text-align: center;
}
.product-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    padding: 35px 20px;
    box-sizing: border-box;
    background-color: #fff;
    gap: 20px;
}

/* 分类项容器 */
.category-item {
    flex: 0 0 calc(25% - 15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.category-item a {
    width: 100%;
    text-decoration: none;
}
.category-item .category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.category {
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: linear-gradient(180deg, #fafafa 0%, #eae8e8 100%); */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
    height: 326px;
    margin-bottom: 15px;
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.category-item p {
    font-family: Helvetica;
    font-size: 18px;
    color: #333333;
    line-height: 26px;
    letter-spacing: 1px;
    text-align: center;
    margin: 0;
}

.pagination-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    box-sizing: border-box;
    background-color: #fff;
}

/* 响应式适配：小屏幕 */
@media (max-width: 768px) {
    /* 搜索框响应式优化 */
    .search-box {
        width: 90%;
        max-width: 400px;
        height: 50px;
        margin: 15px auto 20px;
    }

    .search-input-wrapper {
        padding: 0 15px 0 12px;
    }

    .search-icon {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }

    .search-input {
        height: 50px;
        line-height: 50px;
        font-size: 13px;
    }

    .search-btn {
        width: 80px;
        height: 50px;
        line-height: 50px;
        font-size: 12px;
    }

    /* Custom Select Group响应式优化 */
    .custom-select-group {
        flex-direction: column;
        gap: 12px;
        padding: 0 15px;
        align-items: stretch;
        width: 70%;
    }

    .custom-select-item {
        min-width: 100%;
        padding: 8px 10px;
        justify-content: space-between;
    }

    .custom-select-label {
        font-size: 13px;
        margin-right: 10px;
    }

    /* Header响应式优化 */
    header {
        padding: 0 15px;
        height: auto;
        min-height: 70px;
    }

    header .left img {
        width: 50px;
        height: 40px;
        margin-right: 10px;
    }

    header .left h1 {
        font-size: 14px;
        line-height: 16px;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    header .right .phone {
        margin-right: 10px;
    }

    header .right .phone img {
        width: 18px;
        height: 18px;
        margin-right: 5px;
    }

    header .right .phone p {
        font-size: 12px;
        line-height: 14px;
    }

    header .right .language img {
        width: 18px;
        height: 18px;
        margin-right: 5px;
    }

    header .right .language p {
        width: 30px;
        height: 25px;
        font-size: 12px;
        line-height: 20px;
        margin-right: 5px;
    }

    /* Nav响应式优化 */
    nav {
        height: auto;
        padding: 10px 0;
    }

    nav ul {
        width: 95%;
        flex-wrap: wrap;
    }

    nav ul li a {
        margin-right: 15px;
        margin-bottom: 5px;
        font-size: 14px;
    }
    /* 产品分类响应式优化 - 中等屏幕 */
    .product-categories {
        gap: 20px;
        margin: 20px auto;
        justify-content: center !important;
    }

    .category-item {
        flex: 0 0 calc(50% - 10px); /* 中等屏幕下一行两个，保留间距 */
    }

    .category-item p {
        font-size: 15px;
    }

    /* Explore-box响应式优化 - 中等屏幕 */
    .explore-box {
        padding: 20px 40px;
    }

    .explore-box h2 {
        font-size: 20px;
        margin-bottom: 30px;
    }

    /* Footer响应式优化 */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-brand {
        margin-bottom: 20px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 500px) {
    /* 搜索框超小屏幕适配 */
    .search-box {
        width: 95%;
        max-width: 350px;
        height: 45px;
        margin: 10px auto 15px;
    }

    .search-input-wrapper {
        padding: 0 12px 0 10px;
    }

    .search-icon {
        width: 14px;
        height: 14px;
        margin-right: 6px;
    }

    .search-input {
        height: 45px;
        line-height: 45px;
        font-size: 12px;
    }

    .search-btn {
        width: 70px;
        height: 45px;
        line-height: 45px;
        font-size: 11px;
    }

    .product-categories {
        gap: 15px;
        justify-content: flex-start;
    }

    .category-item {
        flex: 0 0 100%;
        /* max-width: 280px; */
        margin-bottom: 15px;
    }

    /* Products Filter响应式优化 */
    .products-filter {
        padding: 0 15px;
        gap: 10px;
    }

    .products-filter .filter-item {
        flex: 0 0 100%; /* 超小屏幕下一行一个 */
        padding: 14px 30px;
        min-height: 70px;
        flex-direction: row;
        justify-content: flex-start;
    }

    .products-filter .filter-item.active::after {
        width: 16px;
        height: 16px;
        background-size: 8px 8px;
    }

    header .left h1 {
        max-width: 120px;
        font-size: 12px;
    }

    header .right .phone {
        display: none; /* 在极小屏幕隐藏电话号码 */
    }

    nav ul {
        width: 100%;
        justify-content: space-around;
    }

    nav ul li a {
        margin-right: 5px;
        font-size: 12px;
    }
}
