:root {
  --ink: #0d3a5b;
  --ink-2: #19527f;
  --sky: #63b4c8;
  --amber: #e7bc4e;
  --orange: #ea8f3d;
  --paper: #f4f8fc;
  --card: #ffffff;
  --text: #12253a;
  --muted: #4b647e;
  --line: #d8e2ee;
  --radius: 18px;
  --shadow: 0 14px 36px rgba(13, 58, 91, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fcfdff 0%, #f3f8fd 100%);
  font-family: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(56px);
  opacity: 0.18;
}

.orb-a {
  width: 320px;
  height: 320px;
  background: var(--sky);
  top: -70px;
  right: -90px;
}

.orb-b {
  width: 300px;
  height: 300px;
  background: var(--amber);
  bottom: 10%;
  left: -110px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 226, 238, 0.85);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  min-height: 82px;
}

.brand img {
  width: 230px;
}

.menu-toggle {
  display: none;
  border: none;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.15rem;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.main-nav a {
  padding: 0.56rem 0.86rem;
  border-radius: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: 0.2s ease;
}

.main-nav a:hover {
  color: var(--ink);
  background: #edf4fb;
}

.main-nav a.active {
  color: var(--ink);
  background: #e4eef9;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.lang-switch,
.phone-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 0.82rem;
  font-weight: 600;
  border: 1px solid var(--line);
}

.lang-switch {
  color: var(--ink);
}

.phone-chip {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  margin-bottom: 0.5rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.22;
  margin: 0 0 0.7rem;
  color: #0d2840;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
}

p {
  margin: 0.4rem 0 0.9rem;
}

.hero-actions {
  display: flex;
  gap: 0.72rem;
  flex-wrap: wrap;
  margin: 1.15rem 0;
}

.btn {
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: #fff;
}

.btn-ghost:hover {
  background: #ebf4ff;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.badge-list li {
  border: 1px solid #d4e2f0;
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-size: 0.88rem;
  color: var(--muted);
  background: #f7fbff;
}

.hero-media {
  position: relative;
}

.hero-main {
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}

.hero-sub {
  position: absolute;
  width: 56%;
  right: -6%;
  bottom: -11%;
  border-radius: 14px;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}

.section {
  padding: 78px 0;
}

.section-light {
  background: linear-gradient(180deg, rgba(236, 245, 255, 0.75), rgba(246, 250, 255, 0.8));
}

.section-accent {
  background: linear-gradient(120deg, #fef8ee 0%, #f2f9ff 100%);
}

.section-cta {
  padding: 56px 0 72px;
}

.section-header {
  margin-bottom: 1.4rem;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid #d9e4f1;
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: 0 12px 26px rgba(31, 73, 113, 0.08);
}

.card-soft {
  background: #fffefa;
}

.card-cover {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.85rem;
}

.text-link {
  color: var(--ink-2);
  font-weight: 600;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.65rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #caddf0;
  background: #f3f8ff;
  color: #224a6c;
  border-radius: 999px;
  padding: 0.24rem 0.6rem;
  font-size: 0.8rem;
}

.review-card span {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.3rem;
  align-items: center;
}

blockquote {
  margin: 1rem 0 0.4rem;
  padding-left: 0.95rem;
  border-left: 4px solid var(--amber);
  font-size: 1.1rem;
  font-weight: 600;
}

.quote-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d8e6f3;
  min-height: 180px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subtle {
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-row {
  background: linear-gradient(130deg, var(--ink) 0%, #1f5f8f 80%);
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: 1.35rem 1.45rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cta-row h2,
.cta-row p {
  color: #fff;
}

.page-hero {
  padding: 62px 0 26px;
}

.program-block {
  border: 1px solid #d9e5f2;
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 1rem;
  overflow: hidden;
}

.program-head {
  padding: 1.1rem 1.15rem 0.6rem;
  border-bottom: 1px solid #e4edf7;
}

.program-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.95rem 1.15rem 1.1rem;
}

.track-list {
  display: grid;
  gap: 0.55rem;
}

.track-item {
  border: 1px solid #dce9f6;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  background: #f7fbff;
}

.track-item h4 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.track-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.list {
  margin: 0;
  padding-left: 1.1rem;
}

.list li {
  margin: 0.45rem 0;
}

.table-wrap {
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #dbe8f4;
  border-radius: 12px;
  overflow: hidden;
}

.schedule-table th,
.schedule-table td {
  padding: 0.75rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid #e8eef6;
  font-size: 0.95rem;
}

.schedule-table th {
  background: #eef5fd;
  color: var(--ink);
}

.teacher-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: start;
  background: #fff;
  border: 1px solid #d8e4f1;
  border-radius: var(--radius);
  padding: 1rem;
}

.teacher-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #cad8e7;
}

.quote-panel {
  background: #ffffff;
  border: 1px solid #d8e4f1;
  border-radius: var(--radius);
  padding: 1.1rem;
}

.camp-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.2rem;
  align-items: center;
}

.tuition-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border: 1px solid #dbe7f3;
  border-radius: var(--radius);
  background: #fff;
  padding: 1rem;
}

