/* ============================================================
   B2B模式专用样式 (type=1)
   仿b2b.sun0391.com: 首页企业列表 + 单页锚点导航
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", Arial, sans-serif; background: #f5f5f5; color: #333; font-size: 14px; line-height: 1.6; }
a { text-decoration: none; color: #2563eb; transition: color 0.2s; }
a:hover { color: #1d4ed8; text-decoration: underline; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ============================================================
   B2B首页 - 顶部导航
   ============================================================ */
.b2b-header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 100; }
.b2b-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.b2b-logo { font-size: 22px; font-weight: bold; color: #2563eb; }
.b2b-logo:hover { text-decoration: none; }
.b2b-nav { display: flex; gap: 24px; }
.b2b-nav a { color: #555; font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; }
.b2b-nav a:hover, .b2b-nav a.active { color: #2563eb; border-bottom-color: #2563eb; text-decoration: none; }
.b2b-search { display: flex; gap: 8px; }
.b2b-search input { padding: 6px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; width: 200px; }
.b2b-search button { padding: 6px 16px; background: #2563eb; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; }

/* ============================================================
   B2B首页 - 分类导航
   ============================================================ */
.b2b-category-bar { background: #fff; padding: 12px 0; border-bottom: 1px solid #eee; }
.b2b-category-list { display: flex; flex-wrap: wrap; gap: 8px 16px; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.b2b-category-list a { color: #666; font-size: 13px; padding: 2px 8px; border-radius: 3px; }
.b2b-category-list a:hover { background: #eff6ff; color: #2563eb; }

/* ============================================================
   B2B首页 - 企业列表
   ============================================================ */
.b2b-section-title { font-size: 20px; font-weight: bold; margin: 24px 0 16px; padding-left: 12px; border-left: 4px solid #2563eb; }
.b2b-user-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.b2b-user-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: box-shadow 0.2s; }
.b2b-user-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.b2b-user-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.b2b-user-card-name { font-size: 16px; font-weight: bold; color: #333; }
.b2b-user-card-vip { display: inline-block; padding: 1px 6px; font-size: 11px; background: #f59e0b; color: #fff; border-radius: 3px; margin-left: 6px; }
.b2b-user-card-products { color: #666; font-size: 13px; margin-bottom: 10px; line-height: 1.8; }
.b2b-user-card-products a { color: #2563eb; margin-right: 6px; }
.b2b-user-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: #6b7280; font-size: 12px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed #e5e7eb; }
.b2b-user-card-meta strong { color: #374151; font-weight: 600; }
.b2b-user-card-meta time { color: #6b7280; font-style: normal; }
.author-title-tag { display: inline-block; padding: 1px 6px; background: #eff6ff; color: #2563eb; border-radius: 3px; font-size: 11px; font-weight: 600; }
.b2b-user-card-btn { display: inline-block; padding: 4px 14px; background: #2563eb; color: #fff; border-radius: 4px; font-size: 13px; }
.b2b-user-card-btn:hover { background: #1d4ed8; color: #fff; text-decoration: none; }

/* B2B首页 - 卡片摘要 */
.b2b-info-summary { margin-top: 6px; font-size: 12px; color: #6b7280; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.b2b-info-label { color: #9ca3af; }

/* B2B首页 - 卡片底部(查看详情) */
.b2b-card-footer { text-align: right; margin-top: 10px; }

/* ============================================================
   B2B首页 - 分页
   ============================================================ */
.b2b-pagination { text-align: center; padding: 20px 0 40px; }
.b2b-pagination a, .b2b-pagination span { display: inline-block; padding: 6px 12px; margin: 0 2px; border: 1px solid #ddd; border-radius: 4px; color: #666; font-size: 14px; }
.b2b-pagination a:hover { background: #eff6ff; border-color: #2563eb; color: #2563eb; text-decoration: none; }
.b2b-pagination .current { background: #2563eb; color: #fff; border-color: #2563eb; }

/* ============================================================
   B2B首页 - 友情链接
   ============================================================ */
.b2b-friend-links { background: #fff; padding: 20px 0; border-top: 1px solid #eee; }
.b2b-friend-links h4 { font-size: 14px; color: #999; margin-bottom: 10px; }
.b2b-friend-links-list { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.b2b-friend-links-list a { color: #888; font-size: 12px; }

/* ============================================================
   B2B首页 - 底部
   ============================================================ */
.b2b-footer { background: #333; color: #aaa; text-align: center; padding: 24px 0; font-size: 13px; }
.b2b-footer a { color: #aaa; }
.b2b-footer p { margin: 4px 0; }

/* ============================================================
   B2B商铺单页 - 通用样式
   ============================================================ */
.b2b-shop-header { background: linear-gradient(135deg, #1e40af, #2563eb); color: #fff; padding: 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.b2b-shop-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.b2b-shop-logo { font-size: 18px; font-weight: bold; color: #fff; }
.b2b-shop-logo:hover { text-decoration: none; color: #fff; }
.b2b-shop-nav { display: flex; gap: 8px; }
.b2b-shop-nav a { color: rgba(255,255,255,.85); font-size: 14px; padding: 6px 14px; border-radius: 4px; transition: all 0.2s; }
.b2b-shop-nav a:hover { background: rgba(255,255,255,.15); color: #fff; text-decoration: none; }
.b2b-shop-tel { font-size: 18px; font-weight: bold; color: #fff; }
.b2b-shop-tel a { color: #fff; }

/* 商铺Banner */
.b2b-shop-banner { background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: #fff; padding: 48px 0; text-align: center; }
.b2b-shop-banner h1 { font-size: 32px; margin-bottom: 12px; }
.b2b-shop-banner p { font-size: 16px; opacity: 0.9; max-width: 800px; margin: 0 auto; }

/* 商铺板块通用 */
.b2b-shop-section { padding: 48px 0; }
.b2b-shop-section:nth-child(even) { background: #fff; }
.b2b-shop-section:nth-child(odd) { background: #f8fafc; }
.b2b-shop-section-title { text-align: center; font-size: 28px; font-weight: bold; margin-bottom: 8px; color: #1e293b; }
.b2b-shop-section-desc { text-align: center; color: #64748b; font-size: 15px; margin-bottom: 32px; }
.b2b-shop-section-en { display: block; font-size: 14px; color: #94a3b8; text-transform: uppercase; letter-spacing: 2px; margin-top: 4px; }

/* 产品中心 */
.b2b-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.b2b-product-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: transform 0.2s, box-shadow 0.2s; }
.b2b-product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.b2b-product-card img { width: 100%; height: 180px; object-fit: cover; background: #f1f5f9; }
.b2b-product-card-body { padding: 12px; }
.b2b-product-card-title { font-size: 14px; color: #333; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 核心优势 */
.b2b-advantage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.b2b-advantage-card { text-align: center; padding: 28px 20px; background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.b2b-advantage-icon { font-size: 40px; margin-bottom: 12px; }
.b2b-advantage-title { font-size: 16px; font-weight: bold; margin-bottom: 8px; color: #1e293b; }
.b2b-advantage-desc { font-size: 13px; color: #64748b; }

/* 关于我们 */
.b2b-about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.b2b-about-text { font-size: 15px; color: #475569; line-height: 2; }
.b2b-about-stats { display: flex; gap: 32px; margin-top: 24px; }
.b2b-about-stat-num { font-size: 32px; font-weight: bold; color: #2563eb; }
.b2b-about-stat-label { font-size: 13px; color: #94a3b8; }
.b2b-about-image img { width: 100%; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.1); }

/* 服务流程 */
.b2b-process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.b2b-process-card { text-align: center; padding: 24px 16px; }
.b2b-process-icon { font-size: 36px; margin-bottom: 12px; }
.b2b-process-title { font-size: 15px; font-weight: bold; margin-bottom: 6px; color: #1e293b; }
.b2b-process-desc { font-size: 13px; color: #64748b; }

/* 联系我们 */
.b2b-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.b2b-contact-card { text-align: center; padding: 24px 20px; background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.b2b-contact-icon { font-size: 32px; margin-bottom: 10px; }
.b2b-contact-label { font-size: 13px; color: #94a3b8; margin-bottom: 4px; }
.b2b-contact-value { font-size: 16px; font-weight: bold; color: #1e293b; word-break: break-all; }

/* 推荐链接 */
.b2b-recommend-wrap { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.b2b-recommend-group { margin-bottom: 20px; }
.b2b-recommend-group-title { font-size: 14px; font-weight: bold; color: #475569; margin-bottom: 8px; }
.b2b-recommend-links { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.b2b-recommend-links a { color: #64748b; font-size: 12px; padding: 2px 8px; background: #f1f5f9; border-radius: 3px; }
.b2b-recommend-links a:hover { background: #eff6ff; color: #2563eb; text-decoration: none; }

/* 商铺底部 */
.b2b-shop-footer { background: #1e293b; color: #94a3b8; padding: 24px 0; text-align: center; font-size: 13px; }
.b2b-shop-footer p { margin: 4px 0; }
.b2b-shop-footer a { color: #94a3b8; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
    .b2b-user-list { grid-template-columns: 1fr; }
    .b2b-product-grid { grid-template-columns: repeat(2, 1fr); }
    .b2b-about-wrap { grid-template-columns: 1fr; }
    .b2b-shop-nav { display: none; }
    .b2b-shop-banner h1 { font-size: 22px; }
    .b2b-shop-section { padding: 32px 0; }
    .b2b-shop-section-title { font-size: 22px; }
    .b2b-header-inner { flex-wrap: wrap; height: auto; padding: 10px 15px; gap: 8px; }
    .b2b-search input { width: 140px; }
}

/* ============================================================
   手机端悬浮拨号按钮
   ============================================================ */
.b2b-mobile-call-float {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 10px 0;
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
.b2b-mobile-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    margin: 0 auto;
    min-height: 44px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.b2b-mobile-call-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,.4);
}

@media (max-width: 768px) {
    .b2b-mobile-call-float {
        display: block;
    }
    body {
        padding-bottom: 64px;
    }
}
