/* 供应商详情页样式 */
.supplier_detail_page {
    padding-bottom: 60px;
}

/* 供应商信息区域 - 复用产品详情页的样式 */
.supplier_info_section {
    padding: 40px 0;
    margin-top: 0;
    border-bottom: 1px solid #e0e0e0;
}

.supplier_container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.supplier_logo {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.supplier_logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo_placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    border-radius: 4px;
}

.supplier_content {
    flex: 1;
}

.supplier_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.supplier_name {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.supplier_detail_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #00b95e;
    background: #fff;
    border: 1px solid #00b95e;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.supplier_detail_btn:hover {
    background: #00b95e;
    color: #fff;
    transform: translateX(2px);
}

.supplier_detail_btn svg {
    width: 20px;
    height: 20px;
}

.supplier_description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    padding: 10px 0;
}

.supplier_address {
    margin: 15px 0 25px;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.supplier_address strong {
    color: #333;
    margin-right: 5px;
}

.supplier_contact_row {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin-top: 20px;
}

.contact_item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    font-size: 14px;
    background: #fff;
}

.contact_item:first-child {
    padding-left: 0;
}

.contact_icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
}

.contact_info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact_label {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    line-height: 1.2;
}

.contact_value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    word-break: break-word;
    line-height: 1.3;
}

/* 社交媒体链接 */
.supplier_social_media {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.social_media_title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

/* 详细介绍 */
.supplier_detail_content {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.supplier_detail_content .editor_txt {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

/* 产品列表区域 */
.supplier_products_section {
    padding: 50px 0;
}

.supplier_products_section .prdocuts_wrapper {
    display: block;
    width: 100%;
}

.supplier_products_section .list_wrapper {
    width: 100%;
}

.supplier_products_section .list_wrapper.full {
    width: 100%;
}

.supplier_products_section .list_wrapper .top_title {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.supplier_products_section .list_wrapper .top_title h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

/* 产品网格 - 简洁样式：仅图片+名称 */
.supplier_products_section .list_box {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.supplier_products_section .themes_prod {
    background: #fff;
    overflow: hidden;
}

.supplier_products_section .product_card_link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.supplier_products_section .pic_box {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 正方形 */
    overflow: hidden;
    background: #fafafa;
}

.supplier_products_section .compute_item_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.supplier_products_section .compute_process_img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.supplier_products_section .compute_process_img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.supplier_products_section .themes_prod .name {
    padding: 15px 10px;
    text-align: center;
}

.supplier_products_section .themes_prod .product_name_text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* 空状态 */
.empty_products {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty_products p {
    font-size: 16px;
    margin: 0;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    min-width: 40px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination .active span {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination .disabled span {
    color: #999;
    cursor: not-allowed;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .supplier_info_section {
        padding: 30px 0;
    }

    .supplier_container {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .supplier_logo {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }

    .supplier_header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .supplier_name {
        font-size: 18px;
    }

    .supplier_detail_btn {
        width: 32px;
        height: 32px;
    }

    .supplier_detail_btn svg {
        width: 18px;
        height: 18px;
    }

    .supplier_description {
        text-align: center;
        font-size: 13px;
    }

    .supplier_address {
        text-align: left;
        font-size: 13px;
        margin: 12px 0 20px;
        padding: 0;
    }

    .supplier_contact_row {
        flex-direction: column;
        gap: 15px;
    }

    .contact_item {
        padding: 0;
        gap: 10px;
    }

    .contact_icon {
        width: 32px;
        height: 32px;
    }

    .contact_label {
        font-size: 11px;
    }

    .contact_value {
        font-size: 13px;
    }

    /* 社交媒体 */
    .supplier_social_media {
        margin-top: 20px;
        padding-top: 15px;
    }

    .social_media_title {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    /* 详细介绍 */
    .supplier_detail_content {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .supplier_detail_content .editor_txt {
        font-size: 13px;
        line-height: 1.7;
    }

    /* 产品列表 */
    .supplier_products_section {
        padding: 30px 0;
    }

    .supplier_products_section .list_wrapper .top_title {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .supplier_products_section .list_wrapper .top_title h1 {
        font-size: 18px;
    }

    .supplier_products_section .list_box {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .supplier_products_section .themes_prod .name {
        padding: 10px 8px;
    }

    .supplier_products_section .themes_prod .product_name_text {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .supplier_products_section .list_box {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .supplier_products_section .themes_prod .name {
        padding: 8px 6px;
    }
    
    .supplier_products_section .themes_prod .product_name_text {
        font-size: 11px;
    }
}

