.editorial-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #d7e8fb;
}

.editorial-cover > span {
  position: absolute;
  width: 100%;
  aspect-ratio: 1;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background: url('/assets/editorial-card-atlas.85707767d28a.webp') no-repeat;
  background-size: 300% 300%;
}

.editorial-scene-0 > span {
  background-position: 0% 0%;
}

.editorial-scene-1 > span {
  background-position: 50% 0%;
}

.editorial-scene-2 > span {
  background-position: 100% 0%;
}

.editorial-scene-3 > span {
  background-position: 0% 50%;
}

.editorial-scene-8 > span {
  background-position: 100% 100%;
}

.editorial-cover[class*='browse-scene-'] > span {
  background-image: url('/assets/browse-card-atlas-v2.5571cbe9968a.webp');
  background-size: 300% 200%;
}

.browse-scene-0 > span {
  background-position: 0% 0%;
}

.browse-scene-1 > span {
  background-position: 50% 0%;
}

.browse-scene-2 > span {
  background-position: 100% 0%;
}

.browse-scene-3 > span {
  background-position: 0% 100%;
}

.browse-scene-4 > span {
  background-position: 50% 100%;
}

.rise-cover > span {
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  transform: none;
  background: url('/assets/rise-cover-v1.a3cab1dc2d14.webp') center 54% / cover no-repeat;
}

