/* 创江教育 - 全局样式 */
:root {
  --ink: #0c1e2e;
  --ink-soft: #1a3348;
  --brand: #386e8f;
  --brand-deep: #2a5570;
  --accent: #d4a017;
  --accent-soft: #f0d78c;
  --nav-bg-start: #0f52aa;
  --nav-bg-end: #2070cc;
  --nav-bg: #ffffff;
  --nav-text: #1a1a1a;
  --nav-active: #0e53ab;
  --nav-hover: #ffb322;
  --paper: #e8f0f5;
  --muted: #5a6e7a;
  --line: rgba(12, 30, 46, 0.1);
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(12, 30, 46, 0.12);
  --nav-h: 80px;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(26, 26, 26, 0.08);
}

.nav-inner {
  position: relative;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  color: var(--white);
  flex-shrink: 0;
  z-index: 2;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
  background: #fff;
  padding: 3px;
}

.logo-img.is-full {
  width: auto;
  height: 66px;
  max-width: 230px;
  border-radius: 10px;
  padding: 2px 4px;
  background: #fff;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  opacity: 0.72;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.nav-item {
  position: relative;
}

.has-dropdown > .nav-link::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform 0.25s;
}

.has-dropdown:hover > .nav-link::after,
.has-dropdown:focus-within > .nav-link::after,
.nav-item:hover > .nav-link::after {
  border-top-color: var(--nav-hover);
}

.has-dropdown:hover > .nav-link::after,
.has-dropdown:focus-within > .nav-link::after {
  transform: rotate(180deg);
}

.nav-link {
  display: block;
  padding: 10px 14px;
  color: var(--nav-text);
  font-size: 0.92rem;
  transition: color 0.25s;
}

.nav-link.is-active {
  color: var(--nav-active);
}

.nav-link:hover,
.nav-item:hover > .nav-link {
  color: var(--nav-hover);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  padding: 8px 0;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s var(--ease);
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 18px;
  color: var(--ink);
  font-size: 0.88rem;
}

.dropdown a:hover {
  background: var(--paper);
  color: var(--brand);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.25s, transform 0.25s;
}

.nav-cta:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nav-text);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---- Banner carousel (HD CSS) ---- */
.banner-carousel {
  position: relative;
  margin-top: var(--nav-h);
  width: 100%;
  aspect-ratio: 2 / 1;
  min-height: 360px;
  max-height: min(80vh, 720px);
  overflow: hidden;
  /* 亮色杂乱背景：冷白皮白字，避免暖金显旧 */
  color: #f7fbff;
  background: #1a3344;
  isolation: isolate;
}

.banner-bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  /* 完整显示整张图，铺满轮播区域，左右不留空、不裁切 */
  object-fit: fill;
  object-position: center center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

.banner-bg-photo.is-visible {
  opacity: 1;
}

.banner-track {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition:
    opacity 0.7s var(--ease),
    visibility 0.7s var(--ease),
    transform 0.9s var(--ease);
  pointer-events: none;
}

.banner-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
}

.banner-bg::before,
.banner-bg::after {
  content: none;
}

.banner-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 96px));
  padding-block: clamp(36px, 6vw, 72px);
}

.banner-slide:has(.banner-badge) .banner-inner {
  max-width: calc(100% - min(360px, 34vw));
}

.banner-slide:has(.banner-rank-group) .banner-inner {
  max-width: calc(100% - min(460px, 44vw));
}

.banner-rank-group {
  position: absolute;
  right: clamp(28px, 4.5vw, 64px);
  top: 54%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 0;
  transform: translateY(-48%);
  opacity: 0;
  pointer-events: none;
}

.banner-slide.is-active .banner-rank-group {
  animation: bannerRankIn 0.9s var(--ease) 0.28s forwards;
}

.banner-rank-group .banner-badge {
  position: relative;
  right: auto;
  top: auto;
  transform: none;
  opacity: 1;
  width: min(280px, 28vw);
  animation: none;
  margin-left: -6px;
}

.banner-rank-group .banner-top1 {
  margin-bottom: clamp(2px, 0.6vw, 8px);
  margin-right: -4px;
  opacity: 1;
  transform: none;
  animation: none;
  z-index: 1;
}

.banner-slide.is-active .banner-rank-group .banner-top1-text {
  animation: bannerTop1Float 3.8s ease-in-out 1s infinite;
}

.banner-rank-group .banner-top1-text {
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
}

.banner-top1 {
  position: relative;
  margin-bottom: clamp(10px, 1.8vw, 18px);
  opacity: 0;
  transform: translateY(18px);
}

.banner-slide.is-active .banner-top1 {
  animation: bannerRise 0.75s var(--ease) 0.1s forwards;
}

