/* ===== School Page - Campus Recruitment ===== */

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

:root {
  --teal: #1B5563;
  --teal-dark: #164651;
  --red: #D71920;
  --red-hover: #b8141a;
  --green: #6ABF4B;
  --blue: #4A9FD4;
  --orange: #F5A623;
  --black: #000;
  --dark: #111;
  --gray: #666;
  --gray-light: #999;
  --gray-border: #e0e0e0;
  --gray-bg: #f5f5f5;
  --white: #fff;
  --school-page-width: 1520px;
  --school-hero-align-left: max(24px, calc((100vw - var(--school-page-width)) / 2 + 9px));
}

html { scroll-behavior: smooth; }

body.school-page {
  font-family: var(--font-primary);
  color: var(--black);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font: inherit; }

.school-container {
  width: 100%;
  max-width: var(--school-page-width);
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Wow Animations ===== */
.wow { visibility: hidden; }
.animated { visibility: visible; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fadeInUp { animation: fadeInUp 0.8s both; }

/* ===== Hero ===== */
.school-hero {
  position: relative;
  width: 100%;
  padding-top: var(--header-h);
  overflow: hidden;
}

.school-hero-banner {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.school-hero-swiper {
  position: relative;
  width: 100%;
  height: 100%;
}

.school-hero-swiper,
.school-hero-swiper .swiper-wrapper,
.school-hero-swiper .swiper-slide {
  height: 100%;
}

.school-hero-swiper .swiper-slide {
  position: relative;
}

.school-hero-swiper .swiper-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.school-hero-pic {
  display: block;
  width: 100%;
  height: 100%;
}

.school-hero-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.school-hero-pagination {
  position: absolute;
  left: var(--school-hero-align-left);
  right: auto;
  bottom: 83px !important;
  z-index: 10;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: auto;
  pointer-events: auto;
  transform: none !important;
}

.school-hero-pagination.swiper-pagination-horizontal {
  left: var(--school-hero-align-left) !important;
  right: auto !important;
  bottom: 83px !important;
  width: auto !important;
  transform: none !important;
}

.school-hero-pagination .swiper-pagination-bullet {
  width: 14.5px;
  height: 14.5px;
  margin: 0 6px !important;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  opacity: 1;
  border-radius: 50%;
  transition: background 0.3s;
}

.school-hero-pagination .swiper-pagination-bullet:first-child {
  margin-left: 0 !important;
}

.school-hero-pagination .swiper-pagination-bullet-active {
  background: var(--white);
}

.school-hero-copy {
  position: absolute;
  top: 95px;
  left: var(--school-hero-align-left);
  width: 485px;
  max-width: calc(100% - 48px);
  color: var(--white);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}

.school-hero-copy.is-animating {
  animation: schoolHeroCopyIn 0.8s both;
}

@keyframes schoolHeroCopyIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.school-hero-copy h1 {
  width: 475px;
  max-width: 100%;
  font-family: var(--font-80s);
  font-size: 68px;
  font-weight: normal;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0;
}

.school-hero-en {
  width: 465px;
  max-width: 100%;
  font-family: var(--font-80s);
  font-size: 48px;
  font-weight: normal;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 16px 0 0;
  color: var(--white);
}

.school-hero-foot {
  display: none;
}

/* ===== Life Cards ===== */
.life-section {
  margin-top: 180px;
  padding: 0;
  background: var(--white);
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.life-card {
  position: relative;
  width: 100%;
  max-width: 486px;
  max-height: 863px;
  aspect-ratio: 486 / 863;
  overflow: hidden;
  border-radius: 12px;
  display: block;
  justify-self: center;
}

.life-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.life-card:hover img {
  transform: scale(1.04);
}

.life-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 clamp(20px, 2.4vw, 32px) 43px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.58) 100%);
  color: var(--white);
}

.life-cn {
  font-family: var(--font-80s);
  font-size: 50px;
  font-weight: normal;
  line-height: 1;
  margin: 0;
}

.life-en {
  margin: 10px 0 0;
  font-family: var(--font-80s);
  font-size: 18px;
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white);
}

.life-accent {
  display: block;
  width: 44px;
  height: 4px;
  margin-top: 10px;
  background: #DA291C;
}

/* ===== School Awards (独立样式，避免与首页 .awards 冲突) ===== */
.school-awards {
  margin-top: 179px;
  padding: 0;
  background: var(--white);
}

