/* 全站 · 定制开发顶部提示（单行自适应） */
.custom-banner {
  display: block;
  width: 100%;
  padding: 6px 10px;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
}

.custom-banner-frame {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 8px 7px 10px;
  border: 2px solid rgba(251, 191, 36, 0.55);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 12px rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.custom-banner:hover .custom-banner-frame {
  border-color: #fbbf24;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 20px rgba(251, 191, 36, 0.15);
}

.custom-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex: 0 0 26px;
  font-size: 11px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.custom-banner-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(11px, 3.3vw, 16px);
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.custom-banner-text em {
  font-style: normal;
  font-weight: 800;
  color: #fbbf24;
}

.custom-banner-action {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: clamp(11px, 2.8vw, 13px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}

.custom-banner:hover .custom-banner-action {
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.45);
}

.custom-banner:active .custom-banner-action {
  transform: scale(0.97);
}

@media (max-width: 380px) {
  .custom-banner {
    padding: 6px 8px;
  }

  .custom-banner-frame {
    gap: 5px;
    padding: 6px 6px 6px 8px;
  }

  .custom-banner-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    font-size: 10px;
  }

  .custom-banner-text {
    font-size: 11px;
  }

  .custom-banner-action {
    padding: 5px 8px;
    font-size: 11px;
  }
}

@media (min-width: 769px) {
  .custom-banner {
    max-width: var(--page-max, 520px);
    margin: 0 auto;
    padding: 8px 12px;
  }

  .custom-banner-frame {
    gap: 8px;
    padding: 8px 10px 8px 12px;
  }

  .custom-banner-text {
    font-size: 16px;
  }

  .custom-banner-action {
    padding: 7px 14px;
    font-size: 13px;
  }
}