.banner-top1-text {
  display: inline-block;
  font-family: Arial Black, Impact, "Noto Sans SC", sans-serif;
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff4c2 0%, #f0d78c 22%, #d4a017 48%, #a67c00 72%, #f7e7b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(120, 80, 0, 0.22);
  filter:
    drop-shadow(0 2px 0 #8a6508)
    drop-shadow(0 4px 0 #6e5006)
    drop-shadow(0 8px 0 #4a3604)
    drop-shadow(0 16px 28px rgba(12, 30, 46, 0.35));
  transform: perspective(600px) rotateX(12deg) rotateY(-8deg);
  transform-origin: left bottom;
}

.banner-slide.is-active .banner-top1-text {
  animation: bannerTop1Float 3.8s ease-in-out 1s infinite;
}

@keyframes bannerTop1Float {
  0%,
  100% {
    transform: perspective(600px) rotateX(12deg) rotateY(-8deg) translateY(0);
  }
  50% {
    transform: perspective(600px) rotateX(10deg) rotateY(-4deg) translateY(-10px);
  }
}

.banner-ribbon {
  display: inline-block;
  position: relative;
  margin-bottom: clamp(16px, 2.4vw, 24px);
  padding: 8px 28px 8px 16px;
  background: var(--accent);
  color: var(--ink);
  font-size: clamp(0.82rem, 1.35vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  opacity: 0;
  transform: translateY(16px);
}

.banner-slide.is-active .banner-ribbon {
  animation: bannerRise 0.7s var(--ease) 0.12s forwards;
}

.banner-title {
  font-family: var(--font-body);
  font-size: clamp(1.85rem, 4.6vw, 3.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.28;
  color: #f7fbff;
  text-shadow:
    0 0 1px rgba(12, 30, 46, 0.95),
    0 1px 0 rgba(12, 30, 46, 0.85),
    0 2px 4px rgba(12, 30, 46, 0.7),
    0 4px 16px rgba(12, 30, 46, 0.45),
    0 8px 28px rgba(12, 30, 46, 0.28);
  margin-bottom: clamp(18px, 3vw, 28px);
}

.banner-title span {
  display: block;
  opacity: 0;
  transform: translateY(22px);
}

.banner-slide.is-active .banner-title span:nth-child(1) {
  animation: bannerRise 0.75s var(--ease) 0.22s forwards;
}

.banner-slide.is-active .banner-title span:nth-child(2) {
  animation: bannerRise 0.75s var(--ease) 0.34s forwards;
}

.banner-features {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 2.8vw, 28px);
  padding: 11px clamp(26px, 3.8vw, 44px);
  border: none;
  color: #f7fbff;
  background:
    linear-gradient(rgba(180, 214, 236, 0.95), rgba(180, 214, 236, 0.95)) center / calc(100% - 28px) 1.5px no-repeat,
    linear-gradient(rgba(180, 214, 236, 0.95), rgba(180, 214, 236, 0.95)) center / calc(100% - 28px) 1.5px no-repeat,
    linear-gradient(105deg, rgba(12, 30, 46, 0.72), rgba(26, 51, 72, 0.62));
  background-position: center top, center bottom, center;
  background-size:
    calc(100% - 28px) 1.5px,
    calc(100% - 28px) 1.5px,
    100% 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px rgba(12, 30, 46, 0.28);
  font-size: clamp(0.82rem, 1.4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(12, 30, 46, 0.45);
  opacity: 0;
  transform: translateY(18px);
  position: relative;
}

.banner-features::before,
.banner-features::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16px;
  border-top: 1.5px solid rgba(180, 214, 236, 0.95);
  border-bottom: 1.5px solid rgba(180, 214, 236, 0.95);
}

.banner-features::before {
  left: 0;
  border-left: 1.5px solid rgba(180, 214, 236, 0.95);
  transform: skewX(28deg);
  transform-origin: left center;
}

.banner-features::after {
  right: 0;
  border-right: 1.5px solid rgba(180, 214, 236, 0.95);
  transform: skewX(-28deg);
  transform-origin: right center;
}

.banner-sep {
  width: 1px;
  height: 0.9em;
  background: rgba(180, 214, 236, 0.55);
  flex-shrink: 0;
}

.banner-slide.is-active .banner-features {
  animation: bannerRise 0.75s var(--ease) 0.46s forwards;
}

@keyframes bannerRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(12, 30, 46, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}

.banner-nav:hover {
  color: var(--white);
  background: rgba(12, 30, 46, 0.45);
  border-color: rgba(255, 255, 255, 0.4);
}

.banner-prev { left: 16px; }
.banner-next { right: 16px; }

.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.25s, transform 0.25s;
}

.banner-dot.is-active,
.banner-dot:hover {
  background: var(--accent-soft);
  transform: scale(1.15);
}

.banner-badge {
  position: absolute;
  right: clamp(36px, 5.5vw, 80px);
  top: 50%;
  z-index: 2;
  width: min(300px, 30vw);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-52%);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.banner-badge-top1 {
  position: absolute;
  left: 0;
  bottom: 4%;
  z-index: 3;
  font-family: Arial Black, Impact, "Noto Sans SC", sans-serif;
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff4c2 0%, #f0d78c 22%, #d4a017 48%, #a67c00 72%, #f7e7b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(120, 80, 0, 0.22);
  filter:
    drop-shadow(0 2px 0 #8a6508)
    drop-shadow(0 4px 0 #6e5006)
    drop-shadow(0 7px 0 #4a3604)
    drop-shadow(0 12px 20px rgba(12, 30, 46, 0.32));
  transform: translateX(-108%) rotateX(12deg) rotateY(-8deg);
  transform-origin: right bottom;
  pointer-events: none;
}

.banner-slide.is-active .banner-badge {
  animation: bannerBadgeIn 0.9s var(--ease) 0.28s forwards;
}

.banner-slide.is-active .banner-badge-frame {
  animation: bannerBadgeFloat 4.5s ease-in-out 1.2s infinite;
}

.banner-slide.is-active .banner-badge-stage {
  animation: bannerBadgeShadow 4.5s ease-in-out 1.2s infinite;
}

.banner-badge-stage {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -10%;
  height: 22%;
  background: radial-gradient(ellipse at center, rgba(12, 30, 46, 0.35), transparent 72%);
  filter: blur(8px);
}

.banner-badge-frame {
  position: relative;
  padding: 12px;
  background:
    linear-gradient(145deg, #f7e7b0 0%, #d4a017 24%, #fff1c2 48%, #b8860b 76%, #f0d78c 100%);
  box-shadow:
    0 28px 55px rgba(12, 30, 46, 0.32),
    0 10px 22px rgba(12, 30, 46, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 6px rgba(120, 80, 0, 0.25);
  transform: perspective(900px) rotateY(-10deg) rotateX(4deg) translateZ(0);
  transform-style: preserve-3d;
}

.banner-slide.is-active .banner-badge-shine::before {
  animation: bannerBadgeShine 3.8s ease-in-out 1.4s infinite;
}

.banner-badge-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 34px 22px 32px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(92, 149, 180, 0.14), transparent 55%),
    linear-gradient(180deg, #fbfefe 0%, #eef5f9 100%);
  border: 1px solid rgba(56, 110, 143, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    0 8px 20px rgba(42, 85, 112, 0.08);
  transform: translateZ(16px);
}

.banner-badge-inner::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(56, 110, 143, 0.14);
  pointer-events: none;
}

.banner-badge-logo {
  width: clamp(120px, 14vw, 168px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  box-shadow:
    0 12px 24px rgba(42, 85, 112, 0.2),
    0 2px 6px rgba(12, 30, 46, 0.08);
}

.banner-badge-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: #2a5570;
}

.banner-badge-text span {
  display: inline-block;
  color: #d4a017;
  font-size: 1.18em;
  margin: 0 3px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.banner-badge-text .banner-badge-focus {
  display: block;
  margin: 6px 0 0;
  font-size: 1.35em;
  letter-spacing: 0.12em;
}

.banner-badge-credit {
  gap: 18px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.banner-credit-seal {
  position: relative;
  width: clamp(118px, 13.5vw, 156px);
  height: clamp(118px, 13.5vw, 156px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff8e0 0%, #f0d78c 28%, #d4a017 58%, #a67c00 100%);
  box-shadow:
    0 14px 28px rgba(42, 85, 112, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.65),
    inset 0 -3px 8px rgba(120, 80, 0, 0.28);
}

.banner-credit-ring {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px dashed rgba(120, 80, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.banner-credit-aaa {
  position: relative;
  z-index: 1;
  margin-top: -6px;
  font-family: Arial Black, Impact, "Noto Sans SC", sans-serif;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #6e5006;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 0 rgba(168, 120, 0, 0.35);
}

.banner-credit-sub {
  position: absolute;
  bottom: 22%;
  z-index: 1;
  font-size: clamp(0.58rem, 0.9vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(110, 80, 6, 0.78);
}

.banner-badge-shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.banner-badge-shine::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -40%;
  width: 45%;
  height: 140%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 45%,
    transparent 70%
  );
  transform: skewX(-18deg);
}

@keyframes bannerBadgeIn {
  from {
    opacity: 0;
    transform: translateY(-36%) translateX(28px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(-52%) translateX(0) scale(1);
  }
}

@keyframes bannerRankIn {
  from {
    opacity: 0;
    transform: translateY(-34%) translateX(24px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(-48%) translateX(0) scale(1);
  }
}

@keyframes bannerBadgeFloat {
  0%,
  100% {
    transform: perspective(900px) rotateY(-10deg) rotateX(4deg) translateY(0);
  }
  50% {
    transform: perspective(900px) rotateY(-4deg) rotateX(6deg) translateY(-12px);
  }
}

@keyframes bannerBadgeShadow {
  0%,
  100% {
    opacity: 0.85;
    transform: scaleX(1);
  }
  50% {
    opacity: 0.55;
    transform: scaleX(0.88);
  }
}

@keyframes bannerBadgeShine {
  0%,
  28% {
    left: -45%;
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  55%,
  100% {
    left: 120%;
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .banner-carousel {
    aspect-ratio: 16 / 10;
    max-height: none;
  }

  .banner-inner {
    width: calc(100% - 88px);
  }

  .banner-slide:has(.banner-badge) .banner-inner,
  .banner-slide:has(.banner-rank-group) .banner-inner {
    max-width: calc(100% - 220px);
  }

  .banner-badge {
    width: min(210px, 34vw);
    right: 20px;
  }

  .banner-rank-group {
    right: 16px;
    gap: 0;
  }

  .banner-rank-group .banner-badge {
    width: min(180px, 30vw);
    margin-left: -4px;
  }

  .banner-rank-group .banner-top1 {
    margin-right: -2px;
  }

  .banner-rank-group .banner-top1-text {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
  }

  .banner-badge-inner {
    gap: 10px;
    padding: 18px 12px 16px;
  }

  .banner-features {
    gap: 10px 14px;
    letter-spacing: 0.06em;
    background: none;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
  }

  .banner-features::before,
  .banner-features::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .banner-carousel {
    aspect-ratio: 4 / 5;
    min-height: 420px;
  }

  .banner-inner {
    width: calc(100% - 40px);
  }

  .banner-nav {
    display: none;
  }

  .banner-badge {
    display: none;
  }

  .banner-rank-group {
    display: none;
  }

  .banner-features {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    gap: 10px 16px;
    text-align: center;
  }

  .banner-sep {
    display: none;
  }

  .banner-top1-text {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .banner-title {
    font-size: clamp(1.55rem, 7.2vw, 2rem);
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background:
    linear-gradient(105deg, rgba(12, 30, 46, 0.88) 0%, rgba(14, 107, 92, 0.55) 48%, rgba(12, 30, 46, 0.35) 100%),
    linear-gradient(180deg, transparent 40%, rgba(12, 30, 46, 0.75) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.04'%3E%3Cpath d='M0 40h80M40 0v80'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse at 70% 30%, #1a5c52 0%, #0c1e2e 55%, #071018 100%);
  background-size: cover, cover, 80px 80px, cover;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(212, 160, 23, 0.18), transparent 35%),
    radial-gradient(circle at 15% 80%, rgba(14, 107, 92, 0.25), transparent 40%);
  pointer-events: none;
  animation: heroGlow 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 48px) 0 88px;
  max-width: 720px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
  margin-bottom: 20px;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.15s forwards;
}

.hero-title {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.95);
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.35s forwards;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  margin-bottom: 32px;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.5s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.65s forwards;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-soft);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-dark {
  background: var(--brand);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--brand-deep);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  animation: floatY 2.4s ease-in-out infinite;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
}

@keyframes floatY {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---- Sections ---- */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--white);
}

.about-section {
  background:
    radial-gradient(ellipse 70% 65% at 100% 15%, rgba(92, 149, 180, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 50% at 0% 90%, rgba(56, 110, 143, 0.12), transparent 50%),
    linear-gradient(125deg, #d7e5ee 0%, #e2eef4 46%, #dce9f0 100%);
}

/* ---- About intro page (大道简介风格) ---- */
.about-intro-page {
  background: #fff;
}

.about-intro-hero {
  padding: calc(var(--nav-h) + 48px) 24px 44px;
  text-align: center;
  background: #fff;
}

.about-intro-hero-wrap {
  position: relative;
  display: inline-block;
}

.about-intro-hero-deco {
  position: absolute;
  width: clamp(76px, 12vw, 112px);
  height: clamp(76px, 12vw, 112px);
  border-radius: 50%;
  background: #c8102e;
  top: -20px;
  right: -24px;
  z-index: 0;
}

.about-intro-hero-wrap h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 14px clamp(52px, 10vw, 92px);
  background: #0e53ab;
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(1.65rem, 4.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(14, 83, 171, 0.22);
}

.about-intro-content {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-intro-block {
  border: 1px solid rgba(14, 83, 171, 0.22);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 22px rgba(12, 30, 46, 0.06);
}

.about-intro-heading {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 13px 22px;
  background: linear-gradient(90deg, #0e53ab 0%, #0e53ab 58%, #c8102e 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  box-sizing: border-box;
}

.about-intro-heading::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 100%;
  background: #c8102e;
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
}

.about-intro-heading span {
  position: relative;
  z-index: 1;
}

.about-intro-block p {
  margin: 0;
  padding: 22px 24px 26px;
  color: #2a2a2a;
  font-size: clamp(0.92rem, 1.6vw, 0.98rem);
  line-height: 1.9;
  text-align: justify;
  border-top: 1px solid rgba(14, 83, 171, 0.1);
  background: #fafbfc;
}

.about-intro-photo {
  width: min(1200px, calc(100% - 32px));
  margin: 8px auto 72px;
}

.about-intro-photo img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 640px) {
  .about-intro-hero {
    padding-top: calc(var(--nav-h) + 32px);
    padding-bottom: 32px;
  }

  .about-intro-hero-deco {
    top: -12px;
    right: -14px;
  }

  .about-intro-content {
    gap: 18px;
  }

  .about-intro-block p {
    padding: 18px 16px 20px;
    text-align: left;
  }

  .about-intro-heading {
    padding: 12px 16px;
  }

  .about-intro-heading::after {
    width: 36px;
  }

  .about-intro-photo {
    margin-bottom: 56px;
  }
}

/* ---- Metric strip under 关于创江 ---- */
.metric-strip {
  background: linear-gradient(90deg, #1a4f9c 0%, #5a2d7a 48%, #8b1e3d 100%);
  color: #fff;
  padding: 28px 0;
}

.metric-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.metric-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.metric-item:hover,
.metric-item:focus-visible,
.metric-item.is-active {
  background: #e60012;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  outline: none;
  transform: translateY(-2px);
}

.metric-item:active {
  transform: translateY(0);
}

.metric-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}

.metric-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.metric-num {
  font-family: var(--font-body);
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #fff;
}

.metric-label {
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  font-weight: 400;
  opacity: 0.95;
  letter-spacing: 0.06em;
}

.campus-section {
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
  background:
    radial-gradient(ellipse 70% 60% at 0% 20%, rgba(92, 149, 180, 0.16), transparent 50%),
    radial-gradient(ellipse 65% 55% at 100% 80%, rgba(47, 95, 124, 0.1), transparent 52%),
    linear-gradient(160deg, #cfe0ea 0%, #dce9f0 40%, #d3e3ec 100%);
  overflow: hidden;
}

.campus-band {
  background: transparent;
  color: var(--ink);
  padding: 28px 0 26px;
}

.campus-band-head {
  max-width: none;
  margin: 0;
}

.campus-band-en {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.campus-band-zh {
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.35;
  color: var(--ink);
}

.campus-band-zh::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 14px;
  background: #e60012;
}

.schools-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 50% at 8% 18%, rgba(56, 110, 143, 0.16), transparent 58%),
    radial-gradient(ellipse 48% 42% at 92% 88%, rgba(12, 30, 46, 0.08), transparent 55%),
    linear-gradient(165deg, #eef4f8 0%, #f7fafc 46%, #e8f0f5 100%);
}

.schools-section.is-premium {
  padding-block: 96px;
}

.schools-section .schools-glow {
  position: absolute;
  inset: auto auto -20% -10%;
  width: 52vw;
  height: 52vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 110, 143, 0.14), transparent 68%);
  pointer-events: none;
  filter: blur(8px);
}

.schools-section .container {
  position: relative;
  z-index: 1;
}

.schools-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.schools-head .section-title {
  position: relative;
  letter-spacing: 0.06em;
}

.schools-head .section-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--brand), rgba(56, 110, 143, 0.15));
}

.schools-stage {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  padding: 8px 0 4px;
}

.schools-stage::before,
.schools-stage::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(36px, 6vw, 88px);
  z-index: 2;
  pointer-events: none;
}

.schools-stage::before {
  left: 0;
  background: linear-gradient(90deg, #eef4f8 0%, rgba(238, 244, 248, 0));
}

.schools-stage::after {
  right: 0;
  background: linear-gradient(270deg, #e8f0f5 0%, rgba(232, 240, 245, 0));
}

.schools-cta {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.btn-schools {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 28px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--white);
  background: linear-gradient(135deg, #2f6a8d 0%, #1a3348 100%);
  border: 1px solid rgba(12, 30, 46, 0.08);
  box-shadow: 0 12px 28px rgba(26, 51, 72, 0.18);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), filter 0.28s;
}

.btn-schools:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(26, 51, 72, 0.24);
  filter: brightness(1.05);
}

.services-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 8% 20%, rgba(56, 110, 143, 0.12), transparent 55%),
    radial-gradient(ellipse 45% 40% at 92% 78%, rgba(47, 95, 124, 0.1), transparent 50%),
    linear-gradient(165deg, #e8f0f5 0%, #f4f8fb 55%, #e4eef4 100%);
}

.services-section.is-premium {
  padding-block: 96px;
}

.services-head .section-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--brand), rgba(56, 110, 143, 0.15));
}

.services-section::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 68%);
  pointer-events: none;
  animation: servicesGlow 8s ease-in-out infinite alternate;
}

.services-section::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  left: -80px;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 110, 143, 0.12), transparent 70%);
  pointer-events: none;
  animation: servicesGlow 10s ease-in-out infinite alternate-reverse;
}

.services-section .container {
  position: relative;
  z-index: 1;
}

@keyframes servicesGlow {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translate(-18px, 14px) scale(1.08);
    opacity: 1;
  }
}

