@charset "utf-8";

/* 首页模块一：阳光学校轮播（居中带框，不再铺满全屏） */
.px-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding: 0;
  background: transparent;
}

.home-hero__box {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: #111;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-hero__stage {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background-color: #111;
  background-image: url("/images/default-cover.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* 幻灯片 */
.home-hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
  z-index: 0;
}

.home-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.home-hero__slide-bg {
  position: absolute;
  inset: 0;
  background-color: transparent;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-hero__slide-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}

.home-hero__slide-link .home-hero__slide-bg {
  position: absolute;
  inset: 0;
}

.home-hero__slide-mask {
  display: none;
}

.home-hero__daily-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(88px, 12vh, 120px);
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-hero__nav {
  position: absolute;
  top: 50%;
  z-index: 12;
  width: clamp(36px, 4vw, 48px);
  height: clamp(36px, 4vw, 48px);
  margin-top: clamp(-18px, -2vw, -24px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, background 0.2s, visibility 0.2s;
}

.home-hero--has-nav .home-hero__nav {
  opacity: 1;
  visibility: visible;
}

.home-hero__nav:hover {
  background: rgba(0, 0, 0, 0.55);
}

.home-hero__nav--prev {
  left: clamp(12px, 2vw, 28px);
}

.home-hero__nav--next {
  right: clamp(12px, 2vw, 28px);
}

.home-hero__nav--prev::before,
.home-hero__nav--next::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.home-hero__nav--prev::before {
  transform: translateX(2px) rotate(-135deg);
}

.home-hero__nav--next::before {
  transform: translateX(-2px) rotate(45deg);
}

.home-hero__daily-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.home-hero__daily-dot.is-active {
  background: #f5d76e;
  transform: scale(1.15);
}

.home-hero--timeline-mode .home-hero__daily-dots {
  opacity: 1;
  pointer-events: auto;
}

/* 底部信息条 */
.home-hero__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.78) 100%);
}

.home-hero__bar-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(10px, 1.5vh, 14px);
  width: 100%;
  min-height: clamp(56px, 8vh, 88px);
  padding-top: clamp(12px, 2vh, 20px);
  padding-bottom: clamp(12px, 2vh, 24px);
  box-sizing: border-box;
}

.home-hero__caption {
  flex: none;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-right: 0;
  text-align: left;
  font-size: clamp(1.125rem, 1.4vw + 0.85rem, 2.25rem);
  line-height: 1.45;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-hero__caption:empty {
  visibility: hidden;
}

.home-hero__bar-right {
  flex: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 32px);
  margin-left: 0;
}

/* 轮播年份指示器 */
.home-hero__motto {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}

.home-hero__motto-item {
  border: 0;
  background: transparent;
  padding: clamp(4px, 0.6vw, 8px) clamp(6px, 0.9vw, 14px);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1rem, 1.35vw + 0.35rem, 1.5rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: color 0.3s, font-size 0.3s, transform 0.3s;
  position: relative;
}

.home-hero__motto-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #f5d76e;
  transform: translateX(-50%);
  transition: width 0.3s;
}

.home-hero__motto-item:hover {
  color: #fff;
}

.home-hero__motto-item.is-active {
  color: #f5d76e;
  font-size: clamp(1.25rem, 1.75vw + 0.45rem, 1.875rem);
  font-weight: bold;
  transform: translateY(-2px);
}

.home-hero__motto-item.is-active::after {
  width: 70%;
}

.home-hero__motto-line {
  display: block;
  width: clamp(12px, 2vw, 28px);
  height: 2px;
  background: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.home-hero__more {
  font-size: clamp(0.9375rem, 1vw + 0.5rem, 1.125rem);
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: color 0.2s;
}

.home-hero__more:hover {
  color: #f5d76e;
}


/* 响应式：手机长页 — 带框轮播，年份条在图下方 */
@media (max-width: 768px) {
  .page-home .home-panel-target > .home-hero,
  .home-hero {
    height: auto;
    min-height: 0;
    align-items: stretch;
    padding: 0;
    overflow: visible;
  }

  .home-hero__box {
    border-radius: 0;
  }

  .home-hero__stage {
    flex: none;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 200px;
  }

  .home-hero__slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .home-hero__daily-dots {
    bottom: 12px;
  }

  .home-hero__nav {
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }

  .home-hero__nav--prev {
    left: 10px;
  }

  .home-hero__nav--next {
    right: 10px;
  }

  .home-hero__bar {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    background: #12355a;
  }

  .home-hero__bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-height: 0;
    padding: 12px 14px max(12px, env(safe-area-inset-bottom, 0px));
  }

  .home-hero__caption {
    flex: 1 1 100%;
    max-width: 100%;
    padding-right: 0;
    white-space: nowrap;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .home-hero__bar-right {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .home-hero__motto {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .home-hero__motto::-webkit-scrollbar {
    display: none;
  }

  .home-hero__motto-line {
    width: 10px;
  }

  .home-hero__motto-item {
    padding: 8px 8px;
    font-size: 0.8125rem;
    flex-shrink: 0;
  }

  .home-hero__motto-item.is-active {
    font-size: 0.875rem;
    transform: none;
  }

  .home-hero__more {
    font-size: 0.875rem;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .px-wrap {
    padding: 0 16px;
  }

  .home-hero {
    padding: 0;
  }

  .home-hero__caption {
    font-size: 0.875rem;
  }
}
