/* Codex: 本样式表包含主题迭代中新增或调整的页面样式，后续维护请保留现有覆盖顺序。 */
.xy-activities-page {
  --xy-blue: #0b7cff;
  --xy-blue-dark: #075ec7;
  --xy-cyan: #20b7ff;
  --xy-ink: #071529;
  --xy-text: #15243b;
  --xy-muted: #66758b;
  --xy-line: #dfe8f5;
  --xy-soft: #f3f7fc;
  background: #f3f7fc;
  color: var(--xy-text);
  overflow-x: hidden;
}

.xy-activities-main,
.xy-activities-main *,
.xy-activity-modal,
.xy-activity-modal * {
  box-sizing: border-box;
}

.xy-activities-page a {
  text-decoration: none;
}

.xy-activities-main {
  min-height: 100vh;
  max-width: 100vw;
  overflow: hidden;
  background: #f3f7fc;
}

.xy-activities-main .container {
  width: min(1220px, calc(100% - 40px));
  max-width: 1220px;
  padding-right: 0;
  padding-left: 0;
}

.xy-activities-hero {
  position: relative;
  max-width: 100vw;
  min-height: 578px;
  display: flex;
  align-items: center;
  padding: 108px 0 76px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 24%, rgba(32, 183, 255, .34) 0, rgba(32, 183, 255, 0) 30%),
    radial-gradient(circle at 72% 76%, rgba(139, 92, 246, .28) 0, rgba(139, 92, 246, 0) 32%),
    linear-gradient(100deg, rgba(3, 11, 28, .98) 0%, rgba(5, 22, 54, .92) 38%, rgba(7, 46, 104, .82) 68%, rgba(9, 78, 146, .76) 100%),
    linear-gradient(135deg, #06142c 0%, #08285e 54%, #0b4f9c 100%);
  overflow: hidden;
}

.xy-activities-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .024) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .7) 54%, rgba(0, 0, 0, .12) 100%);
  pointer-events: none;
}

.xy-activities-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  background: linear-gradient(180deg, rgba(243, 247, 252, 0) 0%, #f3f7fc 100%);
  pointer-events: none;
}

.xy-activities-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .7fr);
  grid-template-areas: "copy visual";
  gap: 48px;
  align-items: center;
  direction: ltr;
}

.xy-activities-hero-copy {
  grid-area: copy;
  max-width: 760px;
  min-width: 0;
}

.xy-activities-eyebrow,
.xy-activity-section-head span,
.xy-activity-cta span {
  display: block;
  margin-bottom: 12px;
  color: var(--xy-cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.xy-activities-hero h1 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-shadow: 0 12px 28px rgba(0, 0, 0, .32);
}

.xy-activities-hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
  line-height: 1.8;
  text-shadow: 0 8px 20px rgba(0, 0, 0, .28);
}

.xy-activities-hero-actions,
.xy-activity-card-actions,
.xy-activity-cta-actions,
.xy-activity-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.xy-activity-primary,
.xy-activity-outline {
  display: inline-flex;
  min-width: 128px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  touch-action: manipulation;
  cursor: pointer;
}