.campus-section::before {
  content: none;
}

.campus-section .container {
  position: relative;
  z-index: 1;
}

.section-head {
  margin-bottom: 48px;
  max-width: 560px;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--muted);
  font-size: 1rem;
}

/* ---- Entries ---- */
.entries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.entry {
  background: var(--white);
  padding: 36px 28px;
  transition: background 0.3s, color 0.3s;
}

.entry:hover {
  background: var(--brand);
  color: var(--white);
}

.entry-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 18px;
}

.entry:hover .entry-num {
  color: var(--accent-soft);
}

.entry h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}

.entry p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
  transition: color 0.3s;
}

.entry:hover p {
  color: rgba(255, 255, 255, 0.75);
}

.entry-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.04em;
}

.entry:hover .entry-link {
  color: var(--accent-soft);
}

/* ---- Courses ---- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.course-item {
  position: relative;
  padding: 28px 24px 32px;
  background: var(--white);
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.section-alt .course-item {
  background: var(--paper);
}

.course-item:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.course-tag {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 14px;
}

.course-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 10px;
}

.course-item p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---- About ---- */
.about-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
}

.about-text p:last-of-type {
  margin-bottom: 28px;
}

.about-text .btn {
  margin-bottom: 28px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.stat {
  padding: 24px 20px;
  background: linear-gradient(145deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: var(--white);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.about-panel {
  position: relative;
  min-height: 420px;
  background:
    linear-gradient(160deg, rgba(14, 107, 92, 0.85), rgba(12, 30, 46, 0.9)),
    radial-gradient(circle at 30% 40%, #2a8a78, #0c1e2e 70%);
  color: var(--white);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.about-panel::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: orbit 18s linear infinite;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.about-panel-label {
  position: relative;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--accent-soft);
  margin-bottom: 12px;
}

.about-panel h3 {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin-bottom: 16px;
}

.about-panel p {
  position: relative;
  font-size: 0.92rem;
  opacity: 0.85;
}

.about-photo {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  min-height: 320px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

.about-layout.is-balanced {
  align-items: stretch;
}

.about-layout.is-balanced .about-text p:last-of-type {
  margin-bottom: 0;
}

.about-layout.is-balanced .about-photo {
  position: relative;
  min-height: 0;
  height: auto;
  overflow: hidden;
  align-self: stretch;
}

.about-layout.is-balanced .about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
}

.advantage-panel {
  align-self: stretch;
}

.advantage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 100%;
}

.advantage-card {
  position: relative;
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 28px 24px 26px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(12, 30, 46, 0.08);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.advantage-card::before,
.advantage-card::after {
  content: none;
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(12, 30, 46, 0.12);
}

.advantage-card[data-tone="teal"] {
  --tone: #2f8f78;
  --tone-soft: #e7f6f1;
  --tone-ink: #2a7d69;
}

.advantage-card[data-tone="gold"] {
  --tone: #e0a820;
  --tone-soft: #fff6e0;
  --tone-ink: #d49a12;
}

.advantage-card[data-tone="sky"] {
  --tone: #4a90c8;
  --tone-soft: #e8f3fb;
  --tone-ink: #3d7fb3;
}

.advantage-card[data-tone="coral"] {
  --tone: #e07a4a;
  --tone-soft: #ffeee6;
  --tone-ink: #d36a3a;
}

.advantage-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.advantage-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--tone-ink, var(--brand));
  background: var(--tone-soft, #e8f0f5);
  box-shadow: none;
}

.advantage-num {
  display: none;
}

.advantage-card h3 {
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  color: #222;
  line-height: 1.35;
}

.advantage-card p {
  margin: 0;
  color: #777;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.7;
}

/* ---- Campus mosaic spotlight ---- */
.campus-mosaic {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1.55fr 1.1fr;
  grid-template-rows: minmax(220px, 28vh) minmax(220px, 28vh);
  gap: 0;
  width: 100%;
  margin: 0;
  background: #121820;
  overflow: hidden;
}

.campus-tile {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  background: #121820;
}

.campus-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.42) saturate(0.85);
  transform: scale(1.001);
  transition:
    filter 0.35s var(--ease),
    transform 0.45s var(--ease);
}

.campus-mosaic:hover .campus-tile img,
.campus-mosaic:focus-within .campus-tile img {
  filter: brightness(0.32) saturate(0.75);
}

.campus-mosaic:hover .campus-tile:hover img,
.campus-mosaic:focus-within .campus-tile:focus-visible img,
.campus-tile:hover img,
.campus-tile:focus-visible img {
  filter: brightness(1) saturate(1.05);
  transform: scale(1.04);
}

.campus-tile:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: -2px;
  z-index: 1;
}

