/* 广告 list page (#/ads) — rows in the owner's order; each row opens the shared ad popup. */
.pg-ads .al-page { max-width: 1040px; }
.pg-ads .al-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--panel); overflow: hidden; }
.pg-ads .al-row + .al-row { border-top: 1px solid var(--line-soft); }
.pg-ads .al-main {
  width: 100%; display: grid; grid-template-columns: 34px 160px minmax(0, 1fr) 24px; align-items: center; gap: 16px;
  padding: 14px 16px; border: 0; background: transparent; color: var(--text); text-align: left; font: inherit;
  transition: background var(--dur) var(--ease);
}
.pg-ads .al-main:hover { background: var(--panel-2); }
.pg-ads .al-main:hover .al-go { color: var(--accent); transform: translateX(2px); }
.pg-ads .al-rank { font-size: 15px; font-weight: 700; color: var(--text-3); text-align: center; }
.pg-ads .al-row:first-child .al-rank,
.pg-ads .al-row:nth-child(2) .al-rank,
.pg-ads .al-row:nth-child(3) .al-rank { color: var(--accent); }
.pg-ads .al-thumb {
  position: relative; width: 160px; aspect-ratio: 16 / 9; border: 1px solid var(--line-2); border-radius: var(--r-1);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; overflow: hidden;
}
.pg-ads .al-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-ads .al-thumb .ico { width: 24px; height: 24px; }
.pg-ads .al-thumb-k { font-size: 12px; }
.pg-ads .al-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pg-ads .al-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pg-ads .al-title strong { font-size: var(--fs-lg); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-ads .al-desc { font-size: var(--fs-sm); line-height: 1.6; color: var(--text-2); }
.pg-ads .al-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-ads .al-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: var(--r-1);
  background: var(--panel-3); border: 1px solid var(--line); font-size: 12px; color: var(--text-2);
}
.pg-ads .al-chip b { color: var(--accent); font-weight: 600; }
.pg-ads .al-go { color: var(--text-3); display: inline-flex; transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.pg-ads .al-note { display: flex; align-items: flex-start; gap: 6px; }
.pg-ads .al-note .ico { margin-top: 2px; flex: none; }

@media (max-width: 767px) {
  .pg-ads .al-main { grid-template-columns: 112px minmax(0, 1fr) 18px; gap: 12px; padding: 12px; min-height: 88px; }
  .pg-ads .al-rank {
    position: absolute; z-index: 1; margin: 4px 0 0 4px; min-width: 22px; height: 18px; line-height: 18px; padding: 0 4px;
    border-radius: 3px; background: rgba(10, 13, 18, .82); font-size: 12px; text-align: center;
  }
  .pg-ads .al-main { position: relative; align-items: start; }
  .pg-ads .al-go { align-self: center; }
  .pg-ads .al-rank { left: 12px; top: 12px; }
  .pg-ads .al-thumb { width: 112px; }
  .pg-ads .al-thumb-k { display: none; }
  .pg-ads .al-title strong { font-size: var(--fs-md); }
  .pg-ads .al-desc { -webkit-line-clamp: 2; }
}
