/**
 * 赞助合作位 + 页脚转化条
 */
.monetize-sponsors {
  max-width: 780px;
  margin: 24px auto 0;
  padding: 18px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-sizing: border-box;
}

.monetize-sponsors-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
}

.monetize-sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.monetize-sp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s;
}

.monetize-sp-card:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.monetize-sp-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 10px;
  font-weight: 700;
}

.monetize-sp-img {
  width: 120px;
  height: 72px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 8px;
  background: #f8fafc;
}

.monetize-sp-placeholder {
  width: 120px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 8px;
}

.monetize-sp-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
}

.monetize-sp-desc {
  margin-top: 4px;
  font-size: 11px;
  color: #64748b;
  text-align: center;
  line-height: 1.45;
}

.monetize-footer-zone {
  clear: both;
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin: 48px 0 0;
  padding: 0 20px 28px;
  box-sizing: border-box;
  background: #fff;
}

.monetize-footer-bar {
  flex: 0 1 640px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: block;
  text-align: center;
  box-sizing: border-box;
}

.monetize-footer-wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* 兼容旧版静态页：广告仍在 footer 容器内 */
.footer-container > .monetize-footer-bar,
.footer-container > .monetize-footer-zone {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding-bottom: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.footer-container > .monetize-footer-bar .monetize-footer-wrap,
.footer-container > .monetize-footer-bar .monetize-footer-card {
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.monetize-footer-card {
  text-align: center;
  padding: 22px 28px 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07);
  box-sizing: border-box;
}

.monetize-footer-text {
  margin-bottom: 16px;
}

.monetize-footer-text strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.4;
}

.monetize-footer-text span {
  display: block;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

.monetize-footer-btn {
  padding: 11px 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f98206 0%, #f59e0b 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(249, 130, 6, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.monetize-footer-btn:hover {
  background: linear-gradient(135deg, #e67400 0%, #ea8c08 100%);
  box-shadow: 0 6px 18px rgba(249, 130, 6, 0.42);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .monetize-footer-zone {
    margin-top: 32px;
    padding: 0 16px 22px;
  }

  .monetize-footer-card {
    padding: 18px 20px 20px;
  }

  .monetize-footer-text strong {
    font-size: 16px;
  }
}

/* 后台 */
.monetize-admin-section {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 16px;
  background: #fafbfc;
}

.monetize-admin-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #1e40af;
}

.monetize-admin-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.monetize-admin-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #475569;
}

.monetize-admin-row input[type="text"],
.monetize-admin-row input[type="url"],
.monetize-admin-row input[type="file"],
.monetize-admin-row select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
}

.monetize-admin-sponsor {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
}

.monetize-admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.monetize-admin-check label {
  font-weight: 600;
  margin: 0;
}

.monetize-admin-preview {
  margin-top: 8px;
}

.monetize-admin-preview img {
  max-width: 160px;
  max-height: 96px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}
