/* 首页 — 依赖 css/global.css（全站头部/页脚等已在 global） */

/* —— 首页大横幅 —— */
.home-hero {
  position: relative;
  min-height: min(85vh, 2000px);
  color: var(--white);
  overflow: hidden;
  background: url("../images/1xxxhdpi.png") center/cover no-repeat;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  gap: 32px 40px;
  align-items: end;
  margin-top: 60px;
}

.home-hero__title-bg {
  background: url("../images/2xxxhdpi.png") center/cover no-repeat;
  padding: 64px 232px;
  display: inline-block;
  max-width: 1120px;
}

.home-hero__title {
  margin: 0;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.home-hero__aside {
  width: 100%;
  max-width: 1120px;
  justify-self: end;
  height: 352px;
  background: url("../images/5xxxhdpi.png") center/cover no-repeat;
  text-align: right;
  box-sizing: border-box;
  padding-right: 280px;
  padding-left: clamp(18px, 3vw, 56px);
}

.home-hero__aside p {
  margin: 0 0 18px;
  max-width: 560px;
  margin-left: auto;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 80px;
}

.home-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
  margin-top: 15px;
}

.home-hero__cta:hover {
  transform: translateY(-1px);
}

/* 波浪过渡 */
.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
  color: #e8f4fc;
  position: relative;
  z-index: 2;
  margin-top: -160px;
  margin-bottom: 18px;
}

.wave-divider > img {
  display: block;
  width: min(620px, 92vw);
  height: auto;
  margin: 0 auto;
}

.wave-divider--flip {
  transform: rotate(180deg);
  color: #fff;
}

/* —— 三列信念 —— */
.home-values {
  position: relative;
  z-index: 2;
  padding: 0 24px 280px;
  background: transparent;
}

.home-values__grid {
  max-width: var(--layout-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.35fr 1.2fr;
  gap: 36px 40px;
  padding-top: 8px;
  align-items: start;
  min-height: 0;
}

.home-value {
  padding: 46px 0px 20px 80px;
  background-size: 100%;
  height: 820px;
  background-repeat: no-repeat;
}

.home-value--a {
  background-image: url("../images/8xxxhdpi.png");
}

.home-value--b {
  background-image: url("../images/9xxxhdpi.png");
  margin-top: 150px;
  padding: 61px 0px 20px 80px;
}

.home-value--c {
  background-image: url("../images/10xxxhdpi.png");
  margin-top: 288px;
  padding: 65px 0px 20px 80px;
}

.home-value h2 {
  margin: 0 0 12px;
  font-size: 23px;
  font-weight: 700;
  color: #014c86;
}

.home-value p {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: #003f77;
  margin-top: 56px;
}

/* —— Our mission —— */
.home-mission {
  position: relative;
  padding: 64px clamp(24px, 5vw, 72px) 80px;
  background:
    url("../images/hero.png") top center / cover no-repeat;
  background-blend-mode: normal, luminosity;
  background-size: 100% auto;
  margin-top: -950px;
}

.home-mission__inner {
  max-width: min(var(--layout-max), 1080px);
  margin: 0 auto;
}

.home-mission__lead {
  max-width: 680px;
  margin: 100px 0 86px;
  text-align: left;
}

.home-mission__lead p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  line-height: 1.7;
  text-shadow: 0 2px 18px rgba(10, 35, 66, 0.4);
}

.home-mission__lead p:last-child {
  margin-bottom: 0;
}

.home-mission__logo {
  display: block;
  width: 92px;
  height: auto;
  margin: 0 0 68px;
}

.home-mission__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  font-style: italic;
  text-transform: lowercase;
  color: #fff;
  margin: 0 0 40px;
  text-align: left;
}

.home-mission__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 28px;
}

.home-mission-card {
  display: block;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(10, 35, 66, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.home-mission-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(10, 35, 66, 0.12);
}

.home-mission-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 240px;
  background: #cbd5e0 center/cover no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: background-size 0.4s ease;
}

.home-mission-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease;
  pointer-events: none;
}

.home-mission-card:hover .home-mission-card__media {
  background-size: 108%;
}

