/* 国外�?�?活动日历（列�?/ 详情）�?卡片与色板对�?Figma node 384:6566 */

:root {
  --g-events-accent: #f5a200;
  --g-events-accent-hover: #e08e12;
  --g-events-title: #0d0d0d;
  --g-events-body-text: #2b2b2b;
  --g-events-card-radius: 8px;
}

.g-events-page .g-main,
.g-events-detail-page .g-main,
.g-activity-calendar-detail-page .g-main {
  background: #fff;
}

/* 活动日历页：菜单栏 fixed 盖在 banner 上方，同屏叠放，半透明效果 */
.g-events-page .pc-nav,
.g-events-detail-page .pc-nav,
.g-activity-calendar-detail-page .pc-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}

.g-events-page .pc-nav.nav-scrolled,
.g-events-detail-page .pc-nav.nav-scrolled,
.g-activity-calendar-detail-page .pc-nav.nav-scrolled {
  background: rgba(255, 255, 255, 0.7);
}

/* Banner：顶�?fixed 叠在首图上（与新闻一致，依赖 body.g-products-page + products-global.css�?*/
.g-events-banner {
  position: relative;
  aspect-ratio: 1920 / 528;
  
  overflow: hidden;
  display: flex;
  width:100%;
  align-items: center;
}

.g-events-banner .container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}



.g-events-banner__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.g-events-banner__bg.g-events-banner__bg--image {
  background-color: #2f3240;
  background-image: var(--g-events-banner-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.g-events-banner__bg > img.g-events-banner__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-events-banner__bg > .g-events-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.g-events-banner__bg > .g-events-banner__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2f3240 0%, #4a5568 45%, #2d3748 100%);
}

.g-events-banner__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(15, 23, 42, 0.2),
    rgba(15, 23, 42, 0.15)
  );
}

.g-events-banner__content {
  position: relative;
  z-index: 2;

  padding-left: 16px;
  padding-right: 16px;
  text-align: center;
}

.g-events-banner__title {
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.25vw, 2vw, 2.08vw);
  letter-spacing: 0.12em;
  color: #fff;
  margin: 0 0 12px;
  text-align: center;
  text-shadow: 0 2px 1.25vw rgba(0, 0, 0, 0.35);
}

.g-events-banner__description {
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-size: clamp(0.94vw, 1vw, 1.25vw);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 12px auto 0;
  max-width: 36.46vw;
  text-align: center;
}

/* 列表布局：侧�?312px（Figma Filter），主区三列 ~416 + 32 间距 */
.g-events-layout {
  padding: 1.25vw 0 2.5vw;
}
.g-events-layout__row{
  padding: 0;
  

}
.g-events-layout__inner {
  max-width: 86.25vw;
  padding: 10px;
}

.g-events-layout__aside {
  max-width: clamp(10.42vw, 24vw, 16.25vw);
}

.g-events-layout__main {
  flex: 1;
  min-width: 0;
}

@media (max-width: 991.98px) {
  .g-events-layout__aside {
    max-width: none;
  }
  .g-events-banner__description {

  font-size: clamp(14px, 1vw, 1.25vw);
 
}
}

.g-events-card {
  display: flex;
  flex-direction: column;
  
  border-radius: var(--g-events-card-radius);
  overflow: hidden;
  border: none;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.g-events-card:hover {
  
  transform: translateY(-4px);
}




.g-events-card__media {
  aspect-ratio: 432 / 256;
  overflow: hidden;
  background: #e8eaed;
  border-radius: var(--g-events-card-radius) var(--g-events-card-radius) 0 0;
}

.g-events-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.g-events-card__img--placeholder {
  min-height: 100%;
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
}

.g-events-card__body {
  padding: 1.67vw 1.15vw 1.46vw;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  box-sizing: border-box;
  background-color: #f6f6f7;
  border-radius: 0 0 var(--g-events-card-radius) var(--g-events-card-radius);
}

.g-events-card__title {
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-size: clamp(16px, 1vw, 1.04vw);
  font-weight: 600;
  line-height: 1.33;
  color: var(--g-events-title);
  margin: 0;
}

.g-events-card__row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: normal;
  line-height: 1.33;
  color: #9A9A9A;
}

