/* ============================================================
   Meridian Academy Shanghai — 全站共享样式（v2 · 高级感打磨）
   主题：蓝 #185FA5 + 米色 #F1EFE8 + 暖金 #EF9F27
   原则：标题衬线 / 正文无衬线 · 大量留白 · 简洁现代 · 响应式
   ============================================================ */

:root {
  --blue: #185FA5;
  --blue-dark: #0C447C;
  --blue-deep: #042C53;
  --blue-light: #E6F1FB;
  --blue-lighter: #B5D4F4;
  --cream: #F1EFE8;
  --cream-dark: #E4E0D4;
  --gold: #EF9F27;
  --gold-dark: #B8730F;
  --ink: #2C2C2A;
  --ink-soft: #3C3B38;
  --muted: #66645F;
  --line: rgba(12, 68, 124, 0.10);
  --white: #FFFFFF;
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --shadow: 0 26px 60px rgba(4, 44, 83, 0.12);
  --shadow-sm: 0 8px 24px rgba(4, 44, 83, 0.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--blue); color: #fff; }

a { color: var(--blue); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--blue-dark); }

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 56px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: color .25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.nav a:hover { color: var(--blue-dark); background: transparent; }
.nav a:hover::after { transform: scaleX(1); }
.nav a.active { color: var(--blue-dark); background: transparent; font-weight: 600; }
.nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  background: var(--white);
  transition: all .25s ease;
}
.lang-toggle:hover { border-color: var(--blue); color: var(--blue); }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all .28s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(24, 95, 165, 0.26); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(24, 95, 165, 0.34); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 8px 22px rgba(239, 159, 39, 0.30); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(239, 159, 39, 0.40); }
.btn-outline { background: transparent; border: 1.5px solid var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: .2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-dark) 50%, var(--blue) 100%);
  color: #fff;
  padding: 140px 0 152px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 92px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -25%; right: -8%;
  width: 55%; height: 150%;
  background: radial-gradient(circle, rgba(239, 159, 39, 0.20) 0%, transparent 62%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-logo {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 208px; height: 208px;
  border-radius: 50%;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(4, 32, 71, 0.5), 0 0 0 2px rgba(239, 159, 39, 0.55);
}
.hero-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  font-weight: 600;
}
.hero-eyebrow::before {
  content: "";
  width: 36px; height: 2px;
  background: var(--gold);
  display: inline-block;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 58px;
  line-height: 1.16;
  font-weight: 600;
  max-width: 760px;
  margin-bottom: 26px;
  letter-spacing: 0.01em;
}
.hero p.sub {
  font-size: 19px;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.86);
  max-width: 650px;
  margin-bottom: 44px;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; }
.section.cream { background: var(--cream); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.8; }
.section-head .rule {
  position: relative;
  width: 64px; height: 3px; background: var(--gold);
  margin: 22px auto 0; border-radius: 2px;
}
.section-head .rule::before,
.section-head .rule::after {
  content: "";
  position: absolute; top: 0;
  width: 10px; height: 3px;
  background: var(--blue-lighter);
  border-radius: 2px;
}
.section-head .rule::before { left: -18px; }
.section-head .rule::after { right: -18px; }

/* ---------- 统计数字 ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.stat-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 24px 34px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 3px;
  background: var(--gold);
  border-radius: 0 0 3px 3px;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat-num {
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 600;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 13px;
  letter-spacing: 0.01em;
}
.stat-label { color: var(--muted); font-size: 14px; letter-spacing: 0.03em; }

/* ---------- 卡片网格 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card-img { height: 190px; background: var(--blue-light); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-img--ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #E6F1FB 0%, #B5D4F4 100%);
}
.card-img--ph span {
  font-family: var(--serif); font-size: 46px; font-weight: 600;
  color: var(--blue); letter-spacing: 0.06em;
}
.card-body { padding: 24px 26px 26px; }
.card-body h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 9px;
  letter-spacing: 0.01em;
}
.card-body p { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ---------- 特色列表 ---------- */
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 36px; }
.feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  flex: 0 0 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.feature-item h4 { font-size: 16px; color: var(--blue-dark); margin-bottom: 5px; letter-spacing: 0.01em; }
.feature-item p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 68px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 46px;
}
.site-footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer a { color: rgba(255, 255, 255, 0.70); font-size: 14px; transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 11px; }
.footer-logo { height: 122px; width: auto; display: block; }
.footer-brand p {
  font-size: 14px; margin-top: 22px; max-width: 340px; line-height: 1.75;
  position: relative; padding-top: 20px;
}
.footer-brand p::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 46px; height: 2px;
  background: var(--gold);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 26px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 内页 Hero ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 92px);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -45%; right: -10%;
  width: 50%; height: 190%;
  background: radial-gradient(circle, rgba(239, 159, 39, 0.15) 0%, transparent 62%);
  pointer-events: none;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
  position: relative; z-index: 1;
}
.page-hero p { color: rgba(255, 255, 255, 0.82); font-size: 17px; position: relative; z-index: 1; }

/* ---------- 通用排版 ---------- */
.prose { max-width: 800px; }
.prose h3 {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--blue-dark);
  margin: 32px 0 14px;
  letter-spacing: 0.01em;
}
.prose p { color: var(--muted); margin-bottom: 16px; line-height: 1.8; }
.prose ul { margin: 0 0 18px 24px; color: var(--muted); }
.prose li { margin-bottom: 9px; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 500; color: var(--ink); letter-spacing: 0.01em; }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 13px 16px;
  border: 1px solid var(--cream-dark);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--sans);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(24, 95, 165, 0.12);
}
.form-field textarea { resize: vertical; min-height: 130px; }

/* ---------- 团队 / 认证 ---------- */
.team-role {
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: -2px 0 12px;
}
.team-cred {
  margin: 12px 0 0;
  padding-left: 18px;
  list-style: none;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}
.team-cred li { position: relative; margin-bottom: 6px; }
.team-cred li::before {
  content: "—";
  position: absolute;
  left: -16px;
  color: var(--gold);
}
.code-highlight {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.code-highlight .code-label { color: var(--muted); font-size: 13px; letter-spacing: 0.05em; }
.code-highlight .code-value { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--blue-dark); letter-spacing: 0.02em; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 42px; }
  .hero-logo { width: 150px; height: 150px; }
}
@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 16px; }
  .nav a::after { display: none; }
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 88px 0 100px; }
  .hero h1 { font-size: 33px; }
  .hero-logo {
    position: static; transform: none;
    width: 96px; height: 96px;
    margin-bottom: 26px;
  }
  .footer-logo { height: 96px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 30px; }
}
