/* partners4.css — 合作伙伴条（2026-10-29 v4）
   设计意图：只出现 logo，没有任何文字；用留白、发丝线与统一光学高度做出质感。
   用法：把本文件复制到站点 assets/css/，结构见下：
   <section class="pl">
     <div class="pl__row">
       <a class="pl__a" href="/go/cam4" target="_blank" rel="noopener sponsored"><img src="/assets/img/p-cam4.png" alt="CAM4" height="28"></a>
       ... 共 6 个
     </div>
   </section>
*/

.pl{
  --pl-h: 28px;
  padding: 34px 0 30px;
  border-top: 1px solid rgba(17,17,17,.10);
  border-bottom: 1px solid rgba(17,17,17,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 70%);
}
.pl__row{
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 0;
}
/* 板块标识：让读者知道这一排是什么，同时保持 logo 本身没有文字 */
.pl__label{
  grid-column: 1 / -1;
  margin: 0 0 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #374151;
}
.pl__a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  opacity: .9;
  transition: opacity .18s ease;
}
.pl__a:hover{ opacity: 1; }
.pl__a{ min-width: 0; width: 100%; justify-self: stretch; justify-content: center; overflow: hidden; }
.pl__a img{
  height: auto;
  width: auto;
  max-height: var(--pl-h);
  max-width: 100%;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
  image-rendering: auto;
}
.pl__a[href$="/go/livejasmin"] img{ max-height: calc(var(--pl-h) * 0.82); }
.pl__a[href$="/go/faphouse"] img{ max-height: calc(var(--pl-h) * 0.92); }

/* 深色页面：只换发丝线与底纹，不改 logo */
.pl--onDark .pl__label{ color: #c9ced6; }
.pl--onDark{
  border-color: rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 70%);
}

@media (max-width: 900px){
  .pl{ --pl-h: 24px; padding: 24px 0 22px; }
  .pl__row{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .pl__a{ flex: 0 0 auto; }
}
@media (max-width: 560px){
  .pl{ --pl-h: 22px; padding: 20px 0 18px; }
  .pl__row{ padding: 0 18px; gap: 16px 0; }
  /* 必须按单元格宽度收口（390 下单元格 118px）。用视口百分比作上限会让 9.25:1 的
     LiveJasmin 横条撑到 163.8px，越过右内边距 5px，整页在 390 出现横向滚动。 */
  .pl__a img{ max-width: 100%; }
}
