/* 导航首页文字广告位 · 作用域样式，只影响 .spon-* */
.spon-host, .spon-wrap { width: 100%; }

.spon-grid {
  display: grid;
  grid-template-columns: repeat(var(--spon-cols, 8), minmax(0, 1fr));
  gap: var(--spon-gap, 8px);
  margin: 0;
}

.spon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 46px;
  padding: 7px 11px;
  box-sizing: border-box;
  border: 1px dashed var(--spon-border, #e3ebeb);
  border-radius: var(--spon-radius, 10px);
  background: var(--spon-bg, #ffffff);
  background: color-mix(in srgb, var(--spon-bg, #ffffff) calc(var(--spon-alpha, 100) * 1%), transparent);
  text-decoration: none;
  overflow: hidden;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.spon:hover {
  border-color: var(--spon-accent, #347c82);
  background: var(--spon-hover-bg, #f3f8f8);
  text-decoration: none;
}

.spon-t {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--spon-fg, #1c2b2c);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spon:hover .spon-t { color: var(--spon-accent, #347c82); }

.spon-i {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: var(--spon-muted, #8a9b9c);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spon-slot {
  border-style: dashed;
  border-color: var(--spon-slot-border, #edf3f3);
  background: var(--spon-slot-bg, #fbfcfc);
  background: color-mix(in srgb, var(--spon-slot-bg, #fbfcfc) calc(var(--spon-alpha, 100) * 1%), transparent);
}
.spon-slot .spon-t { color: var(--spon-slot-fg, #b6c4c4); font-weight: 400; }
.spon-slot .spon-i { color: var(--spon-muted, #9aa9aa); opacity: .85; }
.spon-slot:hover { border-color: var(--spon-accent, #347c82); background: var(--spon-hover-bg, #f7fafa); }
.spon-slot:hover .spon-t { color: var(--spon-accent, #347c82); }

.spon-loading, .spon-empty {
  padding: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--spon-muted, #8a9b9c);
  border: 1px dashed var(--spon-border, #e3ebeb);
  border-radius: var(--spon-radius, 10px);
  background: var(--spon-bg, #fff);
}

.spon-empty a { color: var(--spon-accent, #347c82); }

.spon-brand {
  text-align: right;
  margin: 0 0 6px;
  padding: 0 2px;
  font-size: 11px;
  line-height: 1.2;
}
.spon-brand a { color: var(--spon-muted, #9aa9aa); text-decoration: none; }
.spon-brand a:hover { color: var(--spon-accent, #347c82); }

/* 每行 6-8 个：大屏按配置，往下逐级收缩 */
@media (max-width: 1199px) {
  .spon-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .spon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .spon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spon { min-height: 44px; padding: 6px 9px; }
  .spon-t { font-size: 13px; }
}