.g-events-card__icon {
  width: 1.04vw;
  height: 1.04vw;
  flex-shrink: 0;
  margin-top: 1px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 1;
}

.g-events-card__icon--calendar {
  background-image: url('/images/rili/rili1.png');
}

.g-events-card__icon--pin {
  background-image: url('/images/rili/weizhi1.png');
}

.g-events-card__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 1.04vw;
}

.g-events-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 2.08vw;
  padding: 10px 1.25vw;
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.33;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  box-sizing: border-box;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.g-events-btn span {
  position: relative;
  z-index: 1;
}

.g-events-btn__arrow {
  width: 0.94vw;
  height: 0.94vw;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.g-events-btn:hover .g-events-btn__arrow {
  transform: translateX(2px);
}

.g-events-btn--primary {
  background: #424558;
  color: #fff;
}

.g-events-btn--primary .g-events-btn__arrow {
  stroke: #fff;
}


.g-events-btn--outline {
  background: #fff;
  color: #f5a200;
  border: 1px solid #ddd;
}

.g-events-btn--outline .g-events-btn__arrow {
  stroke: #f5a200;
}

.g-events-btn--outline:hover {
  background: #f5a200;
  color: #fff;
  border-color: transparent;
}

.g-events-btn--outline:hover .g-events-btn__arrow {
  stroke: #fff;
}

.g-events-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #6b7280;
  padding: 1.67vw;
  font-family: 'Source Han Sans', system-ui, sans-serif;
}

.g-events-page .g-list-pagination a.g-list-pagination__btn:hover {
  border-color: var(--g-events-accent);
  color: var(--g-events-accent);
}



/* 详情�?*/
.g-events-detail {
  max-width: 45.83vw;
  margin: 0 auto;
  padding: 2.08vw 16px 2.5vw;
  margin-top: 3.75vw;
  min-height: 42.71vw;
}

.g-events-detail__meta {
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.g-events-detail__title {
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-size: clamp(1.25vw, 4vw, 1.88vw);
  font-weight: bold;
  color: #111827;
  margin: 0 0 16px;
  line-height: 1.2;
}

.g-events-detail__location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #4b5563;
  margin-bottom: 1.04vw;
}

.g-events-detail__thumb {
  width: 100%;
  max-height: 21.88vw;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.25vw;
}

.g-events-detail__cta-top {
  margin: 0 0 1.04vw;
}

.g-events-detail__content {
  font-size: 16px;
  line-height: 1.75;
  color: #374151;
}

.g-events-detail__content img {
  max-width: 100%;
  height: auto;
}

.g-events-detail__back {
  display: inline-block;
  margin-top: 1.67vw;
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--g-events-accent);
  text-decoration: none;
}

.g-events-detail__back:hover {
  text-decoration: underline;
}

/* 列表页活动详情弹�?*/
.g-events-modal {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.g-events-modal[aria-hidden='false'] {
  opacity: 1;
  visibility: visible;
}

.g-events-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.55);
}

.g-events-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(39.58vw, calc(100vw - 1.67vw));
  max-height: min(88vh, 43.75vw);
  overflow: auto;
  margin: 16px;
  padding: 1.04vw 1.25vw 1.25vw;
  background: #fff;
  border-radius: 10px;
}

.g-events-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 1.88vw;
  height: 1.88vw;
  border: 0;
  background: transparent;
  font-size: 1.67vw;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.g-events-modal__close:hover {
  color: #111827;
}

.g-events-modal__title {
  margin: 0;
  text-align: center;
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-size: 1.04vw;
  font-weight: bold;
  color: #111827;
}

