/* ============================================
   布局系统 - Container, Grid, Responsive
   ============================================ */

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--fluid {
  max-width: 100%;
}

/* ---- Section ---- */
.section {
  padding: var(--sp-16) 0;
}

.section--sm {
  padding: var(--sp-10) 0;
}

.section--lg {
  padding: var(--sp-20) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--dark {
  background-color: var(--wct-green-dark);
  color: rgba(255, 255, 255, 0.9);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--wct-gold);
}

/* ---- Grid System ---- */
.grid {
  display: grid;
  gap: var(--sp-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.grid--auto {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ---- Flex ---- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-5 { gap: var(--sp-5); }
.gap-6 { gap: var(--sp-6); }

/* ---- Section Header ---- */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.section-header__eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--sp-3);
}

.section-header__title {
  font-size: var(--fs-4xl);
  margin-bottom: var(--sp-4);
}

.section-header__subtitle {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-header__divider {
  width: 60px;
  height: 3px;
  background: var(--wct-gold);
  margin: var(--sp-4) auto;
  border-radius: var(--radius-full);
}

/* ---- Responsive Breakpoints ---- */

/* Tablet */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--sp-4);
  }

  .section {
    padding: var(--sp-10) 0;
  }

  .section--lg {
    padding: var(--sp-12) 0;
  }

  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-3xl); }
  h3 { font-size: var(--fs-2xl); }

  .section-header__title {
    font-size: var(--fs-3xl);
  }

  .section-header__subtitle {
    font-size: var(--fs-base);
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

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

/* Small Mobile */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
}
