:root {
  --ink: #151515;
  --muted: #666b73;
  --line: #e6e1d8;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --red: #c9342f;
  --blue: #1677a8;
  --green: #18805f;
  --gold: #b7791f;
  --shadow: 0 22px 60px rgba(18, 18, 18, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 21, 21, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.9);
  border-bottom: 1px solid rgba(21, 21, 21, 0.1);
  backdrop-filter: blur(14px) saturate(150%);
}

.nav-inner {
  width: min(1160px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(21, 21, 21, 0.16);
}

.brand-name {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #393939;
  font-size: 0.94rem;
}

.primary-nav a {
  transition: color 0.2s ease;
}

.primary-nav a:hover {
  color: var(--red);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--red);
  border-color: var(--red);
}

.particle-hero {
  padding: 24px 20px 72px;
}

.download-card,
.hero-card {
  position: relative;
  width: min(1160px, 100%);
  min-height: calc(100vh - 120px);
  max-height: 780px;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.34) 58%, rgba(0, 0, 0, 0.72)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.84));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 48px));
  min-height: calc(100vh - 120px);
  max-height: 780px;
  padding: 86px 0 120px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.eyebrow,
.section-kicker {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: #75d6ff;
  margin-bottom: 18px;
}

.typed-heading {
  min-height: 1.18em;
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(3rem, 6.2vw, 5.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.typed-heading .char {
  display: inline-block;
  opacity: 0;
  transition: opacity 0.05s ease;
}

.typed-heading .char.visible {
  opacity: 1;
}

.typed-heading .caret {
  display: inline-block;
  width: 5px;
  height: 0.86em;
  margin-left: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff5a4f, #4cc9f0);
  vertical-align: -0.06em;
  box-shadow: 0 0 18px rgba(76, 201, 240, 0.7);
  animation: caret-pulse 1.4s ease-in-out infinite;
}

@keyframes caret-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }

  50% {
    opacity: 0.35;
    transform: scaleY(0.9);
  }
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.18rem;
}

.hero-actions,
.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #fff;
  color: #111;
}

.join-section .btn-primary,
.nav-cta {
  background: var(--ink);
  color: #fff;
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.cursor-overlay {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 201, 240, 0.18), transparent 62%);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.resource-strip {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.resource-strip span,
.resource-strip a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.resource-strip span {
  margin-right: 4px;
}

.resource-strip a {
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.resource-strip a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
}

.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading h2,
.intro-grid h2,
.join-copy h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p,
.intro-copy,
.join-copy > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-section {
  background: #fff;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.intro-copy {
  display: grid;
  gap: 18px;
}

.value-grid,
.department-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.value-card,
.department-card,
.activity-list article,
.qr-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(21, 21, 21, 0.055);
}

.value-card {
  position: relative;
  --value-image-height: 152px;
  min-height: 420px;
  padding: 28px 28px calc(var(--value-image-height) + 20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  transition: transform 0.42s ease, box-shadow 0.42s ease, border-color 0.42s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 21, 21, 0.18);
  box-shadow: 0 26px 70px rgba(21, 21, 21, 0.18);
}

.value-card-copy {
  position: relative;
  z-index: 2;
  max-width: 96%;
  transition: color 0.48s ease, transform 0.58s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card-media {
  position: absolute;
  z-index: 1;
  inset: calc(100% - var(--value-image-height)) 0 0;
  overflow: hidden;
  background: #111;
  mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.18) 18%, #000 42%);
  transition:
    inset 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    mask-image 0.28s ease;
}

.value-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.16)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.32), transparent 58%);
  opacity: 0.5;
  transition: opacity 0.48s ease, background 0.48s ease;
}

.value-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(8px) scale(1.05);
  transition: transform 0.76s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card:hover .value-card-media {
  inset: 0;
  mask-image: linear-gradient(#000, #000);
}

.value-card:hover .value-card-media::before {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.32)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.74));
}

.value-card:hover .value-card-media img {
  transform: translateY(0) scale(1.1);
}

.value-card:hover .value-card-copy {
  color: #fff;
  transform: translateY(4px);
}

.value-card:hover .card-index,
.value-card:hover p {
  color: rgba(255, 255, 255, 0.86);
}

.card-index {
  color: var(--red);
  font-weight: 900;
  font-size: 0.9rem;
}

.value-card h3,
.department-card h3,
.activity-list h3,
.qr-panel h3 {
  margin-top: 18px;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.value-card p,
.department-card p,
.activity-list p,
.qr-panel p {
  margin-top: 12px;
  color: var(--muted);
}

.department-section {
  background: #fff;
}

.department-card {
  position: relative;
  min-height: 330px;
  padding: 26px;
  overflow: hidden;
}

.department-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--red);
}

.department-card.ops::before {
  background: var(--blue);
}

.department-card.project::before {
  background: var(--green);
}

.department-card.workshop::before {
  background: var(--gold);
}

