/* ============================================================
   优港国际教育 · 共用设计系统（首页与详情页通用）
   ============================================================ */
:root {
  --navy:       #0D2137;
  --navy-2:     #1A3A5C;
  --gold:       #C9A84C;
  --gold-light: #F0E4C0;
  --gold-ink:   #7d6016;   /* 浅底上的金色小字（满足 AA 对比度）*/
  --bg:         #F7F5F0;
  --white:      #FFFFFF;
  --border:     rgba(13, 33, 55, 0.08);

  --text-1:     #111111;
  --text-2:     #555555;
  --text-3:     #6b6b6b;

  --success:    #1D9E75;
  --warning:    #EF9F27;
  --error:      #E24B4A;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-card: 0 2px 16px rgba(13, 33, 55, 0.07);
  --shadow-lift: 0 12px 34px rgba(13, 33, 55, 0.13);

  --serif: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  --sans:  'DM Sans', 'Noto Sans SC', system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--sans); color: var(--text-1); background: var(--white);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 40px; }
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px;
}
.section-title { font-size: clamp(24px, 3.2vw, 32px); color: var(--navy); }
.section-sub { margin-top: 14px; font-size: 15px; color: var(--text-2); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 24px;
  border-radius: var(--r-sm); font-family: var(--sans); font-size: 14px; font-weight: 500;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .22s ease, background .2s ease, color .2s ease;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(201,168,76,.34); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.8); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }

/* 导航栏 */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  background: var(--navy); border-bottom: 1px solid transparent;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
}
.nav.scrolled {
  background: rgba(13,33,55,.82); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border-bottom-color: rgba(255,255,255,.08);
}
.nav-inner { max-width: var(--maxw); margin-inline: auto; padding-inline: 40px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 8px; background: var(--gold); color: var(--navy);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700;
  font-size: 17px; letter-spacing: -.02em;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand-cn { color: var(--white); font-weight: 600; font-size: 16px; letter-spacing: .04em; }
.brand-en { color: rgba(255,255,255,.5); font-size: 10px; letter-spacing: .08em; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { position: relative; color: rgba(255,255,255,.78); font-size: 14px; padding: 6px 0; transition: color .2s ease; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold); transition: width .25s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-toggle { display: inline-flex; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; overflow: hidden; font-size: 12px; }
.lang-toggle button { background: transparent; border: none; color: rgba(255,255,255,.6); padding: 5px 12px; cursor: pointer; font-family: var(--sans); transition: all .2s ease; }
.lang-toggle button.on { background: var(--gold); color: var(--navy); }
.nav .btn-gold { height: 38px; padding: 0 18px; }
.hamburger { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; line-height: 1; }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99; background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08); padding: 16px 40px 28px;
  display: none; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: rgba(255,255,255,.8); font-size: 15px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-menu .btn { margin-top: 16px; justify-content: center; }
.mobile-menu .lang-toggle { margin-top: 16px; align-self: flex-start; }

/* Footer */
.footer { background: var(--navy); color: var(--white); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer .brand { margin-bottom: 18px; }
.footer-desc { font-size: 12.5px; color: rgba(255,255,255,.45); line-height: 1.85; max-width: 240px; }
.footer-copy { margin-top: 18px; font-size: 12px; color: rgba(255,255,255,.32); }
.footer-col h3 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 600; }
.footer-col a, .footer-col li { display: block; font-size: 13px; color: rgba(255,255,255,.55); padding: 6px 0; transition: color .2s ease; }
.footer-col a:hover { color: var(--white); }
.contact-row { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.contact-info { display: flex; flex-direction: column; gap: 18px; padding-top: 2px; }
.contact-phone .ci-label { display: block; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 5px; }
.contact-phone a { display: inline-flex; align-items: center; gap: 7px; padding: 0;
  font-family: var(--serif); font-size: 21px; color: var(--gold); transition: color .2s ease; }
.contact-phone a:hover { color: var(--gold-light); }
.contact-phone a i { font-size: 18px; }
.qr { margin: 0; }
.qr img { width: 134px; height: 134px; object-fit: contain; background: var(--white); border-radius: 12px; padding: 7px; }
.qr .qr-fallback { display: none; }
.qr figcaption { margin-top: 9px; font-size: 11.5px; color: rgba(255,255,255,.5); max-width: 134px; }
.qr--missing img { display: none; }
.qr--missing .qr-fallback {
  display: grid; place-items: center; gap: 8px; width: 134px; height: 134px; padding: 16px;
  box-sizing: border-box; border: 1px solid rgba(255,255,255,.22); border-radius: 12px;
  color: rgba(255,255,255,.5); font-size: 12px; text-align: center;
}
.qr--missing .qr-fallback i { font-size: 30px; color: rgba(255,255,255,.35); }
.footer-hours { font-size: 12.5px; color: rgba(255,255,255,.5); line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; text-align: center; font-size: 12px; color: rgba(255,255,255,.28); }

/* 图表区块 */
.chart-figure {
  margin: 44px auto 0; max-width: 820px; text-align: center;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 28px 20px;
  box-shadow: var(--shadow-card);
}
.chart-figure img {
  width: 100%; height: auto; border-radius: var(--r-md);
  display: block; margin: 0 auto;
}
.chart-figure figcaption {
  margin-top: 12px; font-size: 12.5px; color: var(--text-3);
  letter-spacing: .01em; line-height: 1.6;
}

/* 滚动淡入 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* 响应式 */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 768px) {
  .wrap, .nav-inner { padding-inline: 22px; }
  .section { padding: 56px 0; }
  .nav-links, .nav-actions .lang-toggle, .nav-actions .btn-gold { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