.school-awards-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 83px;
  width: 100%;
  box-sizing: border-box;
}

.school-awards-head-left {
  flex: 0 0 auto;
}

.school-awards-title-wrap {
  display: inline-block;
  max-width: 100%;
}

.school-awards-line {
  width: 100%;
  height: 4px;
  background: #DA291C;
  margin: 0 0 16px;
}

.school-awards-head-left h2 {
  width: fit-content;
  max-width: 100%;
  font-family: var(--font-80s);
  font-size: 48px;
  font-weight: normal;
  line-height: 1.2;
  margin: 0 0 8px;
}

.school-awards-subtitle {
  font-family: var(--font-55s);
  font-size: 24px;
  line-height: 1.1;
  color: var(--dark);
  letter-spacing: 0;
  margin: 0;
}
.school-awards-subtitle br {
  display: none;
}
.school-awards-head-right {
  flex: 0 0 auto;
  padding-top: 20px;
  text-align: left;
}

.school-awards-head-right p {
  font-family: var(--font-80s);
  font-size: 24px;
  font-weight: normal;
  color: var(--black);
  line-height: 1.5;
  text-align: left;
  margin: 0;
}

.school-awards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  width: 100%;
  box-sizing: border-box;
}

.school-award-card {
  min-width: 0;
  padding: 0 0 40px;
  background: var(--white);
  box-sizing: border-box;
}

.school-award-inner {
  position: relative;
}

.school-award-img-box {
  width: 100%;
  max-width: 365px;
  max-height: 365px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  border-radius: 8px;
  overflow: hidden;
}

.school-award-img-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.school-award-card:hover .school-award-img-box img {
  transform: scale(1.06);
}

.school-award-names {
  margin-top: 19px;
}