.browse-coming-cover {
  isolation: isolate;
  background: linear-gradient(155deg, #d9f2ff, #b9d9f3 58%, #a8c8e5);
}

.browse-coming-cover > span {
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  transform: none;
  background:
    radial-gradient(circle at 78% 28%, #fff7d8 0 8%, transparent 8.7%),
    linear-gradient(165deg, transparent 0 50%, #8ab9d4 51% 54%, #bfe6f3 55% 62%, #6fa6c8 63%);
  opacity: 0.9;
}

.browse-coming-cover::before {
  content: '';
  position: absolute;
  z-index: 1;
  left: 12%;
  right: 12%;
  top: 34%;
  height: 2px;
  border-top: 2px dashed #fff8e8;
  transform: rotate(-7deg);
  opacity: 0.85;
}

.browse-coming-cover::after {
  content: '✦';
  position: absolute;
  z-index: 2;
  right: 13%;
  top: 20%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff8de;
  background: #4889b8;
  box-shadow:
    -115px 43px 0 -8px #ffcf75,
    0 5px 15px #35749b33;
  font-size: 17px;
}

.browse-coming-cover b {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 52%;
  translate: -50% -50%;
  padding: 7px 17px;
  border: 1px solid #ffffffd9;
  border-radius: 99px;
  color: #315e82;
  background: #fffffff0;
  box-shadow: 0 7px 18px #3f73962b;
  font: 700 13px/1.2 var(--sans);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.discovery-card.is-upcoming {
  border-style: dashed;
  background: #f7fbfe;
  box-shadow: none;
  animation: none;
}

.discovery-card.is-upcoming .channel-card-tag {
  color: #557792;
  background: #edf6fbe8;
}

.discovery-card.is-upcoming .channel-card-footer {
  color: #7691a7;
}

.discovery-banner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: clamp(270px, 20vw, 330px);
  padding: 32px 38px;
  margin-bottom: 22px;
  border: 6px solid #fff;
  border-radius: 26px;
  overflow: hidden;
  background: url('/assets/browse-banner-v3.50f7b8df70b6.webp') center/cover no-repeat;
  box-shadow: 0 14px 38px #3c83bc24;
  isolation: isolate;
}

.discovery-banner::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #eefcfff4 0%, #e6fbffe8 24%, #e4faff8c 38%, transparent 58%),
    linear-gradient(0deg, #d9f7ff7a, transparent 45%);
}

.discovery-banner-copy {
  align-self: center;
  width: min(49%, 650px);
  text-shadow: 0 1px 0 #fff;
}

.discovery-banner h1 {
  font:
    400 clamp(43px, 4.2vw, 67px)/1.18 'Ma Shan Zheng',
    var(--serif);
  color: #0a3776;
  letter-spacing: 0.035em;
}

.discovery-banner-copy > p:not(.channel-kicker) {
  margin-top: 12px;
  color: #315f8c;
  font-size: 15px;
  line-height: 1.75;
  max-width: 620px;
}

.discovery-banner-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.discovery-banner-paths :is(a, span) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid #b9e4f5;
  border-radius: 99px;
  color: #245f91;
  background: #f7fdffe3;
  box-shadow: 0 4px 14px #4891b517;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
@media (hover: hover) and (pointer: fine) {
  .discovery-banner-paths a:hover {
    color: #fff;
    background: #2787dc;
    border-color: #2787dc;
    transform: translateY(-1px);
  }
}
.discovery-banner-paths b {
  font-size: 17px;
  line-height: 1;
  color: #228ee8;
}

.discovery-banner-paths a:hover b {
  color: #fff;
}

.discovery-banner-start {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 11px 22px;
  border: 1px solid #c8edff;
  border-radius: 99px;
  color: #fff;
  background: linear-gradient(105deg, #3299eb, #176fd1);
  box-shadow: 0 9px 24px #1569b745;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform var(--motion-fast),
    box-shadow var(--motion-fast);
}
@media (hover: hover) and (pointer: fine) {
  .discovery-banner-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px #135ca457;
  }
}
.discovery-banner-start span {
  font-size: 20px;
}

.discovery-fish {
  position: relative;
  width: 32%;
  text-align: center;
}

.discovery-fish > svg {
  width: 170px;
  height: 110px;
  filter: drop-shadow(0 12px 15px #548aba40);
  transform: rotate(-8deg);
}

.discovery-fish > span {
  position: absolute;
  top: -8px;
  right: 0;
  padding: 14px 18px;
  border-radius: 30px 30px 30px 0;
  background: #fff;
  font:
    400 21px/1.4 'Ma Shan Zheng',
    var(--serif);
  transform: rotate(-7deg);
}

.discovery-top {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(280px, 1fr);
  gap: 20px;
}

.discovery-feature {
  min-height: 340px;
  border: 6px solid #fff;
  border-radius: 24px;
  overflow: hidden;
  background: url('/assets/browse-feature-v2.01997d1438de.webp') center/cover;
  box-shadow: 0 12px 32px #4c8baf0b;
}

.discovery-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 328px;
  width: 60%;
  padding: 25px 30px;
  background: linear-gradient(90deg, #f5fcfff5, #f5fcffe0 70%, #f5fcff00);
}

.discovery-feature h2 {
  margin: 14px 0 10px;
  font: 700 clamp(23px, 2.3vw, 34px)/1.45 var(--serif);
}

.discovery-feature p {
  color: #3f6798;
  line-height: 1.7;
  font-size: 15px;
  max-width: 340px;
}

.discovery-aside {
  border: 1px solid var(--home-border);
  background: #ffffffd9;
  border-radius: 24px;
  padding: 22px;
}

.discovery-aside h2 {
  font: 700 20px/1.5 var(--serif);
  margin-bottom: 14px;
}

.discovery-bubble {
  background: #e5f5ff;
  padding: 16px;
  border-radius: 18px 18px 4px 18px;
  min-height: 106px;
}

.discovery-bubble strong {
  font-size: 15px;
  line-height: 1.5;
  display: block;
}

.discovery-bubble p {
  margin-top: 7px;
  font-size: 13px;
  color: #416994;
  line-height: 1.6;
}

.discovery-refresh {
  min-height: 44px;
  padding: 8px 19px;
  margin: 12px 0 18px;
  background: #2784e8;
  color: white;
  border: 0;
  border-radius: 99px;
  font-size: 14px;
}

.discovery-aside h3 {
  font-size: 14px;
  margin-bottom: 12px;
}

.discovery-paths {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.discovery-paths button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 0;
  color: #234c79;
  font-size: 12px;
  padding: 0;
}

.discovery-paths button > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #bae3ff;
  border-radius: 50%;
  background: #e7f6ff;
  color: #2283cd;
}

.discovery-feed {
  margin-top: 28px;
}

.discovery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.discovery-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #d5e7f8;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  transition:
    transform var(--motion-fast),
    box-shadow var(--motion-fast);
}
@media (hover: hover) and (pointer: fine) {
  .discovery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px #467bb41a;
  }
}
.discovery-card > .editorial-cover {
  height: 140px;
}

.discovery-card .channel-card-copy h3 {
  font-family: var(--sans);
  font-size: 17px;
}

.discovery-card .channel-card-copy {
  padding: 15px 18px;
}

@media (min-width: 1600px) {
  .discovery-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .discovery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .discovery-top {
    grid-template-columns: 1fr;
  }
  .discovery-aside {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 20px;
  }
  .discovery-aside h2 {
    grid-column: 1/-1;
    margin: 0;
  }
  .discovery-bubble {
    grid-column: 1;
  }
  .discovery-refresh {
    align-self: center;
  }
  .discovery-aside h3 {
    grid-column: 1/-1;
    margin: 0;
  }
  .discovery-paths {
    grid-column: 1/-1;
    justify-content: start;
    gap: 24px;
  }
  .discovery-banner {
    min-height: 390px;
    padding: 24px;
    background-position: 58% center;
    align-items: flex-end;
  }
  .discovery-banner::before {
    background:
      linear-gradient(90deg, #effcfff5 0%, #e8fbffdf 46%, transparent 78%),
      linear-gradient(0deg, #e6faffbd, transparent 48%);
  }
  .discovery-banner-copy {
    width: 72%;
    align-self: flex-start;
  }
  .discovery-banner h1 {
    font-size: 44px;
  }
  .discovery-banner-start {
    position: absolute;
    right: 20px;
    bottom: 20px;
  }
  .discovery-fish {
    display: none;
  }
  .discovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .discovery-banner {
    padding: 20px;
    min-height: 430px;
    background-position: 62% center;
    border-width: 4px;
  }
  .discovery-banner::before {
    background:
      linear-gradient(180deg, #effcfff4 0%, #eafcffd4 43%, transparent 72%),
      linear-gradient(0deg, #e9fbffe8, transparent 48%);
  }
  .discovery-banner-copy {
    width: 100%;
  }
  .discovery-banner h1 {
    font-size: 37px;
  }
  .discovery-banner-copy > p:not(.channel-kicker) {
    font-size: 13px;
    max-width: 330px;
  }
  .discovery-banner-paths {
    gap: 6px;
    margin-top: 13px;
  }
  .discovery-banner-paths :is(a, span) {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 11px;
  }
  .discovery-banner-paths span {
    display: none;
  }
  .discovery-banner-start {
    right: 14px;
    bottom: 14px;
    min-height: 44px;
    padding: 9px 17px;
    font-size: 13px;
  }
  .discovery-fish {
    display: none;
  }
  .discovery-feature {
    min-height: 330px;
    background-position: 65% center;
  }
  .discovery-feature-copy {
    width: 100%;
    min-height: 330px;
    padding: 22px;
    background: linear-gradient(90deg, #f8fcfff5, #f8fcffd9 60%, #f8fcff40);
  }
  .discovery-feature h2 {
    font-size: 25px;
  }
  .discovery-feature p {
    font-size: 14px;
    max-width: 260px;
  }
  .discovery-aside {
    display: block;
    padding: 20px;
  }
  .discovery-aside h2 {
    margin-bottom: 14px;
  }
  .discovery-aside h3 {
    margin-bottom: 12px;
  }
  .discovery-grid {
    gap: 12px;
  }
  .discovery-card > .editorial-cover {
    height: 105px;
  }
  .discovery-card .channel-card-copy {
    padding: 12px;
  }
  .discovery-card .channel-card-copy h3 {
    font-size: 15px;
  }
}

.discovery-fish {
  animation: sea-buoyancy 7s ease-in-out -2s infinite;
}

.discovery-dive {
  position: relative;
  isolation: isolate;
  min-height: 390px;
  border-color: #dffaff;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, #32d0e51c 0%, #00769e6e 34%, #002a4bd9 72%, #000e22f5 100%),
    url('/assets/dive-sunlight-v2.6e47b37374db.webp') center 42% / cover;
  box-shadow:
    inset 0 1px 0 #fff,
    0 18px 46px #07598430;
  transition:
    transform var(--motion-base) ease,
    box-shadow var(--motion-base) ease;
}
.discovery-dive::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(90deg, #00192ce8 0%, #002844c7 42%, #00365e36 68%, transparent),
    radial-gradient(ellipse at 78% 20%, #84f1ff4a, transparent 36%);
  pointer-events: none;
}
/*
 * 光点层向下多铺一段 --pattern-shift，再整体上移这段距离循环。
 * 位移须是两层图案高度的公倍数：103 × 3 = 154.5 × 2 = 309。
 */
.discovery-dive::after {
  --pattern-shift: 309px;
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0 0 calc(-1 * var(--pattern-shift));
  opacity: 0.5;
  background-image:
    radial-gradient(circle, #bff8ffb8 0 1px, transparent 2px),
    radial-gradient(circle, #bff8ff80 0 1px, transparent 2px);
  background-size:
    83px 103px,
    137px 154.5px;
  background-position:
    20px 12px,
    70px 58px;
  mask-image: linear-gradient(90deg, transparent 38%, #000 62%);
  animation: pattern-drift 36s linear infinite;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .discovery-dive:hover {
    transform: translateY(-3px);
    box-shadow:
      inset 0 1px 0 #fff,
      0 22px 58px #064b7950;
  }
}
.discovery-dive .discovery-feature-copy {
  position: relative;
  z-index: 3;
  justify-content: center;
  width: 61%;
  min-height: 378px;
  padding: 30px 34px;
  background: none;
  color: #fff;
}

.discovery-dive .channel-badge {
  padding: 6px 14px;
  color: #073752;
  background: #bbf7f0e8;
  border: 1px solid #e3ffff;
  box-shadow: 0 4px 18px #00192838;
}

.discovery-dive .dive-cover-pretitle {
  margin: 17px 0 0;
  color: #8fe8f5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.discovery-dive h2 {
  margin: 2px 0 8px;
  font:
    500 clamp(39px, 4vw, 58px)/1.18 'Ma Shan Zheng',
    var(--serif);
  color: #fff;
  letter-spacing: 7px;
  text-shadow: 0 3px 20px #00111f;
}

.dive-cover-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 14px 0 18px;
  color: #a9dae6;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.dive-cover-notes span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dive-cover-notes span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #70eff4;
  box-shadow: 0 0 9px #70eff4;
}

.discovery-dive .channel-primary {
  min-height: 48px;
  padding: 10px 12px 10px 24px;
  gap: 18px;
  color: #053553;
  background: linear-gradient(100deg, #ddfff7, #72ede7);
  border: 1px solid #eaffff;
  box-shadow:
    0 0 22px #45e8ed5c,
    0 7px 22px #00152d52;
}

.discovery-dive .channel-primary b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #eaffff;
  background: #08749b;
  font-size: 17px;
  transition: transform var(--motion-base) ease;
}
@media (hover: hover) and (pointer: fine) {
  .discovery-dive .channel-primary:hover b {
    transform: translateY(3px);
  }
}
.dive-cover-visual {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 57%;
  height: 100%;
  pointer-events: none;
}

.dive-cover-visual::before {
  content: '';
  position: absolute;
  inset: 7% 5% 7% 0;
  border: 1px solid #95efff30;
  border-radius: 52% 48% 46% 54%;
  background: radial-gradient(circle at 56% 43%, #0bc5d52e, transparent 43%);
  box-shadow:
    inset 0 0 60px #54e9ff12,
    0 0 60px #00325b42;
}

.dive-cover-visual img {
  position: absolute;
  z-index: 1;
  right: -8%;
  top: 18%;
  width: 108%;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 12px 26px #000b1f80) saturate(0.9);
  transform: rotate(-3deg);
  transition:
    transform 0.7s var(--ease-emphasized),
    filter 0.7s ease;
}
@media (hover: hover) and (pointer: fine) {
  .discovery-dive:hover .dive-cover-visual img {
    transform: translate(-10px, -5px) rotate(-1deg) scale(1.025);
    filter: drop-shadow(0 18px 34px #000a1f99) saturate(1.05);
  }
}
.dive-cover-bubble {
  position: absolute;
  z-index: 2;
  width: 12px;
  height: 12px;
  border: 1px solid #d5fcffb8;
  border-radius: 50%;
  box-shadow:
    inset 1px 1px 3px #fff8,
    0 0 8px #74e8ff70;
  animation: dive-cover-bubble 5s ease-in infinite;
}

.dive-cover-bubble::after {
  content: '';
  position: absolute;
  inset: 2px 5px 6px 2px;
  border-radius: 50%;
  background: #fff9;
}

.dive-cover-bubble.bubble-one {
  right: 22%;
  bottom: 15%;
}

.dive-cover-bubble.bubble-two {
  right: 35%;
  bottom: 8%;
  width: 7px;
  height: 7px;
  animation-delay: -2s;
}

.dive-cover-bubble.bubble-three {
  right: 10%;
  bottom: 28%;
  width: 18px;
  height: 18px;
  animation-delay: -3.6s;
}

.dive-cover-meter {
  position: absolute;
  z-index: 4;
  top: 28px;
  right: 18px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  color: #d8f8ffbd;
  font: 600 9px/1 var(--sans);
  letter-spacing: 0.08em;
  pointer-events: none;
}

.dive-cover-meter::before {
  content: '';
  position: absolute;
  top: 17px;
  bottom: 17px;
  right: 3px;
  width: 1px;
  background: linear-gradient(#b9fbff, #42b7d388 42%, #8defff25);
}
/*
 * 深度标记：i 是一段透明行程（18%–79%），圆点画在其顶端。
 * 用 translateY(100%) 移动整段行程，等价于原 top 18%→79%，但只走合成层。
 */
.dive-cover-meter i {
  position: absolute;
  right: -1px;
  top: 18%;
  width: 9px;
  height: 61%;
  animation: dive-cover-marker 4s ease-in-out infinite;
}
.dive-cover-meter i::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  box-sizing: border-box;
  border: 2px solid #dfffff;
  border-radius: 50%;
  background: #38e3df;
  box-shadow: 0 0 14px #6effff;
}
@keyframes dive-cover-bubble {
  0% {
    translate: 0 22px;
    opacity: 0;
  }
  25% {
    opacity: 0.8;
  }
  100% {
    translate: -8px -85px;
    opacity: 0;
  }
}

@keyframes dive-cover-marker {
  0%,
  15% {
    transform: translateY(0);
  }
  80%,
  100% {
    transform: translateY(100%);
  }
}

@media (max-width: 650px) {
  .discovery-dive {
    min-height: 410px;
    background-position: 58% 45%;
  }
  .discovery-dive::before {
    background:
      linear-gradient(90deg, #00182aeb 0%, #002641c9 70%, #003b5d52),
      linear-gradient(0deg, #00101de8 0%, transparent 65%);
  }
  .discovery-dive .discovery-feature-copy {
    width: 86%;
    min-height: 398px;
    padding: 25px 22px;
    justify-content: flex-start;
  }
  .discovery-dive h2 {
    margin-top: 3px;
    font-size: 44px;
    letter-spacing: 5px;
  }
  .dive-cover-notes {
    max-width: 220px;
    margin-block: 12px 16px;
  }
  .dive-cover-visual {
    top: 23%;
    width: 68%;
    height: 77%;
    opacity: 0.72;
  }
  .dive-cover-visual img {
    right: -20%;
    top: 30%;
    width: 125%;
  }
  .dive-cover-meter {
    right: 12px;
    top: 24px;
    bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .discovery-dive,
  .dive-cover-visual img,
  .dive-cover-bubble,
  .dive-cover-meter i,
  .discovery-dive::after {
    animation: none;
    transition: none;
  }
  .dive-cover-meter i {
    top: 52%;
  }
}

@media (max-width: 650px) {
  .discovery-dive h2 {
    font-size: 40px;
  }
}

.earth-cover {
  background: url('/assets/earth-category-4.51ec4b70bd83.webp') center/cover !important;
}
