/* ============================================================
   B2B模式专用样式
   企业单页锚点导航，适配环保能源行业
   ============================================================ */

* { 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: #16a34a; transition: color 0.2s; }
a:hover { color: #15803d; 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: #16a34a; }
.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: #16a34a; border-bottom-color: #16a34a; 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: #16a34a; 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: #f0fdf4; color: #16a34a; }

/* ============================================================
   B2B首页 - 企业列表
   ============================================================ */
.b2b-section-title { font-size: 20px; font-weight: bold; margin: 24px 0 16px; padding-left: 12px; border-left: 4px solid #16a34a; }
.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: #16a34a; 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: #f0fdf4; color: #16a34a; border-radius: 3px; font-size: 11px; font-weight: 600; }
.b2b-user-card-btn { display: inline-block; padding: 4px 14px; background: #16a34a; color: #fff; border-radius: 4px; font-size: 13px; }
.b2b-user-card-btn:hover { background: #15803d; 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: #f0fdf4; border-color: #16a34a; color: #16a34a; text-decoration: none; }
.b2b-pagination .current { background: #16a34a; color: #fff; border-color: #16a34a; }

/* ============================================================
   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, #15803d, #16a34a); 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: 6px; flex-wrap: nowrap; }
.b2b-shop-nav a { color: rgba(255,255,255,.85); font-size: 12px; padding: 6px 8px; border-radius: 4px; transition: all 0.2s; white-space: nowrap; }
.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, #14532d, #22c55e); 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: #16a34a; }
.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-contact-value a { color: #16a34a; }

/* 推荐链接 */
.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: #f0fdf4; color: #16a34a; 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: #16a34a;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(22,163,74,.3);
}
.b2b-mobile-call-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22,163,74,.4);
}

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

/* Banner CTA 按钮 */
.b2b-banner-cta-wrap {
  margin-top: 20px;
  text-align: center;
}
.b2b-banner-call {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #f59e0b;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.b2b-banner-call:hover {
  background: #d97706;
  text-decoration: none;
  color: #fff;
}
.b2b-banner-call .call-tel {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.b2b-banner-call .call-text {
  font-size: 14px;
  opacity: 0.95;
}
.banner-area {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 8px;
}

/* 关于我们 - 联系方式行 */
.b2b-about-contact {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #555;
}
.b2b-about-contact a {
  color: #16a34a;
  font-weight: 500;
}

/* 产品对比表格 */
.b2b-product-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.b2b-product-table th,
.b2b-product-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}
.b2b-product-table th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 600;
}
.b2b-product-table td {
  color: #475569;
}
.b2b-product-table tr:last-child td {
  border-bottom: none;
}
.b2b-product-table tr:hover td {
  background: #f8fafc;
}

/* ============================================================
   FAQ 常见问题
   ============================================================ */
.b2b-faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.b2b-faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.b2b-faq-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: #15803d;
  margin-bottom: 8px;
  line-height: 1.5;
}
.b2b-faq-item p {
  font-size: 14px;
  color: #475569;
  line-height: 1.8;
}