.xy-activity-primary {
  color: #fff;
  background: linear-gradient(90deg, #0b7cff 0%, #1398ff 100%);
  border: 1px solid rgba(11, 124, 255, .72);
  box-shadow: 0 12px 24px rgba(11, 124, 255, .24);
}

.xy-activity-primary:hover,
.xy-activity-primary:focus {
  color: #fff;
  background: linear-gradient(90deg, #075ec7 0%, #0b7cff 100%);
  box-shadow: 0 14px 28px rgba(11, 124, 255, .32);
}

.xy-activity-outline {
  color: var(--xy-blue);
  background: #fff;
  border: 1px solid rgba(11, 124, 255, .32);
}

.xy-activities-hero .xy-activity-outline,
.xy-activity-cta .xy-activity-outline {
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(171, 219, 255, .42);
  backdrop-filter: blur(12px);
}

.xy-activity-outline:hover,
.xy-activity-outline:focus {
  color: #fff;
  background: var(--xy-blue);
  border-color: var(--xy-blue);
}

.xy-activity-primary:active,
.xy-activity-outline:active {
  transform: translateY(1px);
}

.xy-activities-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.xy-activities-hero-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(130, 193, 255, .28);
  border-radius: 3px;
}

.xy-activities-hero-visual {
  position: relative;
  grid-area: visual;
  min-height: 340px;
}

.xy-activities-hero-visual::before {
  content: "";
  position: absolute;
  inset: 22px -42px 12px 10px;
  border: 1px solid rgba(132, 205, 255, .18);
  border-radius: 10px;
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    radial-gradient(circle at 72% 28%, rgba(32, 183, 255, .2), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  background-size: 44px 44px, 44px 44px, auto, auto;
  box-shadow: inset 0 0 80px rgba(18, 123, 255, .14);
  opacity: .92;
  transform: perspective(780px) rotateY(-10deg) skewY(-2deg);
}

.xy-activities-hero-visual::after {
  content: "";
  position: absolute;
  right: 64px;
  top: 34px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(156, 218, 255, .22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .1) 0 28%, transparent 29%),
    conic-gradient(from 24deg, rgba(32, 183, 255, .12), rgba(139, 92, 246, .3), rgba(11, 124, 255, .08), rgba(32, 183, 255, .12));
  filter: drop-shadow(0 20px 44px rgba(11, 124, 255, .18));
}

.xy-activity-visual-card {
  position: absolute;
  right: 18px;
  top: 50%;
  width: min(330px, 78%);
  min-height: 220px;
  padding: 34px;
  z-index: 2;
  overflow: hidden;
  transform: translateY(-50%);
  border: 1px solid rgba(145, 212, 255, .36);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(11, 44, 96, .72), rgba(33, 95, 162, .32));
  box-shadow: 0 30px 68px rgba(0, 0, 0, .32);
  backdrop-filter: blur(16px);
}

.xy-activity-visual-card::before {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -76px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
}

.xy-activity-visual-card::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 24px;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(32, 183, 255, .3), rgba(139, 92, 246, .2));
}

.xy-activity-visual-card span {
  position: relative;
  z-index: 1;
  display: block;
  width: 78px;
  height: 78px;
  margin-bottom: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .98) 0 8px, transparent 9px),
    conic-gradient(from 120deg, #20b7ff, #8b5cf6, #22c55e, #20b7ff);
  box-shadow: 0 0 42px rgba(32, 183, 255, .48);
}

.xy-activity-visual-card strong {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.xy-activity-visual-card em {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
}

.xy-activity-visual-grid {
  position: absolute;
  left: 16px;
  bottom: 20px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 12px;
  opacity: .88;
}

.xy-activity-visual-grid i {
  display: block;
  height: 56px;
  border: 1px solid rgba(127, 198, 255, .24);
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

.xy-activity-section {
  max-width: 100vw;
  padding: 80px 0 88px;
  background: #f3f7fc;
  overflow: hidden;
}

.xy-activity-section-head {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  margin-bottom: 32px;
}

.xy-activity-section-head h2,
.xy-activity-cta h2 {
  margin: 0;
  color: var(--xy-ink);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.28;
}

.xy-activity-section-head p,
.xy-activity-cta p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--xy-muted);
  font-size: 15px;
  line-height: 1.8;
}

.xy-activity-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.xy-activity-filter button {
  min-width: 82px;
  min-height: 44px;
  padding: 0 14px;
  color: #37506f;
  font-size: 14px;
  font-weight: 800;
  background: #fff;
  border: 1px solid var(--xy-line);
  border-radius: 3px;
  box-shadow: 0 6px 16px rgba(15, 35, 70, .04);
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.xy-activity-filter button:hover,
.xy-activity-filter button.active {
  color: #fff;
  background: var(--xy-blue);
  border-color: var(--xy-blue);
  box-shadow: 0 10px 22px rgba(11, 124, 255, .18);
}

.xy-activity-filter button:active {
  transform: translateY(1px);
}

.xy-activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 28px 24px;
}

.xy-activity-card {
  display: flex;
  min-width: 0;
  width: 100%;
  min-height: 500px;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(218, 229, 244, .92);
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(15, 35, 70, .1);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.xy-activity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 124, 255, .32);
  box-shadow: 0 16px 34px rgba(15, 35, 70, .14);
}

