:root {
  --pink: #ff7dd5;
  --blue: #6380e0;
  --violet: #ab9dff;
  --rose: #ed5cab;
  --light: #ebb3d8;
  --bg: #fafaff;
  --text: #1a1a2e;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(99, 128, 224, 0.15);
  --dev-bar-h: 36px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Montserrat, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.dev-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #1a1a2e;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.4;
}

.dev-bar strong {
  color: var(--pink);
}

.dev-bar a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dev-bar a:hover {
  color: var(--pink);
}

.dev-warn {
  background: #b42318;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
}

header {
  position: sticky;
  top: var(--dev-bar-h);
  z-index: 900;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(235, 179, 216, 0.4);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
}

.logo img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.logo span em {
  color: var(--pink);
  font-style: normal;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--pink);
}

nav a.ext::after {
  content: " ↗";
  font-size: 11px;
  opacity: 0.7;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--rose);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-img) center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(99, 128, 224, 0.75) 0%,
    rgba(255, 125, 213, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 24px;
  max-width: 800px;
}

.hero-tag {
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero .slogan {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 600;
  margin-bottom: 8px;
}

.hero .sub {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.hero .btn {
  font-size: 16px;
  padding: 16px 36px;
}

section {
  padding: 72px 24px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 8px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: #555;
  margin-bottom: 48px;
  font-size: 16px;
}

.stats {
  background: var(--light);
  padding: 56px 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 24px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}

.stats-foot {
  text-align: center;
  font-size: 14px;
  color: #555;
}

.directions {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  max-width: 1140px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.directions-photo {
  min-height: 420px;
  background: var(--dir-img) center/cover no-repeat;
}

.directions-text {
  background: #fff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.directions-text h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 8px;
}

.directions-text .tagline {
  color: #333;
  margin-bottom: 18px;
  font-size: 16px;
}

.directions-list {
  font-weight: 700;
  color: var(--rose);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.directions-text p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 22px;
}

.why-section {
  background: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.why-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.why-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.why-body {
  padding: 20px 24px 24px;
}

.why-body h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--blue);
}

.why-body p {
  font-size: 14px;
  color: #444;
}

.about-links {
  text-align: center;
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.about-links a {
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
}

.places-section {
  background: var(--bg);
}

.city-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.city-tab {
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--blue);
  background: #fff;
  color: var(--blue);
  cursor: pointer;
}

.city-tab span {
  display: inline-block;
  min-width: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--light);
  color: var(--text);
  font-size: 12px;
}

.city-tab.is-active {
  background: var(--blue);
  color: #fff;
}

.city-tab.is-active span {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.city-panel {
  display: none;
}

.city-panel.is-active {
  display: block;
}

.city-layout {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.city-gallery {
  background: #111;
}

.city-photo {
  margin: 0;
  position: relative;
}

.city-photo img,
.city-gallery-main {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.city-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  background: #1a1a2e;
}

.city-thumb {
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  opacity: 0.55;
}

.city-thumb.is-active,
.city-thumb:hover {
  opacity: 1;
  border-color: var(--pink);
}

.city-thumb img {
  display: block;
  width: 88px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.city-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(26, 26, 46, 0.85));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.city-photo figcaption span {
  font-size: 13px;
  opacity: 0.9;
}

.city-photo figcaption a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  margin-top: 6px;
}

.city-list {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.city-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(235, 179, 216, 0.5);
}

.city-row:last-child {
  border-bottom: none;
}

.city-row h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.city-row .addr {
  font-size: 14px;
  color: #444;
}

.city-row .addr a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.city-row .addr a:hover {
  text-decoration: underline;
}

.city-cta {
  padding-top: 8px;
}

.filial-badge {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.social-section {
  background: var(--blue);
  color: #fff;
}

.social-section .section-title {
  color: #fff;
}

.social-section .section-sub {
  color: rgba(255, 255, 255, 0.85);
}

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

.social-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}

.social-card:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.02);
}

.social-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 12px;
  object-fit: cover;
}

.social-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 0;
}

.cta-final {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 80px 24px;
}

.cta-final h2 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-final p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
}

footer {
  background: #fff;
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: #666;
  border-top: 1px solid var(--light);
}

.footer-nav {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-nav a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--pink);
}

.page-head {
  padding: 48px 24px 16px;
}

.values-section {
  padding-top: 16px;
}

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

.value-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--pink);
}

.value-card:nth-child(2) {
  border-top-color: var(--blue);
}

.value-card:nth-child(3) {
  border-top-color: var(--violet);
}

