/* Inner list + article chrome. Homepage modules in rich.css stay untouched. */

.content-page {
  padding: 2.4rem 0 3.2rem;
}

.content-lead {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-width: 0;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.casino-lead-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 2.2rem;
}

.content-lead--media {
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.content-lead--media .content-lead__copy {
  padding: 28px 32px 28px 8px;
}

.content-lead__media {
  display: grid;
  min-height: 240px;
  background: var(--header);
}

.content-lead__media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.content-lead__kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-lead h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.content-lead:hover h2 {
  color: var(--brand);
}

.content-lead p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-meta);
  line-height: 1.55;
}

.content-lead__meta {
  margin-top: 14px !important;
  color: var(--ink-faint) !important;
  font-size: 14px;
}

.content-lead__cta {
  display: inline-flex;
  margin-top: 14px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
}

.listing-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 6px;
  background: var(--header);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.listing-mark--lg {
  width: 120px;
  height: 120px;
  font-size: 36px;
}

.listing-block {
  margin-top: 2.6rem;
}

.listing-block > h2 {
  margin: 0 0 1.1rem;
  font-size: var(--heading-section);
  font-weight: 800;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.listing-card,
.news-listing {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.listing-card:hover,
.news-listing:hover {
  border-color: #8bbfc1;
  box-shadow: var(--shadow-card);
}

.listing-card a,
.news-listing a {
  display: grid;
  min-height: 100%;
  padding: 18px;
}

.listing-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 600;
}

.listing-card h3,
.news-listing h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.listing-card:hover h3,
.news-listing:hover h3 {
  color: var(--brand);
}

.listing-card p,
.news-listing p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.listing-card__foot,
.news-listing__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 16px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.listing-card__foot time {
  color: var(--ink-faint);
  font-weight: 600;
}

.news-listing a {
  padding: 0 0 18px;
}

.news-listing__media {
  position: relative;
  height: 168px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: var(--header);
}

.news-listing__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-listing__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 52px;
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 6px 4px;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  line-height: 1.05;
  text-align: center;
}

.news-listing__badge strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.news-listing__badge span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.news-listing h3,
.news-listing p,
.news-listing__foot {
  padding-left: 18px;
  padding-right: 18px;
}

.news-listing h3 {
  margin-top: 14px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.how-card {
  min-width: 0;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.how-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.how-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.catalog-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 2.6rem;
  padding: 28px 32px;
  border-radius: 8px;
  background: var(--header);
  color: #fff;
}

.catalog-banner h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 24px;
}

.catalog-banner p {
  margin: 0;
  color: var(--header-ink-soft);
  font-size: 16px;
}

.catalog-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-banner a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.catalog-banner a:hover {
  background: var(--brand-hover);
  color: #fff;
}

.content-page .faq-section {
  display: block;
  padding: 2.6rem 0 0;
}

.content-page .faq-intro {
  max-width: 52rem;
  margin-bottom: 8px;
}

.content-page .faq-intro h2 {
  margin: 0 0 8px;
}

.inner-trust {
  padding: 0 0 3rem;
}

/* Article / guide / news detail */

.article-shell {
  padding: 1.8rem 0 3.2rem;
}

.article-shell .crumb {
  color: var(--ink-faint);
  margin-bottom: 1.15rem;
}

.article-shell .crumb a:hover {
  color: var(--brand);
}

