/**
 * 赞助合作位 + 页脚转化条
 */
.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;
}

.site-clearfix {
  clear: both;
  height: 0;
  overflow: hidden;
}

.monetize-footer-zone {
  clear: both;
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin: 40px calc(50% - 50vw) 0;
  padding: 0;
  background: linear-gradient(180deg, #fff8f0 0%, #ffffff 70%);
  border-top: 1px solid #fde6c8;
  position: relative;
  overflow: hidden;
}

.monetize-footer-inner {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 28px;
  box-sizing: border-box;
}

.monetize-footer-bar {
  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 {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-bottom: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
  background: transparent;
  border-top: none;
}

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

.monetize-footer-card {
  width: 100%;
  text-align: center;
  padding: 24px 28px 26px;
  background: #fff;
  border: 1px solid #f5e6d3;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(249, 130, 6, 0.1);
  box-sizing: border-box;
}

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

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

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

.monetize-footer-actions {
  display: flex;
  justify-content: center;
}

.monetize-footer-btn {
  padding: 12px 32px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f98206 0%, #f59e0b 100%);
  color: #fff;
  font-size: 15px;
  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;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
}

.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: 24px;
    background: linear-gradient(180deg, #fff6eb 0%, #fff 100%);
  }

  .monetize-footer-inner {
    padding: 0 16px 20px;
  }

  .monetize-footer-card {
    padding: 20px 18px 22px;
    border-radius: 14px;
    border-color: #f0dcc4;
    box-shadow: 0 8px 28px rgba(249, 130, 6, 0.14);
  }

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

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

  .monetize-footer-text span {
    font-size: 13px;
  }

  .monetize-footer-actions {
    width: 100%;
  }

  .monetize-footer-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .footer-container > .monetize-footer-zone,
  .footer-container > .monetize-footer-bar {
    padding-left: 0;
    padding-right: 0;
  }
}

/* 后台 */
.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;
}