.value-card h2 {
  color: var(--blue);
  font-size: 22px;
  margin-bottom: 10px;
}

.teachers-section {
  padding-top: 24px;
}

.teachers-section .section-title {
  margin-bottom: 32px;
}

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

.teacher-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.teacher-card img,
.teacher-ph {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.teacher-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: #fff;
  font-size: 42px;
  font-weight: 800;
}

.teacher-body {
  padding: 18px 20px 22px;
}

.teacher-role {
  font-size: 12px;
  font-weight: 700;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.teacher-body h3 {
  font-size: 16px;
  margin: 4px 0 10px;
}

.teacher-body p {
  font-size: 13px;
  color: #444;
}

.achieve-hero {
  padding: 40px 24px 8px;
}

.achieve-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.achieve-title {
  text-align: left;
  margin-bottom: 12px;
}

.achieve-lead {
  font-size: 17px;
  color: #444;
  max-width: 34em;
  margin-bottom: 28px;
}

.achieve-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.achieve-stats strong {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  color: var(--blue);
}

.achieve-stats span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.achieve-hero-photo {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1a1a2e;
}

.achieve-hero-photo img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.year-block {
  margin-bottom: 40px;
}

.year-label {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 18px;
}

.achieve-picks {
  padding-top: 40px;
  padding-bottom: 24px;
}

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

.pick-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: none;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.pick-photo {
  display: block;
  background: #f4f1ff;
  padding: 14px 14px 0;
}

.pick-photo img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
}

.pick-meta {
  display: block;
  padding: 16px 18px 18px;
}

.pick-place {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #1a1a2e;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.pick-meta strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  color: var(--text);
}

.pick-detail {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #666;
}

.achieve-archive {
  padding-top: 16px;
}

.archive-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 8px;
}

.archive-head .section-title,
.archive-sub {
  text-align: left;
}

.archive-sub {
  margin-bottom: 0;
}

.archive-tabs {
  flex-shrink: 0;
  margin-bottom: 8px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.archive-grid.is-collapsed .archive-thumb:nth-child(n+25) {
  display: none;
}

.archive-thumb {
  margin: 0;
  padding: 4px;
  border: none;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(99, 128, 224, 0.1);
  cursor: pointer;
}

.archive-thumb img {
  width: 100%;
  height: 88px;
  object-fit: contain;
  display: block;
  background: #f7f5ff;
  border-radius: 6px;
}

.archive-more {
  display: block;
  margin: 18px auto 0;
  padding: 10px 20px;
  border: 2px solid var(--pink);
  border-radius: 999px;
  background: #fff;
  color: var(--rose);
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.gallery-panel {
  display: none;
}

.gallery-panel.is-active {
  display: block;
}

.empty-hint {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  color: #555;
  box-shadow: var(--shadow);
}

.empty-hint code,
.doc-link-preview code,
.section-sub code {
  font-size: 12px;
  background: #f3f0ff;
  padding: 2px 6px;
  border-radius: 6px;
}

.doc-list {
  max-width: 1100px;
  padding-bottom: 64px;
}

.doc-pages {
  margin-top: 28px;
}

.doc-pages img {
  height: 280px;
  object-fit: contain;
  background: #f6f4ff;
}

.doc-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.doc-badge {
  display: inline-block;
  background: #1a1a2e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.doc-card h2 {
  color: var(--blue);
  margin-bottom: 8px;
}

.doc-meta,
.doc-link-preview {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(10, 10, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 72px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  margin: 0;
  max-width: min(900px, 100%);
}

.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  display: block;
  border-radius: 10px;
}

.lightbox figcaption {
  color: #fff;
  text-align: center;
  margin-top: 12px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 42px;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close {
  top: 16px;
  right: 24px;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 900;
}

.mobile-cta .btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .directions-photo {
    min-height: 280px;
  }

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

  .city-photo img,
  .city-gallery-main {
    height: 220px;
  }

  .social-grid,
  .values-grid,
  .teachers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .achieve-hero-grid,
  .pick-grid,
  .archive-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .archive-head {
    align-items: stretch;
  }

  .archive-head .section-title,
  .archive-sub {
    text-align: center;
  }

  .achieve-hero-photo img {
    height: 240px;
  }

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

  .archive-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 70px;
  }
}

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

  .social-grid,
  .values-grid,
  .teachers-grid {
    grid-template-columns: 1fr;
  }

  .pick-grid,
  .archive-grid {
    grid-template-columns: 1fr 1fr;
  }
}
