/* ============================================================
   普拉司网门户首页样式（原生实现，无 UI 库）
   IE11 兼容约束：不用 CSS Grid / CSS 变量 / object-fit / line-clamp，
   封面裁切一律 background-image + background-size:cover
   主色 #4267B5（= Tailwind --primary hsl(220.7,46.6%,48.4%)）
   ============================================================ */

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.home-body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px; color: #333; background: #f6f6f6; min-width: 1500px;
}
ul, li { list-style: none; }
a { color: #333; text-decoration: none; cursor: pointer; }
a:hover { color: #4267B5; }
img { border: 0; display: block; }
button { font-family: inherit; border: 0; background: none; cursor: pointer; color: #333; }
table { border-collapse: collapse; }

.container { width: 1500px; margin: 0 auto; }
.floor { margin-top: 24px; scroll-margin-top: 16px; }
.bg-white { background: #fff; }
.bg-blue { background: #EBF1FF; }
.card { border-radius: 6px; background: #fff; box-shadow: 0 2px 12px rgba(15,23,42,.06); }
.mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.px20 { padding-left: 20px; padding-right: 20px; }
.pl4 { padding-left: 4px; } .pl8 { padding-left: 8px; } .pr4 { padding-right: 4px; }
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nowrap { white-space: nowrap; }
/* clamp2 两行截断：IE11 无 line-clamp，按 max-height(22*2)+隐藏 兜底（无省略号）；
   现代浏览器走 @supports 渐进增强：-webkit-line-clamp 两行 + 省略号（行高不受 22px 限制） */
.clamp2 { overflow: hidden; max-height: 44px; line-height: 22px; word-break: break-all; }
@supports (-webkit-line-clamp: 2) {
  .clamp2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-height: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rise { color: #F00000; } .fall { color: #11AD38; }

/* 广告角标 */
.ad-tag {
  position: absolute; right: 0; bottom: 0; z-index: 10;
  padding: 0 6px; font-size: 12px; line-height: 20px; color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.4); border-top-left-radius: 6px; pointer-events: none;
}

/* 「更多」胶囊 */
.more-link {
  display: inline-block; height: 22px; padding: 0 8px; line-height: 22px;
  font-size: 12px; font-weight: 500; color: #4267B5; background: #f7f7f7;
  border-radius: 11px; text-decoration: none;
}
.more-link:hover { background: #EBF1FF; }
.more-link svg { display: inline-block; width: 8px; height: 8px; margin-left: 2px; vertical-align: -1px; }

/* ---------- 楼层标题 / 卡片头 ---------- */
.section-head { display: flex; margin-bottom: 20px; }
.section-head-main { display: flex; width: 100%; align-items: center; }
.section-head-icon { width: 28px; height: 28px; margin-right: 6px; }
.section-head-title { font-size: 24px; font-weight: bold; line-height: 30px; color: #4267B5; }
.section-head-extra { margin-left: 16px; overflow: hidden; max-width: 1000px; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 500; line-height: 18px; color: #666; }
.section-head-extra b { color: #F00000; font-weight: normal; }

.card-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 0; }
.card-head-main { display: flex; min-width: 0; align-items: center; }
.card-head-title { display: flex; align-items: center; font-size: 18px; font-weight: bold; line-height: 20px; color: #222; }
.card-head-bar { display: inline-block; width: 3px; height: 20px; margin-right: 5px; border-radius: 2px; background: #4267B5; }
.card-head-actions { display: flex; align-items: center; margin-left: 20px; }
.card-head-actions > * { margin-left: 20px; }
.card-head-actions > :first-child { margin-left: 0; }

.enter-link {
  display: inline-block; height: 22px; padding: 0 8px; line-height: 22px;
  font-size: 13px; font-weight: 500; color: #4267B5; border-radius: 11px;
}
.enter-link:hover { background: #f7f7f7; }
.enter-link img { display: inline-block; width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }

/* ---------- tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; align-items: center; }
.tabs .tab {
  height: 32px; min-width: 80px; padding: 0 12px; margin-right: 16px;
  font-size: 14px; font-weight: 500; line-height: 32px; text-align: center;
  color: #333; background: #f7f7f7; border-radius: 16px;
}
.tabs .tab:hover { color: #4267B5; }
.tabs .tab.active { color: #fff; background: #4267B5; }
.js-panel { display: none; }
.js-panel.active { display: block; }

/* ---------- 通用轮播（代理商/旗舰店/热门资讯） ---------- */
.slider-viewport { overflow: hidden; }
.slider-item { flex: none; }

/* 代理商推荐 */
.agents-body { position: relative; margin-top: 16px; padding: 0 20px 24px; }
.agents-body .slider-item { width: 274px; }
.agent-card { display: flex; width: 274px; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #E8EDF5; border-radius: 6px; }
.agent-card-top { display: block; }
.agent-card-logo { display: flex; height: 80px; margin: 15px 22px 0; align-items: center; justify-content: center; overflow: hidden; }
.agent-card-logo img { max-width: 250px; max-height: 100%; transition: transform .3s; }
.agent-card-top:hover .agent-card-logo img { transform: scale(1.1); }
.agent-card-nologo { font-size: 14px; color: #999; }
.agent-card-names { display: flex; flex-direction: column; padding: 14px 20px 0; align-items: center; }
.agent-card-manu { display: block; max-width: 100%; overflow: hidden; font-size: 14px; font-weight: 500; line-height: 14px; color: #666; white-space: nowrap; text-overflow: ellipsis; }
.agent-card-top:hover .agent-card-manu { color: #4267B5; }
.agent-card-company { width: 100%; margin-top: 10px; padding-top: 10px; border-top: 1px solid #E8EDF5; font-size: 18px; font-weight: bold; line-height: 18px; color: #222; text-align: center; }
.agent-card-products { margin-top: 12px; height: 48px; padding: 0 20px; }
.agent-card-products li { margin-bottom: 8px; }
.agent-card-product { display: flex; align-items: center; justify-content: space-between; font-size: 14px; line-height: 20px; }
.agent-card-product:hover { color: #4267B5; }
.agent-card-product > span:first-child { flex: 1; min-width: 0; margin-right: 4px; }
.agent-card-bottom { display: flex; height: 42px; margin-top: 12px; align-items: center; justify-content: space-around; background: #F5F7FA; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; font-size: 13px; line-height: 13px; color: #333; }
.agent-card-bottom:hover { background: #ECF1F9; }
.agent-card-bottom b { font-weight: 500; color: #E53935; }
