/* ICP/EDI 通用改造层（320 工商代理皮 → 信息站 + 商城 + 店铺街） */

/* 卡片图统一高度，避免各栏图高不一致 */
.p-row .p-img img,
.pb-home-cover img,
.pb-info-cover img,
.pb-rel-img img,
.pb-rel-goods img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* 标题单行截断：卡片/列表/详情统一 */
.pb-rel-title,
.pb-shop-title,
.pb-info-title,
.pb-goods-name,
.pb-article-title,
.n-cow h1,
.n-cow h4,
.p-row h1,
.p-row h3,
.one-txt-cut {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  display: block;
}

/* 列表工具条：条数 + 发布入口 */
.pb-list-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 12px 0; }
.pb-publish-btn { display: inline-block; padding: 8px 18px; font-size: 14px; line-height: 1.4; color: #fff; background: #6c7dff; border-radius: 3px; text-decoration: none; transition: all .3s; }
.pb-publish-btn:hover { background: #5566e8; color: #fff; }
.pb-list-total { color: #888; font-size: 13px; margin-right: 12px; }
.pb-publish-btn {
  display: inline-block;
  padding: 7px 18px;
  background: #2f6bdb;
  color: #fff;
  border-radius: 3px;
}

/* 信息详情：联系卡 */
.pb-info-contact {
  margin: 14px 0;
  padding: 12px 16px;
  background: #f6f9ff;
  border: 1px solid #e3ebfa;
  color: #444;
  font-size: 14px;
}
.pb-ic-item { margin-right: 18px; display: inline-block; }
.tel-view-btn {
  color: #d82019;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0 4px;
}

/* 相关推荐 */
.pb-related { margin-top: 24px; border-top: 1px solid #eee; padding-top: 18px; }
.pb-related h3 { font-size: 18px; margin: 0 0 12px; }
.pb-related ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.pb-related li { flex: 1; min-width: 0; max-width: none !important; float: none !important; }
.pb-rel-title { margin-top: 6px; font-size: 14px; }

/* 商品详情 */
.pb-goods-top { display: flex; gap: 24px; flex-wrap: wrap; margin: 18px 0; }
.pb-goods-media { flex: 0 0 420px; max-width: 100%; }
.pb-media-box img { width: 100%; height: auto; max-height: 520px; object-fit: contain; background: #fff; }
.pb-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pb-thumbs .goods-thumb { width: 64px; height: 64px; border: 1px solid #ddd; padding: 2px; }
.pb-thumbs .goods-thumb.active { border-color: #2f6bdb; }
.pb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pb-goods-info { flex: 1; min-width: 280px; }
.pb-price-main { margin: 12px 0; }
.pb-detail-price { font-size: 28px; color: #d82019; font-weight: 700; }
.pb-detail-price small { font-size: 14px; }
.pb-detail-market { color: #999; text-decoration: line-through; margin-left: 12px; }
.pb-goods-meta { color: #888; font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
.pb-qty-row { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.pb-qty { display: inline-flex; border: 1px solid #ddd; }
.pb-qty button { width: 34px; height: 34px; border: 0; background: #f6f6f6; cursor: pointer; }
.pb-qty input { width: 56px; height: 34px; border: 0; text-align: center; }
.pb-stock-hint { color: #888; font-size: 13px; }
.pb-btn { display: inline-block; padding: 10px 28px; border: 0; border-radius: 3px; cursor: pointer; font-size: 16px; }
.pb-btn-lg { min-width: 140px; }
#btnBuyNow { background: #d82019; color: #fff; }
#btnAddCart { background: #2f6bdb; color: #fff; margin-left: 10px; }
.pb-seller-box { margin-top: 18px; padding: 14px; background: #f8f8f8; font-size: 14px; }
.pb-goods-body { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }
.pb-sec-title { font-size: 18px; margin: 0 0 14px; }
.pb-goods-body img { max-width: 100%; height: auto; }
.pb-rel-goods { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.pb-rel-goods li { flex: 1; min-width: 0; max-width: none !important; float: none !important; }
.pb-rel-price { margin-top: 6px; font-size: 14px; color: #d82019; font-weight: 600; }

/* 店铺街 */
.pb-shop-head { margin: 20px 0; }
.pb-shop-head h1 { font-size: 24px; margin: 0 0 4px; }
.pb-shop-head p { color: #888; margin: 0; }
.pb-shop-grid { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.pb-shop-grid li { flex: 1; min-width: 220px; max-width: 320px; }
.pb-shop-grid a { display: block; padding: 16px; background: #fff; border: 1px solid #e8e8e8; text-align: center; }
.pb-shop-logo img { width: 88px; height: 88px; object-fit: cover; border-radius: 4px; }
.pb-shop-title { font-size: 16px; font-weight: 600; margin-top: 10px; }
.pb-shop-meta { color: #888; font-size: 13px; margin-top: 4px; }
.pb-shop-empty { color: #999; padding: 24px 0; list-style: none; }
.pb-shop-info { padding: 18px; background: #fff; border: 1px solid #e8e8e8; margin: 18px 0; }
.pb-shop-info h2 { font-size: 22px; margin: 0 0 10px; }
.pb-shop-info p { color: #666; margin: 4px 0; font-size: 14px; }

/* 协议三页 */
.pb-agreement-list { list-style: none; padding: 0; margin: 18px 0; background: #fff; }
.pb-agreement-list li { border-bottom: 1px solid #eee; padding: 14px 18px; }
.pb-agreement-list a { display: flex; justify-content: space-between; gap: 12px; }
.pb-ag-date { color: #999; font-size: 13px; }
.pb-article { background: #fff; padding: 22px; line-height: 1.8; font-size: 15px; }
.pb-article img { max-width: 100%; height: auto; }

/* 店铺无 logo 时的文字头像 */
.pb-shop-logo-txt{display:flex;align-items:center;justify-content:center;width:88px;height:88px;margin:0 auto;border-radius:4px;background:#6c7dff;color:#fff;font-size:34px;font-weight:700}

/* ===== 首页分类信息列表 20261124 ===== */
.pb-cate-grid{display:flex;gap:18px;flex-wrap:wrap;margin-top:18px}
.pb-cate-col{flex:1 1 240px;min-width:0;max-width:none;background:#fff;border:1px solid #e8e8e8;padding:0 0 10px}
.pb-cate-hd{padding:12px 14px;border-bottom:1px solid #eee}
.pb-cate-hd h3{margin:0;font-size:17px;color:#2f6bdb;font-weight:600}
.pb-cate-hd h3 a{color:#2f6bdb}
.pb-cate-more{font-size:12px;color:#999}
.pb-cate-more:hover{color:#d82019}
.pb-cate-row{display:flex;align-items:center;gap:10px;padding:9px 14px;border-bottom:1px dashed #eee}
.pb-cate-row:last-child{border-bottom:0}
.pb-cate-row:hover{background:#f8faff}
.pb-cate-thumb{flex:0 0 78px;width:78px;height:48px;overflow:hidden;border-radius:3px;background:#eef1f6}
.pb-cate-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.pb-cate-body{flex:1 1 auto;min-width:0}
.pb-cate-title{display:block;font-size:14px;color:#333;font-weight:500;line-height:1.4}
.pb-cate-date{display:block;font-size:12px;color:#999;font-style:normal;margin-top:4px}
@media (max-width:767px){.pb-cate-grid{gap:12px}.pb-cate-col{flex:1 1 100%}}

/* 信息详情封面：固定 4:3 比例、完整显示不变形 20261124 */
.pb-info-cover{width:100%;max-width:640px;margin:14px 0;background:#f4f6f9;border:1px solid #e8ecf3;overflow:hidden}
.pb-info-cover img{width:100%!important;height:auto!important;max-height:480px;object-fit:contain!important;display:block;background:#fff}

/* 独立表单页：发布信息 / 商家入驻 20261124 */
.pb-form-head{padding:14px 0;border-bottom:1px solid #e8e8e8;margin-bottom:18px}
.pb-form-head h1{font-size:20px;margin:0;color:#2f6bdb;font-weight:600}
.pb-form-wrap{background:#fff;border:1px solid #e8e8e8;padding:24px;margin-bottom:20px}
@media (max-width:767px){.pb-form-wrap{padding:14px}}

/* ===== 首页推荐信息（分类信息上方）20261124 ===== */
.pb-rec{padding:3.2rem 0 0}
.pb-rec-note{font-size:13px;color:#999}
.pb-rec-grid{display:flex;gap:18px;flex-wrap:wrap;margin-top:18px}
.pb-rec-card{flex:1 1 240px;min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid #e8e8e8;overflow:hidden}
.pb-rec-card:hover{border-color:#2f6bdb;box-shadow:0 8px 20px rgba(47,107,219,.13)}
.pb-rec-pic{display:block;width:100%;height:168px;background:#eef1f6;overflow:hidden}
.pb-rec-pic img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s}
.pb-rec-card:hover .pb-rec-pic img{transform:scale(1.06)}
.pb-rec-info{display:block;padding:12px 14px 14px;flex:1 1 auto}
.pb-rec-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:44px;font-size:15px;line-height:1.47;font-weight:600;color:#333}
.pb-rec-card:hover .pb-rec-title{color:#2f6bdb}
.pb-rec-meta{display:flex;align-items:center;justify-content:space-between;margin-top:10px;font-size:12px;color:#999}
.pb-rec-cate{color:#2f6bdb;background:#eef3ff;padding:2px 8px;border-radius:2px}
.pb-rec-date{font-style:normal}
@media (max-width:767px){
    .pb-rec{padding:2.4rem 0 0}
    .pb-rec-grid{gap:12px;width:100%}
    .pb-rec-card{flex:0 0 100%;width:100%;max-width:100%}
    .pb-rec-pic{height:180px}
    .pb-rec-note{display:none}
}
