/* Global Events Page Styles */

/* ===== Base / Reset ===== */

:root {
  --swiper-pagination-bottom: 8px;
  --swiper-pagination-color: #00a8ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.ge-mobile-br {
  display: none;
}

/* ===== Hero Section ===== */
.ge-hero {
  position: relative;
  width: 100%;
  height: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ge-hero-bg {
  position: absolute;
  inset: 0;
  top: -80px;
  z-index: 0;
}

.ge-hero-bg img,
.ge-hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ge-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 38, 0.7);
}

.ge-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 959px;
  text-align: center;
}

.ge-hero-logo {
  height: 40px;
}

.ge-hero-title {
  font-family: "Roboto", sans-serif;
  font-size: 72px;
  font-weight: 500;
  color: #fff;
  line-height: 67px;
  letter-spacing: -2.16px;
}

.ge-hero-title span {
  color: #26b5ff;
}

.ge-hero-subtitle {
  margin-top: 24px;
  font-family: "Roboto", sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  line-height: 27px;
}

.ge-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  padding: 12px 20px;
  background: #fff;
  border-radius: 48px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #020826;
  text-decoration: none;
  transition: opacity 0.2s;
}

.ge-hero-btn:hover {
  opacity: 0.9;
}

.ge-hero-star {
  position: absolute;
  top: -80px;
  right: 20px;
  width: 41px;
  height: 41px;
  transform: rotate(18.68deg);
}

/* ===== Section Common ===== */
.ge-section {
  width: 1320px;
  max-width: calc(100vw - 40px);
  margin: 0 auto;
}

.ge-section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.ge-section-title {
  position: relative;
  font-family: "Roboto", sans-serif;
  font-size: 44px;
  font-weight: 500;
  color: #020826;
  line-height: 60px;
}

.ge-section-title img {
  position: absolute;
  top: -30px;
  right: -35px;
}

/* ===== Filter Panel ===== */
.ge-filter-panel {
  background: #fff;
  border: 1px solid #fff;
  border-radius: 12px;
  /* box-shadow: 0px 4px 54px 0px rgba(232, 236, 255, 0.8); */
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 60px;
}

.ge-filter-row {
  display: flex;
  gap: 24px;
}

.ge-filter-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.ge-filter-label {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #364153;
  letter-spacing: -0.15px;
}

.ge-filter-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 17px;
  background: #fff;
  border: 0.75px solid #d1d5dc;
  border-radius: 8px;
  height: 41px;
  cursor: pointer;
}

.ge-filter-select span {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #364153;
  letter-spacing: -0.31px;
}

.ge-filter-select img {
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}

.ge-filter-select.open img {
  transform: rotate(180deg);
}

.ge-filter-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 11px;
  padding: 12px;
  box-shadow: 0px 4px 7px rgba(0, 168, 255, 0.14);
  z-index: 10;
  flex-direction: column;
  gap: 10px;
}

.ge-filter-dropdown.open {
  display: flex;
}

.ge-filter-dropdown-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #020826;
  line-height: 20px;
  cursor: pointer;
  transition: background 0.15s;
}

.ge-filter-dropdown-item:hover {
  background: #f0faff;
}

.ge-filter-dropdown-item.active {
  background: #e7f7ff;
}

/* 多选下拉框 */
.ge-filter-dropdown-multi {
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.ge-dropdown-group {
  display: flex;
  flex-direction: column;
  padding: 8px 8px 0;
}

.ge-dropdown-group-title {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #101828;
  line-height: 20px;
  letter-spacing: -0.15px;
  padding: 4px 8px;
  margin-bottom: 4px;
}

.ge-dropdown-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
}

.ge-dropdown-checkbox-item:hover {
  background: #f9fafb;
}

.ge-dropdown-checkbox-item input[type="checkbox"] {
  display: none;
}

.ge-checkbox-box {
  width: 16px;
  height: 16px;
  border: 1.5px solid #eaecf6;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s;
}

