:root {
  --brand-green: #2e7d32;
  --brand-blue: #1976d2;
  --accent: #d7f75b;
  --accent-hover: #c9ea48;
  --accent-pressed: #bbdd38;
  --ink: #0b1b12;
  --muted: #5b6468;
  --canvas: #fefefe;
  --surface: #f3f6ef;
  --border: #dce4d8;
  --on-dark: #fff;
  --font-sans: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --container: 1280px;
  --page-pad: 48px;
  --section-space: 96px;
  --radius-card: 20px;
  --radius-control: 12px;
  --radius-pill: 999px;
  --nav-h: 80px;
  --ease: 180ms ease-out;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - 2 * var(--page-pad)));
  margin-inline: auto;
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(var(--page-pad), calc((100vw - var(--container)) / 2));
  background: rgba(254, 254, 254, .94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color var(--ease);
}

.nav.is-scrolled { border-bottom-color: var(--border); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand img {
  width: auto;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  text-decoration: none;
  transition: color var(--ease), background var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
}

.nav-links a[aria-current="page"] {
  background: var(--accent);
}

.nav-links .button {
  margin-left: 8px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--canvas);
  color: var(--ink);
  cursor: pointer;
}

.mobile-menu { display: none; }

/* Buttons */
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: none; }

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

.button-primary:hover { background: var(--accent-hover); }
.button-primary:active { background: var(--accent-pressed); }

.button-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: var(--on-dark);
}

.button-secondary:hover { background: rgba(255, 255, 255, .12); }

.button-secondary.on-light {
  border-color: var(--border);
  color: var(--ink);
}

.button-secondary.on-light:hover { background: var(--surface); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 56px) 0 64px;
  color: var(--on-dark);
  text-align: left;
  background:
    linear-gradient(rgba(9, 42, 65, .35), rgba(9, 42, 65, .35)),
    url("resources/images/hero-sky-serve.png") center center / cover no-repeat;
}

.hero::before,
.hero::after {
  content: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 20px;
}

.hero-title {
  margin: 0 0 24px;
  font-size: clamp(42px, 5.56vw, 80px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.04em;
}

.hero-title span { display: block; }

.hero-copy {
  max-width: 540px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, .9);
  font-size: 18px;
  line-height: 29px;
}

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

.hero-note {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

/* Sections */
.section { padding: var(--section-space) 0; }
.section-surface { background: var(--surface); }
.section-compact { --section-space: 64px; }
.section-compact .section-header { margin-bottom: 24px; }

.section-header {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--brand-green);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 20px;
}

.section h2,
.section-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.025em;
}

.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 26px;
}

.section-cta { margin-top: 32px; }

.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

/* Events */
.event-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.event-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--canvas);
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 27, 18, .08);
  border-color: #c8d5c2;
}

.events-load-more {
  display: flex;
  width: fit-content;
  margin: 24px auto 0;
}

.events-load-more[hidden] {
  display: none;
}

.event-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  margin-bottom: 12px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--brand-green);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.event-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.event-meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.event-card p {
  margin: 0 0 14px;
  color: var(--muted);
  flex: 1;
}

.event-note {
  margin: 32px 0 0;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

.text-link {
  color: var(--brand-blue);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* About / community */
.community-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 32px;
  align-items: center;
}

.community-copy p {
  margin: 0 0 16px;
  color: var(--muted);
}

.community-copy p:last-of-type { margin-bottom: 24px; }

.audience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: start;
  gap: 7px 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.audience-list li {
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--canvas);
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  white-space: nowrap;
}

.audience-list li:last-child {
  grid-column: 1 / -1;
  justify-self: start;
}

@media (max-width: 640px) {
  .audience-list {
    grid-template-columns: 1fr;
  }

  .audience-list li:last-child {
    grid-column: auto;
    justify-self: start;
  }
}

.community-panel {
  position: relative;
  min-height: 300px;
  padding: 28px;
  border-radius: 24px;
  overflow: hidden;
  color: var(--on-dark);
  background:
    linear-gradient(160deg, rgba(25, 118, 210, .92), rgba(46, 125, 50, .88)),
    linear-gradient(45deg, var(--brand-blue), var(--brand-green));
}

.community-panel::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  pointer-events: none;
}

.community-panel > * { position: relative; z-index: 1; }

.community-panel .section-kicker { color: var(--accent); }

.community-panel h3 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.community-panel p {
  margin: 0;
  color: rgba(255, 255, 255, .86);
  max-width: 34ch;
}

/* Cards / history preview */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.story-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--canvas);
  text-decoration: none;
  transition: box-shadow var(--ease), transform var(--ease);
}

.story-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 27, 18, .08);
}

.story-card time {
  display: block;
  margin-bottom: 12px;
  color: var(--brand-green);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.story-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
}

.story-card p {
  margin: 0 0 20px;
  color: var(--muted);
  flex: 1;
}

/* Partners */
.partner-section {
  padding: 56px 0;
}

