
.recommend-box {
    margin: 30px;
    background-color: #fff;
    border: 1px solid #e8e8e8;
}
.tab-head {
    display: flex;
    border-bottom: 1px solid #e8e8e8;
    background-color: #f9f9f9;
}
.tab-head .tab-item {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
    border-right: 1px solid #f2f2f2;
}
.tab-head .tab-item:last-child {
    border-right: none;
}
.tab-head .tab-item:hover {
    color: #137ec1;
    background-color: #fff;
}
.tab-head .tab-item.active {
    color: #137ec1;
    font-weight: bold;
    border-bottom: 2px solid #137ec1;
    margin-bottom: -1px;
    background-color: #fff;
}
.tab-body {
    background-color: #fff;
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-height: 300px;
    overflow-y: auto;
}
.grid-container::-webkit-scrollbar {
    width: 6px;
}
.grid-container::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}
.grid-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}
.grid-item {
    display: block;
    padding: 8px 8px;
    color: #333;
    font-size: 13px;
    line-height: 20px;
    text-decoration: none;
    border-bottom: 1px dashed #e8e8e8;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.grid-item:last-child {
    border-bottom: none;
}
.grid-item:hover {
    color: #137ec1;
    background-color: #f9f9f9;
}
.toggle-btn:hover {
    background-color: #f9f9f9;
}
.toggle-btn i {
    transition: transform 0.3s;
    color: #ccc;
}
.toggle-btn.active i {
    transform: rotate(180deg);
}

/* 产品推荐模块样式 */
.product-recommend-box {
    margin: 30px;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    max-width: 745px;
}

.product-recommend-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e8e8e8;
    background-color: #f9f9f9;
}

.product-recommend-title {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

.product-recommend-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background-color: #137ec1;
    margin-right: 10px;
    vertical-align: middle;
}

.product-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0; /* 只保留上下内边距，去掉左右内边距 */
    width: 100%;
}

.product-carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.product-page {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* gap: 15px; */
    flex: 0 0 100%; /* 每页占满整个容器宽度 */
}

.product-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 0;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image-box {
    width: 130px;
    height: 86px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f2f2f2;
}

.product-image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin-top: 70px;
}

.product-name {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 90px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.9);
    border: 1px solid #e8e8e8;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-btn span {
    color: #666;
    font-size: 20px;
}

.carousel-dots {
    text-align: center;
    margin-top: 15px;
}

.carousel-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: #137ec1;
}
