/**
 * Explore landing page.
 *
 * Follows the palette on page 08 of the client's audit deck:
 *   夜色 #0B1118 · 面板 #182331 · 信号橙 #FF5A1F · 薄荷绿 #78E0C1 · 纸白 #F4F3EF
 *
 * The hero is dark in both site themes on purpose — it is the one surface in
 * the deck that is art-directed rather than themed, and the featured artwork
 * and card foils only read against a dark ground. Everything below the stats
 * bar follows the site theme normally.
 */

.ch-explore {
  --ex-night:  #0B1118;
  --ex-panel:  #182331;
  --ex-orange: #FF5A1F;
  --ex-mint:   #78E0C1;
  --ex-paper:  #F4F3EF;
  --ex-line:   rgba(244, 243, 239, .12);
  --ex-dim:    rgba(244, 243, 239, .62);
}

/* ------------------------------------------------------------------ hero -- */

.ch-explore-hero {
  background: var(--ex-night);
  color: var(--ex-paper);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.ch-explore-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.ch-explore-eyebrow {
  display: inline-block;
  padding: .35em 1em;
  border: 1px solid rgba(255, 90, 31, .45);
  border-radius: 999px;
  color: var(--ex-orange);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.ch-explore-headline {
  margin: 1.1rem 0 0;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ex-paper);
}
.ch-explore-headline span { display: block; }

.ch-explore-sub {
  margin: 1.1rem 0 0;
  max-width: 34em;
  color: var(--ex-dim);
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
  line-height: 1.65;
}

.ch-explore-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

/* The hero sits on its own dark ground, so the outline button needs its own
   light treatment rather than the themed one it would otherwise inherit. */
.ch-explore-hero .ch-btn-outline {
  border-color: var(--ex-line);
  color: var(--ex-paper);
  background: transparent;
}
.ch-explore-hero .ch-btn-outline:hover {
  border-color: var(--ex-paper);
  background: rgba(244, 243, 239, .06);
}
.ch-explore-hero .ch-btn-primary {
  background: var(--ex-orange);
  border-color: var(--ex-orange);
  color: #fff;
}
.ch-explore-hero .ch-btn-primary:hover { filter: brightness(1.08); }

/* --- the stage: featured guide + a card leaning on it --------------------- */

.ch-explore-hero__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  background: var(--ex-panel);
  border: 1px solid var(--ex-line);
  border-radius: 18px;
  padding: 1rem;
}

.ch-explore-feature {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  min-height: 260px;
  background: #0f1720;
  text-decoration: none;
  color: var(--ex-paper);
}

.ch-explore-feature__img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.ch-explore-feature:hover .ch-explore-feature__img { transform: scale(1.04); }

.ch-explore-feature__tag {
  position: absolute;
  top: .85rem;
  left: .85rem;
  padding: .3em .85em;
  border-radius: 999px;
  background: var(--ex-orange);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
}

.ch-explore-feature__body {
  position: absolute;
  inset: auto 0 0 0;
  display: block;
  padding: 2.5rem .95rem .95rem;
  /* The artwork behind this is arbitrary, so the scrim — not the image — is
     what guarantees the text stays readable. */
  background: linear-gradient(to top, rgba(11, 17, 24, .95) 35%, rgba(11, 17, 24, 0));
}

.ch-explore-feature__title {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}
.ch-explore-feature__excerpt {
  display: block;
  margin-top: .35rem;
  font-size: .82rem;
  color: var(--ex-dim);
  line-height: 1.5;
}