/* keep old strip helpers unused but harmless if referenced elsewhere */
.campus-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.campus-item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  color: var(--white);
}

/* ---- News ---- */
.news-list {
  border-top: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s;
}

.news-item:hover {
  padding-left: 12px;
}

.news-date {
  font-family: var(--font-display);
  color: var(--brand);
}

.news-date .day {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.news-date .month {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.news-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  transition: color 0.25s;
}

.news-item:hover .news-body h3 {
  color: var(--brand);
}

.news-body p {
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-more {
  align-self: center;
  font-size: 0.85rem;
  color: var(--brand);
  font-weight: 600;
  white-space: nowrap;
}

/* ---- Contact ---- */
.contact-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 45% at 12% 30%, rgba(56, 110, 143, 0.12), transparent 58%),
    radial-gradient(ellipse 40% 40% at 90% 70%, rgba(212, 160, 23, 0.08), transparent 55%),
    linear-gradient(180deg, #edf4f8 0%, #f7fafc 52%, #e8f0f5 100%);
  color: var(--ink);
  padding: 72px 0;
  border-top: 1px solid rgba(12, 30, 46, 0.06);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  color: var(--ink);
}

.contact-info > p {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-list li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(12, 30, 46, 0.1);
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.contact-list .label {
  flex-shrink: 0;
  width: 80px;
  color: var(--brand);
  font-size: 1rem;
  font-weight: 600;
}

.contact-list a {
  color: var(--brand-deep);
}

.contact-list a:hover {
  color: var(--brand);
}

.contact-map {
  padding: 0;
}

.contact-map h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: var(--ink);
}

.contact-map .map-visual {
  margin-bottom: 16px;
}

.contact-map .map-visual a {
  display: block;
}

.contact-map .map-visual img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: transparent;
  box-shadow: none;
}

.contact-map .map-actions {
  margin-top: 4px;
}

