@charset "UTF-8";

/* 社区活动详情页 (Figma 605:971) 专属样式。两栏：左主内容 771px + 右侧吸附报名卡。 */

.ed-page {
  position: relative;
  z-index: 1;
  padding-top: 1px;
}

.ed-aurora {
  position: absolute;
  top: 285px;
  right: 0;
  width: 1700px;
  max-width: none;
  height: 950px;
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

.ed-wrap {
  position: relative;
  z-index: 2;
  width: min(1249px, calc(100% - 2 * var(--page-gutter)));
  margin: 0 auto;
  padding-top: clamp(96px, 12vw, 128px);
  /* 与顶部留白呼应,避免正文末尾紧贴页脚 */
  padding-bottom: clamp(80px, 10vw, 120px);
}

.ed-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.071;
  text-transform: uppercase;
}

.ed-back img {
  width: 20px;
  height: 20px;
}

.ed-cols {
  display: flex;
  justify-content: space-between;
  gap: clamp(32px, 4.4vw, 60px);
  margin-top: clamp(32px, 4.5vw, 52px);
  align-items: flex-start;
}

/* 左主列 */
.ed-main {
  flex: 0 1 771px;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 60px);
  min-width: 0;
}

.ed-head {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ed-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 3.35vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.0375em;
}

.ed-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.ed-hero {
  width: 100%;
  aspect-ratio: 1600 / 900;
  border-radius: 13px;
  object-fit: cover;
}

.ed-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ed-section__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ed-section__head img {
  width: 20px;
  height: 20px;
}

.ed-section__head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

/* 嘉宾 */
.ed-guests {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.ed-guest {
  flex: 1 1 340px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ed-guest__avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #e4e4e7;
}

.ed-guest__name {
  margin: 0 0 4px;
  color: #fff;
  font-family: var(--font-latin);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.ed-guest__role {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  line-height: 1;
  text-transform: uppercase;
}

/* 活动流程 */
.ed-schedule {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 40px) clamp(20px, 3vw, 30px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ed-schedule__row {
  display: flex;
  align-items: center;
  gap: clamp(24px, 6vw, 80px);
  padding: 10px 0;
  color: #fff;
  font-size: 1rem;
}

/* 原各行之间以 <hr>（margin:0 的 1px 线）分隔；列表化后改用相邻行的上边框还原，
   行内 padding 不变，分隔线位置与间距与原结构一致 */
.ed-schedule__row + .ed-schedule__row {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ed-schedule__time {
  flex: none;
}

.ed-schedule__time {
  font-family: var(--font-latin);
  line-height: 1.25;
}

.ed-schedule__act {
  line-height: 1.5;
}

.ed-schedule hr {
  width: 100%;
  margin: 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* 右侧吸附报名卡 */
.ed-aside {
  flex: 0 0 300px;
  align-self: stretch;            /* 撑满整列高度，给内部 sticky 留出滚动范围 */
}

.ed-register {
  position: sticky;               /* 固化在屏幕相对位置（随页面滚动保持在 top: 100px） */
  top: 100px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ed-register__media {
  width: 100%;
  aspect-ratio: 296 / 167;
  object-fit: cover;
  background: #2a2a2a;
  display: block;
}

.ed-register__body {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 32px;
}

.ed-register__meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 小标题（如"报名"），置于分组行之上 */
.ed-register__label {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.5px;
}

.ed-register__row {
  margin: 0;                 /* 清除 <p> 默认 margin-bottom，避免行间距过大 */
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1;
}

.ed-register__row img {
  width: 16px;
  height: 16px;
  flex: none;
}

.ed-register__btn {
  display: none;                 /* 暂时隐藏报名按钮 */
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 32px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.ed-register__btn img {
  width: 20px;
  height: 20px;
}

.ed-register__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ed-register__verify {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.071;
  text-transform: uppercase;
}

.ed-register__verify img {
  width: 12px;
  height: 12px;
}

.ed-register__share {
  width: 16px;
  height: 16px;
}

/* —— 分享菜单 —— */
.ed-share {
  position: relative;
}

.ed-share__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin: -6px;                  /* 扩大点击区，视觉不变 */
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.ed-share__toggle:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.ed-share__toggle:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 2px; }

.ed-share__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: flex;
  flex-direction: column;
  min-width: 160px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(24, 24, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 20;
}

.ed-share.is-open .ed-share__menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ed-share__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 9px;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.ed-share__item:hover,
.ed-share__item:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.ed-share__toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(12px);
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(24, 24, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
}

.ed-share__toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .ed-share__menu,
  .ed-share__toggle,
  .ed-share__toast { transition: none; }
}

/* —— 交互反馈 —— */
.ed-back,
.ed-back img {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}
.ed-back:hover { color: rgba(255, 255, 255, 0.85); }
.ed-back:hover img { transform: translateX(-4px); }
.ed-back:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 4px; border-radius: 6px; }

.ed-register__btn {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, filter 0.2s ease;
}
.ed-register__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35); filter: brightness(0.97); }
.ed-register__btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.1s; }
.ed-register__btn:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 3px; }

.ed-register__share {
  cursor: pointer;
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.ed-register__share:hover { transform: scale(1.12); opacity: 1; }

.ed-guest { transition: transform 0.25s ease; }
.ed-guest:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .ed-back, .ed-back img, .ed-register__btn, .ed-register__share, .ed-guest { transition: none; }
  .ed-back:hover img, .ed-register__btn:hover, .ed-register__btn:active, .ed-register__share:hover, .ed-guest:hover { transform: none; }
}

@media (max-width: 960px) {
  .ed-cols {
    flex-direction: column;
  }
  .ed-aside {
    align-self: auto;
    width: 100%;
    flex-basis: auto;
  }
  .ed-register {
    position: static;             /* 窄屏堆叠时取消固定 */
    max-width: 460px;
    margin: 0 auto;               /* 居中，避免一侧留白过大 */
  }
}

@media (max-width: 560px) {
  .ed-register { max-width: none; }
  .ed-guest {
    flex-basis: 100%;
    gap: 20px;
    padding: 20px;
  }
  .ed-register__body { padding: 26px 24px; }
  .ed-head { gap: 20px; }
}
