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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: #1e1e26;
  background: #f7f4fb;
  line-height: 1.75;
}

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

img {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 251, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(30, 30, 38, 0.08);
}

.header-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #6d28d9, #ec4899);
  color: #fff;
  font-weight: 700;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.95rem;
}

.main-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(109, 40, 217, 0.08);
}

.hero {
  padding: 80px 0 60px;
  background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.12), transparent 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: center;
}

.hero-tag {
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: #6d28d9;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
}

.btn.primary {
  background: #6d28d9;
  color: #fff;
}

.btn.outline {
  border-color: #6d28d9;
  color: #6d28d9;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  background: #ffffff;
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.08);
}

.stat-number {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #6b7280;
}

.media-caption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #6b7280;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: #efe9f8;
}

.section-head {
  margin-bottom: 24px;
}

.highlight-grid,
.experience-grid,
.topic-grid,
.community-grid,
.partner-grid,
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.highlight-card,
.experience-grid article,
.topic-grid article,
.community-grid article,
.partner-grid article {
  background: #ffffff;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(30, 30, 38, 0.06);
}

.library-card {
  background: #ffffff;
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(30, 30, 38, 0.06);
}

.library-card h3 {
  margin-top: 12px;
}

.section-actions {
  margin-top: 18px;
}

.text-link {
  color: #6d28d9;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: center;
}

.contact-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(30, 30, 38, 0.06);
}

.site-footer {
  padding: 26px 0;
  border-top: 1px solid rgba(30, 30, 38, 0.08);
  background: #f1ecfa;
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
  }

  .main-nav {
    gap: 8px;
  }
}
