:root {
  --bg: #0c0d10;
  --panel: #171a20;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f2ede1;
  --muted: #c0b8a8;
  --accent: #d5bf96;
  --shell: min(1280px, 92vw);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Source Sans 3", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 12%, #2f2a1f 0%, transparent 40%),
    linear-gradient(180deg, #090a0c, #0d1015 45%, #0b0d12);
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.about-hero {
  min-height: 100vh;
  padding: 2rem 0 2.8rem;
  position: relative;
  background: #08090b;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease;
  animation: aboutBgDrift 18s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.about-bg-a {
  background-image: url("./assets/photos/我.jpg");
}

.about-bg.is-active {
  opacity: 1;
}

.about-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.45));
  z-index: 1;
}

.about-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 45;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.09em;
  text-transform: none;
}

.about-hero-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin-top: 0;
  width: min(88vw, 28rem);
  max-width: 28rem;
  text-align: center;
  z-index: 2;
  transition: left 0.55s ease, transform 0.55s ease;
}

.about-hero.is-second-slide .about-hero-content {
  left: 26%;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.3rem, 7vw, 5.2rem);
  font-weight: 500;
  line-height: 0.95;
}

.about-tagline {
  margin: 1.1rem 0 0;
  line-height: 1.8;
  color: rgba(248, 241, 228, 0.88);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  letter-spacing: 0.05em;
}

.about-cta {
  margin-top: 1.4rem;
}

.about-main {
  padding: 4.2rem 0 5.4rem;
  display: grid;
  gap: 3.4rem;
  position: relative;
  z-index: 2;
  justify-items: center;
}

.about-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: center;
  justify-items: center;
  padding-top: 0;
  border-top: 0;
  width: min(1040px, 100%);
}

.about-block-label {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  line-height: 1;
  color: #f3ecde;
  text-align: center;
}

.about-block-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  max-width: min(980px, 100%);
  width: 100%;
}

.about-block-text h2 {
  margin: 0 0 0.7rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: 0.01em;
}

.about-block-text p {
  margin: 0;
  color: rgba(242, 235, 222, 0.86);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.9;
  text-align: center;
}

.about-inline-gallery {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 0.58rem;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.about-inline-gallery img {
  width: auto;
  height: clamp(145px, 16vw, 255px);
  display: block;
  object-fit: contain;
  aspect-ratio: auto;
  border: 0;
  cursor: zoom-in;
}

.about-device-media {
  margin-top: 1rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.about-device-media img {
  width: auto;
  max-width: min(260px, 100%);
  height: clamp(160px, 19vw, 310px);
  display: block;
  object-fit: contain;
  aspect-ratio: auto;
  border: 0;
  cursor: zoom-in;
}

.about-lightbox {
  --about-nav-left: 1rem;
  --about-nav-right: 1rem;
  --about-nav-top: 50%;
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 2.2rem;
  background: rgba(2, 2, 3, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.about-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.about-lightbox img {
  max-width: min(88vw, 1200px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.55);
}

.about-lightbox-nav {
  position: absolute;
  top: var(--about-nav-top);
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.22);
  color: #f2ede1;
  font-size: 1.08rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.about-lightbox-prev {
  left: var(--about-nav-left);
}

.about-lightbox-next {
  right: var(--about-nav-right);
}

.about-lightbox-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}

.about-lightbox-nav:disabled {
  opacity: 0.42;
  cursor: default;
}

.about-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
  color: #f2ede1;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.about-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 760px) {
  .about-hero.is-second-slide .about-hero-content {
    left: 50%;
  }

  .about-hero-content {
    width: min(90vw, 18rem);
    max-width: 18rem;
  }

  .about-main {
    padding: 2.6rem 0 3.2rem;
    gap: 2.2rem;
  }

  .about-block {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .about-inline-gallery {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .about-lightbox-nav {
    width: 2.25rem;
    height: 2.25rem;
  }

  .about-lightbox-prev {
    left: var(--about-nav-left);
  }

  .about-lightbox-next {
    right: var(--about-nav-right);
  }
}

@keyframes aboutBgDrift {
  0% {
    transform: scale(1.04) translate3d(0%, 0%, 0);
  }

  100% {
    transform: scale(1.08) translate3d(1.8%, -1.2%, 0);
  }
}