.ge-dropdown-checkbox-item input[type="checkbox"]:checked + .ge-checkbox-box {
  background: #00a8ff;
  border-color: #00a8ff;
}

.ge-dropdown-checkbox-item
  input[type="checkbox"]:checked
  + .ge-checkbox-box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ge-checkbox-label {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #364153;
  line-height: 20px;
  letter-spacing: -0.15px;
}

.ge-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ge-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f3fbff;
  border-radius: 9999px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  color: #333;
}

.ge-filter-tag-close {
  cursor: pointer;
  font-size: 16px;
  color: #333;
  line-height: 1;
}

/* ===== Event Cards Swiper ===== */
.ge-swiper-wrap {
  overflow: hidden !important;
  padding: 50px 0 !important;
  margin: -50px 0 !important;
}

.ge-events-swiper {
  overflow: visible !important;
}

.ge-events-swiper .swiper-slide {
  width: 424px;
  height: auto;
}

.ge-event-card {
  background: #fff;
  border: 1px solid #fff;
  border-radius: 12px;
  box-shadow: 0px 4px 54px 0px rgba(232, 236, 255, 0.8);
  overflow: hidden;
  padding: 23px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 100%;
  text-decoration: none;
  color: inherit;
  white-space: normal;
}

a.ge-event-card {
  cursor: pointer;
}

div.ge-event-card {
  cursor: default;
}

.ge-event-card-image {
  position: relative;
  width: 100%;
  height: 170px;
  border-radius: 20px;
  background: #f4f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.ge-event-card-image img {
  object-fit: contain;
  mix-blend-mode: multiply;
}

.ge-event-card-image-dark img {
  mix-blend-mode: normal;
}

.ge-event-card-badge {
  position: absolute;
  top: 13px;
  left: 14px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 24px;
  letter-spacing: -0.28px;
  z-index: 1;
}

.ge-event-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ge-event-card-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ge-event-card-title {
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #020826;
  line-height: 27px;
  letter-spacing: -0.48px;
}

.ge-event-card-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.ge-event-card-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ge-event-card-meta-item img {
  width: 14px;
  height: 16px;
}

.ge-event-card-meta-item span {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 24px;
}

.ge-event-card-desc {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 23px;
}

/* Upcoming Events 卡片描述限制3行 */
#upcoming-swiper .ge-event-card-desc {
  height: 69px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.ge-event-card-actions {
  display: flex;
  gap: 16px;
}

.ge-event-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  padding: 8px 20px;
  border: 1px solid #00a8ff;
  border-radius: 48px;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #020826;
  text-decoration: none;
  transition: background 0.2s;
}

.ge-event-card-btn:hover {
  background: #f0f9ff;
}

