:root {
  --blue: #063f8f;
  --blue-dark: #012d6d;
  --blue-soft: #0b55a7;
  --yellow: #e2c548;
  --orange: #ee7417;
  --cream: #f5f0df;
  --paper: #fffdf6;
  --ink: #083873;
  --line: rgba(6, 63, 143, 0.2);
  --max: 1180px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(6, 63, 143, 0.045) 1px, transparent 1px),
    var(--cream);
  background-size: 100% 44px;
  color: var(--ink);
  font-family: var(--sans);
}

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

.community-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 18px auto 0;
  padding: 12px 18px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.93);
  backdrop-filter: blur(18px);
}

.community-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 21px;
  letter-spacing: -0.04em;
}

.cat-mark {
  position: relative;
  width: 29px;
  height: 24px;
  display: inline-block;
  background: var(--blue);
  clip-path: polygon(0 0, 26% 14%, 50% 0, 74% 14%, 100% 0, 100% 100%, 0 100%);
}

.cat-mark i {
  position: absolute;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--paper);
}

.cat-mark i:first-child {
  left: 8px;
}

.cat-mark i:last-child {
  right: 8px;
}

.back-home {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--paper);
  font-size: 13px;
  font-weight: 760;
}

main,
footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.community-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
  min-height: 700px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 44px;
  background: var(--blue);
  color: var(--paper);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 7vw, 92px);
}

.eyebrow,
.section-label {
  margin: 0;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.community-hero .eyebrow {
  color: var(--yellow);
}

.community-hero h1 {
  margin: 34px 0 12px;
  font-size: clamp(74px, 11vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.hero-tags {
  margin: 8px 0 0;
  color: var(--yellow);
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 760;
  letter-spacing: 0.08em;
}

.hero-tags span {
  color: rgba(255, 255, 255, 0.45);
}

.hero-intro {
  max-width: 600px;
  margin: 54px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.85;
}

.hero-poster {
  min-height: 100%;
  margin: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--blue-dark);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.community-definition,
.community-moments {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(36px, 8vw, 110px);
  align-items: center;
  padding: clamp(90px, 13vw, 170px) clamp(12px, 3vw, 34px);
}

.section-label {
  color: var(--orange);
}

.community-definition h2,
.community-activities h2,
.community-values h2,
.community-moments h2,
.community-locations h2,
.community-follow h2 {
  margin: 18px 0 0;
  color: var(--blue);
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.definition-copy > p,
.moments-copy > p:not(.section-label),
.community-locations header > p:last-child {
  color: rgba(8, 56, 115, 0.76);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.9;
}

.definition-note {
  margin: 28px 0 0;
  padding: 14px 0 14px 20px;
  border-left: 4px solid var(--yellow);
  color: var(--blue);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.65;
  font-weight: 760;
}

.community-activities {
  padding: clamp(54px, 8vw, 90px);
  border-radius: 44px;
  background: var(--yellow);
}

.activity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 52px;
}

.activity-list span {
  padding: 14px 18px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--paper);
  color: var(--blue);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 760;
}

.activity-note {
  max-width: 680px;
  margin: 36px 0 0;
  color: var(--blue);
  font-size: 16px;
  line-height: 1.8;
}

.community-values {
  margin-top: clamp(80px, 12vw, 150px);
}

.community-values > header {
  padding: 0 clamp(12px, 3vw, 34px);
}

.value-grid {
  display: grid;
  gap: 16px;
  margin-top: 56px;
}

.value-grid article {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(30px, 5vw, 58px);
  border: 2px solid var(--blue);
  border-radius: 36px;
  background: var(--paper);
}

.value-grid article > span {
  color: transparent;
  font-size: clamp(78px, 10vw, 138px);
  line-height: 0.8;
  font-weight: 900;
  -webkit-text-stroke: 2px var(--blue);
}

.value-grid h3 {
  margin: 0;
  color: var(--orange);
  font-size: 15px;
  letter-spacing: 0.06em;
}

.value-grid h4 {
  margin: 9px 0 16px;
  color: var(--blue);
  font-size: clamp(26px, 3.5vw, 48px);
  line-height: 1.15;
}

.value-grid p {
  max-width: 720px;
  margin: 0;
  color: rgba(8, 56, 115, 0.74);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.8;
}

.community-moments {
  grid-template-columns: 1fr;
  margin-top: clamp(80px, 12vw, 150px);
  padding: clamp(38px, 6vw, 78px);
  border-radius: 44px;
  background: var(--blue);
}

.moments-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 12px solid var(--paper);
  border-radius: 30px;
  background: var(--paper);
}

.moments-main {
  min-height: 0;
  aspect-ratio: 1212 / 941;
}

.moments-slices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.moments-slices figure {
  aspect-ratio: 4 / 3;
}

.moments-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.community-moments .moments-copy {
  max-width: 900px;
}

.community-moments h2 {
  color: var(--paper);
}

.community-moments .moments-copy > p:not(.section-label) {
  color: rgba(255, 255, 255, 0.78);
}

.community-locations {
  padding: clamp(90px, 13vw, 170px) clamp(12px, 3vw, 34px);
}

.community-locations header {
  max-width: 820px;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 52px;
}

.location-grid article {
  min-height: 300px;
  padding: clamp(30px, 5vw, 56px);
  border-radius: 36px;
  background: var(--blue);
  color: var(--paper);
}

.location-grid span {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 850;
}

.location-grid h3 {
  margin: 58px 0 18px;
  font-size: clamp(34px, 4vw, 56px);
}

.location-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.8;
}