.partner-heading {
  margin-bottom: 28px;
  text-align: center;
}

.partner-heading .section-kicker {
  margin-bottom: 6px;
}

.partner-heading h2 {
  margin: 0;
}

.partner-logos {
  display: grid;
  gap: 20px;
}

.partner-logos-primary,
.partner-logos-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.partner-logos-primary {
  gap: 24px;
}

.partner-logo {
  display: grid;
  place-items: center;
}

.partner-logo-primary {
  width: min(100%, 380px);
  height: 116px;
  padding: 16px 22px;
}

.partner-logo-primary img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-logos-secondary {
  gap: 16px;
}

.partner-logo-secondary {
  width: 160px;
  height: 80px;
  padding: 10px 14px;
}

.partner-logo-secondary img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-logo-webox img {
  width: 90%;
  height: 90%;
}

/* Contact */
.contact-band {
  padding: 40px 0;
  background: #d8ebf0;
  color: var(--ink);
}

.contact-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px 40px;
}

.contact-info {
  flex: 1 1 600px;
}

.contact-title {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 32px;
}

.contact-band .social-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #354b53;
  font-size: 14px;
  line-height: 22px;
}

.contact-band .social-list strong {
  display: inline;
  margin-right: 8px;
  color: var(--ink);
}

.contact-band .social-list a {
  color: var(--brand-blue);
  text-underline-offset: 3px;
}

.contact-band .button-secondary {
  border-color: rgba(11, 27, 18, .3);
  color: var(--ink);
}

.contact-band .button-secondary:hover {
  background: rgba(11, 27, 18, .08);
}

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

/* Footer */
.footer {
  padding: 40px 0;
  background: #f1f3c7;
  color: #34402b;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
}

.footer-brand img {
  height: 28px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a {
  color: #34402b;
  text-decoration: none;
}

.footer-links a:hover { color: #a94e26; }

.footer p { margin: 0; }

/* Inner pages */
.page-hero {
  padding: calc(var(--nav-h) + 56px) 0 24px;
}

.page-hero .hero-title {
  margin-bottom: 16px;
  color: var(--ink);
}

.page-hero > p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 29px;
}

.page-hero .hero-actions {
  margin: 28px 0 0;
}

.page-section {
  padding-bottom: var(--section-space);
}

/* History */
.history-toolbar,
.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0;
}

.lang-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.lang-toggle button {
  min-height: 36px;
  padding: 6px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--ink);
}

.history-list {
  display: grid;
  gap: 20px;
}

.history-article {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--canvas);
}

.history-article time {
  display: block;
  margin-bottom: 12px;
  color: var(--brand-green);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.history-article h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.02em;
}

.history-body { color: var(--muted); }
.history-body p { margin: 0 0 14px; }
.history-body p:last-child { margin-bottom: 0; }

.history-source { margin-top: 20px; font-size: 15px; }
.history-source a {
  color: var(--brand-blue);
  font-weight: 700;
  text-underline-offset: 3px;
}

html[lang="zh"] .hero-title {
  font-size: clamp(36px, 4.45vw, 64px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}

@media (max-width: 1199px) {
  :root {
    --page-pad: 32px;
    --section-space: 72px;
  }

  .event-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }

  .mobile-menu {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    z-index: 29;
    display: none;
    width: min(320px, 88vw);
    padding: 16px 20px 24px;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--border);
    border-top: 0;
    border-radius: 0 0 0 16px;
    background: rgba(254, 254, 254, .98);
    box-shadow: 0 16px 32px rgba(11, 27, 18, .1);
  }

  .mobile-menu.open { display: flex; }

  .mobile-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 4px;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-menu a:last-child {
    margin-top: 12px;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--accent);
  }
}

@media (max-width: 767px) {
  :root {
    --page-pad: 20px;
    --section-space: 56px;
    --nav-h: 64px;
  }

  .hero {
    min-height: 560px;
    padding: calc(var(--nav-h) + 40px) 0 56px;
    background-position: right center;
  }

  .hero-copy { font-size: 16px; line-height: 26px; }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button { width: 100%; min-height: 48px; }
  .nav-links .button { width: auto; }

  .event-grid,
  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .event-card h3 { font-size: 22px; line-height: 30px; }
  .section-header { margin-bottom: 24px; }
  .community-panel { min-height: 260px; padding: 24px; }
  .history-article { padding: 24px; }

  .history-toolbar,
  .page-toolbar,
  .section-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .partner-section { padding: 44px 0; }
  .partner-heading { margin-bottom: 20px; }
  .partner-logos { gap: 16px; }
  .partner-logos-primary { gap: 12px; }
  .partner-logo-primary { width: calc(50% - 6px); height: 76px; padding: 10px; }
  .partner-logos-secondary { gap: 10px; }
  .partner-logo-secondary { width: 128px; height: 64px; padding: 8px 10px; }
  .contact-band .social-list { grid-template-columns: 1fr; }
  .contact-actions { width: 100%; }
  .contact-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
