:root {
  color-scheme: light;
  --ink: #12151A;
  --paper: #F7F4EB;
  --kiwi: #6CA93A;
  --kiwi-deep: #2F6E32;
  --lime: #FFD400;
  --grape: #6A3FBF;
  --orange: #FF8A00;
  --mist: #E5EFE4;
  --line: #D3DCD2;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --header-h: 88px;
  --radius: 18px;
  --headline: "Baloo 2", "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  --body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Space Grotesk", "JetBrains Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

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

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: radial-gradient(rgba(18, 21, 26, 0.8) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

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

a {
  color: var(--kiwi-deep);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--kiwi);
}

button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--grape);
  outline-offset: 3px;
}

.container,
.container-narrow {
  width: min(calc(100% - clamp(1.5rem, 4vw, 3rem)), 1240px);
  margin-inline: auto;
}

.container-narrow {
  max-width: 820px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 300;
  padding: 0.75rem 1.25rem;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 14px 14px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--kiwi) 0 60px,
    var(--lime) 60px 120px,
    var(--grape) 120px 180px,
    var(--orange) 180px 240px
  );
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  z-index: 15;
  background: var(--ink);
  pointer-events: none;
  opacity: 0.85;
}

.header-top {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  min-height: var(--header-h);
  padding-block: 0.75rem;
  transition: min-height 0.25s ease;
}

.site-header.is-scrolled .header-top {
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-family: var(--headline);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--kiwi);
  color: #fff;
  font-family: var(--body);
  font-size: 1.25rem;
  font-weight: 900;
  border-radius: 14px 14px 14px 3px;
  box-shadow: 3px 3px 0 var(--lime);
  transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.04);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border: 2px solid transparent;
  border-radius: 999px 999px 12px 999px;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--kiwi);
  color: #fff;
  box-shadow: 0 4px 0 var(--kiwi-deep);
}

.btn--primary:hover {
  background: var(--kiwi-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--kiwi-deep);
}

.btn--primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--kiwi-deep);
}

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

.btn--ghost:hover {
  background: var(--mist);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn--lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--orange);
}

.btn--lime:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

.header-member {
  margin-left: auto;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 20;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  margin-left: 0.25rem;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--lime);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  border-top: 1px solid var(--line);
  background: var(--mist);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.4rem 0;
  overflow-x: auto;
}

.nav-list a {
  display: block;
  padding: 0.55rem 1.05rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px 999px 12px 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-list a:hover {
  background: var(--lime);
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-list a[aria-current="page"] {
  background: var(--kiwi);
  color: #fff;
}

.nav-quicklinks {
  display: none;
}

body.is-nav-open {
  overflow: hidden;
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(4rem, 10vw, 7rem);
  background: var(--ink);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--kiwi) 0 80px,
    var(--lime) 80px 160px,
    var(--grape) 160px 200px
  );
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.18) 0, transparent 70%);
  pointer-events: none;
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.footer-brand {
  max-width: 340px;
}

.brand--footer {
  color: var(--paper);
  font-size: 1.5rem;
}

.brand--footer .brand-mark {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--kiwi);
}

.brand--footer:hover {
  color: var(--paper);
}

.footer-tagline {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: #cbd8d0;
}

.footer-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #8b9a92;
}

.footer-col h2 {
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-list,
.contact-list {
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
}

.footer-list a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-list a:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.contact-list li {
  color: #cbd8d0;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-block: 1.1rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #8b9a92;
}

.breadcrumb {
  margin-block: 1.25rem 0;
  font-size: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumb a {
  color: var(--kiwi-deep);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--kiwi);
}

.breadcrumb li[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section--tight {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-mark {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kiwi-deep);
}

.section-title {
  margin-top: 0.35rem;
  font-family: var(--headline);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-intro {
  margin-top: 0.6rem;
  font-size: 1.05rem;
  color: #3a4248;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: 1 / -1; }

.panel {
  padding: clamp(1.25rem, 2vw, 2rem);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel--cut {
  position: relative;
  overflow: hidden;
  background: var(--kiwi);
  color: #fff;
  border-radius: 4px 24px 4px 24px;
}

.panel--cut::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: var(--lime);
  opacity: 0.2;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.panel h2,
.panel h3,
.card h2,
.card h3 {
  font-family: var(--headline);
  font-size: 1.35rem;
  line-height: 1.3;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.card {
  padding: clamp(1.25rem, 2vw, 1.75rem);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, background 0.25s ease;
}

.card:hover {
  background: var(--paper);
  transform: translateY(-4px);
}

.card p {
  margin-block: 0.5rem 0;
}

.media-frame {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.media-frame--16-9 {
  aspect-ratio: 16 / 9;
}

.media-frame--4-3 {
  aspect-ratio: 4 / 3;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: var(--reveal-delay, 0s);
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(1.5rem, 4vh, 2.5rem);
    padding-top: calc(var(--header-h) + 1rem);
    overflow-y: auto;
    background: rgba(18, 21, 26, 0.96);
    border-top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
  }

  .nav-list a {
    padding: 0.5rem 1.5rem;
    font-size: 1.6rem;
    color: var(--paper);
    border-radius: 999px 999px 12px 999px;
  }

  .nav-list a:hover {
    background: var(--kiwi);
    color: #fff;
    transform: none;
  }

  .nav-list a[aria-current="page"] {
    background: var(--lime);
    color: var(--ink);
  }

  .nav-quicklinks {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
  }

  .nav-quicklinks a {
    color: var(--lime);
    text-decoration: none;
    font-weight: 700;
  }

  .nav-quicklinks a:hover {
    color: var(--orange);
  }

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

  .span-2,
  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .brand-name {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .header-member {
    padding-inline: 0.65rem;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
