/* ============================================================
   站群单页专用样式 (type=1)
   仿企业单页布局: 首页企业列表 + 单页锚点导航
   ============================================================ */

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

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

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

/* 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; }
.info-label { color: #9ca3af; }

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

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

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

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

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

/* 商铺Banner */
.site-banner { background: linear-gradient(135deg, #1b5e20, #388e3c 50%, #2e7d32); color: #fff; padding: 48px 0; text-align: center; }
.site-banner h1 { font-size: 32px; margin-bottom: 12px; }
.site-banner p { font-size: 16px; opacity: 0.9; max-width: 800px; margin: 0 auto; }

/* Banner 服务区域 */
.site-banner-area {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 8px;
  margin-bottom: 16px;
}

/* Banner CTA按钮 */
.site-banner-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #ef6c00;
  color: #fff;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 700;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(239,108,0,.3);
  transition: all 0.2s;
}
.site-banner-cta:hover {
  background: #e65100;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239,108,0,.4);
  text-decoration: none;
  color: #fff;
}
.site-banner-cta-tel {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}
.site-banner-cta-text {
  font-size: 13px;
  opacity: 0.9;
}

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

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

/* 产品分类分组(按cat_name) */
.product-series { margin-bottom: 36px; }
.product-series:last-child { margin-bottom: 0; }
.series-header { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.series-header h3 { margin: 0; font-size: 20px; font-weight: 700; color: #1e293b; white-space: nowrap; }
.series-header .line { flex: 1; height: 1px; background: #e2e8f0; }
.series-header .count { flex-shrink: 0; font-size: 13px; line-height: 1; color: #2e7d32; background: #f1f8f2; border: 1px solid #cfe5d3; border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.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; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.product-card .img-wrap { overflow: hidden; background: #f1f5f9; }
.product-card .img-wrap img { width: 100%; height: 180px; object-fit: cover; }
.product-card .card-body { padding: 12px; }
.product-card .pname { font-size: 14px; color: #333; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .tag-a { color: #2e7d32; margin-right: 2px; }

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

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

/* 关于我们 - 联系方式行 */
.about-contact {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #475569;
}
.about-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-contact-label {
  color: #94a3b8;
  min-width: 70px;
  font-size: 13px;
}
.about-contact-value {
  color: #1e293b;
  font-weight: 600;
}
.about-contact-value a {
  color: #2e7d32;
  font-weight: 600;
}

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

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

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

/* 商铺底部站群链接区 */
.site-footer-links { background: #263238; color: #b0bec5; padding: 24px 0; font-size: 13px; }
.site-footer-links .recommend-group { margin-bottom: 16px; }
.site-footer-links .recommend-group:last-child { margin-bottom: 0; }
.site-footer-links .recommend-group-title { color: #cfd8dc; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.site-footer-links .recommend-links a { color: #90a4ae; font-size: 12px; padding: 3px 10px; background: rgba(255,255,255,.06); border-radius: 4px; transition: all .2s; }
.site-footer-links .recommend-links a:hover { background: rgba(255,255,255,.12); color: #e0e0e0; text-decoration: none; }

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

/* ============================================================
   Banner CTA 与服务区域 (兼容旧模板)
   ============================================================ */
.banner-service-area {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 8px;
  letter-spacing: 1px;
}
.banner-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
  padding: 12px 32px;
  background: #ef6c00;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(239,108,0,.3);
}
.banner-cta:hover {
  background: #e65100;
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}
.banner-cta .cta-tel {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
.banner-cta .cta-text {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 2px;
}

/* ============================================================
   关于我们 - 补充段落 (兼容旧模板)
   ============================================================ */
.about-extra {
  font-size: 14px;
  color: #64748b;
  line-height: 1.9;
  margin-top: 16px;
}

/* ============================================================
   产品技术参数对照表
   ============================================================ */
.spec-table-wrap { margin-top: 32px; }
.spec-title {
  font-size: 18px;
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #2e7d32;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.spec-table thead th {
  background: #1b5e20;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
}
.spec-table tbody td {
  padding: 12px 16px;
  font-size: 13px;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.6;
}
.spec-table tbody tr:hover { background: #f8faf8; }
.spec-table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   质量管控板块
   ============================================================ */
.quality-section {
  margin-top: 40px;
  padding: 32px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}
.quality-title {
  font-size: 18px;
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 20px;
  text-align: center;
}
.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.quality-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.quality-num {
  font-size: 28px;
  font-weight: 700;
  color: #2e7d32;
  opacity: 0.3;
  margin-bottom: 8px;
}
.quality-name {
  font-size: 15px;
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 8px;
}
.quality-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
    .user-list { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .about-wrap { grid-template-columns: 1fr; }
    .site-nav { display: none; }
    .site-banner { padding: 32px 15px; }
    .site-banner h1 { font-size: 22px; }
    .site-banner-cta { padding: 10px 24px; }
    .site-banner-cta-tel { font-size: 18px; }
    .site-section { padding: 32px 0; }
    .site-section-title { font-size: 22px; }
    .header-inner { flex-wrap: wrap; height: auto; padding: 10px 15px; gap: 8px; }
    .search input { width: 140px; }
    .banner-cta { padding: 10px 24px; }
    .banner-cta .cta-tel { font-size: 18px; }
    .spec-table { font-size: 12px; }
    .spec-table thead th,
    .spec-table tbody td { padding: 8px 10px; }
    .quality-section { padding: 20px 16px; }
    .quality-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .about-contact { flex-direction: column; gap: 8px; }
    .about-stats { gap: 20px; }
    .about-stat-num { font-size: 26px; }
    .advantage-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   手机端悬浮拨号按钮
   ============================================================ */
.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);
}
.mobile-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    margin: 0 auto;
    min-height: 44px;
    border-radius: 999px;
    background: #ef6c00;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(239,108,0,.3);
}
.mobile-call-btn:hover {
    background: #e65100;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239,108,0,.4);
    text-decoration: none;
    color: #fff;
}

/* ============================================================
   FAQ 常见问题板块 (商铺基准模板 b2b_shop_1)
   ============================================================ */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}
.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.faq-item:last-child { margin-bottom: 0; }
.faq-q {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.5;
}
.faq-a {
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
}
@media (max-width: 768px) {
    .faq-item { padding: 14px 16px; }
    .faq-q { font-size: 15px; }
}

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

/* ============================================================
   适用场景表格
   ============================================================ */
.scene-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.scene-table thead {
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: #fff;
}
.scene-table th {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}
.scene-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
    line-height: 1.6;
}
.scene-table tbody tr:last-child td {
    border-bottom: none;
}
.scene-table tbody tr:hover {
    background: #f0f7ff;
}
.scene-table td:first-child {
    font-weight: 600;
    color: #1a73e8;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .scene-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .scene-table th,
    .scene-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}