.home-mission-card:hover .home-mission-card__media::before {
  background: rgba(0, 0, 0, 0.28);
}

.home-mission-card__media--a {
  background-image: url("../images/event-01.jpg");
}

.home-mission-card__media--b {
  background-image: url("../images/highlight-01.jpg");
}

.home-mission-card__media--c {
  background-image: url("../images/highlight-02.jpg");
}

.home-mission-card__media--d {
  background-image: url("../images/event-cnto.jpg");
}

.home-mission-card__media--e {
  background-image: url("../images/event-silk.jpg");
}

.home-mission-card__media--f {
  background-image: url("../images/highlight-04.jpg");
}

.home-mission-card__deco-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: auto;
  height: auto;
  max-height: 56px;
  pointer-events: none;
  transition: transform 0.35s ease;
}

.home-mission-card:hover .home-mission-card__deco-top {
  transform: translateX(-50%) translateY(-14px);
}

.home-mission-card__hover-text {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 56px 20px 72px;
  color: #fff;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.home-mission-card__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  line-height: 0;
  transform-origin: center bottom;
  transition: transform 0.35s ease;
}

.home-mission-card:hover .home-mission-card__footer {
  transform: scale(1.14);
}

.home-mission-card__deco-bottom {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.home-mission-card__deco-overlay {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  width: auto;
  max-width: 120px;
  height: auto;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.home-mission-card:hover .home-mission-card__deco-overlay {
  opacity: 0;
  visibility: hidden;
}

.home-mission-card:hover .home-mission-card__hover-text {
  opacity: 1;
  visibility: visible;
}

.home-section-line {
  display: block;
  width: 802px;
  max-width: 100%;
  height: 1px;
  margin: 0 auto 32px;
  background: #3490be;
  border-radius: 2px;
}

/* —— Latest Events（公共 HTML 注入后样式） —— */
.home-latest-events {
  padding: 56px clamp(24px, 5vw, 72px) 72px;
  background: var(--white);
}

.home-latest-events__inner {
  max-width: min(var(--layout-max), 1080px);
  margin: 0 auto;
}

.home-section-title {
  margin: 0 0 40px;
  font-size: clamp(1.65rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #111827;
}

.home-event-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 48px;
  min-height: 280px;
}

.home-event-row__media {
  min-height: 260px;
  background: #94a3b8 center/cover no-repeat;
  border-radius: 18px;
  position: relative;
  z-index: 1;
}

.home-event-row__media--seminar {
  background-image: url("../images/event-01.jpg");
}

.home-event-row__media--cnto {
  background-image: url("../images/event-cnto.jpg");
}

.home-event-row--right .home-event-row__media {
  grid-column: 2;
  grid-row: 1;
}

.home-event-row--right .home-event-row__panel {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  pointer-events: none;
}

.home-event-row--right .home-event-row__green,
.home-event-row--right .home-event-row__meta {
  pointer-events: auto;
}

.home-event-row--right .home-event-row__green {
  grid-column: 1;
  align-self: center;
  margin-right: -18%;
  z-index: 3;
}

.home-event-row--right .home-event-row__meta {
  grid-column: 2;
  align-self: end;
  padding: 0 0 24px 8%;
}

.home-event-row--left .home-event-row__media {
  grid-column: 1;
  grid-row: 1;
}

.home-event-row--left .home-event-row__panel {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  pointer-events: none;
}

.home-event-row--left .home-event-row__green,
.home-event-row--left .home-event-row__meta {
  pointer-events: auto;
}

.home-event-row--left .home-event-row__green {
  grid-column: 2;
  align-self: center;
  margin-left: -18%;
  z-index: 3;
}

.home-event-row--left .home-event-row__meta {
  grid-column: 1;
  align-self: end;
  padding: 0 8% 24px 0;
  justify-self: end;
  text-align: right;
}

.home-event-row--left .home-event-row__meta .home-event-row__when,
.home-event-row--left .home-event-row__meta .home-event-row__where {
  justify-content: flex-end;
}

.home-event-row__green {
  background: var(--accent-green);
  color: var(--white);
  padding: 28px 26px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(46, 170, 120, 0.35);
  max-width: 420px;
}

.home-event-row__green h3 {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 700;
  line-height: 1.45;
}

.home-event-row__meta {
  max-width: 360px;
}

.home-event-row__read {
  display: inline-flex;
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--sky);
  color: var(--sky);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.home-event-row__read:hover {
  background: var(--sky);
  color: var(--white);
}

/* Latest Events — featured row（设计稿：左渐变标题 + 右图 + 下方信息） */
.home-event-row--featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 18px 0;
  align-items: start;
  margin-bottom: 56px;
  min-height: 0;
}

.home-event-row--featured .home-event-row__banner {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 3;
  width: min(720px, 118%);
  min-width: min(100%, 620px);
  max-width: none;
  margin-right: -24%;
  margin-top: 100px;
  padding: 44px 44px 44px 32px;
  color: #fff;
  background: linear-gradient(105deg, #5ecf9a 0%, #45b8e8 42%, #2b7fc7 100%);
  border-radius: 28px 0 100px 28px;
  box-shadow: 0 16px 40px rgba(43, 127, 199, 0.28);
}

.home-event-row--featured .home-event-row__leaf {
  display: block;
  width: 28px;
  height: auto;
  margin-bottom: 14px;
}

.home-event-row--featured .home-event-row__headline {
  margin: 0;
  max-width: none;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 600;
  line-height: 1.55;
}

.home-event-row--featured .home-event-row__figure {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  z-index: 1;
  max-width: 100%;
  height: 440px;
  min-height: 440px;
  max-height: 440px;
  justify-self: end;
  padding: 0 10px 14px 0;
}

.home-event-row--featured .home-event-row__figure::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  background: #b9e6f8;
  border-radius: 0;
  z-index: 0;
}

.home-event-row--featured .home-event-row__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 580px;
  max-width: 100%;
  height: 440px;
  min-height: 440px;
  max-height: 440px;
  object-fit: cover;
  border-radius: 0;
}