/* ---- Page hero ---- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 64px) 0 56px;
  background:
    linear-gradient(180deg, #f7f8fa 0%, #eef1f4 100%);
  color: var(--ink);
  border-bottom: 1px solid rgba(12, 30, 46, 0.08);
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero.is-schools {
  min-height: auto;
  overflow: visible;
  background:
    linear-gradient(
      105deg,
      rgba(247, 248, 250, 0.52) 0%,
      rgba(247, 248, 250, 0.38) 28%,
      rgba(247, 248, 250, 0.18) 52%,
      rgba(247, 248, 250, 0.06) 100%
    ),
    url("../assets/schools-hero-bg.png") center center / cover no-repeat;
  border-bottom-color: rgba(12, 30, 46, 0.08);
}

.page-hero.is-schools h1 {
  margin-bottom: 24px;
  background: linear-gradient(120deg, #0e53ab 0%, #386e8f 42%, #5a9bb8 72%, #2a5570 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-hero-art {
  position: absolute;
  top: 50%;
  right: max(0px, calc((100% - 1120px) / 2 - 24px));
  width: min(520px, 48vw);
  height: 360px;
  transform: translateY(-46%);
  pointer-events: none;
  z-index: 0;
}

.page-hero-art-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
}

.page-hero-art-glow-a {
  width: 220px;
  height: 220px;
  top: 48px;
  right: 70px;
  background: rgba(56, 110, 143, 0.22);
  animation: heroArtPulse 6.5s ease-in-out infinite;
}

.page-hero-art-glow-b {
  width: 140px;
  height: 140px;
  bottom: 36px;
  right: 180px;
  background: rgba(212, 160, 23, 0.18);
  animation: heroArtPulse 5.2s ease-in-out infinite 1.2s;
}

.page-hero-art-svg {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.page-hero-art-rings {
  transform-origin: 310px 180px;
  animation: heroArtSpin 28s linear infinite;
}

.page-hero-art-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: heroArtFloat 4.8s ease-in-out infinite;
}

.page-hero-art-node.n2 { animation-delay: 0.4s; }
.page-hero-art-node.n3 { animation-delay: 0.8s; }
.page-hero-art-node.n4 { animation-delay: 1.1s; }
.page-hero-art-node.n5 { animation-delay: 0.2s; }
.page-hero-art-node.n6 { animation-delay: 1.4s; }
.page-hero-art-node.n7 { animation-delay: 0.6s; }
.page-hero-art-node.n8 { animation-delay: 1.8s; }

.page-hero-art-marks {
  animation: heroArtBlink 3.6s ease-in-out infinite;
}

.page-hero-art-caps {
  animation: heroArtFloat 5.6s ease-in-out infinite 0.5s;
}

@keyframes heroArtSpin {
  to { transform: rotate(360deg); }
}

@keyframes heroArtFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes heroArtPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.08); }
}

@keyframes heroArtBlink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

@media (max-width: 900px) {
  .page-hero-art {
    width: min(360px, 56vw);
    height: 280px;
    opacity: 0.55;
    right: -24px;
  }
}

@media (max-width: 640px) {
  .page-hero-art {
    opacity: 0.28;
    width: 280px;
    height: 220px;
    top: 58%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-art-rings,
  .page-hero-art-node,
  .page-hero-art-marks,
  .page-hero-art-caps,
  .page-hero-art-glow {
    animation: none !important;
  }
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--ink);
}

.page-hero p {
  color: var(--muted);
  max-width: 520px;
}

.page-hero.is-about {
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(247, 248, 250, 0.28) 0%, rgba(238, 241, 244, 0.12) 100%),
    url("../assets/about-hero-bg.png") center center / cover no-repeat;
  border-bottom-color: rgba(12, 30, 46, 0.06);
}

.page-hero.is-campus {
  overflow: visible;
  background:
    linear-gradient(
      105deg,
      rgba(247, 248, 250, 0.88) 0%,
      rgba(247, 248, 250, 0.62) 34%,
      rgba(247, 248, 250, 0.28) 58%,
      rgba(247, 248, 250, 0.12) 100%
    ),
    url("../assets/campus-hero-bg.png") center center / cover no-repeat;
  border-bottom-color: rgba(12, 30, 46, 0.08);
}

.page-hero.is-weekly .page-hero-inner,
.page-hero.is-guidance .page-hero-inner,
.page-hero.is-exam .page-hero-inner,
.page-hero.is-teambuild .page-hero-inner {
  position: relative;
  display: block;
}

.page-hero.is-weekly .page-hero-copy,
.page-hero.is-guidance .page-hero-copy,
.page-hero.is-exam .page-hero-copy,
.page-hero.is-teambuild .page-hero-copy {
  padding-top: 40px;
  padding-bottom: 38px;
}

.page-hero.is-weekly h1,
.page-hero.is-guidance h1,
.page-hero.is-exam h1,
.page-hero.is-teambuild h1 {
  margin-bottom: 0;
}

.page-hero.is-weekly h1 {
  color: #0e53ab;
}

.page-hero.is-guidance h1 {
  color: #0d7377;
}

.page-hero.is-exam h1 {
  color: #b8860b;
}

.page-hero.is-teambuild h1 {
  color: #2d6a4f;
}

.page-hero.is-weekly {
  overflow: visible;
  background:
    linear-gradient(
      105deg,
      rgba(247, 248, 250, 0.9) 0%,
      rgba(247, 248, 250, 0.68) 34%,
      rgba(247, 248, 250, 0.3) 58%,
      rgba(247, 248, 250, 0.12) 100%
    ),
    url("../assets/weekly-hero-bg.png") center center / cover no-repeat;
  border-bottom-color: rgba(12, 30, 46, 0.08);
}

.page-hero.is-guidance {
  overflow: visible;
  background:
    linear-gradient(
      105deg,
      rgba(247, 248, 250, 0.9) 0%,
      rgba(247, 248, 250, 0.68) 34%,
      rgba(247, 248, 250, 0.3) 58%,
      rgba(247, 248, 250, 0.12) 100%
    ),
    url("../assets/guidance-hero-bg.png") center center / cover no-repeat;
  border-bottom-color: rgba(12, 30, 46, 0.08);
}

.page-hero.is-exam {
  overflow: visible;
  background:
    linear-gradient(
      105deg,
      rgba(247, 248, 250, 0.9) 0%,
      rgba(247, 248, 250, 0.68) 34%,
      rgba(247, 248, 250, 0.3) 58%,
      rgba(247, 248, 250, 0.12) 100%
    ),
    url("../assets/exam-hero-bg.png") center center / cover no-repeat;
  border-bottom-color: rgba(12, 30, 46, 0.08);
}

.page-hero.is-teambuild {
  overflow: visible;
  background:
    linear-gradient(
      105deg,
      rgba(247, 248, 250, 0.9) 0%,
      rgba(247, 248, 250, 0.68) 34%,
      rgba(247, 248, 250, 0.3) 58%,
      rgba(247, 248, 250, 0.12) 100%
    ),
    url("../assets/teambuild-hero-bg.png") center center / cover no-repeat;
  border-bottom-color: rgba(12, 30, 46, 0.08);
}

.page-hero.is-campus .page-hero-inner {
  position: relative;
  display: block;
}

.page-hero.is-campus .page-hero-copy {
  padding-top: 40px;
  padding-bottom: 38px;
}

.page-hero.is-campus .page-hero-copy h1 {
  margin-bottom: 0;
  background: linear-gradient(120deg, #0e53ab 0%, #386e8f 42%, #5a9bb8 72%, #2a5570 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-hero.is-map {
  overflow: visible;
  background:
    linear-gradient(
      105deg,
      rgba(247, 248, 250, 0.88) 0%,
      rgba(247, 248, 250, 0.62) 34%,
      rgba(247, 248, 250, 0.28) 58%,
      rgba(247, 248, 250, 0.12) 100%
    ),
    url("../assets/map-hero-bg.png") center center / cover no-repeat;
  border-bottom-color: rgba(12, 30, 46, 0.08);
}

.page-hero.is-map .page-hero-inner {
  position: relative;
  display: block;
}

.page-hero.is-map .page-hero-copy {
  padding-top: 40px;
  padding-bottom: 38px;
}

.page-hero.is-map .page-hero-copy h1 {
  margin-bottom: 0;
  background: linear-gradient(120deg, #0e53ab 0%, #386e8f 42%, #5a9bb8 72%, #2a5570 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-hero.is-about .page-hero-inner {
  position: relative;
  display: block;
}

.page-hero.is-about .page-hero-copy {
  padding-top: 40px;
  padding-bottom: 38px;
}

.page-hero.is-about .page-hero-copy h1 {
  margin-bottom: 0;
  background: linear-gradient(120deg, #0e53ab 0%, #386e8f 42%, #5a9bb8 72%, #2a5570 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.page-hero-copy {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
}

.page-hero-badges {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: clamp(10px, 1.8vw, 22px);
  margin-right: -8px;
}

.page-hero-badge {
  flex: 0 0 auto;
  filter: drop-shadow(0 18px 28px rgba(12, 30, 46, 0.14));
  animation: heroBadgeFloat 5.5s ease-in-out infinite;
}

.page-hero-badge.is-top1 {
  width: min(145px, 17vw);
  animation-delay: 0s;
}

.page-hero-badge.is-cert {
  width: min(250px, 30vw);
  animation-delay: -2.4s;
}

.page-hero-badge img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes heroBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-badge {
    animation: none;
  }
}

.school-filter-panel {
  position: relative;
  margin-top: 32px;
  width: 100%;
  max-width: none;
  background: #fff;
  border: 1px solid rgba(12, 30, 46, 0.1);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(12, 30, 46, 0.06);
  overflow: hidden;
}

.school-filter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 16px;
  border-bottom: 1px solid rgba(12, 30, 46, 0.06);
}

.school-filter-panel-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.school-filter-panel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.school-filter-panel-toggle:hover {
  color: var(--brand);
}

.school-filter-panel-toggle svg {
  transition: transform 0.25s var(--ease);
}

.school-filter-panel-body.is-collapsed {
  display: none;
}

.school-filter-panel-toggle[aria-expanded="false"] svg {
  transform: rotate(180deg);
}

.school-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 10px 16px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(12, 30, 46, 0.05);
}

.school-filter-row:last-child {
  border-bottom: 0;
}

.school-filter-label {
  flex-shrink: 0;
  min-width: 5.5em;
  padding-top: 2px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.school-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  flex: 1;
}

.school-filter-option {
  padding: 2px 0;
  font-size: 0.92rem;
  color: #4a5966;
  line-height: 1.6;
  transition: color 0.2s var(--ease);
}

.school-filter-option:hover {
  color: var(--brand);
}

.school-filter-option.is-active {
  color: #1a9a7a;
  font-weight: 600;
}

.school-filter-row-search {
  align-items: center;
}

.school-search-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.school-search {
  position: relative;
  margin-top: 28px;
  max-width: 560px;
}

.school-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.school-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid rgba(12, 30, 46, 0.12);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(12, 30, 46, 0.04);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.school-filter-panel .school-search-bar {
  max-width: 560px;
  padding: 12px 18px;
}

.school-search-bar:focus-within {
  border-color: rgba(56, 110, 143, 0.55);
  box-shadow: 0 12px 32px rgba(56, 110, 143, 0.14);
}

.school-search-icon {
  flex-shrink: 0;
  order: 2;
  color: #9aa8b3;
  opacity: 1;
}

.school-filter-panel .school-search-input {
  order: 1;
}

.school-filter-panel .school-search-clear {
  order: 3;
}

.school-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.school-search-input::placeholder {
  color: #8a9aa6;
}

.school-search-clear {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.school-search-clear:hover {
  background: rgba(12, 30, 46, 0.06);
  color: var(--ink);
}

.school-search-results {
  position: absolute;
  z-index: 20;
  inset: calc(100% + 8px) 0 auto;
  max-height: min(360px, 50vh);
  overflow: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(12, 30, 46, 0.1);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

@media (max-width: 720px) {
  .school-filter-panel-head,
  .school-filter-row {
    padding-left: 16px;
    padding-right: 16px;
  }

  .school-filter-row {
    flex-direction: column;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .school-filter-label {
    min-width: 0;
  }

  .school-filter-options {
    gap: 4px 14px;
  }

  .school-filter-panel .school-search-bar {
    max-width: 100%;
  }
}

.school-search-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  text-align: left;
  color: var(--ink);
  transition: background 0.2s var(--ease);
}

.school-search-item:hover,
.school-search-item.is-active {
  background: rgba(56, 110, 143, 0.1);
}

.school-search-item-name {
  font-weight: 600;
  font-size: 0.98rem;
}

.school-search-item-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.school-search-empty {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb {
  font-size: 0.85rem;
  color: #7a8b97;
  margin-bottom: 20px;
}

.breadcrumb a:hover {
  color: var(--brand);
}

/* ---- Environment gallery ---- */
.env-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 22px;
}

