:root {
  color-scheme: light dark;
  --brand: #315f70;
  --brand-deep: #173f4d;
  --ink: #173f4d;
  --paper: #f4f8f7;
  --surface: #ffffff;
  --muted: #607a83;
  --line: #cedfe2;
  --lime: #d6ea4e;
  --content: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #173f4d;
    --brand-deep: #0f2e38;
    --ink: #e2eff1;
    --paper: #0e2026;
    --surface: #173039;
    --muted: #a9bec4;
    --line: #315763;
  }
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }

.hub-shell { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; }
.hub-header { min-height: 72px; color: #f4fafa; background: var(--brand); }
.brand-row { min-height: 72px; display: flex; align-items: center; gap: 16px; font-size: 16px; font-weight: 700; }
.brand-row img { width: 100px; height: 44px; object-fit: contain; }

.hub-intro { padding: 88px 0 54px; }
.hub-intro > p { margin: 0 0 18px; color: #17899a; font-weight: 800; letter-spacing: 0.04em; }
.hub-intro h1 { max-width: 850px; margin: 0; font-size: clamp(44px, 6vw, 76px); line-height: 1.08; letter-spacing: -0.045em; }
.intro-note { max-width: 58ch; margin-top: 24px; color: var(--muted); font-size: 18px; }

.project-list { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 24px; padding-bottom: 90px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.project-image { min-height: 340px; background: url("./shanghai-g1-g9/assets/images/hero-students.avif") center 42% / cover no-repeat; }
.project-copy { padding: 30px; }
.project-copy > p { margin: 0 0 8px; color: #17899a; font-weight: 800; }
.project-copy h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.16; letter-spacing: -0.035em; }
.project-copy > div { margin: 14px 0 24px; color: var(--muted); }
.project-copy a { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 21px; border-radius: 999px; background: var(--brand-deep); color: #f4fafa; font-weight: 750; }
.project-copy a:hover { background: #197f90; }

.project-coy { display: flex; flex-direction: column; background: var(--brand-deep); color: #f4fafa; }
.project-coy .project-copy { margin-top: auto; }
.project-coy .project-copy h2 { color: #f4fafa; }
.project-coy .project-copy > div { color: rgba(244, 250, 250, 0.72); }
.project-coy .project-copy a { background: var(--lime); color: #203e47; }
.coy-mark { padding: 38px 32px 0; color: var(--lime); font-size: 28px; line-height: 0.88; letter-spacing: -0.03em; }
.coy-mark strong { font-size: clamp(84px, 12vw, 148px); letter-spacing: -0.08em; }

.hub-footer { padding: 34px 0; color: rgba(244, 250, 250, 0.8); background: var(--brand-deep); }
.hub-footer .hub-shell { display: flex; justify-content: space-between; gap: 24px; }
.hub-footer p { margin: 0; }
.hub-footer a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.28); text-underline-offset: 3px; }

@media (max-width: 760px) {
  .hub-shell { width: calc(100% - 28px); }
  .hub-intro { padding: 62px 0 38px; }
  .hub-intro h1 { font-size: 42px; }
  .project-list { grid-template-columns: 1fr; padding-bottom: 62px; }
  .project-image { min-height: 240px; }
  .project-copy { padding: 24px; }
  .project-copy a { width: 100%; justify-content: center; }
  .project-coy { min-height: 540px; }
  .hub-footer .hub-shell { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
