/* 前台广告说明页 #/ads，样式限定在 .ads-page，不改 base.css。 */

.ads-page {
  max-width: 1080px;
  margin: 0 auto;
  min-width: 0;
  animation: ads-page-in .45s cubic-bezier(.22,.7,.3,1) both;
}

@keyframes ads-page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.ads-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 148px;
  padding: 28px 36px 30px;
  background:
    linear-gradient(100deg, #16161a 0%, #1a1c22 55%, #241c10 100%);
  border: 1px solid var(--line);
}

.ads-hero::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 50%;
  width: 220px;
  height: 220px;
  transform: translate(30%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(248, 207, 3, .22) 0%,
      rgba(248, 207, 3, .08) 36%,
      rgba(248, 207, 3, 0) 70%);
}

.ads-hero .page-kicker,
.ads-hero h1,
.ads-lead {
  position: relative;
  z-index: 1;
}

.ads-hero h1 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.ads-lead {
  margin: 0;
  max-width: 46rem;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.ads-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  margin: 20px 0 28px;
  min-width: 0;
}

.ads-panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px 18px;
}

.ads-panel h2,
.ads-slots-hd h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.ads-points {
  margin: 0;
  padding: 0 0 0 1.15em;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.ads-points li + li { margin-top: 8px; }
.ads-points code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text);
  background: #ffffff0f;
  border-radius: 4px;
  padding: 0 4px;
  overflow-wrap: anywhere;
}

.ads-panel p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.ads-contact-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.ads-contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid #ffffff12;
}

.ads-contact-list a {
  color: var(--acc);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ads-contact-list a:hover { filter: brightness(1.08); }

.ads-contact-src {
  font-size: 12px;
  color: var(--dim);
  min-width: 0;
  overflow-wrap: anywhere;
}

.ads-slots { min-width: 0; }

.ads-slots-hd {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
  min-width: 0;
}

.ads-slots-hd p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.ads-empty {
  margin: 0;
  padding: 18px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.ads-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.ads-slot-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,.7,.3,1), box-shadow .35s cubic-bezier(.22,.7,.3,1), border-color .22s ease;
}

.ads-slot-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #3a3f48;
}

.ads-slot-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--surface2);
  min-width: 0;
}

.ads-slot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ads-slot-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff8;
  background: linear-gradient(160deg, #2a2d36, #1a1c22);
}

.ads-slot-body {
  padding: 14px 16px 16px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ads-slot-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.ads-slot-hd h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ads-pos {
  flex: 0 0 auto;
  max-width: 46%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--acc-text);
  background: var(--acc);
  border-radius: 999px;
  padding: 3px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ads-slot-note,
.ads-slot-muted {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ads-slot-link {
  align-self: flex-start;
  font-size: 13px;
  color: var(--acc);
  font-weight: 600;
}

.ads-slot-link:hover { filter: brightness(1.08); }

@media (max-width: 1100px) {
  .ads-hero { padding: 24px 22px 26px; }
  .ads-hero h1 { font-size: 24px; }
  .ads-intro,
  .ads-slot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ads-pos { max-width: 42%; }
}

@media (max-width: 720px) {
  .ads-hero { padding: 20px 16px 22px; border-radius: 12px; }
  .ads-hero h1 { font-size: 22px; }
  .ads-panel { padding: 16px; }
  .ads-slot-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ads-page {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .ads-page *,
  .ads-page *::before,
  .ads-page *::after {
    animation: none !important;
    transition: none !important;
  }
  .ads-slot-card:hover {
    transform: none;
    box-shadow: none;
  }
}