.xy-activity-card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  overflow: hidden;
  min-height: 190px;
  max-height: 220px;
  display: flex;
  align-items: center;
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 124, 255, .22), rgba(255, 138, 31, .08)),
    linear-gradient(118deg, #06162f 0%, #07386f 58%, #0a1736 100%);
  border-radius: 6px 6px 0 0;
  isolation: isolate;
}

.xy-activity-card-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

.xy-activity-card-cover::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -72px;
  z-index: -1;
  width: 290px;
  height: 260px;
  background: linear-gradient(135deg, rgba(11, 124, 255, .26), rgba(124, 58, 237, .16));
  border: 1px solid rgba(125, 211, 252, .16);
  transform: rotate(18deg);
  pointer-events: none;
}

.xy-cover-copy {
  position: relative;
  z-index: 2;
  width: min(72%, 270px);
  min-width: 0;
}

.xy-cover-kicker {
  display: block;
  margin-bottom: 8px;
  color: #39c5ff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.xy-cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 11px;
}

.xy-cover-tags span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(90deg, #ffb020, #ff6b21);
  border-radius: 999px;
}

.xy-cover-tags span + span {
  background: rgba(11, 124, 255, .32);
  border: 1px solid rgba(96, 165, 250, .4);
}

.xy-cover-copy strong {
  display: block;
  color: #fff;
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 900;
  line-height: 1.12;
  text-shadow: 0 9px 22px rgba(0, 0, 0, .34);
}

.xy-cover-copy em {
  display: block;
  margin-top: 9px;
  color: rgba(232, 246, 255, .92);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.4;
}

.xy-cover-action {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-top: 15px;
  padding: 0 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(90deg, #0b7cff, #24d3ff);
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(11, 124, 255, .28);
}

.xy-cover-deco {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  width: 34%;
  min-width: 104px;
  max-width: 150px;
  height: 58%;
  pointer-events: none;
}

.xy-cover-orbit {
  position: absolute;
  right: 6px;
  top: 8px;
  width: 86%;
  height: 68%;
  border-top: 2px solid rgba(125, 211, 252, .45);
  border-right: 2px solid rgba(125, 211, 252, .18);
  transform: skewY(-18deg);
}

.xy-cover-orbit::before,
.xy-cover-orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background: #9eeaff;
  box-shadow: 0 0 12px rgba(35, 196, 255, .72);
}

.xy-cover-orbit::before {
  left: 18%;
  top: -6px;
}

.xy-cover-orbit::after {
  right: -5px;
  bottom: 18%;
}

.xy-cover-device {
  position: absolute;
  right: 12px;
  bottom: 0;
  width: 118px;
  height: 92px;
  background: rgba(5, 22, 49, .9);
  border: 1px solid rgba(96, 165, 250, .36);
  border-radius: 10px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, .2);
}

.xy-cover-device::before,
.xy-cover-device::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 10px;
  border-radius: 999px;
}

.xy-cover-device::before {
  top: 24px;
  background: #24d3ff;
}

.xy-cover-device::after {
  top: 52px;
  background: #22c55e;
}

.xy-cover-symbol {
  position: absolute;
  right: -8px;
  top: 48px;
  min-width: 62px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #ffb020, #ff6b21);
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(255, 107, 33, .25);
}

.xy-cover-symbol::before {
  content: "HOT";
}

