:root {
  --ink: #1b3654;
  --ink-soft: #35516d;
  --muted: #5d7388;
  --paper: #f4f8ff;
  --card: #ffffff;
  --blue: #3b8bed;
  --blue-deep: #1f6fd4;
  --sun: #f5c542;
  --sun-deep: #d9a31c;
  --green: #2fbf74;
  --coral: #ff6b6b;
  --violet: #8b6cff;
  --line: rgba(27, 54, 84, 0.1);
  --shadow: 0 20px 50px rgba(31, 86, 166, 0.1);
  --sans: "Noto Sans TC", "PingFang HK", "Hiragino Sans CNS", sans-serif;
  --display: "Fredoka", "Noto Sans TC", sans-serif;
  --wrap: min(1120px, calc(100% - 40px));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16px;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
.brand strong,
.brand-foot {
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  margin: 0 0 1rem;
}

h1 span {
  display: block;
  font-size: 0.58em;
  font-weight: 700;
  color: var(--blue-deep);
  margin-top: 0.35rem;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.22rem;
  margin: 0 0 0.55rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.sr-only,
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--blue);
  color: #fff;
  padding: 8px 12px;
  z-index: 30;
}

.skip-link:focus {
  top: 16px;
}

.rainbow-bar {
  height: 6px;
  background: linear-gradient(90deg, #ff5b5b, #ff8a3a, #f5c542, #3dcf7a, #3b8bed, #8b6cff);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--blue-deep);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.section {
  padding: 6.2rem 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.8rem;
}

.section-lead {
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(59, 139, 237, 0.28);
}

.btn-primary:hover {
  background: var(--blue-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(59, 139, 237, 0.28);
  color: var(--blue-deep);
}

.btn-sun {
  background: var(--sun);
  color: #5a4108;
}

.full {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  display: block;
  line-height: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(59, 139, 237, 0.25);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.12rem;
}

.brand-text small {
  color: var(--blue);
  font-family: var(--display);
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-cta {
  padding: 0.45rem 0.95rem;
  background: var(--blue);
  color: #fff !important;
  border-radius: 999px;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  padding: 0 20px 20px;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  color: var(--ink);
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.2rem 0 5rem;
  background:
    radial-gradient(circle at 88% 12%, rgba(245, 197, 66, 0.35), transparent 24%),
    linear-gradient(180deg, #eaf4ff 0%, #f7fbff 62%, #fff 100%);
}

.hero-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-rainbow {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -70px;
  width: 108%;
  height: 240px;
  opacity: 0.55;
}

.cloud {
  position: absolute;
  background: #fff;
  border-radius: 999px;
  opacity: 0.85;
  filter: drop-shadow(0 8px 16px rgba(59, 139, 237, 0.08));
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
}

.c1 {
  width: 120px;
  height: 36px;
  top: 42px;
  right: 12%;
}

.c1::before {
  width: 46px;
  height: 46px;
  top: -24px;
  left: 18px;
}

.c1::after {
  width: 64px;
  height: 64px;
  top: -38px;
  left: 46px;
}

.c2 {
  width: 90px;
  height: 28px;
  top: 88px;
  left: 8%;
}

.c2::before {
  width: 36px;
  height: 36px;
  top: -18px;
  left: 12px;
}

.c2::after {
  width: 48px;
  height: 48px;
  top: -28px;
  left: 34px;
}

.c3 {
  width: 70px;
  height: 22px;
  top: 28px;
  left: 38%;
  opacity: 0.65;
}

.c3::before {
  width: 28px;
  height: 28px;
  top: -14px;
  left: 10px;
}

.c3::after {
  width: 38px;
  height: 38px;
  top: -22px;
  left: 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: end;
  position: relative;
  z-index: 1;
}

.lead {
  font-size: 1.08rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.7rem 0 2.2rem;
}

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

.hero-stats dt {
  color: var(--blue);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hero-stats dd {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.hero-card {
  background: #fff;
  border-radius: 28px;
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(59, 139, 237, 0.12);
}

.hero-card h2 {
  font-size: 1.35rem;
}

.hero-card-kicker {
  display: inline-flex;
  margin: 0 0 0.8rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #fff3c4;
  color: #8a6408;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-card ul,
.course-card ul,
.check-list {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.hero-card li,
.course-card li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.2rem;
  color: var(--ink-soft);
}

.hero-card li::before,
.course-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

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

.course-card,
.subject-grid li {
  background: var(--card);
  border-radius: 24px;
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(31, 86, 166, 0.05);
}

.course-card.featured {
  background: linear-gradient(180deg, #edf5ff, #fff 48%);
  border-color: rgba(59, 139, 237, 0.22);
}

.course-tag {
  display: inline-flex;
  margin: 0 0 0.85rem;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.tag-blue {
  background: #e3f0ff;
  color: var(--blue-deep);
}

.tag-sun {
  background: #fff3c4;
  color: #8a6408;
}

.tag-green {
  background: #d9f8e8;
  color: #157a46;
}

.subject-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.d-red { background: var(--coral); }
.d-sun { background: var(--sun); }
.d-green { background: var(--green); }
.d-blue { background: var(--blue); }

.approach {
  background: #fff;
}

.local {
  background: linear-gradient(180deg, #eef6ff 0%, #f8fbff 100%);
}

.local-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 760px;
}

.local-head {
  margin-bottom: 0;
}

.local-copy p {
  font-size: 1.05rem;
  max-width: 42rem;
}

.gallery {
  background: #fff;
}

.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid figure {
  margin: 0;
  background: var(--paper);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.gallery-grid figcaption {
  padding: 0.7rem 0.85rem 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.approach-grid,
.faq-grid,
.contact-grid,
.location-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.steps li {
  background: var(--paper);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
}

.steps strong {
  display: block;
  margin-bottom: 0.25rem;
}

.steps span {
  color: var(--ink-soft);
}

.location {
  background:
    linear-gradient(180deg, #f4f8ff, #fff);
}

.contact-meta {
  list-style: none;
  margin: 1.4rem 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-meta li {
  display: grid;
  gap: 0.15rem;
}

.contact-meta span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  font-weight: 700;
}

.contact-meta a,
.contact-meta strong {
  font-weight: 700;
  text-decoration: none;
}

.contact-meta a:hover {
  color: var(--blue-deep);
}

.fine-print {
  font-size: 0.88rem;
  color: var(--muted);
}

.map-frame {
  border-radius: 24px;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 0;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin: 0 0 1rem;
}

.contact {
  background: #fff7e6;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: #fff;
  border-radius: 28px;
  padding: 1.5rem;
  border: 1px solid rgba(245, 197, 66, 0.35);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #f8fbff;
  color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
}

.form-hint,
.form-result {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  font-weight: 400;
}

.form-result {
  white-space: pre-wrap;
  background: #eef7ff;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  color: var(--ink-soft);
}

.site-footer {
  background: #16355a;
  color: #d7e7fb;
  padding: 2.2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
}

.brand-foot {
  margin: 0 0 0.3rem;
  color: #fff;
}

.site-footer p {
  margin: 0;
  color: #d7e7fb;
}

.copyright {
  font-size: 0.88rem;
  max-width: 28rem;
}

.copyright a {
  color: var(--sun);
}

.float-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(20, 140, 70, 0.28);
}

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

  .menu-btn {
    display: block;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero-grid,
  .course-grid,
  .subject-grid,
  .approach-grid,
  .faq-grid,
  .contact-grid,
  .location-grid,
  .gallery-grid,
  .contact-form,
  .footer-inner,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0 4.4rem;
  }

  .hero-card {
    position: relative;
    z-index: 1;
  }

  .section {
    padding: 4.4rem 0;
  }

  .footer-inner {
    align-items: start;
  }

  .hero-rainbow {
    opacity: 0.35;
    bottom: -90px;
  }
}
