:root {
  --ink: #1f1630;
  --orange: #ff3d00;
  --orange-hot: #ff6a1a;
  --purple: #6b2fff;
  --purple-deep: #4a18c9;
  --paper: #f4efe8;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(40, 18, 70, 0.18);
  --font-display: "Bebas Neue", "Noto Sans SC", sans-serif;
  --font-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-en: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(107, 47, 255, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 61, 0, 0.1), transparent 50%),
    var(--paper);
  font-family: var(--font-cn);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  grid-template-rows: 1.1fr 0.9fr;
  gap: 6px;
  padding: 6px;
  transform: scale(1.04);
  animation: collage-drift 18s ease-in-out infinite alternate;
}

.hero-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
}

.hero-collage .c1 { grid-area: 1 / 1 / 3 / 2; }
.hero-collage .c2 { grid-area: 1 / 2 / 2 / 3; }
.hero-collage .c3 { grid-area: 2 / 2 / 3 / 3; }
.hero-collage .c4 { display: none; }

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 8, 40, 0.25) 0%, rgba(20, 8, 40, 0.55) 45%, rgba(20, 8, 40, 0.88) 100%),
    linear-gradient(90deg, rgba(74, 24, 201, 0.35), rgba(255, 61, 0, 0.28));
}

.halftone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 0.7px, transparent 0.8px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto 0 0;
  padding: clamp(2rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 8vh, 4.5rem);
  animation: rise-in 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.1rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.brand-en {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  opacity: 0.92;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-cn);
  font-weight: 900;
  font-size: clamp(3.2rem, 12vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  margin: 1rem 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 61, 0, 0.35);
}

.btn-primary:hover {
  background: var(--orange-hot);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ---- Sections ---- */
.section {
  padding: clamp(3.5rem, 10vw, 6rem) 0;
}

.section-inner {
  width: min(960px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.kicker {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--purple);
  font-size: 0.85rem;
}

.title {
  margin: 0.45rem 0 0;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.lead {
  margin: 1rem 0 0;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(31, 22, 48, 0.82);
}

.lead strong {
  color: var(--orange);
  font-weight: 900;
}

.prof-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border-left: 6px solid var(--purple);
  box-shadow: var(--shadow);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.prof-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(40, 18, 70, 0.22);
}

.prof-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--purple);
}

.prof-body {
  display: grid;
  gap: 0.2rem;
}

.prof-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.prof-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.prof-hint {
  font-size: 0.92rem;
  color: rgba(31, 22, 48, 0.65);
}

/* ---- Modules ---- */
.modules {
  background:
    linear-gradient(180deg, transparent, rgba(107, 47, 255, 0.05) 30%, rgba(255, 61, 0, 0.05)),
    var(--paper);
}

.module-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.module {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 0;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.module:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(40, 18, 70, 0.22);
}

.module-soon {
  opacity: 0.78;
  pointer-events: none;
  background: #f8f4ee;
  box-shadow: none;
  border: 1px dashed rgba(31, 22, 48, 0.18);
}

.module-media {
  position: relative;
  min-height: 160px;
  background: #1a1230;
}

.module-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 160px;
}

.module-media-empty {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(107, 47, 255, 0.08),
      rgba(107, 47, 255, 0.08) 10px,
      rgba(255, 61, 0, 0.06) 10px,
      rgba(255, 61, 0, 0.06) 20px
    );
}

.module-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 0.28rem 0.55rem;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--orange);
}

.module-badge.soft {
  background: rgba(31, 22, 48, 0.55);
}

.module-body {
  padding: 1.25rem 1.35rem 1.4rem;
}

.module-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--purple);
}

.module-body h3 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 900;
  line-height: 1.3;
}

.module-body p {
  margin: 0.55rem 0 0;
  color: rgba(31, 22, 48, 0.75);
  line-height: 1.65;
  font-size: 0.98rem;
}

.module-go {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.04em;
}

.module-go.muted {
  color: rgba(31, 22, 48, 0.45);
}

/* ---- Footer ---- */
.site-footer {
  padding: 1.5rem 0 2.25rem;
  border-top: 1px solid rgba(31, 22, 48, 0.1);
  background: #ebe3d8;
}

.footer-inner {
  width: min(960px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  align-items: baseline;
}

.footer-brand {
  font-weight: 900;
  letter-spacing: 0.08em;
}

.footer-meta {
  font-size: 0.9rem;
  color: rgba(31, 22, 48, 0.6);
}

.footer-icp {
  color: rgba(31, 22, 48, 0.66);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-icp:hover,
.footer-icp:focus-visible {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

/* ---- Motion ---- */
@keyframes collage-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -1%, 0); }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .module {
    grid-template-columns: 1fr;
  }

  .module-media {
    min-height: 180px;
  }

  .hero-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .hero-collage .c1 { grid-area: 1 / 1 / 2 / 2; }
  .hero-collage .c2 { grid-area: 1 / 2 / 2 / 3; }
  .hero-collage .c3 { grid-area: 2 / 1 / 3 / 2; }
  .hero-collage .c4 {
    display: block;
    grid-area: 2 / 2 / 3 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-collage,
  .hero-content,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