.g-events-modal__event-title {
  margin: 8px 0 9.60px;
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-size: 1.25vw;
  font-weight: bold;
  color: #111827;
}

.g-events-modal__meta {
  
  color: #4b5563;
  font-size: 15.20px;
}

.g-events-modal__content {
  margin-top: 13.60px;
  color: #374151;
  line-height: 1.7;
}

.g-events-modal__content img {
  max-width: 100%;
  height: auto;
}

body.g-events-modal-open {
  overflow: hidden;
}

/* 活动日历筛选侧边栏 */
@media (min-width: 992px) {
  .g-events-page .g-list-filter-card {
    background: transparent;
    border-radius: 0;
    max-width: 14.58vw;
  }
  .g-events-card:hover .g-events-card__title {
  color: #f5a200;
}
.g-events-card:hover .g-events-btn--outline {
  background: #f5a200;
  color: #fff;
  border-color: transparent;
}

  .g-events-page .g-list-filter-card__head {
    font-size: 1.04vw;
    font-weight: 600;
    color: #1a1a1a;
    background: transparent;
    border-radius: 0;
    padding: 0 0 1.25vw 0;
    min-height: auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .g-events-page .g-list-filter-card__head::before {
    content: '';
    display: inline-block;
    width: 1.25vw;
    height: 1.25vw;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M8 11h2'/%3E%3Cpath d='M8 15h2'/%3E%3Cpath d='M14 11h2'/%3E%3Cpath d='M14 15h2'/%3E%3Ccircle cx='18' cy='5' r='2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
  }

  .g-events-page .g-list-filter-card__body {
    background: transparent;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .g-events-page .g-list-filter-field {
    border-radius: 10px;
    background: #f5f5f5;
    overflow: visible;
  }

  .g-events-page .g-list-filter-trigger {
    padding: 16px 1.04vw;
    border-radius: 10px;
    background: transparent;
  }

  .g-events-page .g-list-filter-trigger:hover:not(:disabled) {
    background: transparent;
  }

  .g-events-page .g-list-filter-trigger__label {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
  }

  .g-events-page .g-list-filter-trigger__trail {
    gap: 0;
    margin-left: auto;
  }

  .g-events-page .g-list-filter-trigger__value {
    display: none;
  }

  .g-events-page .g-list-filter-trigger__icon {
    color: #999;
  }

  .g-events-page .g-list-filter-trigger__icon svg {
    width: 1.04vw;
    height: 1.04vw;
  }

  .g-events-page .g-list-filter-trigger.is-open .g-list-filter-trigger__icon {
    transform: rotate(180deg);
  }

  .g-events-page .g-list-filter-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
  }

  .g-events-page .g-list-filter-menu__opt {
    padding: 12px 1.04vw;
    font-size: 15px;
    color: #333;
  }

  .g-events-page .g-list-filter-menu__opt:hover,
  .g-events-page .g-list-filter-menu__opt.is-selected {
    background: #f5f5f5;
    color: #f5a200;
    font-weight: 500;
  }

  .g-events-page .g-list-filter-field--disabled {
    opacity: 0.5;
    pointer-events: none;
  }
}

@media (max-width: 575.98px) {
  .g-events-grid {
    justify-content: center;
    padding:0 8px;
  }
  .g-events-layout__row{
  padding: 0;
  width: 100%;
    margin:0;
}
  .g-events-modal__title{
    text-align: left;
    font-weight: normal;
  }
  .g-events-modal__content p{
    margin:10px 0;
    font-size: 14px;
  }
  .g-events-modal__event-title{
    font-size: 0.94vw;
  }
  .g-events-card__row{
    font-size: 14px;
  }
  .g-events-card__title{
  font-size: 16px;
}
.g-events-banner{
  margin-top: 3.02vw;
}
}
.g-events-grid{
  row-gap:16px;
  width: 100%;
}