.home-event-row--featured .home-event-row__info {
  grid-column: 1;
  grid-row: 2;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 8% 0 0;
}

.home-event-row--featured .home-event-row__meta--left {
  text-align: left;
}

.home-event-row--featured .home-event-row__meta--right {
  text-align: right;
}

.home-event-row--featured .home-event-row__when {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}

.home-event-row--featured .home-event-row__where {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #4b5563;
}

.home-event-row--featured .home-event-row__read {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid #35c782;
  border-radius: 999px;
  background: transparent;
  color: #35c782;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.home-event-row--featured .home-event-row__read-text {
  color: #35c782;
}

.home-event-row--featured .home-event-row__read-arrow {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.home-event-row--featured .home-event-row__read-icon {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.home-event-row--featured .home-event-row__read-icon--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.home-event-row--featured .home-event-row__read:hover {
  background: #35c782;
  border-color: #35c782;
  color: #fff;
}

.home-event-row--featured .home-event-row__read:hover .home-event-row__read-text {
  color: #fff;
}

.home-event-row--featured .home-event-row__read:hover .home-event-row__read-icon:not(.home-event-row__read-icon--hover) {
  opacity: 0;
}

.home-event-row--featured .home-event-row__read:hover .home-event-row__read-icon--hover {
  opacity: 1;
}

/* 第二条：图左 + 标题右（与第一条左右对调） */
.home-event-row--featured-reverse .home-event-row__figure {
  grid-column: 1;
  max-width: 100%;
  height: 440px;
  min-height: 440px;
  max-height: 440px;
  justify-self: start;
  padding: 0 0 14px 10px;
}

.home-event-row--featured-reverse .home-event-row__figure::before {
  left: 0;
  right: auto;
}

.home-event-row--featured-reverse .home-event-row__banner {
  grid-column: 2;
  justify-self: end;
  width: min(720px, 118%);
  min-width: min(100%, 620px);
  max-width: none;
  margin-right: 0;
  margin-left: -24%;
  padding: 44px 32px 44px 44px;
  background: linear-gradient(255deg, #2b7fc7 0%, #45b8e8 38%, #5ecf9a 100%);
  border-radius: 0 28px 28px 100px;
}

.home-event-row--featured-reverse .home-event-row__leaf {
  margin-left: auto;
  margin-right: 0;
}

.home-event-row--featured-reverse .home-event-row__headline {
  margin-left: auto;
  text-align: right;
}

.home-event-row--featured-reverse .home-event-row__info {
  grid-column: 2;
  flex-direction: row-reverse;
  padding: 0 0 0 8%;
}

.home-latest-events__all {
  text-align: center;
  margin: 8px 0 0;
  font-size: 15px;
}
.home-latest-events__view-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.home-latest-events__view-line {
  display: block;
  line-height: 1;
}

.home-latest-events__pill {
  display: inline-block;
  color: #2db87a;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.home-latest-events__view-all {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.home-latest-events__view-deco {
  display: block;
  width: min(240px, 88vw);
  max-width: 100%;
  height: auto;
  margin: -6px auto 0;
  pointer-events: none;
  user-select: none;
}

/* —— Our Programs — Swiper 居中三图 —— */
.home-programs {
  padding: 48px 24px 64px;
  background: #fff;
}

.home-programs__inner {
  max-width: var(--layout-max);
  margin: 0 auto;
}

.home-programs .home-section-title {
  margin: 0 0 32px;
  font-size: clamp(1.65rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #111827;
}

.home-programs-swiper-wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.home-programs-swiper {
  width: 100%;
  overflow: hidden;
}

.home-programs-swiper .swiper-wrapper {
  align-items: center;
}

.home-programs-swiper .swiper-slide {
  position: relative;
  width: min(680px, 78vw);
  height: auto;
  flex-shrink: 0;
  transform-origin: center center;
}

.home-programs-swiper .swiper-slide-active {
  z-index: 5;
}

.home-programs-swiper .swiper-slide-prev,
.home-programs-swiper .swiper-slide-next {
  cursor: pointer;
}

.home-programs-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1240 / 775;
  overflow: hidden;
  background: #0c4a6e;
}

.home-programs-swiper .swiper-slide-active .home-programs-card {
  box-shadow: 0 20px 48px rgba(10, 35, 66, 0.18);
}

.home-programs-swiper .swiper-slide-prev .home-programs-card::after,
.home-programs-swiper .swiper-slide-next .home-programs-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 35, 66, 0.35);
  pointer-events: none;
}

.home-programs-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-programs-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-programs-nav svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.5;
}

