:root {
  --about-bg: #050505;
  --about-surface: #111;
  --about-text: #f3f3f1;
  --about-muted: #a8a8a3;
  --about-line: rgba(255, 255, 255, 0.12);
  --about-accent: #e8eef6;
}

/* 避免 Milo 把自定义容器当成 block 失败后的红条残留 */
main .section [data-failed="true"][data-reason*="about-page"] {
  display: none !important;
}

main .section > .content {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
}

/* Override global-footer default white main — keep about page black like homepage dark sections */
body:has(.global-footer) main {
  background-color: #000 !important;
}

main .section {
  background: #000;
}

.about-page {
  background: var(--about-bg);
  color: var(--about-text);
  min-height: 60vh;
}

.about-page__inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 80px;
}

.about-page__status {
  margin: 0;
  color: var(--about-muted);
  font-size: 15px;
  line-height: 1.6;
}

.about-page__status.is-error {
  color: #e85d5d;
}

.about-page__hero {
  position: relative;
  margin: 0 0 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--about-line);
  overflow: hidden;
}

.about-page__hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 220px;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(120, 150, 190, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(90, 110, 140, 0.14), transparent 50%);
  pointer-events: none;
}

.about-page__eyebrow {
  position: relative;
  margin: 0 0 12px;
  color: var(--about-muted);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-page__title {
  position: relative;
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.about-page__subtitle {
  position: relative;
  margin: 0 0 24px;
  max-width: 36em;
  color: var(--about-muted);
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.7;
}

.about-page__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--about-text);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.about-page__cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.about-page__grid {
  display: grid;
  gap: 28px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: stretch;
  padding: 28px 0;
  border-bottom: 1px solid var(--about-line);
  opacity: 0;
  transform: translateY(18px);
  animation: about-rise 0.55s ease forwards;
}

.about-section:nth-child(odd) {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.about-section:nth-child(odd) .about-section__media {
  order: -1;
}

.about-section:nth-child(1) { animation-delay: 0.05s; }
.about-section:nth-child(2) { animation-delay: 0.12s; }
.about-section:nth-child(3) { animation-delay: 0.19s; }
.about-section:nth-child(4) { animation-delay: 0.26s; }
.about-section:nth-child(5) { animation-delay: 0.33s; }
.about-section:nth-child(6) { animation-delay: 0.4s; }

.about-section__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.about-section__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  object-fit: contain;
}

.about-section__title {
  margin: 0 0 14px;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.25;
  font-weight: 600;
}

.about-section__text p,
.about-section__html p {
  margin: 0 0 12px;
  color: var(--about-muted);
  font-size: 15px;
  line-height: 1.75;
}

.about-section__text p:last-child,
.about-section__html p:last-child {
  margin-bottom: 0;
}

.about-section__html {
  color: var(--about-muted);
  font-size: 15px;
  line-height: 1.75;
  word-break: break-word;
}

.about-section__html img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
}

.about-section__html a {
  color: var(--about-accent);
}

.about-section__html strong {
  color: var(--about-text);
  font-weight: 600;
}

.about-section__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 0;
  align-self: center;
  overflow: hidden;
  background: var(--about-surface);
}

.about-section__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.about-section:hover .about-section__media img {
  transform: scale(1.04);
}

.about-page__contact {
  margin: 40px 0 0;
  padding-top: 24px;
  color: var(--about-muted);
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid var(--about-line);
}

@keyframes about-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .about-page__inner {
    width: min(100% - 32px, 1120px);
    padding: 72px 0 56px;
  }

  .about-section,
  .about-section:nth-child(odd) {
    grid-template-columns: 1fr;
  }

  .about-section:nth-child(odd) .about-section__media {
    order: 0;
  }

  .about-section__media {
    aspect-ratio: 16 / 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-section {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .about-section__media img,
  .about-page__cta {
    transition: none;
  }
}