.department-card.media::before {
  background: var(--red);
}

.department-label {
  color: #8a8a8a;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.department-duty {
  min-height: 86px;
}

.department-gain {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.activity-section {
  background: #f2f7f5;
}

.activity-grid {
  display: grid;
  gap: 28px;
}

.activity-overview {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 70px;
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 104px;
  margin-bottom: 0;
}

.activity-list {
  display: grid;
  gap: 16px;
}

.activity-list article {
  padding: 28px;
}

.activity-list span {
  color: var(--green);
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.activity-list h3 {
  margin-top: 8px;
}

.activity-gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr repeat(2, minmax(0, 0.8fr));
  grid-auto-rows: 210px;
  gap: 14px;
  margin-top: 10px;
}

.activity-gallery figure {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  box-shadow: 0 16px 42px rgba(21, 21, 21, 0.12);
}

.activity-gallery figure::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
  pointer-events: none;
}

.activity-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.activity-gallery figure:hover img {
  transform: scale(1.04);
}

.activity-gallery figcaption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  left: 18px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.gallery-feature {
  grid-row: span 2;
}

.gallery-feature figcaption {
  max-width: 430px;
  font-size: 1.12rem;
}

.activity-window {
  grid-column: 1 / -1;
  min-height: 460px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 8px;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.38) 58%, rgba(0, 0, 0, 0.7)),
    url("assets/activities/maker-booth-recruitment.webp");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  box-shadow: 0 24px 70px rgba(21, 21, 21, 0.18);
}

.activity-window-content {
  width: min(620px, calc(100% - 48px));
  margin-left: clamp(24px, 8vw, 92px);
  color: #fff;
}

.activity-window-content .section-kicker {
  color: #75d6ff;
}

.activity-window h3 {
  margin-top: 12px;
  max-width: 560px;
  font-size: clamp(2rem, 4.1vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.activity-window p:not(.section-kicker) {
  max-width: 620px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.window-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 28px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.window-link:hover {
  transform: translateY(-1px);
  background: #fff;
  color: var(--ink);
}

.join-section {
  background:
    linear-gradient(135deg, rgba(201, 52, 47, 0.08), rgba(22, 119, 168, 0.08)),
    #fff;
}

.join-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.join-copy > p {
  max-width: 720px;
}

.join-note {
  max-width: 640px;
  margin-top: 22px;
  color: #555;
  font-size: 0.95rem;
}

.qr-panel {
  padding: 28px;
}

.qr-img {
  width: min(260px, 100%);
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-panel strong {
  color: var(--ink);
  font-size: 1.12rem;
}

.site-footer {
  padding: 58px 0 26px;
  background: #111;
  color: #cfcfcf;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.7fr;
  gap: 42px;
  padding-bottom: 32px;
  border-bottom: 1px solid #2b2b2b;
}

.footer-brand {
  color: #fff;
  font-size: 1.24rem;
  font-weight: 900;
}

.footer-inner p {
  margin-top: 8px;
}

.footer-inner h4 {
  margin-bottom: 12px;
  color: #fff;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin-bottom: 8px;
}

.site-footer a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.copyright {
  padding-top: 24px;
  color: #838383;
  text-align: center;
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .primary-nav {
    display: none;
  }

  .hero-content {
    width: min(760px, calc(100% - 42px));
    padding-left: 7%;
  }

  .intro-grid,
  .activity-overview,
  .join-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .sticky-heading {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .activity-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }

  .gallery-feature {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .activity-window {
    min-height: 390px;
    background-attachment: scroll;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-inner {
    width: min(100% - 28px, 1160px);
  }

  .nav-inner {
    min-height: 62px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .nav-cta {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .particle-hero {
    padding: 14px 14px 54px;
  }

  .download-card,
  .hero-card,
  .hero-content {
    min-height: 620px;
    max-height: none;
  }

  .hero-content {
    width: calc(100% - 36px);
    padding: 72px 0 130px 24px;
  }

  .typed-heading {
    font-size: clamp(2.35rem, 12vw, 3rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

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

  .resource-strip {
    right: 16px;
    bottom: 16px;
    left: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .resource-strip span {
    width: 100%;
  }

  .section {
    padding: 68px 0;
  }

  .value-grid,
  .department-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .value-card,
  .department-card {
    min-height: auto;
  }

  .value-card {
    --value-image-height: 142px;
    min-height: 360px;
  }

  .department-duty {
    min-height: 0;
  }

  .activity-list article,
  .qr-panel {
    padding: 22px;
  }

  .activity-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .activity-gallery figcaption,
  .gallery-feature figcaption {
    font-size: 0.92rem;
  }

  .activity-window {
    min-height: 360px;
  }

  .activity-window-content {
    width: calc(100% - 40px);
    margin-left: 20px;
  }

  .activity-window p:not(.section-kicker) {
    font-size: 0.98rem;
  }
}