.home-programs-nav:hover:not(:disabled) {
  opacity: 0.85;
  transform: translateY(-50%) scale(1.06);
}

.home-programs-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.home-programs-nav--prev {
  left: 2%;
}

.home-programs-nav--next {
  right: 2%;
}

.home-programs-caption {
  max-width: 680px;
  margin: 20px auto 0;
  padding: 0 16px;
  text-align: center;
}

.home-programs-caption__title {
  margin: 0 0 8px;
  font-size: clamp(0.95rem, 1.55vw, 1.0625rem);
  font-weight: 600;
  color: #1e293b;
  line-height: 1.5;
}

.home-programs-caption__year {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #64748b;
}

@media (max-width: 767px) {
  .home-programs-nav {
    width: 40px;
    height: 40px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(10, 35, 66, 0.15);
    filter: none;
  }

  .home-programs-nav svg {
    width: 18px;
    height: 18px;
  }

  .home-programs-nav--prev {
    left: 4px;
  }

  .home-programs-nav--next {
    right: 4px;
  }
}

/* —— The Youth Say —— */
.home-youth {
  position: relative;
  padding: 64px 0 0px;
  overflow: hidden;
  background: #fff;
}

.home-youth__deco {
  line-height: 0;
  pointer-events: none;
  user-select: none;
  margin-top: clamp(32px, 5vw, 56px);
}

.home-youth__deco-img {
  display: block;
  width: 100%;
  height: auto;
}

