/* Reset & Variables */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #f8f8f8;
}

:root {
  --primary: #e85d04;
  --primary-dark: #ca4a00;
  --primary-light: #f48c06;
  --bg-light: #fff;
  --bg-section: #f5f5f5;
  --text: #333;
  --text-muted: #666;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --radius: 8px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Lang visibility - default Chinese */
.lang-zh .en { display: none !important; }
.lang-en .ch { display: none !important; }

/* Hero */
.hero {
  min-height: 50vh;
  background: linear-gradient(135deg, #e85d04 0%, #f48c06 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-inner {
  text-align: center;
  max-width: 900px;
}

.hero .logo {
  max-width: 180px;
  margin: 0 auto 2rem;
  filter: brightness(0) invert(1);
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: background .2s;
}

.hero-link:hover { background: rgba(255,255,255,.2); }

.hero-link img {
  height: 24px;
  filter: brightness(0) invert(1);
}

.lang-toggle {
  margin-top: 1.5rem;
}

.lang-btn {
  padding: 0.35rem 0.75rem;
  border: 2px solid rgba(255,255,255,.7);
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 4px;
  margin: 0 0.25rem;
  transition: all .2s;
}

.lang-btn:hover, .lang-btn.active {
  background: #fff;
  color: var(--primary);
}

/* Banner */
.banner-section {
  overflow: hidden;
  background: #2d2d2d;
}

.banner-track {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.banner-item {
  flex: 0 0 280px;
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.banner-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.banner-item p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.6rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  color: #fff;
  font-size: 0.95rem;
}

/* Nav */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-light);
  padding: 0.75rem 2rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: background .2s;
}

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

/* Sections */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  margin: 0 0 2.5rem;
  color: var(--primary);
}

/* Instructors */
.instructors { background: var(--bg-light); }

.instructor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.instructor-card {
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg-section);
  transition: transform .2s;
}

.instructor-card:hover { transform: translateY(-4px); }

.instructor-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
}

.instructor-card p {
  margin: 0;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Curriculum */
.curriculum { background: var(--bg-section); }

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.curriculum-block {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.curriculum-block h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--primary);
}

.curriculum-items p {
  margin: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Awards */
.awards { background: var(--bg-light); }

.award-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.award-card {
  background: var(--bg-section);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s;
}

.award-card:hover { transform: translateY(-4px); }

.award-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.award-card p {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

/* Enrollment / phone CTA */
.enroll-cta {
  background: linear-gradient(180deg, var(--bg-section) 0%, var(--primary-light) 20%, var(--primary) 100%);
  color: #fff;
}

.enroll-cta .section-title { color: #fff; }

.enroll-lead {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 1.75rem;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.95;
}

.enroll-tel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto 1.25rem;
}

.enroll-tel {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  transition: background .2s, transform .2s, border-color .2s;
}

.enroll-tel:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  transform: translateY(-2px);
}

.enroll-tel:hover .enroll-tel-label,
.enroll-tel:hover .enroll-tel-num {
  color: inherit;
}

.enroll-tel-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

.enroll-tel-num {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.enroll-more {
  text-align: center;
  margin: 0;
  font-size: 0.95rem;
}

.enroll-more a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.enroll-more a:hover {
  opacity: 0.9;
}

/* About */
.about { background: var(--bg-section); }

.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 1rem;
  text-align: justify;
  color: var(--text-muted);
}

/* Contact */
.contact {
  background: #2d2d2d;
  color: #fff;
}

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

.contact-brand {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-tel {
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-tel .num {
  display: inline-block;
  margin: 0 0.5rem;
  font-weight: 600;
}

.contact-addr {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-addr p { margin: 0.5rem 0; }

/* Back to top */
.back-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  z-index: 50;
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  background: var(--primary-dark);
}

/* Footer */
.footer {
  background: #f5f5f5;
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--primary); }
.footer span { margin: 0 0.5rem; }

/* Responsive */
@media (max-width: 768px) {
  .section { padding: 3rem 1rem; }
  .main-nav { padding: 0.5rem 1rem; gap: 0.5rem; }
  .hero-links { flex-direction: column; }
  .banner-item { flex: 0 0 220px; }
}