.school-award-name-line1,
.school-award-name-line2,
.school-award-name-line3 {
  font-family: var(--font-80s);
  font-weight: normal;
  color: var(--black);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

.school-award-name-line1 {
  font-size: 26px;
}

.school-award-name-line2,
.school-award-name-line3 {
  font-size: 26px;
}

/* ===== Our Stories (参考 cktest teams carousel，独立样式) ===== */
.stories-section {
  position: relative;
  margin: 175px 0 0;
  padding-top: 50px;
  background: var(--white);
  overflow: visible;
}

.stories-watermark {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1264px;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.stories-watermark img {
  width: auto;
  max-width: 100%;
  max-height: 683px;
  height: auto;
  display: block;
}

.stories-section > .school-container {
  max-width: 1148px;
  overflow: hidden;
}

.school-stories-carousel {
  margin-top: 65px;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  overflow: visible;
}

.school-stories-carousel .swiper-wrapper {
  max-height: 520px;
}

.school-stories-carousel .swiper-slide {
  height: auto;
  max-height: 520px;
  overflow: visible;
}

.school-story-item {
  position: relative;
  padding: 0;
  height: 100%;
  max-height: 520px;
  overflow: visible;
}

.school-story-body {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.school-story-media {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.school-story-hexagon {
  position: relative;
  width: 100%;
  max-width: 748px;
  aspect-ratio: 748 / 520;
  margin: 0 auto;
  transition: transform 0.5s 0.5s ease;
  will-change: transform;
}

.school-story-hexagon > .school-story-photo {
  width: 100%;
  height: 100%;
  max-width: 748px;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.school-story-mark {
  position: absolute;
  display: block;
  width: clamp(42px, 4.8vw, 63px);
  height: auto;
  pointer-events: none;
  z-index: 3;
}

.school-story-mark-left {
  top: 0;
  left: 0;
}

.school-story-mark-right {
  right: 0;
  top: auto;
  bottom: 0;
}

.school-story-title-wrap {
  position: relative;
  margin-bottom: 29px;
  padding-top: calc(clamp(42px, 4.8vw, 63px) * 53 / 63 + 25px);
}

.school-story-content {
  position: static;
  text-align: center;
  max-width: 368px;
  margin-left: auto;
  margin-right: auto;
}

.story-swiper .swiper-slide:not(.swiper-slide-active) .school-story-media {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.story-swiper .swiper-slide:not(.swiper-slide-active) .school-story-hexagon {
  transform: none;
}

.school-story-title-bg {
  display: inline-block;
  max-width: 100%;
  padding: 6px 10px;
  background: #000;
  box-sizing: border-box;
}

.school-story-title {
  margin: 0;
  font-family: var(--font-80s);
  font-size: 29px;
  font-weight: normal;
  line-height: 1.375;
  color: var(--white);
}

.school-story-desc {
  margin: 0 0 50px;
  font-family: var(--font-55s);
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
  font-weight: normal;
  text-align: justify;
}

.school-story-desc .want-to-say {
  font-family: var(--font-80s);
}

.school-story-author {
  display: block;
  font-family: var(--font-80s);
  font-size: 16px;
  color: var(--black);
}

.school-story-mobile-head,
.school-story-mobile-foot,
.school-story-mark-mobile-left,
.school-stories-pagination-host {
  display: none;
}

.school-stories-pagination {
  position: relative;
  margin-top: 123px;
  margin-bottom: 0;
  z-index: 3;
}

.school-stories-pagination .swiper-pagination-bullet {
  width: 20px;
  height: 20px;
  margin: 0 8px !important;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 50%;
  box-sizing: border-box;
  opacity: 1;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.school-stories-pagination .swiper-pagination-bullet-active {
  background: var(--black);
  border-color: var(--black);
}

.school-stories-nav {
  display: none;
  position: absolute;
  top: 50%;
  align-items: center;
  gap: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: #D9D9D9;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
}

.school-stories-nav::after {
  display: none;
}

.school-stories-nav-line {
  display: block;
  width: 100px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.school-stories-prev .school-stories-nav-line {
  margin-right: -1px;
}

.school-stories-next .school-stories-nav-line {
  margin-left: -1px;
}

.school-stories-nav-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid currentColor;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--white);
  transition: border-color 0.3s ease;
}

.school-stories-nav:hover {
  color: var(--black);
}

.school-stories-nav.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ===== Recruitment Process (同社招流程模块) ===== */
.process-section {
  margin-top: 145px;
  padding: 0 0 80px;
  background: var(--white);
}

.process-section .section-head {
  margin-bottom: 48px;
}

.process-section .section-head.center {
  text-align: center;
}

.process-section .section-head h2 {
  font-family: var(--font-80s);
  font-size: 48px;
  font-weight: normal;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.process-section .section-head p {
  font-family: var(--font-55s);
  font-size: 24px;
  font-weight: normal;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--dark);
  margin: 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  margin-bottom: 0;
}

.process-item {
  min-width: 0;
  box-sizing: border-box;
  padding-left: calc(43px / 2);
  padding-right: calc(43px / 2);
  border-right: 1px solid #D9D9D9;
}

.process-item:last-child {
  border-right: none;
}

.process-media {
  position: relative;
  width: 100%;
  max-width: 315px;
  margin: 0 auto;
}

.process-pic {
  width: 100%;
  max-width: 315px;
  height: auto;
  display: block;
}

.process-rt-icon {
  position: absolute;
  top: 25px;
  right: 20px;
  width: 27%;
  max-width: 100px;
  height: auto;
  display: block;
  pointer-events: none;
}

.process-action {
  text-align: center;
  margin-top: 62px;
}

.school-process-apply {
  display: inline-flex;
  align-items: stretch;
  width: 331px;
  max-width: 100%;
  height: 54px;
  background: #DA291C;
  border-radius: 27px;
  overflow: hidden;
}

.school-process-apply-link {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  padding: 0 8px;
  color: var(--white);
  font-family: var(--font-55s);
  font-size: 16px;
  font-weight: normal;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  transition: none;
}

.school-process-apply-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #680f14;
  border-radius: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0s linear 0.35s;
}

.school-process-apply-link:hover::before {
  transform: scaleX(1);
  transform-origin: left center;
  border-right-color: transparent;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0s linear 0.35s;
}

.school-process-apply-link:not(:hover)::before {
  transform: scaleX(0);
  transform-origin: left center;
  border-right-color: #fff;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0s linear 0s;
}

.school-process-apply-link span {
  position: relative;
  z-index: 1;
}

.school-process-apply-link:hover {
  background: transparent;
}

.school-process-apply-link:last-child::before,
.school-process-apply-link:last-child:hover::before,
.school-process-apply-link:last-child:not(:hover)::before {
  transform-origin: right center;
}

.school-process-apply-divider {
  flex-shrink: 0;
  width: 1px;
  height: 20px;
  align-self: center;
  background: var(--white);
}

/* ===== FAQ (参考首页 mission-right 手风琴) ===== */
.faq-section {
  padding: 80px 0;
  background: var(--white);
}

.faq-head {
  text-align: center;
  margin-bottom: 48px;
}

.faq-title {
  margin: 0 0 8px;
  font-family: var(--font-80s);
  font-size: 48px;
  font-weight: normal;
  line-height: 1.2;
  color: var(--black);
}

.faq-subtitle {
  margin: 0;
  font-family: var(--font-55s);
  font-size: 24px;
  font-weight: normal;
  line-height: 1.2;
  color: var(--black);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.faq-col {
  min-width: 0;
}

.school-faq-accordion {
  width: 100%;
}

.school-faq-acc-item {
  border-bottom: 1px solid #888888;
}

.school-faq-acc-item:first-child {
  border-top: 1px solid #888888;
}

.school-faq-acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 38px 0;
  border: none;
  background: transparent;
  color: var(--black);
  text-align: left;
  cursor: pointer;
}

.school-faq-acc-title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-80s);
  font-size: 22px;
  line-height: 1.3;
  font-weight: normal;
  text-align: justify;
}

.school-faq-acc-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 16px;
}

.school-faq-acc-arrow img {
  display: block;
  width: 32px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0);
  transform-origin: center center;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.school-faq-acc-item.is-open .school-faq-acc-arrow img {
  transform: scaleY(-1);
}

.school-faq-acc-panel {
  height: 0;
  overflow: hidden;
  transition: height 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.school-faq-acc-panel-inner {
  overflow: hidden;
  min-height: 0;
  max-width: calc(100% - 56px);
  padding: 0 0 38px;
  font-family: var(--font-55s);
  font-size: 14px;
  line-height: 1.7;
  color: #474747;
  box-sizing: border-box;
}

.school-faq-acc-panel-inner p {
  font-family: var(--font-55s);
  font-size: 16px;
  line-height: 1.7;
  color: #474747;
  margin: 0;
  text-align: justify;
}

.school-faq-acc-panel-inner ul {
  margin: 8px 0;
  padding-left: 1.4em;
  list-style: disc;
}

.school-faq-acc-panel-inner li {
  font-family: var(--font-55s);
  font-size: 16px;
  line-height: 1.7;
  color: #474747;
  margin: 0;
}

/* ===== Responsive ===== */

/* --- Wide desktop --- */
@media (min-width: 1620px) {
  .school-stories-nav {
    display: flex;
  }

  .school-stories-prev {
    left: 80px;
  }

  .school-stories-next {
    right: 80px;
  }
}

@media (min-width: 1620px) and (max-width: 1779px) {
  .school-stories-nav-line {
    width: 50px;
  }
}

/* --- Desktop --- */
@media (min-width: 1200px) {
  .stories-section {
    padding-top: 80px;
  }
}

@media (min-width: 992px) {
  .stories-section {
    margin: 175px 0 0;
    padding-top: 20px;
  }

  .school-stories-carousel {
    overflow: hidden;
  }

  .school-stories-carousel .swiper-slide {
    overflow: hidden;
  }

  .school-story-item {
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .school-story-body {
    display: grid;
    grid-template-columns: minmax(0, 368px) minmax(0, 748px);
    gap: 32px;
    align-items: stretch;
    justify-content: start;
    max-width: 1148px;
    max-height: none;
    margin: 0 auto;
  }

  .school-story-media {
    margin-bottom: 0;
    z-index: 1;
    max-width: 748px;
    justify-self: start;
  }

  .school-story-hexagon {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .school-story-content {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    max-width: 368px;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 5;
    margin-left: 0;
    margin-right: auto;
    box-sizing: border-box;
  }

  .school-story-content .school-story-title-wrap {
    flex-shrink: 0;
  }

  .school-story-content .school-story-desc {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin-bottom: 24px;
    padding-right: 30px;
    -webkit-overflow-scrolling: touch;
  }

  .school-story-content .school-story-author {
    flex-shrink: 0;
    margin-top: auto;
  }

  .school-story-content.is-visible {
    opacity: 1;
    transform: none;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
  }

  .story-swiper .swiper-slide:not(.swiper-slide-active) .school-story-content {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .school-story-desc {
    padding-right: 30px;
  }
}

@media (min-width: 992px) and (max-width: 1360px) {
  .stories-section > .school-container {
    max-width: none;
    width: 100%;
    padding-left: clamp(15px, 3vw, 48px);
    padding-right: clamp(15px, 3vw, 48px);
    box-sizing: border-box;
  }

  .school-stories-carousel .swiper-wrapper,
  .school-stories-carousel .swiper-slide,
  .school-story-item {
    max-height: clamp(420px, 38vw, 520px);
  }

  .school-story-body {
    grid-template-columns: minmax(0, clamp(240px, 26vw, 368px)) minmax(0, clamp(280px, 52vw, 748px));
    gap: clamp(16px, 2vw, 32px);
    max-width: 100%;
    justify-content: center;
    margin: 0 auto;
  }

  .school-story-content {
    /*max-height: clamp(420px, 38vw, 520px);*/
    max-height: unset;
  }

  .school-story-content .school-story-desc {
    margin-bottom: clamp(16px, 2vw, 24px);
    padding-right: clamp(12px, 1.6vw, 40px);
  }

  .school-story-media {
    max-width: 100%;
  }

  .school-story-hexagon {
    max-width: min(100%, 748px);
  }

  .school-story-hexagon > .school-story-photo {
    max-width: 100%;
    max-height: clamp(320px, 36vw, 520px);
  }

  .school-story-title-wrap {
    margin-bottom: clamp(18px, 2.2vw, 29px);
    padding-top: calc(clamp(34px, 3.8vw, 63px) * 53 / 63 + clamp(14px, 1.8vw, 25px));
  }

  .school-story-mark {
    width: clamp(34px, 3.8vw, 63px);
  }

  .school-story-title {
    font-size: clamp(22px, 2.4vw, 32px);
  }

  .school-story-title-bg {
    padding: clamp(4px, 0.5vw, 6px) clamp(8px, 1vw, 10px);
  }

  .school-story-desc {
    margin-bottom: clamp(28px, 3.6vw, 50px);
    padding-right: clamp(12px, 1.6vw, 40px);
    font-size: clamp(14px, 1.2vw, 16px);
  }

  .school-story-author {
    font-size: clamp(14px, 1.2vw, 16px);
  }

  .school-stories-pagination {
    margin-top: clamp(80px, 9vw, 123px);
  }
}

@media (min-width: 768px) {
  .school-stories-carousel .swiper-slide {
    transition: transform 0.25s ease;
  }
}

/* --- Container padding --- */
@media (min-width: 768px) and (max-width: 1600px) {
  .life-section .school-container,
  .school-awards .school-container {
    max-width: none;
    width: 100%;
    padding-left: clamp(15px, 3vw, 48px);
    padding-right: clamp(15px, 3vw, 48px);
    box-sizing: border-box;
  }
}

@media (min-width: 769px) and (max-width: 1650px) {
  .faq-title {
    font-size: clamp(40px, 5.5vw, 48px);
  }

  .school-faq-acc-title {
    font-size: clamp(18px, 1.45vw, 24px);
  }

  .school-faq-acc-panel-inner p {
    font-size: clamp(14px, 1vw, 16px);
  }
}

@media (max-width: 1650px) {
  .faq-section .school-container {
    max-width: none;
    width: 100%;
    padding-left: clamp(15px, 3vw, 48px);
    padding-right: clamp(15px, 3vw, 48px);
    box-sizing: border-box;
  }

  .faq-grid {
    gap: 0 clamp(15px, 3vw, 48px);
  }
}

@media (max-width: 1520px) {
  .process-section .school-container {
    max-width: none;
    width: 100%;
    padding-left: clamp(15px, 3vw, 48px);
    padding-right: clamp(15px, 3vw, 48px);
    box-sizing: border-box;
  }
}

/* --- Tablet / mobile --- */
@media (max-width: 991px) {
  .stories-section > .school-container {
    max-width: 100%;
  }

  .school-stories-carousel .swiper-wrapper,
  .school-stories-carousel .swiper-slide,
  .school-story-item {
    max-height: none;
  }

  .school-story-hexagon > .school-story-photo {
    max-height: none;
  }
}

@media (max-width: 1024px) {
  .school-hero-banner {
    height: auto;
    overflow: visible;
  }

  .school-hero-swiper,
  .school-hero-swiper .swiper-wrapper,
  .school-hero-swiper .swiper-slide {
    height: auto;
  }

  .school-hero-swiper .swiper-slide {
    display: block;
  }

  .school-hero-swiper .swiper-slide .school-hero-copy {
    display: none;
  }

  .school-hero-foot {
    display: block;
    background: var(--white);
  }

  .school-hero-copy--fixed {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: none;
    padding: 25px 14px 0;
    color: var(--black);
    background: var(--white);
    box-sizing: border-box;
    opacity: 1;
    pointer-events: auto;
  }

  .school-hero-copy--fixed br {
    display: none;
  }

  .school-hero-copy--fixed h1 {
    width: 100%;
    max-width: none;
    font-family: var(--font-80s);
    font-size: 28px;
    font-weight: normal;
    line-height: 1.2;
    color: var(--black);
  }

  .school-hero-copy--fixed .school-hero-en {
    width: 100%;
    max-width: none;
    font-family: var(--font-80s);
    font-size: 26px;
    font-weight: normal;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0;
    color: var(--black);
  }

  .school-hero-foot .school-hero-pagination {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto;
    margin: 25px 0 0;
    padding: 0 14px 24px;
    line-height: 0;
    transform: none !important;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    pointer-events: auto;
  }

  .school-hero-foot .school-hero-pagination.swiper-pagination-horizontal {
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    transform: none !important;
  }

  .school-hero-foot .school-hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 5px !important;
    background: transparent;
    border: 1px solid var(--black);
    opacity: 1;
  }

  .school-hero-foot .school-hero-pagination .swiper-pagination-bullet:first-child {
    margin-left: 0 !important;
  }

  .school-hero-foot .school-hero-pagination .swiper-pagination-bullet-active {
    background: var(--black);
    border-color: var(--black);
  }

  .school-hero-pic {
    position: relative;
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
  }

  .school-hero-pic img {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .life-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.5vw, 20px);
  }

  .life-cn {
    font-size: clamp(26px, 3vw, 50px);
  }

  .life-en {
    font-size: clamp(14px, 1.6vw, 18px);
  }

  .school-awards-header {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 56px;
  }
  .school-awards-line {
    background-color: #000000;
  }
  .school-awards-head-left h2 {
    font-size: clamp(24px, 5.5vw, 48px);
    margin-bottom: 0;
  }

  .school-awards-subtitle {
    font-size: clamp(16px, 5.5vw, 24px);
  }
  .school-awards-subtitle br {
    display: block;
  }
  .school-awards-head-right p {
    font-size: clamp(14px, 5.5vw, 24px);
  }
  .school-awards-head-right {
    padding-top: 0;
  }

  .school-awards-grid {
    --awards-line-gap: 15px;
    position: relative;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .school-awards-grid::before,
  .school-awards-grid::after {
    display: none;
  }

  .school-award-card {
    position: relative;
    padding: 15px;
    padding-bottom: 15px;
    box-sizing: border-box;
  }

  .school-award-card:nth-child(1)::after,
  .school-award-card:nth-child(3)::after {
    content: '';
    position: absolute;
    right: 0;
    width: 1px;
    background: #D9D9D9;
    pointer-events: none;
    z-index: 1;
  }

  .school-award-card:nth-child(1)::after {
    top: 15px;
    bottom: calc(15px + var(--awards-line-gap));
  }

  .school-award-card:nth-child(3)::after {
    top: calc(15px + var(--awards-line-gap));
    bottom: 15px;
  }

  .school-award-card:nth-child(1)::before,
  .school-award-card:nth-child(2)::before {
    content: '';
    position: absolute;
    bottom: 0;
    height: 1px;
    background: #D9D9D9;
    pointer-events: none;
    z-index: 1;
  }

  .school-award-card:nth-child(1)::before {
    left: 15px;
    right: calc(15px + var(--awards-line-gap));
  }

  .school-award-card:nth-child(2)::before {
    left: calc(15px + var(--awards-line-gap));
    right: 15px;
  }

  .school-award-img-box {
    margin: 0 auto;
    max-width: 100%;
    aspect-ratio: 1 / 0.7;
  }

  .school-award-names {
    margin-top: 12px;
  }

  .school-award-card:nth-child(n+3) {
    padding-top: calc(15px + var(--awards-line-gap));
  }
  .school-award-card:nth-child(odd){
    padding-left: 0;
  }
  .school-award-card:nth-child(even){
    padding-right: 0;
  }
  .stories-section {
    margin-top: 34px;
    padding-top: 0;
    display: block;
    overflow: visible;
  }

  .stories-watermark {
    display: none !important;
  }

  .stories-section > .school-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
    overflow: visible;
  }

  .school-stories-carousel {
    margin-top: 0;
    overflow: hidden;
    position: relative;
  }

  .school-stories-pagination-host {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    z-index: 10;
    pointer-events: none;
  }

  .school-stories-pagination-host .school-stories-pagination {
    position: absolute;
    left: 20px;
    bottom: 25px;
    top: auto;
    margin: 0;
    width: auto;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 0;
    pointer-events: auto;
  }

  .school-stories-carousel .swiper-wrapper,
  .school-stories-carousel .swiper-slide,
  .school-story-item {
    max-height: none;
  }

  .school-story-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    gap: 0;
  }

  .school-story-content {
    display: none !important;
  }

  .school-story-mobile-head,
  .school-story-mobile-foot {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .school-story-mobile-head {
    margin: 0 0 25px;
    text-align: left;
  }

  .school-story-mobile-head .school-story-title-bg {
    display: inline-block;
    max-width: 100%;
    padding: 6px 10px;
    background: #000;
    box-sizing: border-box;
  }

  .school-story-mobile-head .school-story-title {
    margin: 0;
    font-family: var(--font-80s);
    font-size: 24px;
    font-weight: normal;
    line-height: 1.375;
    color: var(--white);
  }

  .school-story-media {
    width: 100%;
    max-width: 100%;
    margin: 0 0 0;
    padding: 50px 0;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 349 / 398;
    background-image: url('../images/xiaozhao/m-ourstories.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
  }

  .school-story-mark-mobile-left,
  .school-story-mark-right {
    display: block;
    width: clamp(34px, 9vw, 50px);
    height: auto;
    z-index: 2;
  }

  .school-story-mark-mobile-left {
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
  }

  .school-story-mark-right {
    top: auto;
    left: auto;
    right: 0;
    bottom: 0;
  }

  .school-story-hexagon {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    flex: 0 1 auto;
    align-self: center;
  }

  .school-story-hexagon > .school-story-photo {
    max-width: 100%;
    max-height: none;
  }

  .school-story-mobile-foot {
    text-align: center;
    margin-top: -20px;
  }

  .school-story-mobile-foot .school-story-desc {
    margin: 0 0 16px;
    font-family: var(--font-55s);
    font-size: 14px;
    line-height: 1.6;
    color: var(--black);
    text-align: justify;
  }

  .school-story-mobile-foot .school-story-author {
    font-family: var(--font-80s);
    font-size: 16px;
    line-height: 1.3;
    color: var(--black);
    text-align: justify;
  }

  .school-stories-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 5px !important;
    background: var(--white);
    border: 1px solid var(--white);
    opacity: 1;
  }

  .school-stories-pagination .swiper-pagination-bullet-active {
    background: #da291c;
    border-color: #da291c;
  }

  .story-swiper .swiper-slide:not(.swiper-slide-active) .school-story-mobile-head,
  .story-swiper .swiper-slide:not(.swiper-slide-active) .school-story-mobile-foot {
    opacity: 0;
    visibility: hidden;
  }

  .school-stories-nav {
    display: none;
  }

  .life-section {
    margin-top: 64px;
  }

  .school-awards {
    margin-top: 64px;
  }
  .process-section {
    margin-top: 64px;
    padding-bottom: 0;
  }
  .process-section .school-container {
    max-width: none;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
  .process-section .section-head h2 {
    font-size: clamp(26px, 4.5vw, 48px);
    margin-bottom: 0;
  }
  .process-section .section-head p {
    font-size: clamp(16px, 4vw, 24px);
    line-height: 1.4;
  }
  .process-section .section-head {
    margin-bottom: 24px;
  }
  .process-grid {
    --process-line-gap: 15px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    margin: 0;
    column-gap: 0;
    row-gap: 0;
  }

  .process-item {
    position: relative;
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 15px;
    border: none;
    box-sizing: border-box;
  }

  .process-item:last-child {
    padding-right: 15px;
    border-right: none;
  }

  .process-item:nth-child(1)::after,
  .process-item:nth-child(3)::after {
    content: '';
    position: absolute;
    right: 0;
    width: 1px;
    background: #D9D9D9;
  }

  .process-item:nth-child(1)::after {
    top: 15px;
    bottom: calc(15px + var(--process-line-gap));
  }

  .process-item:nth-child(3)::after {
    top: calc(15px + var(--process-line-gap));
    bottom: 15px;
  }

  .process-item:nth-child(1)::before,
  .process-item:nth-child(2)::before {
    content: '';
    position: absolute;
    bottom: 0;
    height: 1px;
    background: #D9D9D9;
  }

  .process-item:nth-child(1)::before {
    left: 15px;
    right: calc(15px + var(--process-line-gap));
  }

  .process-item:nth-child(2)::before {
    left: calc(15px + var(--process-line-gap));
    right: 15px;
  }

  .process-media {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .process-pic {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 315 / 230;
    object-fit: contain;
    display: block;
  }

  .process-rt-icon {
    width: clamp(40px, 22%, 70px);
  }
  .process-action {
    margin-top: 32px;
  }
  .school-process-apply {
    width: 75%;
    max-width: 331px;
  }
  .school-process-apply-link {
    font-size: clamp(14px, 3.8vw, 16px);
  }
  .faq-section {
    padding: 64px 0 0;
  }
  .faq-head {
    margin-bottom: 24px;
  }
  .faq-title {
    font-size: clamp(26px, 4.5vw, 72px);
    margin-bottom: 0;
  }
  .faq-subtitle {
    font-size: clamp(16px, 4vw, 24px);
    line-height: 1.4;
  }
  .school-faq-acc-title {
    font-size: clamp(18px, 4.5vw, 18px);
  }
  .school-faq-acc-panel-inner p {
    font-size: clamp(14px, 4.5vw, 16px);
  }
  .school-faq-acc-arrow {
    width: clamp(20px, 4.5vw, 32px);
  }
  .school-faq-acc-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .school-hero-pic {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
  }

  .life-section .school-container {
    max-width: none;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .life-grid {
    grid-template-columns: 1fr;
    max-width: none;
    width: 100%;
    margin: 0;
  }

  .life-card {
    max-width: 100%;
    aspect-ratio: 486 / 863;
  }

  .life-cn {
    font-size: clamp(38px, 7vw, 50px);
  }

  .life-en {
    font-size: clamp(16px, 3.8vw, 18px);
  }

  .school-awards {
    margin-top: clamp(64px, 12vw, 179px);
  }

  .school-awards .school-container {
    max-width: none;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .school-awards-grid {
    --awards-line-gap: 12px;
  }

  .school-award-card {
    padding: 12px;
    padding-bottom: 12px;
  }
  .school-award-card:nth-child(odd){
    padding-left: 0;
  }
  .school-award-card:nth-child(even){
    padding-right: 0;
  }
  .school-award-card:nth-child(1)::after {
    top: 12px;
    bottom: calc(12px + var(--awards-line-gap));
  }

  .school-award-card:nth-child(3)::after {
    top: calc(12px + var(--awards-line-gap));
    bottom: 12px;
  }

  .school-award-card:nth-child(1)::before {
    left: 12px;
    right: calc(12px + var(--awards-line-gap));
  }

  .school-award-card:nth-child(2)::before {
    left: calc(12px + var(--awards-line-gap));
    right: 12px;
  }

  .school-award-card:nth-child(n+3) {
    padding-top: calc(12px + var(--awards-line-gap));
  }

  .school-award-img-box {
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 0.6;
  }
  .school-award-names {
    margin-top: 10px;
  }

  .school-award-name-line1 {
    font-size: clamp(15px, 3.5vw, 24px);
  }

  .school-award-name-line2,
  .school-award-name-line3 {
    font-size: clamp(12px, 2.8vw, 20px);
  }

  .faq-grid { grid-template-columns: 1fr; gap: 0; }

  .school-faq-acc-title { font-size: 18px; }
  .school-faq-acc-header { padding: 28px 0; }
}

@media (max-width: 480px) {
  .school-awards-head-left h2 {
    font-size: clamp(26px, 4.5vw, 48px);
  }
  .school-awards-subtitle {
    font-size: clamp(16px, 3.8vw, 24px);
  }
  .school-awards-head-right p {
    font-size: clamp(12px, 3.5vw, 20px);
  }

  .school-award-name-line1 {
    font-size: clamp(15px, 3.2vw, 32px);
  }

  .school-award-name-line2 {
    font-size: clamp(14px, 2vw, 20px);
  }
  .school-award-name-line3 {
    font-size: clamp(12px, 2vw, 20px);
  }
}
