/* ============================================================
 * 供应商模块样式 - supplier.css
 * 列表页 + 详情页（企业档案风格）
 * ============================================================ */

/* 面包屑 */
.breadcrumb { background: #fff; border-bottom: 1px solid #f0f0f0; }
.breadcrumb .container { padding: 12px 0; font-size: 13px; color: #999; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #f26a1b; }
.breadcrumb .sep { margin: 0 8px; color: #ccc; }
.breadcrumb .cur { color: #999; }

/* 主体布局 */
.main { padding: 20px 0 40px; background: #f4f6f9; min-height: 500px; }

/* === 列表页 === */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e8ecf1;
}
.section-header h2 {
    margin: 0;
    font-size: 20px;
    color: #222;
    font-weight: 700;
    padding-left: 14px;
    position: relative;
}
.section-header h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #f26a1b;
    border-radius: 2px;
}
.total-count { font-size: 13px; color: #999; }
.total-count em { color: #f26a1b; font-style: normal; font-weight: 700; }

/* 供应商网格卡片 */
.supplier-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.supplier-card {
    display: flex;
    flex-direction: column;
    width: calc((100% - 36px) / 3);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
}
.supplier-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.supplier-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 12px;
}

.supplier-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f26a1b, #ff8c42);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.supplier-card-title { flex: 1; min-width: 0; }
.supplier-card-title h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.supplier-badge {
    font-size: 11px;
    color: #19be6b;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.supplier-card-body { padding: 0 18px 14px; flex: 1; }

.supplier-products {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.product-tag {
    padding: 2px 10px;
    font-size: 12px;
    color: #f26a1b;
    background: #fff5ee;
    border-radius: 3px;
    border: 1px solid #ffe0c7;
}
.product-tag.more {
    color: #999;
    background: #f5f6f8;
    border-color: #e8e8e8;
}

.supplier-info-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.info-item {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}
.info-item i { color: #bbb; width: 14px; text-align: center; }

.supplier-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #bbb;
}
.supplier-views i { margin-right: 3px; }

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    padding: 16px 0;
}
.page-prev, .page-next, .page-num {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: .2s;
}
.page-prev:hover, .page-next:hover, .page-num:hover {
    color: #f26a1b;
    border-color: #f26a1b;
}
.page-num.active {
    color: #fff;
    background: #f26a1b;
    border-color: #f26a1b;
}
.page-dots { color: #ccc; font-size: 14px; }

/* 空状态 */
.empty-box {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 15px;
    background: #fff;
    border-radius: 12px;
}


/* === 详情页（企业档案风格） === */

.supplier-detail { padding-bottom: 40px; }

/* 头部卡片 */
.sp-detail-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    margin-bottom: 20px;
}

.sp-header-left { flex-shrink: 0; }
.sp-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a5276, #2980b9);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 2px;
}

.sp-header-center { flex: 1; min-width: 0; }
.sp-company-name {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

.sp-header-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.sp-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    font-size: 12px;
    border-radius: 4px;
}
.sp-tag.verified { color: #19be6b; background: #e8f8ef; }
.sp-tag.location { color: #888; background: #f5f6f8; }

.sp-header-stats {
    display: flex;
    gap: 24px;
}
.sp-stat { text-align: center; }
.sp-stat-num {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #f26a1b;
}
.sp-stat-label { font-size: 12px; color: #999; }

.sp-header-right { flex-shrink: 0; }
.sp-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f26a1b, #ff8c42);
    border-radius: 8px;
    transition: .2s;
    text-decoration: none;
}
.sp-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(242,106,27,.35);
    color: #fff;
}

/* 内容区域 */
.sp-detail-body {
    display: flex;
    gap: 20px;
}

.sp-detail-main {
    flex: 1;
    min-width: 0;
}

.sp-detail-side {
    width: 340px;
    flex-shrink: 0;
}

/* 区块 */
.sp-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.sp-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sp-section-title i { color: #f26a1b; }

.sp-intro {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    word-break: break-all;
}

/* 主营产品 */
.sp-products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.sp-product-item {
    padding: 6px 18px;
    font-size: 13px;
    color: #1a5276;
    background: #eaf2f8;
    border-radius: 6px;
    border: 1px solid #d4e6f1;
}
.sp-no-data { color: #ccc; font-size: 14px; }

/* 侧边信息卡 */
.sp-info-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    overflow: hidden;
}
.sp-info-card-title {
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1a5276, #2980b9);
}

.sp-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sp-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}
.sp-info-list li:last-child { border-bottom: none; }

.sp-info-label {
    width: 90px;
    flex-shrink: 0;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}
.sp-info-label i { width: 14px; text-align: center; color: #bbb; }

.sp-info-value {
    flex: 1;
    color: #333;
    word-break: break-all;
    line-height: 1.5;
}
.sp-info-value.highlight { color: #f26a1b; font-weight: 700; font-size: 14px; }
.sp-info-value a { color: #2980b9; }
.sp-info-value a:hover { text-decoration: underline; }

/* 免责声明 */
.sp-disclaimer {
    margin-top: 14px;
    padding: 14px 18px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #eee;
}
.sp-disclaimer p {
    margin: 0;
    font-size: 12px;
    color: #aaa;
    line-height: 1.6;
}
.sp-disclaimer i { color: #ddd; margin-right: 4px; }


/* === 响应式 === */
@media (max-width: 1240px) {
    .container { width: 96%; }
}
@media (max-width: 900px) {
    .supplier-card { width: calc((100% - 18px) / 2); }
    .sp-detail-header { flex-direction: column; text-align: center; padding: 24px; }
    .sp-header-stats { justify-content: center; }
    .sp-detail-body { flex-direction: column; }
    .sp-detail-side { width: 100%; }
}
@media (max-width: 600px) {
    .supplier-card { width: 100%; }
    .sp-detail-header { padding: 18px; }
    .sp-logo { width: 60px; height: 60px; font-size: 22px; border-radius: 12px; }
    .sp-company-name { font-size: 18px; }
    .sp-contact-btn { padding: 10px 20px; font-size: 14px; }
}
