:root {
  --red: #d52b1e;
  --red-dark: #a91f16;
  --ink: #25313a;
  --muted: #66717a;
  --paper: #fff;
  --soft: #f8f9fa;
  --sand: #e9e0d6;
  --navy: #123a5a;
  --line: #e4e7e9;
  --shadow: 0 18px 55px rgba(33, 45, 55, 0.12);
  --radius: 22px;
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.65;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--red);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
textarea,
select {
  font: inherit;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #fff;
  color: #000;
  padding: 10px;
  z-index: 999;
}
.skip-link:focus {
  left: 8px;
}
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 0.9rem;
}
.topbar .wrap {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar a {
  color: #fff;
}
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  z-index: 50;
  backdrop-filter: blur(12px);
}
.nav-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.brand img {
  width: 116px;
  height: 74px;
  object-fit: contain;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  color: var(--ink);
  font-weight: 700;
  padding: 12px 10px;
  border-radius: 10px;
  font-size: 0.94rem;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--red);
  background: #fff4f2;
  text-decoration: none;
}
.academy,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s;
}
.academy,
.btn-primary {
  background: var(--red);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(213, 43, 30, 0.22);
}
.academy:hover,
.btn-primary:hover {
  background: var(--red-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-secondary {
  border-color: var(--red);
  color: var(--red);
  background: #fff;
}
.section-red .btn-secondary {
  color: var(--red) !important;
}
.lang-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}
.menu-toggle {
  display: none;
  border: 0;
  background: var(--soft);
  border-radius: 10px;
  padding: 10px 12px;
}
.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
}
.hero {
  min-height: 640px;
  display: grid;
  place-items: center;
  position: relative;
  background:
    linear-gradient(90deg, rgba(15, 35, 51, 0.92), rgba(15, 35, 51, 0.48)),
    url("../images/hero-community.jpg") center/cover;
}
.hero-content {
  color: #fff;
  padding: 90px 0;
  max-width: 750px;
  margin-right: auto;
}
.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.hero .eyebrow {
  color: #ffb2aa;
}
.hero h1,
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 1.02;
  margin: 0 0 24px;
  letter-spacing: -0.045em;
}
.hero p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 650px;
  color: #f1f4f6;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.section {
  padding: 86px 0;
}
.section-soft {
  background: var(--soft);
}
.section-sand {
  background: var(--sand);
}
.section-red {
  background: var(--red);
  color: #fff;
}
.section h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 760px;
}
.section-red .lead,
.section-red a {
  color: #fff;
}
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 8px 24px rgba(33, 45, 55, 0.06);
}
.card h3 {
  margin: 8px 0 10px;
  font-size: 1.3rem;
  line-height: 1.2;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.card-image {
  padding: 0;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-image .card-body {
  padding: 26px;
}
.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff0ee;
  color: var(--red);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.35rem;
}
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.split img {
  width: 100%;
  min-height: 420px;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: -52px;
  position: relative;
  z-index: 2;
}
.stat {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat strong {
  display: block;
  color: var(--red);
  font-size: 2.1rem;
}
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero:after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 80px solid rgba(213, 43, 30, 0.2);
  border-radius: 50%;
  right: -140px;
  top: -170px;
}
.page-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  max-width: 850px;
}
.page-hero p {
  max-width: 720px;
  font-size: 1.2rem;
  color: #dce5eb;
}
.breadcrumb {
  color: #ffbbb5;
  font-weight: 800;
  margin-bottom: 16px;
}
.content {
  max-width: 850px;
}
.content h2 {
  margin-top: 48px;
  font-size: 2rem;
}
.content h3 {
  margin-top: 32px;
}
.content li {
  margin-bottom: 9px;
}
.notice {
  border-left: 5px solid var(--red);
  background: #fff4f2;
  padding: 20px 24px;
  border-radius: 0 14px 14px 0;
}
.crisis {
  background: #fff0ee;
  border: 1px solid #ffc7c2;
  border-radius: 18px;
  padding: 24px;
}
.crisis strong {
  color: var(--red);
}
.resource {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.resource .icon {
  flex: 0 0 48px;
}
.resource a {
  font-weight: 800;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field-full {
  grid-column: 1/-1;
}
.field label {
  font-weight: 800;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #cfd5d9;
  border-radius: 12px;
  padding: 13px 14px;
  background: #fff;
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.consent input {
  margin-top: 6px;
}
.form-status {
  display: none;
  margin-top: 15px;
  padding: 14px;
  border-radius: 10px;
  background: #eaf7ec;
  color: #175c24;
}
.journal-cover {
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top;
}
.footer {
  background: #1d2a33;
  color: #dbe2e6;
  padding: 64px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
}
.footer h3 {
  color: #fff;
}
.footer a {
  color: #dbe2e6;
}
.footer-brand img {
  width: 145px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 18px;
}
.footer-links {
  display: grid;
  gap: 7px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 44px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.powered {
  color: #fff;
  font-weight: 800;
}
.lang-zh {
  display: none;
}
html[data-lang="zh"] .lang-en {
  display: none !important;
}
html[data-lang="zh"] .lang-zh {
  display: initial;
}
html[data-lang="zh"] div.lang-zh,
html[data-lang="zh"] section.lang-zh {
  display: block;
}
.map {
  border: 0;
  width: 100%;
  min-height: 360px;
  border-radius: var(--radius);
}
.map-panel {
  min-height: 420px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: url("../images/toronto.jpg") center/cover;
  box-shadow: var(--shadow);
}
.map-panel .map {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
}
.map-caption {
  position: absolute;
  z-index: 2;
  left: 20px;
  top: 20px;
  max-width: 310px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(33, 45, 55, 0.14);
}
.map-caption strong {
  display: block;
  font-size: 1.15rem;
}
.tag {
  display: inline-block;
  background: #fff0ee;
  color: var(--red);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
  margin: 3px;
}
.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-clean li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 127px;
    background: #fff;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 11px 14px;
  }
  .academy {
    padding: 10px 14px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
}
@media (max-width: 680px) {
  .wrap {
    width: min(100% - 28px, var(--max));
  }
  .topbar .wrap {
    justify-content: center;
  }
  .topbar .top-note {
    display: none;
  }
  .nav-wrap {
    min-height: 76px;
    gap: 9px;
  }
  .brand img {
    width: 88px;
    height: 58px;
  }
  .academy {
    font-size: 0.82rem;
    padding: 9px 12px;
  }
  .lang-toggle {
    font-size: 0.82rem;
    padding: 9px 10px;
  }
  .nav {
    top: 112px;
  }
  .hero {
    min-height: 590px;
  }
  .section {
    padding: 62px 0;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .stats,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    margin-top: -28px;
  }
  .split {
    gap: 30px;
  }
  .split img {
    min-height: 300px;
  }
  .field-full {
    grid-column: auto;
  }
  .footer-brand {
    grid-column: auto;
  }
  .page-hero {
    padding: 70px 0 55px;
  }
  .hero h1,
  .page-hero h1 {
    letter-spacing: -0.03em;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
html[data-lang="zh"] :is(div, section, p, ol, ul, h1, h2, h3).lang-zh {
  display: block;
}