/* ===== Pagination Arrows ===== */
.ge-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.ge-pagination-btn {
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ge-pagination-btn:hover {
  opacity: 0.7;
}

.ge-pagination-btn.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ===== Featured Event (EVOLVE Sections) ===== */
.ge-featured {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.ge-featured-left {
  flex: 0 0 602px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ge-featured-logo {
  max-width: 339px;
  max-height: 153px;
}

.ge-featured-brand {
  font-family: "Roboto", sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #020826;
  line-height: 24px;
}

.ge-featured-name {
  font-family: "Roboto", sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #020826;
  line-height: 24px;
  margin-top: 16px;
}

.ge-featured-desc {
  font-family: "Roboto", sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #333;
  line-height: 32px;
}

.ge-featured-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.ge-featured-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: #020826;
  border-radius: 48px;
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.ge-featured-btn:hover {
  opacity: 0.85;
}

.ge-featured-right {
  flex: 0 0 648px;
}

.ge-featured-image {
  width: 648px;
  height: 430px;
  border-radius: 20px;
  object-fit: cover;
}

/* ===== Stay in the Know CTA ===== */
.ge-cta {
  position: relative;
  background: #020826;
  border-radius: 40px;
  padding: 56px 50px;
  overflow: hidden;
  box-shadow: 0px 4px 84px 0px rgba(25, 27, 62, 0.06);
}

.ge-cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  max-width: 934px;
}

.ge-cta-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ge-cta-icon {
  width: 40px;
  height: 40px;
}

.ge-cta-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ge-cta-title {
  font-family: "Roboto", sans-serif;
  font-size: 44px;
  font-weight: 500;
  color: #fff;
}

.ge-cta-desc {
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  font-weight: 300;
  color: #fff;
  line-height: 32px;
}

.ge-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 48px;
  background: var(
    --Gradient,
    linear-gradient(96deg, #5ab3f9 -58.87%, #3c8afe 25.09%, #5e4cff 101.06%)
  );
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.ge-cta-btn:hover {
  opacity: 0.9;
}

.ge-cta-decoration {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 272px;
  height: 297px;
  z-index: 0;
}

.ge-cta-decoration-m {
  display: none;
}

.ge-cta-star {
  position: absolute;
  left: 400px;
  top: 120px;
  width: 34px;
  height: 34px;
  z-index: 0;
}

.ge-cta-circle {
  position: absolute;
  right: 100px;
  top: 202px;
  width: 339px;
  height: 339px;
  z-index: 0;
}

.ge-cta-glow {
  position: absolute;
  right: 116px;
  bottom: -179px;
  width: 339px;
  height: 339px;
  border-radius: 339px;
  background: radial-gradient(
    367.31% 367.31% at 50% 50%,
    rgba(0, 168, 255, 0.7) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(205px);
  z-index: 0;
}

/* ===== Spacing between sections ===== */
.ge-upcoming-section {
  position: relative;
  padding: 100px 0 0;
}

.ge-upcoming-events-bg {
  position: absolute;
  z-index: -1;
  top: 106px;
}

.ge-upcoming-events-bg-m {
  display: none;
}

.ge-featured-section {
  position: relative;
  padding: 140px 0 0;
}

.ge-past-section {
  position: relative;
  padding: 140px 0 0;
}

.ge-past-section-bg {
  position: absolute;
  z-index: -1;
  top: -200;
}

.ge-upcoming-bottom-bg {
  display: none;
}

.ge-featured-bottom-bg {
  display: none;
}

.ge-featured-top-bg {
  display: none;
}

.ge-past-section-bg-m {
  display: none;
}

.ge-cta-section {
  position: relative;
  padding: 140px 0 100px;
}

.ge-cta-section-bg {
  position: absolute;
  z-index: -1;
  top: -210px;
}

/* ===== Background Decoration ===== */
.ge-bg-decoration {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2737px;
  height: 1845px;
  pointer-events: none;
  z-index: -1;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 1200px) {
  .ge-events-swiper .swiper-slide {
    width: 380px;
  }

  .ge-featured {
    flex-direction: column;
    align-items: flex-start;
  }

  .ge-featured-left {
    flex: none;
    width: 100%;
  }

  .ge-featured-right {
    flex: none;
    width: 100%;
  }

  .ge-featured-image {
    width: 100%;
    height: auto;
    aspect-ratio: 648 / 430;
  }
}

@media (max-width: 768px) {
  /* 导航栏 */
  .menu-c-head {
    width: 100%;
  }

  /* Hero 区域 */
  .ge-hero {
    padding-top: 66px;
    height: 426px;
  }

  .ge-hero-bg {
    top: 66px;
  }

  .ge-upcoming-events-bg-pc {
    display: none;
  }

  .ge-upcoming-events-bg-m {
    display: block;
    width: 100%;
    top: 120px;
  }

  .ge-upcoming-bottom-bg {
    display: block;
    position: absolute;
    bottom: -150px;
    right: 0;
    width: 100%;
    z-index: -1;
  }

  .ge-featured-bottom-bg {
    display: block;
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    z-index: -1;
  }

  .ge-featured-top-bg {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: -1;
  }

  .ge-hero-content {
    max-width: 303px;
    gap: 16px;
  }

  .ge-hero-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 34px;
    letter-spacing: -0.5px;
  }

  .ge-hero-subtitle {
    margin-top: 0;
    font-size: 16px;
    line-height: normal;
  }

  .ge-hero-btn {
    margin-top: 0;
    padding: 8px 20px;
  }

  .ge-hero-star {
    display: none;
  }

  /* Section 内部排序：筛选面板移到标题上方 */
  .ge-section {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .ge-filter-panel {
    order: -1;
    margin-bottom: 90px;
  }

  /* Section Title */
  .ge-section-title {
    font-size: 36px;
    line-height: 40px;
  }

  .ge-section-title img {
    top: -25px;
    right: -25px;
  }

  /* 筛选面板卡片化 */
  .ge-filter-panel {
    background: #fff;
    border: 1px solid #fff;
    border-radius: 12px;
    box-shadow: 0px 4px 54px 0px rgba(232, 236, 255, 0.8);
    padding: 15px;
  }

  .ge-filter-row {
    flex-direction: column;
    gap: 16px;
  }

  /* Swiper 移动端不裁剪，展示阴影 */
  .ge-swiper-wrap {
    overflow: visible !important;
  }

  .ge-events-swiper .swiper-slide {
    width: 312px !important;
  }

  /* 事件卡片移动端适配 */
  .ge-event-card {
    padding: 15px;
  }

  .ge-event-card-image {
    height: 159px;
  }

  .ge-event-card-meta {
    flex-direction: column;
    gap: 10px;
  }

  .ge-event-card-actions {
    flex-direction: row;
    gap: 10px;
  }

  .ge-event-card-meta {
    align-items: flex-start;
  }

  .ge-event-card-btn {
    width: auto;
    flex: auto;
    padding: 8px 0;
  }

  /* Featured 区域：移动端排序为 logo → desc → image → actions */
  .ge-featured {
    gap: 30px;
  }

  .ge-featured-left {
    display: contents;
  }

  .ge-featured-logo {
    order: 1;
    width: 273px;
    height: 123px;
  }

  .ge-featured-desc {
    order: 2;
    font-size: 20px;
    line-height: 28px;
    width: 100%;
  }

  .ge-featured-right {
    order: 3;
    flex: none;
    width: 100%;
  }

  .ge-featured-actions {
    order: 4;
    flex-direction: row;
    gap: 10px;
    width: 100%;
  }

  .ge-featured-btn {
    flex: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .ge-featured-actions-single .ge-featured-btn {
    flex: none;
    padding: 16px 32px;
  }

  .ge-featured-image {
    width: 100%;
    height: auto;
    aspect-ratio: 648 / 430;
  }

  /* CTA 区域 */
  .ge-cta {
    padding: 54px 24px;
    border-radius: 24px;
  }

  .ge-cta-title {
    font-size: 32px;
  }

  .ge-cta-desc {
    font-size: 18px;
  }

  .ge-cta-header {
    gap: 32px;
  }

  .ge-cta-content {
    gap: 32px;
  }

  .ge-cta-text {
    gap: 24px;
  }

  .ge-cta-decoration-pc {
    display: none;
  }

  .ge-cta-decoration-m {
    display: block;
    width: 160px;
    height: 260px;
  }

  .ge-cta-star,
  .ge-cta-circle,
  .ge-cta-glow {
    display: none;
  }

  .ge-cta-section-bg {
    display: none;
  }

  /* 各区域间距 */
  .ge-upcoming-section {
    padding: 33px 0 0;
  }

  .ge-featured-section {
    padding: 90px 0 0;
  }

  .ge-past-section {
    padding: 90px 0 0;
  }

  .ge-cta-section {
    padding: 140px 0 30px;
  }

  .ge-pagination {
    margin-top: 30px;
  }

  .ge-mobile-br {
    display: block;
  }
}