.detail-block {
  background: #fff;
  border: 1px solid #dde8f4;
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.9rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-info,
.contact-form-wrap {
  border: 1px solid #d8e5f2;
  border-radius: var(--radius);
  background: #fff;
  padding: 1rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.contact-card {
  border: 1px solid #d5e3f1;
  border-radius: 14px;
  padding: 0.8rem;
  background: #f8fbff;
}

.contact-card.primary {
  background: linear-gradient(135deg, #f2fbff 0%, #e9f4ff 100%);
}

.contact-meta {
  margin-top: 0.9rem;
}

.contact-qrs {
  margin-top: 0.9rem;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.qr-grid figure {
  margin: 0;
  text-align: center;
}

.qr-grid img {
  border: 1px solid #d9e4f1;
  border-radius: 10px;
}

.qr-grid figcaption {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.inquiry-form {
  display: grid;
  gap: 0.7rem;
}

.inquiry-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  border: 1px solid #ccdaea;
  border-radius: 10px;
  padding: 0.62rem 0.66rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: inherit;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: #5ea6d2;
  box-shadow: 0 0 0 3px rgba(95, 179, 201, 0.22);
}

.form-status {
  min-height: 22px;
  font-size: 0.9rem;
  color: var(--ink-2);
  font-weight: 600;
}

.form-status.is-loading {
  color: #335b7f;
}

.form-status.is-success {
  color: #166534;
}

.form-status.is-error {
  color: #b42318;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.admin-wide {
  place-items: start stretch;
}

.admin-card {
  width: min(1200px, 96vw);
  background: #fff;
  border: 1px solid #d8e5f2;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.admin-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-user {
  border: 1px solid #cfdded;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.9rem;
  color: var(--ink);
  background: #f4f9ff;
}

.admin-cell-wrap {
  white-space: pre-wrap;
  max-width: 360px;
}

.admin-error {
  margin: 0.5rem 0 0.9rem;
  color: #7d1d1d;
  background: #ffe9e9;
  border: 1px solid #f2bcbc;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}

.site-footer {
  margin-top: 40px;
  background: #0c2f49;
  color: #deebf7;
  padding: 2.2rem 0 1.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 1.2rem;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.footer-links a {
  color: #d7e8f8;
}

.footer-bottom {
  margin-top: 1.2rem;
  border-top: 1px solid rgba(166, 198, 227, 0.25);
  padding-top: 0.8rem;
  color: #bdd5eb;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

@media (max-width: 1024px) {
  .brand img {
    width: 190px;
  }

  .hero-grid,
  .philosophy-grid,
  .camp-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-sub {
    position: static;
    width: 100%;
    margin-top: 0.8rem;
  }

  .cards-3 {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 760px) {
  .header-inner {
    grid-template-columns: auto auto auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    left: 4vw;
    right: 4vw;
    top: 78px;
    background: #fff;
    border: 1px solid #d9e5f1;
    border-radius: 14px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    padding: 0.4rem;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 0.7rem 0.76rem;
  }

  .phone-chip {
    display: none;
  }

  .hero,
  .section {
    padding: 52px 0;
  }

  .cards-3,
  .cards-2,
  .gallery-grid,
  .contact-grid,
  .program-columns,
  .tuition-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .teacher-card {
    grid-template-columns: 1fr;
  }

  .teacher-card img {
    width: 110px;
    height: 110px;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