.env-gallery.is-three {
  grid-template-columns: repeat(3, 1fr);
}

.env-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.env-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(145deg, #e8eef1 0%, #d5dee4 100%);
  overflow: hidden;
}

.env-media::after {
  content: "待添加图片";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.env-media:has(img)::after {
  display: none;
}

.env-media:has(img) {
  cursor: zoom-in;
}

.env-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}

.env-media:has(img):hover img {
  transform: scale(1.04);
}

.env-card figcaption {
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.env-gallery.reveal {
  opacity: 1;
  transform: none;
}

.env-gallery.reveal .env-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.env-gallery.reveal.is-visible .env-card {
  opacity: 1;
  transform: translateY(0);
}

.env-gallery.reveal.is-visible .env-card:nth-child(1) { transition-delay: 0.06s; }
.env-gallery.reveal.is-visible .env-card:nth-child(2) { transition-delay: 0.12s; }
.env-gallery.reveal.is-visible .env-card:nth-child(3) { transition-delay: 0.18s; }
.env-gallery.reveal.is-visible .env-card:nth-child(4) { transition-delay: 0.24s; }
.env-gallery.reveal.is-visible .env-card:nth-child(5) { transition-delay: 0.3s; }
.env-gallery.reveal.is-visible .env-card:nth-child(6) { transition-delay: 0.36s; }
.env-gallery.reveal.is-visible .env-card:nth-child(7) { transition-delay: 0.42s; }
.env-gallery.reveal.is-visible .env-card:nth-child(8) { transition-delay: 0.48s; }
.env-gallery.reveal.is-visible .env-card:nth-child(9) { transition-delay: 0.54s; }
.env-gallery.reveal.is-visible .env-card:nth-child(10) { transition-delay: 0.6s; }
.env-gallery.reveal.is-visible .env-card:nth-child(11) { transition-delay: 0.66s; }
.env-gallery.reveal.is-visible .env-card:nth-child(12) { transition-delay: 0.72s; }

@media (prefers-reduced-motion: reduce) {
  .env-gallery.reveal .env-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Image lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 18, 28, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-panel {
  position: relative;
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  display: grid;
  place-items: center;
}

.lightbox-panel img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  z-index: 2;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-caption {
  margin-top: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .lightbox {
    padding: 12px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.35rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

/* ---- Page empty ---- */
.page-empty {
  min-height: 220px;
}

/* ---- Map navigation ---- */
.map-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.map-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.map-meta {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-bottom: 32px;
}

.map-meta li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--ink);
  line-height: 1.65;
}

.map-meta .label {
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.map-meta a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.map-meta a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-ghost-dark:hover {
  background: var(--ink);
  color: var(--white);
}

.map-visual {
  margin: 0;
  display: grid;
  gap: 12px;
}

.map-visual img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8eef1;
  box-shadow: var(--shadow);
}

.map-visual figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

/* ---- Schools carousel ---- */
.school-carousel {
  --school-gap: 20px;
  --school-per-page: 5;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.school-carousel.is-marquee {
  --school-per-page: 4;
  grid-template-columns: 1fr;
}

.school-carousel + .school-carousel {
  margin-top: 28px;
}

.school-carousel.is-marquee.is-marquee-delay .school-track {
  animation-duration: 40s;
  animation-direction: reverse;
}

.school-carousel.is-marquee.is-marquee-slow .school-track {
  animation-duration: 44s;
}

.school-carousel.is-marquee.is-marquee-alt .school-track {
  animation-duration: 38s;
  animation-direction: reverse;
}

.school-carousel.is-marquee.is-marquee-soft .school-track {
  animation-duration: 42s;
}

.school-carousel.is-marquee.is-marquee-rev .school-track {
  animation-duration: 46s;
  animation-direction: reverse;
}

.school-viewport {
  overflow: hidden;
  width: 100%;
  container-type: inline-size;
}

.school-track {
  display: flex;
  gap: var(--school-gap);
  transition: transform 0.45s var(--ease);
  will-change: transform;
}

.school-carousel.is-marquee .school-viewport {
  margin: 0;
  padding: 0;
}

.school-carousel.is-marquee .school-track {
  gap: 0;
  width: max-content;
  margin: 0;
  padding: 0;
  transition: none;
  animation: school-marquee-ltr 36s linear infinite;
}

.school-group {
  display: flex;
  gap: var(--school-gap);
  flex: 0 0 auto;
  justify-content: flex-start;
  align-items: stretch;
  width: 100cqi;
  margin: 0;
  margin-right: var(--school-gap);
  padding: 0;
  box-sizing: border-box;
}

/* ---- School catalog (static grid) ---- */
.school-catalog {
  display: grid;
  gap: 36px;
}

.school-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(12, 30, 46, 0.08);
}

.school-filter {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(12, 30, 46, 0.03);
  border: 1px solid rgba(12, 30, 46, 0.1);
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.school-filter:hover {
  color: var(--brand-deep);
  border-color: rgba(56, 110, 143, 0.35);
  background: rgba(56, 110, 143, 0.08);
}

.school-filter.is-active {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand);
}

.school-card.is-hidden {
  display: none;
}

.school-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
}

.school-catalog-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 40px 12px;
}

@media (max-width: 960px) {
  .school-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .school-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 14px;
  }
}

@media (max-width: 420px) {
  .school-grid {
    grid-template-columns: 1fr;
  }
}

.school-card {
  position: relative;
  flex: 0 0 calc((100cqi - (var(--school-per-page) - 1) * var(--school-gap)) / var(--school-per-page));
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(12, 30, 46, 0.06);
  border-radius: 18px;
  padding: 22px 18px 20px;
  box-shadow:
    0 10px 28px rgba(12, 30, 46, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.school-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--brand), #74a8bf);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.school-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 110, 143, 0.22);
  box-shadow:
    0 22px 44px rgba(26, 51, 72, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.school-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.school-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}

.school-grid .school-card {
  flex: none;
  width: auto;
}

.school-grid.reveal .school-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.school-grid.reveal.is-visible .school-card:not(.is-hidden) {
  opacity: 1;
  transform: translateY(0);
}

.school-grid.reveal.is-visible .school-card:nth-child(1) { transition-delay: 0.06s; }
.school-grid.reveal.is-visible .school-card:nth-child(2) { transition-delay: 0.12s; }
.school-grid.reveal.is-visible .school-card:nth-child(3) { transition-delay: 0.18s; }
.school-grid.reveal.is-visible .school-card:nth-child(4) { transition-delay: 0.24s; }
.school-grid.reveal.is-visible .school-card:nth-child(5) { transition-delay: 0.3s; }
.school-grid.reveal.is-visible .school-card:nth-child(6) { transition-delay: 0.36s; }
.school-grid.reveal.is-visible .school-card:nth-child(7) { transition-delay: 0.42s; }
.school-grid.reveal.is-visible .school-card:nth-child(8) { transition-delay: 0.48s; }
.school-grid.reveal.is-visible .school-card:nth-child(9) { transition-delay: 0.54s; }
.school-grid.reveal.is-visible .school-card:nth-child(10) { transition-delay: 0.6s; }
.school-grid.reveal.is-visible .school-card:nth-child(11) { transition-delay: 0.66s; }
.school-grid.reveal.is-visible .school-card:nth-child(12) { transition-delay: 0.72s; }
.school-grid.reveal.is-visible .school-card:nth-child(13) { transition-delay: 0.78s; }
.school-grid.reveal.is-visible .school-card:nth-child(14) { transition-delay: 0.84s; }
.school-grid.reveal.is-visible .school-card:nth-child(15) { transition-delay: 0.9s; }
.school-grid.reveal.is-visible .school-card:nth-child(16) { transition-delay: 0.96s; }

.page-hero-art {
  will-change: transform;
  transition: transform 0.15s linear;
}

@media (prefers-reduced-motion: reduce) {
  .school-grid.reveal .school-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page-hero-art {
    transition: none;
  }
}

.school-carousel.is-marquee .school-card {
  flex: 1 1 0;
  width: auto;
  max-width: none;
}

.school-carousel.is-marquee {
  --school-gap: 22px;
}

.school-logo {
  width: min(148px, 78%);
  aspect-ratio: 1;
  height: auto;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  margin-inline: auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.35s var(--ease);
}

.school-card:hover .school-logo {
  transform: translateY(-2px) scale(1.03);
}

.school-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

.school-carousel .school-name {
  min-height: 2.9em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.school-name {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
  line-height: 1.45;
  padding: 0 4px;
}

.school-subjects {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  padding: 0 6px;
}

.school-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  padding: 8px 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand-deep);
  border: none;
  background: transparent;
  border-bottom: 1px solid rgba(56, 110, 143, 0.28);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), gap 0.25s var(--ease);
}