.home-youth__inner {
  position: relative;
  z-index: 1;
  max-width: var(--layout-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.home-youth__title {
  margin: 0 0 28px;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
}

.home-youth__title-mark {
  display: inline;
  padding: 0 0.15em 0.08em;
  background: linear-gradient(transparent 58%, #fce4e4 58%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.home-youth__links {
  list-style: none;
  margin: 0;
  padding: 0 0 0 34px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.home-youth__links::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(180deg, #48c78e 0%, #3da5e8 50%, #7c3aed 100%);
}

.home-youth__link-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-youth__link-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}

.home-youth__link-item--green .home-youth__link-icon {
  background: #48c78e;
}

.home-youth__link-item--blue .home-youth__link-icon {
  background: #3da5e8;
}

.home-youth__link-item--purple .home-youth__link-icon {
  background: #7c3aed;
}

.home-youth__links a {
  display: inline;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  line-height: 1.35;
  padding: 0 0.12em 0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.home-youth__link-item--green a {
  background: linear-gradient(transparent 62%, rgba(72, 199, 142, 0.22) 62%);
}

.home-youth__link-item--blue a {
  background: linear-gradient(transparent 62%, rgba(61, 165, 232, 0.22) 62%);
}

.home-youth__link-item--purple a {
  background: linear-gradient(transparent 62%, rgba(124, 58, 237, 0.18) 62%);
}

.home-youth__links a:hover {
  opacity: 0.82;
}

.home-youth__profiles {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.home-youth__grid {
  --capsule-w: clamp(72px, 8.5vw, 96px);
  --capsule-h: clamp(168px, 20vw, 220px);
  --capsule-gap: clamp(8px, 1.2vw, 12px);
  display: flex;
  flex-direction: column;
  gap: var(--capsule-gap);
  align-items: center;
}

.home-youth__row {
  display: flex;
  gap: var(--capsule-gap);
  justify-content: center;
}

.home-youth__row--offset {
  transform: translateX(calc((var(--capsule-w) + var(--capsule-gap)) / -2));
}

.home-youth__capsule {
  position: relative;
  display: block;
  width: var(--capsule-w);
  height: var(--capsule-h);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.home-youth__capsule:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(10, 35, 66, 0.14);
}

.home-youth__capsule-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.home-youth__capsule-fill {
  position: absolute;
  inset: 0;
}

.home-youth__capsule--green .home-youth__capsule-fill,
.home-youth__capsule--green .home-youth__capsule-shade {
  background: linear-gradient(180deg, transparent 35%, rgba(72, 199, 142, 0.15) 55%, rgba(46, 165, 110, 0.92) 100%);
}

.home-youth__capsule--blue .home-youth__capsule-fill,
.home-youth__capsule--blue .home-youth__capsule-shade {
  background: linear-gradient(180deg, transparent 35%, rgba(61, 165, 232, 0.12) 55%, rgba(30, 139, 200, 0.92) 100%);
}

.home-youth__capsule--purple .home-youth__capsule-fill,
.home-youth__capsule--purple .home-youth__capsule-shade {
  background: linear-gradient(180deg, transparent 35%, rgba(124, 58, 237, 0.12) 55%, rgba(91, 33, 182, 0.92) 100%);
}

.home-youth__capsule--green.home-youth__capsule--empty .home-youth__capsule-fill {
  background: linear-gradient(180deg, #f0fdf4 0%, #86efac 45%, #22c55e 100%);
}

.home-youth__capsule--blue.home-youth__capsule--empty .home-youth__capsule-fill {
  background: linear-gradient(180deg, #f0f9ff 0%, #7dd3fc 45%, #0284c7 100%);
}

.home-youth__capsule--purple.home-youth__capsule--empty .home-youth__capsule-fill {
  background: linear-gradient(180deg, #faf5ff 0%, #c4b5fd 45%, #7c3aed 100%);
}

.home-youth__capsule--warm .home-youth__capsule-shade {
  background: linear-gradient(180deg, transparent 30%, rgba(239, 68, 68, 0.2) 55%, rgba(185, 28, 28, 0.88) 100%);
}

.home-youth__capsule-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.home-youth__capsule-logo {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  width: 26px;
  height: auto;
  transform: translateX(-50%);
  filter: brightness(0) invert(1);
  opacity: 0.95;
  pointer-events: none;
}

.home-youth__capsule-cta-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  padding: 28px 10px 36px;
  text-align: center;
  font-size: clamp(0.62rem, 1.1vw, 0.72rem);
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  text-transform: lowercase;
}

/* —— 装饰横幅 —— */
.home-art-banner {
  height: 120px;
  background: linear-gradient(
    115deg,
    #0c3d6b 0%,
    #2563eb 18%,
    #48c78e 38%,
    #7c3aed 58%,
    #0ea5e9 78%,
    #e0f2fe 100%
  );
  opacity: 0.95;
  position: relative;
}

.home-art-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 24px,
    rgba(255, 255, 255, 0.06) 24px,
    rgba(255, 255, 255, 0.06) 26px
  );
  pointer-events: none;
}

@media (max-width: 960px) {
  .home-hero__inner {
    grid-template-columns: 1fr;
  }

  .home-values {
    padding-bottom: 72px;
  }

  .home-values__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .home-value--b,
  .home-value--c {
    margin-top: 0;
  }

  .home-mission__grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-event-row--featured {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-event-row--featured .home-event-row__banner {
    margin-right: 0;
    clip-path: none;
    border-radius: 20px;
  }

  .home-event-row--featured .home-event-row__figure,
  .home-event-row--featured-reverse .home-event-row__figure {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    height: 260px;
    min-height: 260px;
    max-height: 260px;
    justify-self: stretch;
  }

  .home-event-row--featured .home-event-row__photo {
    width: 100%;
    height: 260px;
    min-height: 260px;
    max-height: 260px;
  }

  .home-event-row--featured .home-event-row__info {
    grid-column: 1;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 16px;
  }

  .home-event-row--featured .home-event-row__meta--left,
  .home-event-row--featured .home-event-row__meta--right {
    text-align: left;
  }

  .home-event-row--featured-reverse .home-event-row__info {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  .home-event-row--featured-reverse .home-event-row__banner {
    margin-left: 0;
    clip-path: none;
    border-radius: 20px;
  }

  .home-event-row--featured-reverse .home-event-row__headline {
    margin-left: 0;
    text-align: left;
  }

  .home-event-row--featured-reverse .home-event-row__leaf {
    margin-left: 0;
  }

  .home-event-row,
  .home-event-row--right .home-event-row__panel,
  .home-event-row--left .home-event-row__panel {
    grid-template-columns: 1fr;
  }

  .home-event-row--right .home-event-row__media,
  .home-event-row--left .home-event-row__media {
    grid-column: 1;
    grid-row: 1;
    min-height: 220px;
  }

  .home-event-row--right .home-event-row__panel,
  .home-event-row--left .home-event-row__panel {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    pointer-events: auto;
  }

  .home-event-row--right .home-event-row__green,
  .home-event-row--left .home-event-row__green {
    margin: 0;
    max-width: none;
  }

  .home-event-row--right .home-event-row__meta,
  .home-event-row--left .home-event-row__meta {
    padding: 0;
    justify-self: start;
    text-align: left;
    max-width: none;
  }

  .home-event-row--left .home-event-row__meta .home-event-row__when,
  .home-event-row--left .home-event-row__meta .home-event-row__where {
    justify-content: flex-start;
  }

  .home-youth__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .home-youth__profiles {
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .home-youth__row--offset {
    transform: translateX(calc((var(--capsule-w) + var(--capsule-gap)) / -2));
  }
}

@media (max-width: 640px) {
  .home-mission__grid {
    grid-template-columns: 1fr;
  }
}

/* Pre-footer social bar */
.home-pre-footer .join-social-bar {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0;
  background: none;
}

.home-pre-footer .join-social-bar__bg {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.home-pre-footer .join-social-bar__links {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 1;
}

.home-pre-footer .join-social-bar__links a {
  width: auto;
  height: auto;
  padding: 4px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-pre-footer .join-social-bar__links a:hover {
  transform: translateY(-3px) scale(1.08);
  opacity: 0.85;
  background: transparent;
  box-shadow: none;
}

.home-pre-footer .join-social-bar__links a img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