.ch-explore-card {
  position: relative;
  display: block;
  width: 150px;
  padding: .55rem;
  border-radius: 12px;
  background: linear-gradient(160deg, #23303f, #131c26);
  border: 1px solid rgba(255, 196, 94, .45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  text-decoration: none;
  color: var(--ex-paper);
  transform: rotate(2.5deg);
  transition: transform .4s cubic-bezier(.2, .7, .3, 1);
}
.ch-explore-card:hover { transform: rotate(0deg) translateY(-4px); }

.ch-explore-card__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.ch-explore-card__rarity {
  position: absolute;
  top: .9rem;
  left: .9rem;
  z-index: 1;
  padding: .15em .6em;
  border-radius: 6px;
  background: rgba(11, 17, 24, .82);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.ch-explore-card__name {
  display: block;
  margin-top: .5rem;
  font-size: .72rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: .04em;
  text-transform: uppercase;
  /* Card titles are user data and can be long; one line, ellipsised. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ----------------------------------------------------------------- stats -- */

.ch-explore-stats {
  background: var(--ex-night);
  color: var(--ex-paper);
  border-top: 1px solid var(--ex-line);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
}

.ch-explore-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.ch-explore-stat {
  display: flex;
  align-items: baseline;
  gap: .55rem;
}

.ch-explore-stat__num {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}

.ch-explore-stat__label {
  font-size: .78rem;
  color: var(--ex-dim);
}

/* ------------------------------------------------------ trending / task -- */

.ch-explore-now {
  background: var(--ex-night);
  padding-block: 0 clamp(2rem, 5vw, 3.5rem);
}

.ch-explore-now__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ch-explore-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  padding: 1.35rem;
  border-radius: 14px;
  background: var(--ex-panel);
  border: 1px solid var(--ex-line);
  color: var(--ex-paper);
}

.ch-explore-panel--mission {
  /* The mission panel is the one action on this row, so it gets the accent. */
  background: linear-gradient(135deg, #1d2b3a, #182331);
  border-color: rgba(255, 90, 31, .28);
}

.ch-explore-panel__kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ex-orange);
}

a.ch-explore-panel__title { text-decoration: none; }

.ch-explore-panel__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ex-paper);
}
a.ch-explore-panel__title:hover { color: var(--ex-orange); }

.ch-explore-panel__meta,
.ch-explore-panel__empty {
  font-size: .82rem;
  color: var(--ex-dim);
}

.ch-explore-panel .ch-btn { margin-top: .4rem; }
.ch-explore-panel .ch-btn-primary {
  background: var(--ex-orange);
  border-color: var(--ex-orange);
  color: #fff;
}
.ch-explore-panel .ch-btn-outline {
  border-color: var(--ex-line);
  color: var(--ex-paper);
}

/* ------------------------------------------------------ collection loop -- */

.ch-explore-loop,
.ch-explore-latest {
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

.ch-explore-loop__title {
  margin: 0;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -.01em;
}

.ch-explore-loop__lede {
  margin: .5rem 0 1.75rem;
  max-width: 55ch;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.ch-explore-loop__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.ch-explore-step > a {
  display: block;
  height: 100%;
  padding: 1.15rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-card);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, transform .2s;
}
.ch-explore-step > a:hover {
  border-color: var(--ex-orange);
  transform: translateY(-2px);
}

.ch-explore-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 90, 31, .1);
  color: var(--ex-orange);
}

.ch-explore-step__n {
  float: right;
  font-size: .72rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.ch-explore-step__title {
  display: block;
  margin-top: .75rem;
  font-size: .98rem;
  font-weight: 700;
}

.ch-explore-step__desc {
  display: block;
  margin-top: .35rem;
  font-size: .84rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* ---------------------------------------------------------- latest grid -- */

.ch-explore-latest__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ch-explore-latest__all {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-link);
}

.ch-explore-latest__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 900px) {
  .ch-explore-hero__inner,
  .ch-explore-now__grid { grid-template-columns: minmax(0, 1fr); }

  .ch-explore-stats__grid,
  .ch-explore-loop__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .ch-explore-hero__stage { grid-template-columns: minmax(0, 1fr); }

  /* The leaning card becomes a normal item once it is no longer beside the
     feature — a rotated full-width block just looks like a mistake. */
  .ch-explore-card {
    width: 100%;
    max-width: 180px;
    margin-inline: auto;
    transform: none;
  }
}

@media (max-width: 560px) {
  .ch-explore-stats__grid { grid-template-columns: minmax(0, 1fr); }
  .ch-explore-loop__steps { grid-template-columns: minmax(0, 1fr); }
  .ch-explore-actions .ch-btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ch-explore-feature__img,
  .ch-explore-card,
  .ch-explore-step > a { transition: none; }
  .ch-explore-feature:hover .ch-explore-feature__img { transform: none; }
  .ch-explore-card:hover { transform: rotate(2.5deg); }
  .ch-explore-step > a:hover { transform: none; }
}