.school-link::after {
  content: "→";
  font-size: 0.9em;
  transition: transform 0.25s var(--ease);
}

.school-link:hover {
  background: transparent;
  color: var(--ink);
  border-bottom-color: var(--ink);
  transform: none;
}

.school-link:hover::after {
  transform: translateX(3px);
}

/* ---- School detail ---- */
.page-hero.school-page-hero {
  background: linear-gradient(180deg, #f7f8fa 0%, #eef1f4 100%);
}

.page-hero.school-page-hero.has-campus-bg {
  border-bottom-color: rgba(12, 30, 46, 0.1);
  color: #fff;
}

.school-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.school-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(8, 18, 28, 0.78) 0%,
      rgba(8, 18, 28, 0.62) 34%,
      rgba(8, 18, 28, 0.36) 62%,
      rgba(8, 18, 28, 0.18) 100%
    );
}

.page-hero.school-page-hero.has-campus-bg .breadcrumb {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero.school-page-hero.has-campus-bg .breadcrumb a {
  color: rgba(255, 255, 255, 0.92);
}

.page-hero.school-page-hero.has-campus-bg .breadcrumb a:hover {
  color: var(--accent-soft);
}

.page-hero.school-page-hero.has-campus-bg h1 {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.page-hero.school-page-hero.has-campus-bg .school-detail-intro p {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.page-hero.school-page-hero.has-campus-bg .school-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(6px);
}

.school-detail-hero {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.school-detail-logo {
  flex: 0 0 140px;
  width: 140px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 16px;
  background: linear-gradient(165deg, #ffffff 0%, #f3f8fb 100%);
  border: 1px solid rgba(56, 110, 143, 0.12);
  box-shadow: 0 12px 30px rgba(42, 85, 112, 0.12);
}

.school-detail-logo img {
  width: 86%;
  height: 86%;
  object-fit: contain;
}

.school-detail-intro {
  flex: 1;
  min-width: 0;
}

.school-detail-intro p {
  max-width: 640px;
}

.school-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.school-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.82rem;
  color: var(--brand-deep);
  background: rgba(56, 110, 143, 0.08);
  border: 1px solid rgba(56, 110, 143, 0.16);
}

.school-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.school-detail-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.school-detail-nav {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  background: linear-gradient(165deg, #ffffff 0%, #f4f9fc 100%);
  border: 1px solid rgba(56, 110, 143, 0.12);
}

.school-detail-nav a {
  padding: 10px 12px;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.school-detail-nav a:hover {
  color: var(--brand-deep);
  background: rgba(56, 110, 143, 0.08);
}

.school-detail-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.school-block {
  padding: 28px 28px 30px;
  background: linear-gradient(165deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid rgba(56, 110, 143, 0.1);
  box-shadow: 0 10px 28px rgba(42, 85, 112, 0.06);
}

.school-block h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  color: var(--ink);
}

.school-subhead {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 22px 0 12px;
  color: var(--ink-soft);
}

.school-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.school-meta-item {
  padding: 16px 18px;
  background: rgba(56, 110, 143, 0.04);
  border: 1px solid rgba(56, 110, 143, 0.1);
}

.school-meta-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.school-meta-item strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.school-tips {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.school-tips li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.school-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--brand);
}

.school-exam-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.school-exam-grid.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.school-exam-card {
  padding: 18px 18px 16px;
  background: rgba(56, 110, 143, 0.04);
  border: 1px solid rgba(56, 110, 143, 0.1);
}

.school-exam-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--brand-deep);
}

.school-exam-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.school-exam-card p:last-child {
  margin-bottom: 0;
}

.school-exam-card strong {
  color: var(--ink-soft);
}

.school-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.school-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(56, 110, 143, 0.12);
}

.school-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #fff;
}

.school-table th,
.school-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(12, 30, 46, 0.08);
  font-size: 0.9rem;
}

.school-table th {
  background: rgba(56, 110, 143, 0.08);
  color: var(--ink-soft);
  font-weight: 700;
  white-space: nowrap;
}

.school-table td:nth-child(2),
.school-table td:nth-child(3) {
  white-space: nowrap;
  color: var(--ink-soft);
  font-weight: 600;
}

.school-table tbody tr:last-child td {
  border-bottom: none;
}

.school-source {
  font-size: 0.82rem;
  color: #7a8b97;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .school-detail-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .school-hero-bg::after {
    background:
      linear-gradient(
        180deg,
        rgba(8, 18, 28, 0.78) 0%,
        rgba(8, 18, 28, 0.58) 55%,
        rgba(8, 18, 28, 0.32) 100%
      );
  }

  .school-detail-layout {
    grid-template-columns: 1fr;
  }

  .school-detail-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .school-meta-grid,
  .school-exam-grid,
  .school-exam-grid.is-three {
    grid-template-columns: 1fr;
  }

  .school-block {
    padding: 22px 18px;
  }
}

.school-nav {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease);
  flex-shrink: 0;
}

.school-nav:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

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

.school-carousel.is-marquee:hover .school-track {
  animation-play-state: paused;
}

@keyframes school-marquee-ltr {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .school-carousel.is-marquee .school-track {
    animation: none;
    transform: none;
  }
}

/* ---- Footer ---- */
.site-footer {
  background: #08151f;
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 28px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .logo-mark {
  color: var(--white);
  margin-bottom: 4px;
}

.footer-brand .logo-sub {
  display: block;
}

.footer-brand p {
  line-height: 1.8;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--accent-soft);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom p {
  margin: 0;
  max-width: 980px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ---- Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Float bar ---- */
.float-bar {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.float-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--white);
  font-size: 0.68rem;
  text-align: center;
  line-height: 1.2;
  box-shadow: var(--shadow);
  transition: background 0.25s, transform 0.25s;
}

.float-btn:hover {
  background: var(--brand-deep);
  transform: translateY(-2px);
}

.float-btn.accent {
  background: var(--accent);
  color: var(--ink);
}

.float-bar.is-icon {
  gap: 10px;
}

.float-btn-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #2070cc;
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 83, 171, 0.28);
  transition: background 0.25s, transform 0.25s;
}

.float-btn-icon:hover {
  background: #0e53ab;
  transform: translateY(-2px);
}

.float-phone {
  position: relative;
}

.float-phone-tip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #2070cc;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(14, 83, 171, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.float-phone:hover .float-phone-tip,
.float-phone:focus-within .float-phone-tip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

/* ---- Prose ---- */
.prose {
  max-width: 780px;
}

