/* 主站 / Tools / Apps 页脚小卡片广告。所有样式限定在本组件内。 */
body .ipkk-footer-ads {
  position: static;
  display: block;
  flex: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 24px 32px;
  box-sizing: border-box;
  border: 0;
  background: var(--ipkk-bg, #f3f6f8);
  color: var(--ipkk-ink, #182f40);
  font-family: var(--ipkk-font, 'PingFang SC', 'Microsoft YaHei', sans-serif);
  text-align: left;
}
.ipkk-footer-ads *, .ipkk-footer-ads *::before { box-sizing: border-box; }
body .ipkk-footer-ads .ipkk-footer-ad-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: var(--ipkk-width, 1200px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
body .ipkk-footer-ad-grid > li { display: block; min-width: 0; margin: 0; padding: 0; list-style: none; }
body .ipkk-footer-ads .ipkk-footer-ad-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 76px;
  margin: 0;
  padding: 14px 12px;
  border: 1px solid #e7dcc6;
  border-radius: 8px;
  background: #fff8e7;
  color: #4f4434;
  text-decoration: none;
  font: inherit;
  text-align: left;
  appearance: none;
  cursor: pointer;
  box-shadow: var(--ipkk-shadow, 0 8px 28px rgba(21, 46, 64, .045));
  transition: background-color .16s, border-color .16s, box-shadow .16s;
}
body .ipkk-footer-ads .ipkk-footer-ad-card:hover {
  background: #fff3d7;
  border-color: #cdb78c;
}
body .ipkk-footer-ads .ipkk-footer-ad-card:focus-visible { outline: 2px solid #805c26; outline-offset: 3px; }
body .ipkk-footer-ads .ipkk-footer-ad-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid #e5d3a7;
  border-radius: 8px;
  background: #f4e8c8;
  color: #805c26;
  font: 750 12px/1 var(--ipkk-font, sans-serif);
  letter-spacing: .01em;
}
body .ipkk-footer-ads .ipkk-footer-ad-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
body .ipkk-footer-ads .ipkk-footer-ad-copy strong { display: block; margin: 0; color: #4f4434; font-size: 15px; font-weight: 650; line-height: 1.5; white-space: nowrap; }
body .ipkk-footer-ads .ipkk-footer-ad-caption { display: flex; flex-wrap: wrap; margin: 0; color: #756650; font-size: 12px; font-weight: 400; line-height: 1.5; }
.ipkk-footer-ad-caption > span { white-space: nowrap; }
.ipkk-footer-ad-caption > span + span::before { content: '·'; margin: 0 4px; }
body .ipkk-footer-ads .ipkk-footer-ad-noscript { max-width: var(--ipkk-width, 1200px); margin: 14px auto 0; color: #607889; font-size: 13px; line-height: 1.7; text-align: center; }
@media (max-width: 1179px) {
  body .ipkk-footer-ads .ipkk-footer-ad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body .ipkk-footer-ads { padding: 20px 12px 24px; }
  body .ipkk-footer-ads .ipkk-footer-ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body .ipkk-footer-ads .ipkk-footer-ad-card { gap: 8px; min-height: 76px; padding: 12px 10px; }
  body .ipkk-footer-ads .ipkk-footer-ad-badge { flex-basis: 28px; width: 28px; height: 30px; border-radius: 6px; font-size: 11px; }
  body .ipkk-footer-ads .ipkk-footer-ad-copy strong { font-size: 14px; }
  body .ipkk-footer-ads .ipkk-footer-ad-caption { font-size: 11px; }
  .ipkk-footer-ad-caption > span + span::before { margin: 0 3px; }
}
@media (max-width: 359px) {
  body .ipkk-footer-ads .ipkk-footer-ad-caption { flex-direction: column; }
  .ipkk-footer-ad-caption > span + span::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  body .ipkk-footer-ads .ipkk-footer-ad-card { transition: none; }
}