.article-kicker {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-shell > .wrap > h1,
.article-head h1 {
  max-width: 22ch;
  margin: 0 0 1rem;
  font-size: var(--heading-page);
  font-weight: 800;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.article-standfirst {
  max-width: 62ch;
  margin: 0 0 1.6rem;
  color: var(--ink-soft);
  font-size: var(--text-lead);
  line-height: 1.6;
}

.article-figure {
  margin: 0 0 1.6rem;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-soft);
}

.article-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article-figure figcaption {
  padding: 10px 4px 0;
  color: var(--ink-faint);
  font-size: 14px;
}

.content-index {
  max-width: 52rem;
  margin: 0 0 2rem;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.content-index > p {
  margin: 0 0 10px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-index ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-index li + li {
  border-top: 1px solid var(--line);
}

.content-index a {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  color: var(--ink);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.content-index a span {
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.content-index a:hover {
  color: var(--brand);
}

.article-prose {
  max-width: 52rem;
}

.article-prose h2 {
  margin: 2rem 0 0.7rem;
  padding-left: 14px;
  border-left: 4px solid var(--brand);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.article-prose h2:first-child {
  margin-top: 0;
}

.article-prose p,
.article-prose li {
  color: var(--ink);
  font-size: var(--text-article);
  line-height: 1.72;
}

.article-prose ul {
  margin: 0 0 1.1rem;
}

.article-source {
  max-width: 52rem;
  margin: 1.6rem 0 0;
  color: var(--ink-faint);
  font-size: 14px;
}

.article-back {
  display: inline-flex;
  margin-top: 1.6rem;
  color: var(--brand);
  font-weight: 700;
}

.article-shell .faq-section {
  display: block;
  max-width: 52rem;
  padding: 2.2rem 0 0;
}

.article-shell .faq-intro h2 {
  margin: 0 0 8px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 2.2rem;
}

.stat-strip > div {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stat-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-strip span {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 1.1rem;
}

.catalog-toolbar input,
.catalog-toolbar select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.catalog-toolbar input {
  flex: 1 1 220px;
}

.content-page .results-bar {
  margin-top: 0;
}

.content-page .games-grid,
.article-shell .games-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.content-page .pager {
  margin-top: 1.8rem;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.studio-lead {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.studio-lead:hover {
  border-color: #8bbfc1;
  box-shadow: var(--shadow-card);
}

.studio-lead a {
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: 20px 22px;
}

.studio-lead__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.studio-lead__head .provider-logo,
.studio-lead__head .provider-logo--fallback {
  max-width: 70px;
  height: 21px;
  object-fit: contain;
}

.studio-lead__count {
  display: block;
  margin: -4px 0 2px;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 600;
}

.studio-lead h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.studio-lead:hover h3 {
  color: var(--brand);
}

.studio-lead p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.studio-lead ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-faint);
  font-size: 14px;
}

.studio-lead li + li {
  margin-top: 4px;
}

.studio-lead__cta {
  margin-top: 6px;
  color: var(--brand);
  font-weight: 700;
}

.studio-list {
  display: grid;
  gap: 10px;
}

.studio-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.studio-row:hover {
  border-color: #8bbfc1;
}

.studio-row .provider-logo,
.studio-row .provider-logo--fallback {
  max-width: none;
  width: 176px;
  height: 52px;
  object-fit: contain;
}

.studio-row h3 {
  margin: 0;
  font-size: 17px;
}

.studio-row:hover h3 {
  color: var(--brand);
}

.studio-row__count,
.studio-row__cta {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.studio-row__count {
  color: var(--muted);
}

.studio-row__count {
  color: var(--ink-faint);
}

.studio-row__cta {
  color: var(--brand);
}

.detail-page .prose h2 {
  padding-left: 14px;
  border-left: 4px solid var(--brand);
}

.detail-page .faq-section {
  display: block;
  padding-top: 2rem;
}

.detail-page .games-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-page .games-grid .game-image {
  height: 200px;
}

.article-shell .provider-hero-mark {
  border: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .content-lead,
  .content-lead--media {
    grid-template-columns: 1fr;
  }

  .content-lead--media .content-lead__copy {
    padding: 22px 22px 24px;
  }

  .content-lead__media {
    min-height: 200px;
  }

  .listing-mark--lg {
    width: 72px;
    height: 72px;
    font-size: 24px;
  }

  .content-page .games-grid,
  .article-shell .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .casino-lead-grid {
    grid-template-columns: 1fr;
  }

  .listing-grid,
  .how-grid,
  .studio-grid,
  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }

  .article-shell > .wrap > h1,
  .article-head h1 {
    max-width: none;
  }

  .studio-row {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .studio-row .provider-logo {
    width: 96px;
    height: 28px;
  }

  .studio-row__count,
  .studio-row__cta {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .content-lead {
    padding: 20px 18px;
  }

  .listing-grid,
  .how-grid,
  .studio-grid,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .news-listing__media {
    height: 180px;
  }

  .catalog-banner {
    padding: 22px 18px;
  }

  .content-page .games-grid,
  .article-shell .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-page .games-grid {
    grid-template-columns: 1fr;
  }

  .detail-page .games-grid .game-image {
    height: 180px;
  }
}

/* ---------- 指南卡片带图（Ocean 扩展） ---------- */
.listing-card--media {
  display: block;
  padding: 0;
  overflow: hidden;
}
.listing-card--media a {
  display: block;
  height: 100%;
}
.listing-card__media {
  position: relative;
  height: 148px;
  overflow: hidden;
  background: #dce7ea;
}
.listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}
.listing-card--media:hover .listing-card__media img {
  transform: scale(1.03);
}
.listing-card__media--ph {
  display: grid;
  place-items: center;
}
.listing-card__media--ph .listing-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #126774;
  color: #fff;
  font: 800 18px/1 Manrope, sans-serif;
}
.listing-card__body {
  padding: 14px 16px 16px;
}
.listing-card__kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.listing-card--media h3 {
  margin: 0 0 6px;
  font: 700 17px/1.3 Manrope, sans-serif;
  letter-spacing: -0.1px;
}
.listing-card--media p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
