:root {
  --ink: #1f2a37;
  --muted: #5f6f82;
  --line: #d8e0ea;
  --paper: #ffffff;
  --wash: #f3f6fa;
  --accent: #176b87;
  --accent-dark: #0f4f67;
  --gold: #c18f43;
  --green: #4b7f68;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

html[lang="zh-CN"] body {
  font-family: "PingFang SC", "Hiragino Sans GB", "STHeiti", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
}

html[lang="en"] body {
  font-family: Arial, Helvetica, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
}

.lang-button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.lang-button.active {
  color: white;
  background: var(--accent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: clamp(24px, 3vw, 38px);
  min-height: auto;
  padding: clamp(28px, 4vw, 52px) clamp(20px, 5vw, 72px) clamp(32px, 4vw, 52px);
  background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 88%);
}

.hero-copy {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.hero-brand-row {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 3vw, 36px);
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f2ef;
  box-shadow: 0 14px 36px rgba(31, 42, 55, 0.1);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 3.2vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

html[lang="zh-CN"] h1 {
  font-size: clamp(34px, 3.1vw, 50px);
  line-height: 1.14;
}

html[lang="en"] h1 {
  font-size: clamp(30px, 2.75vw, 44px);
  line-height: 1.16;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.25;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.45;
}

.lead {
  max-width: 860px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.hero-message {
  display: grid;
  gap: 8px;
  max-width: 900px;
  margin: 0 0 20px;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 10px 28px rgba(31, 42, 55, 0.06);
}

.hero-message p {
  margin: 0;
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 22px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--accent-dark);
  background: #eef6f8;
  border: 1px solid #c8dfe7;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

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

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.button.primary,
button {
  color: white;
  background: var(--accent);
}

.button.primary:hover,
button:hover {
  background: var(--accent-dark);
}

.button.secondary {
  color: var(--accent-dark);
  background: white;
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--accent);
}

.hero-media {
  width: min(100%, 1380px);
  margin: 0 auto;
  padding-top: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.4;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f2ef;
  box-shadow: 0 20px 60px rgba(31, 42, 55, 0.12);
}

.section {
  padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 72px);
}

.section.muted {
  background: var(--wash);
}

.section-heading {
  display: block;
  max-width: 1160px;
  margin: 0 auto 28px;
  text-align: left;
}

.service-grid,
.school-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
}

.service-grid article,
.school-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.service-grid article:nth-child(2) {
  border-top-color: var(--gold);
}

.service-grid article:nth-child(3) {
  border-top-color: var(--green);
}

.school-grid article {
  min-height: 0;
  padding: 0 0 22px;
  overflow: hidden;
  border-left: 4px solid var(--accent);
}

.school-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.school-grid span {
  display: block;
  margin: 18px 22px 10px;
  color: var(--gold);
  font-weight: 800;
}

.school-grid h3,
.school-grid p {
  margin-left: 22px;
  margin-right: 22px;
}

.service-grid p,
.school-grid p,
.flow-list p,
.contact-copy p,
.required-note,
.form-note {
  color: var(--muted);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.flow-list li {
  padding: 24px;
  border-left: 4px solid var(--accent);
  background: white;
}

.flow-list span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-weight: 800;
}

.flow-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 72px);
  background: #ffffff;
}

.contact-copy {
  max-width: 640px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--muted);
  font-weight: 700;
}

.contact-list dd {
  margin: 0;
}

.qr-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.wechat-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.wechat-card img {
  display: block;
  width: 118px;
  height: 118px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.wechat-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.wechat-card p {
  margin: 0;
  color: var(--muted);
}

.facebook-link {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #c7d8f2;
  border-radius: 8px;
  color: #174ea6;
  background: #f4f8ff;
  font-weight: 800;
}

.facebook-link:hover {
  border-color: #1877f2;
  background: #eaf2ff;
}

.facebook-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: #1877f2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.contact-card {
  display: grid;
  gap: 16px;
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: 700;
}

label span {
  display: inline-flex;
  width: fit-content;
  margin-left: 6px;
  padding: 1px 6px;
  color: white;
  background: var(--accent);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.label-text {
  display: inline;
  width: auto;
  margin-left: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border-radius: 0;
  font-size: inherit;
  font-weight: 700;
}

label small {
  color: var(--muted);
  font-size: 12px;
}

input,
select,
textarea {
  flex-basis: 100%;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: white;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(23, 107, 135, 0.18);
  border-color: var(--accent);
}

textarea {
  resize: vertical;
}

.form-note {
  margin: -4px 0 0;
  font-size: 13px;
}

.form-status {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.required-note {
  margin: 0;
  font-size: 13px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 960px) {
  .hero,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-brand-row {
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  }

  .hero {
    min-height: auto;
  }

  .hero-media img {
    max-height: 420px;
  }

  .service-grid,
  .school-grid,
  .flow-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .language-switcher {
    order: -1;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-brand-row {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    max-width: 260px;
  }

  h1 {
    font-size: 34px;
  }

  .service-grid,
  .school-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .wechat-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .wechat-card img {
    width: 112px;
    height: 112px;
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
