.building {
    text-align: center;
    padding: 0 0 0.2rem;
    font-size: 0.2rem;
    color: #ccc;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 0.5rem;
}

.search-content {
    border-radius: 8px;
    padding: 0.1rem 0.2rem;
    background-color: #cbe0fa;
    display: flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.2rem;
}

.search-content-left {
    display: flex;
    align-items: center;
}

.search-content-left img {
    width: 0.24rem;
    height: 0.24rem;
    margin-right: 0.06rem;
}

.search-content-right {
    min-width: 6rem;
}

.search-content-right .group {
    display: flex;
    line-height: 0.28rem;
    align-items: center;
    position: relative;
}

.search-content-right .input {
    width: 100%;
    height: 0.44rem;
    line-height: 28px;
    padding: 0 0.42rem;
    padding-left: 0.2rem;
    border: 2px solid transparent;
    border-radius: 8px;
    outline: none;
    background-color: #fff;
    color: #0d0c22;
    transition: .4s;
}

.search-content-right .input::-moz-placeholder {
    color: #999;
    font-size: 0.16rem;
}

.search-content-right .input::placeholder {
    color: #999;
    font-size: 0.16rem;
}

.search-content-right .input:focus,
.search-content-right .input:hover {
    outline: none;
    border-color: rgba(76, 147, 234, 0.719);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(76, 155, 234, 0.39);
}

.search-content-right .icon {
    position: absolute;
    right: 0.16rem;
    fill: #9e9ea7;
    width: 0.24rem;
    height: 0.24rem;
    cursor: pointer;
}

.search-content input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

/* 搜索结果样式 */
.search-results {
    margin-top: 0.3rem;
    padding: 0 0.2rem;
}

.no-results {
    text-align: center;
    color: #999;
    padding: 0.3rem 0;
    font-size: 0.16rem;
}

.company-card {
    background: #fff;
    border-radius: 8px;
    padding: 0.24rem;
    margin-bottom: 0.2rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.company-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.company-name {
    font-size: 0.2rem;
    font-weight: bold;
    color: #1890ff;
    margin-bottom: 0.2rem;
    padding-bottom: 0.16rem;
    border-bottom: 1px solid #f0f0f0;
}

.company-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    font-size: 0.14rem;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item .label {
    color: #666;
    margin-bottom: 0.08rem;
}

.info-item .value {
    color: #333;
}

.no-results {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
}

.no-results img {
    width: 1.7rem;
}

/* 移动端适配 */
@media screen and (max-width: 992px) {
    .search-content {
        flex-direction: column;
        padding: 0.2rem;
        width: 90%;
        margin: 0 auto;
        gap: 0.16rem;
    }

    .search-content-right {
        min-width: 100%;
    }

    .search-content-left {
        margin-bottom: 0.1rem;
    }

    .company-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-results {
        padding: 0.2rem;
    }

    .company-card {
        padding: 0.2rem;
    }
}

@media screen and (max-width: 576px) {
    .company-info-grid {
        grid-template-columns: 1fr;
    }
}

.product-list {
    padding-bottom: 0.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.2rem;
}

.product-item {
    background-color: #fff;
    border: 1px solid #eee;
    text-align: center;
    box-sizing: border-box;
}

.product-item-img {
    width: 100%;
    height: 2.5rem;
    overflow: hidden;
    position: relative;
}

.product-item-img img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    transition: .4s;
}

.product-item-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background-color: rgba(0, 0, 0, .5);
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.16rem;
    opacity: 0;
}

.product-item:hover .product-item-mask {
    opacity: 1;
}

.product-item:hover .product-item-img img {
    transform: scale(1.1);
}

.product-item p {
    padding: 0.1rem;
    background-color: #007bff;
    color: #fff;
    margin: 0;
    font-size: 0.16rem;
}

@media screen and (max-width: 992px) {
    .product-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* 产品详情开始 */
.product-detail-container {
    display: flex;
    gap: 0.3rem;
    padding: 0.3rem 0;
}

.product-gallery {
    width: 4rem;
    position: relative;
    display: flex;
}

.product-swiper-large {
    width: 100%;
    height: 4rem;
    /* 根据实际图片调整 */
    margin-bottom: 0.1rem;
    border: 1px solid #eee;
}

.product-swiper-large .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-swiper-large .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
    cursor: move;
}

.product-swiper-thumb {
    height: 1rem;
    /* 根据实际图片调整 */
    box-sizing: border-box;
    padding: 0.1rem 0;
}

.product-swiper-thumb .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.6;
    border: 1px solid #ddd;
    cursor: pointer;
}

.product-swiper-thumb .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #007bff;
}

.product-swiper-thumb .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.zoom-area {
    position: absolute;
    left: calc(100% + 0.2rem);
    top: 0;
    width: 4rem;
    height: 4rem;
    border: 1px solid #ccc;
    overflow: hidden;
    display: none;
    z-index: 10;
    background-color: #fff;
}

.zoomed-image {
    position: absolute;
    max-width: none;
    max-height: none;
    width: 200%;
    height: auto;
    -o-object-fit: contain;
       object-fit: contain;
}

.product-info {
    flex: 1;
}

.product-info h1 {
    font-size: 0.3rem;
    font-weight: bold;
    margin-bottom: 0.14rem;
    line-height: 1.4;
}

.product-tags {
    margin-bottom: 0.2rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #0000001a;
}

.product-tags .tag {
    display: inline-block;
    color: var(--theme-color);
    padding: 0.05rem 0.1rem;
    margin-right: 0.1rem;
    margin-bottom: 0.05rem;
    font-size: 0.16rem;
    border-radius: 4px;
    border: 1px solid var(--theme-color);
}

.product-contact p {
    font-size: 0.18rem;
    color: #333;
    margin-bottom: 0.1rem;
    display: flex;
    align-items: center;
}

.product-contact img {
    width: 0.18rem;
    height: 0.18rem;
    margin-right: 0.08rem;
}

/* 移动端适配 */
@media screen and (max-width: 992px) {
    .product-detail-container {
        flex-direction: column;
    }

    .product-gallery {
        width: 100%;
    }

    .zoom-area {
        display: none !important;
    }

    .product-info h1 {
        font-size: 0.2rem;
    }
}

@media screen and (max-width: 576px) {
    .product-swiper-large {
        height: 3rem;
    }

    .product-swiper-thumb {
        height: 1rem;
    }

    .product-info h1 {
        font-size: 0.24rem;
    }

    .product-tags {
        padding-bottom: 0.1rem;
    }

    .product-tags .tag {
        font-size: 0.14rem;
    }

    .product-contact p {
        font-size: 0.2rem;
    }

    .product-contact img {
        width: 0.22rem;
        height: 0.22rem;
    }
}

.product-swiper-container {
    width: 100%;
    position: relative;
}

.zoom-area {
    width: 4rem;
    height: 4rem;
    border: 1px solid #eee;
    position: absolute;
    right: -4.2rem;
    top: 0;
    overflow: hidden;
    display: none;
    z-index: 10;
}

.product-swiper-large .swiper-slide {
    cursor: pointer;
    position: relative;
}

.zoom-mask {
    cursor: pointer;
    position: absolute;
    left: -2rem;
    top: -2rem;
    width: 2rem;
    height: 2rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    border: 1px solid #ddd;
    pointer-events: none;
    display: none;
    z-index: 5;
}

.swiper-button-next,
.swiper-button-prev {
    z-index: 6;
    cursor: pointer;
}

/* 产品详情结束  */