.xy-cover-theme-seckill .xy-cover-device::after {
  background: linear-gradient(90deg, #0b7cff, #ffb020);
}

.xy-cover-theme-seckill .xy-cover-symbol::before {
  content: "SALE";
}

.xy-cover-theme-trial .xy-cover-device {
  width: 132px;
  height: 72px;
  border-radius: 30px 34px 18px 18px;
  background: linear-gradient(135deg, #0b7cff, #24d3ff);
}

.xy-cover-theme-trial .xy-cover-device::before,
.xy-cover-theme-trial .xy-cover-device::after {
  display: none;
}

.xy-cover-theme-trial .xy-cover-symbol::before {
  content: "FREE";
}

.xy-cover-theme-coupon .xy-cover-device {
  width: 140px;
  height: 86px;
  background: linear-gradient(135deg, #0b7cff, #7c3aed);
  border-radius: 12px;
}

.xy-cover-theme-coupon .xy-cover-device::before {
  top: 0;
  bottom: 0;
  left: 66px;
  right: auto;
  width: 2px;
  height: auto;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .7) 0 8px, transparent 8px 16px);
}

.xy-cover-theme-coupon .xy-cover-device::after {
  display: none;
}

.xy-cover-theme-coupon .xy-cover-symbol::before {
  content: "8888";
}

.xy-cover-theme-hot-sale .xy-cover-device::after,
.xy-cover-theme-cloud .xy-cover-device::after {
  background: linear-gradient(90deg, #22c55e, #ffb020);
}

.xy-cover-theme-hot-sale .xy-cover-symbol::before {
  content: "SALE";
}

.xy-cover-theme-cloud .xy-cover-device {
  width: 136px;
  height: 78px;
  border-radius: 42px 44px 20px 22px;
  background: linear-gradient(135deg, #0b7cff, #24d3ff);
}

.xy-cover-theme-cloud .xy-cover-device::before,
.xy-cover-theme-cloud .xy-cover-device::after {
  display: none;
}

.xy-cover-theme-cloud .xy-cover-symbol::before {
  content: "FIRST";
}

.xy-cover-theme-server .xy-cover-symbol::before {
  content: "IDC";
}

.xy-cover-theme-domain .xy-cover-device {
  border-radius: 50%;
  background: rgba(5, 22, 49, .86);
}

.xy-cover-theme-domain .xy-cover-device::before {
  inset: 22px 10px auto;
  height: 2px;
  background: rgba(125, 211, 252, .7);
}

.xy-cover-theme-domain .xy-cover-device::after {
  inset: auto 10px 22px;
  height: 2px;
  background: rgba(125, 211, 252, .7);
}

.xy-cover-theme-domain .xy-cover-symbol::before {
  content: ".COM";
}

.xy-cover-theme-sms .xy-cover-device {
  width: 96px;
  height: 128px;
  border-radius: 18px;
}

.xy-cover-theme-sms .xy-cover-symbol::before {
  content: "SMS";
}

.xy-cover-theme-ssl .xy-cover-device {
  width: 118px;
  height: 126px;
  border-radius: 18px 18px 44px 44px;
  clip-path: polygon(50% 0, 100% 20%, 100% 62%, 50% 100%, 0 62%, 0 20%);
  background: linear-gradient(135deg, #0b7cff, #075ec7);
}

.xy-cover-theme-ssl .xy-cover-device::before,
.xy-cover-theme-ssl .xy-cover-device::after {
  display: none;
}

.xy-cover-theme-ssl .xy-cover-symbol::before {
  content: "SSL";
}

.xy-activity-card:hover .xy-activity-card-cover {
  filter: brightness(1.06) saturate(1.04);
}

.xy-activity-card-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 24px;
  text-align: left;
}

.xy-activity-title-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.xy-activity-title-row h3 {
  min-width: 0;
  margin: 0;
  color: var(--xy-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.42;
  overflow-wrap: anywhere;
  min-height: 56px;
}

.xy-activity-status {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  white-space: nowrap;
}

.xy-activity-status.ongoing {
  background: #22c55e;
}

.xy-activity-status.upcoming {
  background: #f59e0b;
}

.xy-activity-status.ended {
  background: #6b7280;
}

.xy-activity-time {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-height: 46px;
  margin: 12px 0 0;
  color: #52647c;
  font-size: 14px;
  line-height: 1.65;
}

.xy-activity-time b {
  flex: 0 0 auto;
  color: #263a55;
  font-weight: 800;
}

.xy-activity-desc {
  margin: 12px 0 0;
  color: var(--xy-muted);
  font-size: 14px;
  line-height: 1.78;
  min-height: 74px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.xy-activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
  margin-top: 18px;
}

.xy-activity-meta span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  color: #315987;
  font-size: 12px;
  font-weight: 800;
  background: #eef6ff;
  border: 1px solid #d8eaff;
  border-radius: 3px;
}

.xy-activity-card-actions {
  margin-top: auto;
  padding-top: 22px;
  align-items: flex-end;
}

.xy-activity-card-actions .xy-activity-primary,
.xy-activity-card-actions .xy-activity-outline {
  min-width: 116px;
  min-height: 44px;
}

.xy-activity-card-actions .xy-activity-primary:hover,
.xy-activity-card-actions .xy-activity-outline:hover {
  transform: translateY(-1px);
}

.xy-activity-empty {
  min-height: 320px;
  padding: 46px 24px;
  text-align: center;
  background: #fff;
  border: 1px dashed #c9d8ea;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(15, 35, 70, .08);
}

.xy-activity-empty img {
  width: 150px;
  max-width: 46%;
  margin-bottom: 20px;
}

.xy-activity-empty h3 {
  margin: 0;
  color: var(--xy-ink);
  font-size: 22px;
  font-weight: 800;
}

.xy-activity-empty p {
  max-width: 520px;
  margin: 10px auto 24px;
  color: var(--xy-muted);
  font-size: 14px;
  line-height: 1.7;
}

.xy-activity-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
}

.xy-activity-pagination button {
  min-width: 40px;
  min-height: 44px;
  padding: 0 13px;
  color: #2a4160;
  font-size: 14px;
  font-weight: 800;
  background: #fff;
  border: 1px solid #cfe0f2;
  border-radius: 3px;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.xy-activity-pagination button:hover:not(:disabled),
.xy-activity-pagination button.active {
  color: #fff;
  background: var(--xy-blue);
  border-color: var(--xy-blue);
}

.xy-activity-pagination button:disabled {
  color: #a3b1c2;
  cursor: not-allowed;
  background: #f6f9fc;
}

.xy-activity-cta {
  max-width: 100vw;
  padding: 72px 0;
  margin-bottom: 48px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 12%, rgba(32, 183, 255, .22), transparent 30%),
    radial-gradient(circle at 20% 90%, rgba(139, 92, 246, .2), transparent 34%),
    linear-gradient(110deg, rgba(4, 16, 38, .96), rgba(7, 37, 85, .9));
  overflow: hidden;
}

.xy-activity-cta .container {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.xy-activity-cta .container > div:first-child {
  min-width: 0;
  max-width: 780px;
  flex: 1 1 auto;
}

.xy-activity-cta-actions {
  flex: 0 0 auto;
  margin-left: auto;
  justify-content: flex-end;
}

.xy-activity-cta h2 {
  color: #fff;
}

.xy-activity-cta p {
  color: rgba(255, 255, 255, .76);
}

.xy-activity-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 10, 24, .72);
}

.xy-activity-modal.is-open {
  display: flex;
}

.xy-activity-modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(320px, 1fr);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

.xy-activity-modal-close {
  position: absolute;
  z-index: 2;
  right: 14px;
  top: 10px;
  width: 44px;
  height: 44px;
  color: #5f6f83;
  font-size: 28px;
  line-height: 28px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #dbe5f0;
  border-radius: 50%;
}

.xy-activity-modal-cover {
  min-height: 100%;
  display: flex;
  align-items: stretch;
  background: #071529;
}

.xy-activity-modal-cover .xy-activity-card-cover {
  width: 100%;
  min-height: 420px;
  max-height: none;
  border-radius: 6px 0 0 6px;
}

.xy-activity-modal-body {
  padding: 38px 34px 34px;
}

.xy-activity-modal-body h3 {
  margin: 14px 0 12px;
  color: var(--xy-ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
}

.xy-activity-modal-time,
.xy-activity-modal-desc {
  margin: 0 0 14px;
  color: #52647c;
  font-size: 14px;
  line-height: 1.8;
}

.xy-activity-modal-desc {
  color: var(--xy-text);
}

.xy-activity-modal-body ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.xy-activity-modal-body li {
  position: relative;
  padding-left: 18px;
  margin-top: 10px;
  color: #53657d;
  font-size: 14px;
  line-height: 1.7;
}

.xy-activity-modal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--xy-blue);
}

