/* 厂商页面公共样式 - 合并自vendor/index.php和vendor/detail.php */

/* ====== 厂商卡片样式 ====== */
.featured-product.vendor-card {
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
    transition: all 0.4s ease;
    border: none;
}

.featured-product.vendor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}

.vendor-logo-container {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.vendor-logo {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.05));
    max-width: 180px;
    max-height: 70px;
    object-fit: contain;
}

.featured-product.vendor-card:hover .vendor-logo {
    transform: scale(1.1);
}

.vendor-description {
    color: #6c757d;
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    max-height: 3em; 
    line-height: 1.5;
}

.card-title {
    font-weight: 600;
    color: #2c3e50;
}

.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* ====== 厂商列表页标题区域 ====== */
.bg-light.vendor-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.vendor-search {
    border-radius: 50px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.vendor-search input {
    border-radius: 50px 0 0 50px;
    border: none;
    padding-left: 20px;
}

.vendor-search button {
    border-radius: 0 50px 50px 0;
    padding: 10px 25px;
}

/* ====== 厂商详情页面包屑导航 ====== */
.tech-breadcrumb {
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.breadcrumb-item + .breadcrumb-item::before {
    font-family: "Font Awesome 5 Free";
    content: "\f054";
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--bs-primary);
    margin-top: 2px;
}

.breadcrumb-item a {
    color: #555;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--bs-primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--bs-primary);
    font-weight: 500;
}

/* ====== 厂商详情页样式 ====== */
.tech-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.tech-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background-color: #fff;
}

.tech-card-body {
    padding: 20px;
}

.vendor-hero {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: white;
    position: relative;
    overflow: hidden;
}

.vendor-hero-content {
    position: relative;
    z-index: 1;
}

.vendor-logo-lg {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 180px; 
    max-height: 80px; 
    object-fit: contain;
}

.featured-product {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.featured-product .card-header {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    padding: 15px 20px;
}

.featured-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff5722;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
}

.featured-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 15px;
}

.featured-specs-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.featured-specs-item i {
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--bs-primary);
    color: white;
}

.product-type-section table {
    border-radius: 8px;
    overflow: hidden;
}

/* 用于详情页侧边栏粘性定位 */
.sticky-top {
    top: 20px; 
    z-index: 1;
}

/* 响应式设计调整 */
@media (max-width: 767.98px) {
    /* 移动端隐藏页脚 */
    footer.footer {
        display: none !important;
    }

    .breadcrumb {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    
    .breadcrumb::-webkit-scrollbar {
        height: 3px;
    }
    
    .breadcrumb::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.2);
        border-radius: 3px;
    }
} 