.location-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 28px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.location-link:hover {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--blue);
}

.community-follow {
  padding: clamp(54px, 8vw, 90px);
  border-radius: 44px;
  background: var(--yellow);
}

.community-follow > header {
  max-width: 760px;
}

.community-follow > header > p:last-child {
  color: rgba(8, 56, 115, 0.76);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.8;
}

.follow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.follow-grid article {
  display: grid;
  gap: 24px;
  align-content: start;
  padding: clamp(24px, 3vw, 34px);
  border: 2px solid var(--blue);
  border-radius: 30px;
  background: var(--paper);
}

.follow-grid img {
  width: min(190px, 100%);
  aspect-ratio: 1;
  display: block;
  justify-self: center;
  padding: 8px;
  background: #fff;
  object-fit: contain;
}

.follow-grid span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.follow-grid h3 {
  margin: 8px 0 6px;
  color: var(--blue);
  font-size: clamp(23px, 2.6vw, 34px);
  line-height: 1.2;
}

.follow-grid p {
  margin: 0;
  color: rgba(8, 56, 115, 0.68);
  font-size: 14px;
  line-height: 1.6;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 28px 34px;
  border-radius: 30px;
  background: var(--yellow);
  color: var(--blue);
  font-weight: 760;
}

footer p {
  margin: 0;
}

footer a {
  padding-bottom: 3px;
  border-bottom: 2px solid currentColor;
}

@media (max-width: 900px) {
  .community-hero,
  .community-definition,
  .community-moments {
    grid-template-columns: 1fr;
  }

  .community-hero {
    min-height: 0;
  }

  .hero-poster {
    min-height: 520px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .community-definition,
  .community-moments {
    gap: 46px;
  }

  .value-grid article {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .moments-gallery figure {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .community-nav,
  main,
  footer {
    width: min(100% - 24px, var(--max));
  }

  .community-nav {
    min-height: 60px;
  }

  .community-brand {
    font-size: 18px;
  }

  .back-home {
    font-size: 11px;
  }

  .community-hero,
  .community-activities,
  .community-moments,
  .community-follow {
    border-radius: 30px;
  }

  .hero-copy {
    padding: 48px 26px;
  }

  .community-hero h1 {
    font-size: clamp(68px, 24vw, 108px);
  }

  .hero-intro {
    margin-top: 36px;
  }

  .hero-poster {
    min-height: 390px;
  }

  .community-definition,
  .community-locations {
    padding-inline: 4px;
  }

  .community-activities {
    padding: 42px 24px;
  }

  .value-grid article {
    grid-template-columns: 1fr;
    gap: 24px;
    border-radius: 28px;
  }

  .value-grid article > span {
    font-size: 82px;
  }

  .community-moments {
    padding: 24px;
  }

  .moments-gallery figure {
    min-height: 0;
    border-width: 8px;
  }

  .moments-slices {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .follow-grid {
    grid-template-columns: 1fr;
  }

  footer {
    display: grid;
    padding: 24px;
  }
}