.prose p {
  margin-bottom: 16px;
  color: var(--muted);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  margin: 32px 0 14px;
  color: var(--ink);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-grid.is-four {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-item {
  --g1: #1a4f9c;
  --g2: #0c1e2e;
  position: relative;
  min-height: 280px;
  padding: 28px 24px 30px;
  background: linear-gradient(155deg, var(--g1) 0%, var(--g2) 100%);
  border: none;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(12, 30, 46, 0.16);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    filter 0.35s;
}

.service-item[data-tone="coral"] {
  --g1: #1a4f9c;
  --g2: #12283a;
}

.service-item[data-tone="teal"] {
  --g1: #0c1e2e;
  --g2: #2a6a90;
}

.service-item[data-tone="gold"] {
  --g1: #2070cc;
  --g2: #16324a;
}

.service-item[data-tone="sky"] {
  --g1: #16324a;
  --g2: #386e8f;
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.14), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(116, 168, 191, 0.18), transparent 46%);
  pointer-events: none;
}

.service-item::after {
  content: none;
}

a.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 52px rgba(12, 30, 46, 0.24);
  filter: brightness(1.06);
}

a.service-item:hover::before,
a.service-item:hover::after {
  transform: none;
  opacity: 1;
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s;
}

a.service-item:hover .service-icon {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.service-num {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.72);
  opacity: 1;
}

.service-item h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  color: #fff;
}

a.service-item:hover h3 {
  color: #fff;
}

.service-item p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 0;
  flex: 1;
}

.service-more {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 9px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #fff;
  opacity: 1;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  transition:
    background 0.3s var(--ease),
    color 0.3s,
    border-color 0.3s,
    transform 0.3s var(--ease);
}

.service-more::after {
  content: none;
}

a.service-item:hover .service-more {
  opacity: 1;
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  transform: translateY(-2px);
}

a.service-item:hover .service-more::after {
  transform: none;
}

.services-section .service-grid.reveal .service-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease),
    box-shadow 0.35s var(--ease),
    filter 0.35s;
}

.services-section .service-grid.reveal.is-visible .service-item {
  opacity: 1;
  transform: translateY(0);
}

.services-section .service-grid.reveal.is-visible .service-item:nth-child(1) {
  transition-delay: 0.05s;
}

.services-section .service-grid.reveal.is-visible .service-item:nth-child(2) {
  transition-delay: 0.16s;
}

.services-section .service-grid.reveal.is-visible .service-item:nth-child(3) {
  transition-delay: 0.27s;
}

.services-section .service-grid.reveal.is-visible .service-item:nth-child(4) {
  transition-delay: 0.38s;
}

.services-section .service-grid.reveal.is-visible a.service-item:hover {
  transform: translateY(-8px);
  transition-delay: 0s;
}

/* ---- Service photo frames (homepage) ---- */
.service-grid.is-frames {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(14px, 2.2vw, 28px);
  perspective: 1400px;
  padding: 12px 0 28px;
}

.service-grid.is-frames .service-frame {
  --frame-tilt: 0deg;
  position: relative;
  flex: 1 1 0;
  max-width: 240px;
  min-height: 0;
  aspect-ratio: 3 / 4.15;
  padding: 0;
  border: 2px solid #c62828;
  border-radius: 16px;
  overflow: hidden;
  background: #1a1a1a;
  color: #fff;
  box-shadow:
    0 18px 36px rgba(12, 30, 46, 0.18),
    0 4px 0 rgba(198, 40, 40, 0.12);
  transform: perspective(1100px) rotateY(var(--frame-tilt));
  transform-style: preserve-3d;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    filter 0.35s;
}

.service-grid.is-frames .service-frame:nth-child(1) {
  --frame-tilt: 16deg;
}

.service-grid.is-frames .service-frame:nth-child(2) {
  --frame-tilt: 7deg;
}

.service-grid.is-frames .service-frame:nth-child(3) {
  --frame-tilt: -7deg;
}

.service-grid.is-frames .service-frame:nth-child(4) {
  --frame-tilt: -16deg;
}

.service-frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}

.service-frame-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 56px 18px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 16, 28, 0.78) 62%, rgba(8, 16, 28, 0.92) 100%);
}

.service-grid.is-frames .service-frame h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}

.service-grid.is-frames .service-frame .service-more {
  margin-top: 0;
  padding: 7px 14px;
  font-size: 0.72rem;
  border-color: rgba(255, 255, 255, 0.9);
}

.service-grid.is-frames .service-frame::before,
.service-grid.is-frames .service-frame::after {
  content: none;
}

.services-section .service-grid.is-frames.reveal .service-frame {
  opacity: 0;
  transform: perspective(1100px) rotateY(var(--frame-tilt)) translateY(32px);
}

.services-section .service-grid.is-frames.reveal.is-visible .service-frame {
  opacity: 1;
  transform: perspective(1100px) rotateY(var(--frame-tilt)) translateY(0);
}

.services-section .service-grid.is-frames.reveal.is-visible a.service-frame:hover {
  transform: perspective(1100px) rotateY(calc(var(--frame-tilt) * 0.35)) translateY(-10px) scale(1.02);
  box-shadow:
    0 28px 48px rgba(12, 30, 46, 0.28),
    0 4px 0 rgba(198, 40, 40, 0.16);
  filter: brightness(1.04);
  transition-delay: 0s;
}

.services-section .service-grid.is-frames.reveal.is-visible a.service-frame:hover .service-frame-img {
  transform: scale(1.06);
}

.services-section .service-grid.is-frames.reveal.is-visible a.service-frame:hover .service-more {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .services-section::before,
  .services-section::after {
    animation: none;
  }

  .services-section .service-grid.reveal .service-item,
  .service-item::after,
  a.service-item:hover {
    transition: none;
  }

  .service-grid.is-frames .service-frame,
  .services-section .service-grid.is-frames.reveal .service-frame,
  .services-section .service-grid.is-frames.reveal.is-visible .service-frame,
  .services-section .service-grid.is-frames.reveal.is-visible a.service-frame:hover {
    transform: none;
  }
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .nav-menu,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    transform: none;
    background: var(--nav-bg);
    padding: 12px 24px 24px;
    gap: 0;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    z-index: 5;
  }

  .nav-menu.is-open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 8px 16px;
  }

  .nav-menu.is-open .dropdown a {
    color: rgba(26, 26, 26, 0.75);
    padding: 8px 12px;
  }

  .nav-menu.is-open .dropdown a:hover {
    color: var(--nav-hover);
  }

  .entries,
  .service-grid,
  .service-grid.is-four {
    grid-template-columns: 1fr 1fr;
  }

  .service-grid.is-frames {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    perspective: none;
    padding: 8px 0 16px;
  }

  .service-grid.is-frames .service-frame,
  .services-section .service-grid.is-frames.reveal .service-frame,
  .services-section .service-grid.is-frames.reveal.is-visible .service-frame {
    --frame-tilt: 0deg;
    max-width: none;
    transform: none;
  }

  .services-section .service-grid.is-frames.reveal.is-visible a.service-frame:hover {
    transform: translateY(-6px);
  }

  .env-gallery,
  .env-gallery.is-three {
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
  }

  .course-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-layout,
  .map-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-layout.is-balanced .about-photo {
    position: relative;
    min-height: 240px;
    aspect-ratio: 16 / 10;
  }

  .advantage-grid {
    min-height: 0;
  }

  .metric-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .metric-item {
    justify-content: flex-start;
    padding: 14px 16px;
  }

  .school-carousel {
    --school-per-page: 2;
    --school-gap: 16px;
    gap: 10px;
  }

  .school-carousel.is-marquee {
    --school-per-page: 3;
  }

  .school-nav {
    width: 36px;
    height: 36px;
  }

  .campus-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, minmax(160px, 22vh));
  }

  .campus-strip {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-item {
    grid-template-columns: 72px 1fr;
  }

  .news-more {
    display: none;
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 32px);
  }

  .logo-img {
    width: 40px;
    height: 40px;
  }

  .logo-img.is-full {
    width: auto;
    height: 48px;
    max-width: 150px;
  }

  .logo-mark {
    font-size: 1.15rem;
  }

  .logo-sub {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .school-carousel {
    --school-per-page: 1;
    --school-gap: 12px;
  }

  .school-carousel.is-marquee {
    --school-per-page: 3;
  }

  .entries,
  .course-grid,
  .campus-strip,
  .campus-mosaic,
  .env-gallery,
  .env-gallery.is-three,
  .footer-grid,
  .stats,
  .service-grid,
  .service-grid.is-four,
  .metric-strip-inner {
    grid-template-columns: 1fr;
  }

  .service-grid.is-frames {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .campus-mosaic {
    grid-template-rows: repeat(6, minmax(150px, 20vh));
  }

  .hero-content {
    padding-bottom: 72px;
  }

  .section {
    padding: 64px 0;
  }

  .contact-map {
    padding: 0;
  }
}
