/* ========================================
   供应商页面样式
   ======================================== */

/* 英雄区域 */
.vm-suppliers-hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.vm-suppliers-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FF6A00 0%, #FF8C42 50%, #FFA06B 100%);
    opacity: 0.95;
}

.vm-suppliers-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.vm-suppliers-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.vm-suppliers-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* 搜索框 */
.vm-suppliers-search {
    margin-bottom: 40px;
}

.vm-suppliers-search .search-input-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    margin: 0 auto;
}

.vm-suppliers-search .search-icon {
    font-size: 20px;
    margin-right: 12px;
}

.vm-suppliers-search .vm-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 12px 16px;
    background: transparent;
}

/* 统计数据 */
.vm-suppliers-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.vm-suppliers-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vm-suppliers-stats .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
}

.vm-suppliers-stats .stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* 筛选工具栏 */
.vm-suppliers-filters {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filters-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.filter-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.filter-select:hover {
    border-color: #FF6A00;
}

.filter-select:focus {
    outline: none;
    border-color: #FF6A00;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.view-toggle {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.view-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.view-btn:hover {
    border-color: #FF6A00;
    color: #FF6A00;
}

.view-btn.active {
    background: #FF6A00;
    border-color: #FF6A00;
    color: #ffffff;
}

/* 供应商列表 */
.vm-suppliers-list {
    padding: 60px 0;
    background: #f8f9fa;
}

.suppliers-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

/* 网格视图 */
.suppliers-grid.view-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* 列表视图 */
.suppliers-grid.view-list {
    grid-template-columns: 1fr;
}

.suppliers-grid.view-list .supplier-card {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.suppliers-grid.view-list .supplier-card-header {
    flex-shrink: 0;
    margin-right: 24px;
}

.suppliers-grid.view-list .supplier-card-body {
    flex: 1;
    padding: 0;
}

.suppliers-grid.view-list .supplier-card-footer {
    flex-shrink: 0;
    border-top: none;
    padding: 0;
    margin-left: 24px;
}

/* 供应商卡片 */
.supplier-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.supplier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.supplier-card.expired {
    opacity: 0.7;
}

.supplier-card.expired::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

/* 卡片头部 */
.supplier-card-header {
    padding: 24px 24px 0;
    text-align: center;
    position: relative;
}

.supplier-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    position: relative;
}

.supplier-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
}

.verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: #FF6A00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 3px solid #ffffff;
}

.expired-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #dc3545;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* 卡片主体 */
.supplier-card-body {
    padding: 0 24px 24px;
}

.supplier-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.supplier-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.supplier-name a:hover {
    color: #FF6A00;
}

.supplier-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.supplier-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
}

.supplier-meta .meta-item svg {
    flex-shrink: 0;
}

.supplier-category {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #fff3e6;
    color: #FF6A00;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.supplier-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* 卡片底部 */
.supplier-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
}

.btn-view-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #FF6A00;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-view-profile:hover {
    background: #e55f00;
    transform: translateX(2px);
}

/* 无供应商状态 */
.no-suppliers {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.no-suppliers-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.no-suppliers h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 12px;
}

.no-suppliers p {
    font-size: 16px;
    color: #666;
}

/* 加载更多 */
.load-more-wrapper {
    text-align: center;
}

#load-more-suppliers {
    padding: 12px 40px;
}

/* CTA区域 */
.vm-suppliers-cta {
    background: linear-gradient(135deg, #FF6A00 0%, #FF8C42 100%);
    padding: 80px 0;
}

.vm-suppliers-cta .vm-cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.vm-suppliers-cta h2 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.vm-suppliers-cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
}

.vm-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.vm-btn-primary,
.vm-btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vm-btn-primary {
    background: #ffffff;
    color: #FF6A00;
}

.vm-btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vm-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.vm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.vm-btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .suppliers-grid.view-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vm-suppliers-hero-title {
        font-size: 36px;
    }
    
    .filters-wrapper {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .suppliers-grid.view-grid,
    .suppliers-grid.view-list {
        grid-template-columns: 1fr;
    }
    
    .suppliers-grid.view-list .supplier-card {
        flex-direction: column;
    }
    
    .suppliers-grid.view-list .supplier-card-header {
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    .suppliers-grid.view-list .supplier-card-body {
        padding: 0 24px 24px;
    }
    
    .suppliers-grid.view-list .supplier-card-footer {
        margin-left: 0;
        width: 100%;
        border-top: 1px solid #f0f0f0;
        padding: 16px 24px;
    }
    
    .vm-suppliers-hero {
        padding: 60px 0 40px;
    }
    
    .vm-suppliers-hero-title {
        font-size: 28px;
    }
    
    .vm-suppliers-hero-subtitle {
        font-size: 16px;
    }
    
    .vm-suppliers-stats {
        gap: 30px;
    }
    
    .vm-suppliers-stats .stat-number {
        font-size: 24px;
    }
    
    .filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        flex: 1;
    }
    
    .view-toggle {
        margin-left: 0;
        justify-content: center;
    }
    
    .vm-suppliers-list {
        padding: 40px 0;
    }
    
    .vm-suppliers-cta {
        padding: 60px 0;
    }
    
    .vm-suppliers-cta h2 {
        font-size: 28px;
    }
    
    .vm-suppliers-cta p {
        font-size: 16px;
    }
    
    .vm-cta-buttons {
        flex-direction: column;
    }
    
    .vm-btn-primary,
    .vm-btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .vm-suppliers-hero-title {
        font-size: 24px;
    }
    
    .vm-suppliers-search .search-input-wrapper {
        padding: 6px 6px 6px 16px;
    }
    
    .vm-suppliers-search .vm-search-input {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .supplier-avatar {
        width: 80px;
        height: 80px;
    }
    
    .supplier-name {
        font-size: 16px;
    }
    
    .supplier-card-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-view-profile {
        width: 100%;
        justify-content: center;
    }
}