.xy-activity-modal-actions {
  margin-top: 26px;
}

.xy-activities-page.xy-activity-modal-open {
  overflow: hidden;
}

@media (max-width: 1199px) {
  .xy-activities-hero .container {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr);
  }

  .xy-activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xy-activity-card {
    max-width: 390px;
    justify-self: center;
  }
}

@media (max-width: 991px) {
  .xy-activities-hero {
    min-height: auto;
    padding: 118px 0 72px;
  }

  .xy-activities-hero .container {
    grid-template-columns: 1fr;
  }

  .xy-activities-hero .container {
    grid-template-areas:
      "copy"
      "visual";
  }

  .xy-activities-hero-visual {
    min-height: 220px;
  }

  .xy-activity-visual-card {
    right: auto;
    left: 0;
    width: min(360px, 100%);
  }

  .xy-activity-visual-grid {
    right: 0;
    left: auto;
  }

  .xy-activity-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .xy-activity-filter {
    justify-content: flex-start;
  }

  .xy-activity-modal-panel {
    grid-template-columns: 1fr;
  }

  .xy-activity-modal-cover .xy-activity-card-cover {
    min-height: 240px;
    max-height: 320px;
    border-radius: 6px 6px 0 0;
  }
}

@media (max-width: 767px) {
  .xy-activities-main .container {
    width: calc(100% - 24px);
  }

  .xy-activities-hero {
    padding: 104px 0 54px;
    text-align: center;
    background-position: 62% center;
  }

  .xy-activity-cta .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .xy-activity-cta .container > div:first-child {
    max-width: none;
  }

  .xy-activity-cta-actions {
    margin-left: 0;
    justify-content: flex-start;
  }

  .xy-activities-hero h1 {
    max-width: 336px;
    margin-right: auto;
    margin-left: auto;
    font-size: 30px;
    line-height: 1.3;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .xy-activities-hero p {
    max-width: min(336px, 100%);
    margin-right: auto;
    margin-left: auto;
    font-size: 14px;
    line-height: 1.72;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .xy-activities-hero-actions,
  .xy-activity-cta-actions,
  .xy-activity-modal-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .xy-activity-primary,
  .xy-activity-outline {
    width: 100%;
  }

  .xy-activities-hero-tags {
    max-width: 100%;
    justify-content: center;
  }

  .xy-activities-hero-tags span {
    min-width: 0;
    font-size: 12px;
  }

  .xy-activities-hero-visual {
    display: none;
  }

  .xy-activity-section {
    padding: 58px 0 64px;
  }

  .xy-activity-section-head h2,
  .xy-activity-cta h2 {
    font-size: 26px;
  }

  .xy-activity-section-head p,
  .xy-activity-cta p {
    font-size: 14px;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .xy-activity-filter {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xy-activity-filter button {
    width: 100%;
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
  }

  .xy-activity-grid {
    grid-template-columns: 1fr;
  }

  .xy-activity-card {
    min-height: 0;
    max-width: none;
  }

  .xy-activity-card-cover {
    min-height: 190px;
    padding: 18px;
  }

  .xy-cover-copy {
    width: min(76%, 250px);
  }

  .xy-cover-copy strong {
    font-size: 24px;
  }

  .xy-cover-copy em {
    font-size: 12px;
  }

  .xy-cover-deco {
    right: 12px;
    bottom: 14px;
    min-width: 88px;
    width: 30%;
    transform: scale(.86);
    transform-origin: right bottom;
  }

  .xy-activity-card-body {
    padding: 20px 18px 22px;
  }

  .xy-activity-title-row {
    gap: 8px;
    align-items: flex-start;
  }

  .xy-activity-title-row h3 {
    font-size: 18px;
    min-height: 0;
  }

  .xy-activity-time,
  .xy-activity-desc,
  .xy-activity-meta {
    min-height: 0;
  }

  .xy-activity-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .xy-activity-card-actions .xy-activity-primary,
  .xy-activity-card-actions .xy-activity-outline {
    width: 100%;
  }

  .xy-activity-pagination {
    justify-content: flex-start;
  }

  .xy-activity-cta {
    padding: 56px 0;
  }

  .xy-activity-modal {
    padding: 12px;
  }

  .xy-activity-modal-panel {
    max-height: calc(100vh - 24px);
  }

  .xy-activity-modal-cover .xy-activity-card-cover {
    min-height: 190px;
  }

  .xy-activity-modal-body {
    padding: 28px 20px 24px;
  }

  .xy-activity-modal-body h3 {
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  .xy-activity-filter {
    grid-template-columns: 1fr;
  }

  .xy-activity-title-row {
    flex-direction: column;
  }

  .xy-activity-status {
    align-self: flex-start;
  }
}
