:root {
  --headerH: 120px;
  --navTop: rgba(11, 58, 56, 0.92);
  --navMid: rgba(18, 88, 85, 0.62);
  --navFade: rgba(18, 88, 85, 0);
  --text: #e8f3f3;
  --orange: #f0914e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  padding-top: calc(var(--headerH) / 1);
}

/* ===== nav bar (same as xiangmu) ===== */
a {
  color: inherit;
  text-decoration: none;
}

.nav-anchor {
  position: relative;
  top: -124px;
  height: 0;
  width: 0;
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.nav-shell {
  height: var(--headerH);
  padding: 8px 18px 0;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: linear-gradient(
    180deg,
    var(--navTop) 0%,
    var(--navMid) 70%,
    var(--navFade) 100%
  );
  backdrop-filter: blur(28px) saturate(1.65) contrast(1.05);
  -webkit-backdrop-filter: blur(28px) saturate(1.65) contrast(1.05);
  position: relative;
  border-bottom: none;
}

.nav-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--headerH);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  opacity: 0.35;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 6px 10px;
  user-select: none;
}

.brand-word {
  font-family: "Cinzel Decorative", serif;
  font-size: 34px;
  letter-spacing: 0.4px;
  color: var(--text);
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

.brand-mark {
  display: grid;
  place-items: center;
}

.brand-logo {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: cover;
  border-radius: 999px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 44px;
  padding-top: 14px;
  margin-right: clamp(12px, 4vw, 72px);
}

.nav a {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  opacity: 0.92;
  letter-spacing: 0.2px;
  position: relative;
  padding: 8px 2px;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}
.nav a:hover {
  opacity: 1;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(191, 243, 241, 0.55);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav a:hover::after {
  transform: scaleX(1);
}

.nav a.is-accent {
  color: var(--orange);
  font-weight: 600;
}
.nav a.is-accent::after {
  background: rgba(240, 145, 78, 0.9);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  margin-top: 14px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 6px auto;
  background: rgba(232, 243, 243, 0.85);
}
.bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  z-index: -1;
  object-fit: cover;
}
.banner {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  max-width: 1200px;
  padding: 40px 30px 20px;
  line-height: 2;
  font-size: 34px;
  font-family: "Georgia", "KaiTi", serif;
  letter-spacing: 1px;
  min-height: calc(100vh - 240px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.banner p {
  margin-bottom: 4px;
}
.banner .highlight {
  color: #5ecfff;
  font-size: 40px;
  font-weight: bold;
}
.team {
  margin: 160px 0 10px;
  font-size: 36px;
  font-weight: 900;
  color: transparent;
  letter-spacing: 5px;
  text-align: center;
  font-family: "Georgia", "KaiTi", serif;
  background: linear-gradient(
    90deg,
    #fff 0%,
    #5ecfff 25%,
    #ffae62 50%,
    #5ecfff 75%,
    #fff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: teamShimmer 4s linear infinite;
  text-shadow: none;
  cursor: default;
  transform: scale(0.85);
  opacity: 0;
  filter: blur(6px);
  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s ease,
    opacity 0.8s ease;
}
.team.team--visible {
  transform: scale(1.5);
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(94, 207, 255, 0.55))
    drop-shadow(0 0 40px rgba(255, 174, 98, 0.3)) blur(0);
}
@keyframes teamShimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 1400px;
  margin-top: 100vh;
  padding: 20px 20px 120px;
}
.center {
  position: relative;
  width: 420px;
  min-width: 300px;
  height: 520px;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.front-face,
.back-face {
  position: absolute;
  height: 100%;
  width: 100%;
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(bg.jpeg);
  background-size: cover;
  background-position: center;
  transform: translateY(0deg);
  border-radius: 10px;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.contents {
  position: absolute;
  left: 0%;
  top: 50%;
  width: 100%;
  perspective: 1000px;
  transform: translateY(-50%) translateZ(60px) scale(0.94);
}
.front p {
  font-size: 35px;
  margin-bottom: 15px;
  color: white;
}
.front span {
  font-size: 23px;
  color: white;
}
.front p:after {
  content: "";
  display: block;
  left: 0;
  right: 0;
  width: 100px;
  height: 2px;
  background: white;
  margin: 0 auto;
  margin-top: 10px;
}
.back-face {
  transform: rotateY(180deg);
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(../sucai/1.jpg);
  background-size: cover;
  background-position: center;
}
.back {
  color: white;
}
.back-name {
  font-size: 35px;
  margin-bottom: 6px;
  color: white;
  font-weight: 700;
}
.back-name::after {
  content: "";
  display: block;
  width: 100px;
  height: 2px;
  background: white;
  margin: 10px auto 0;
}
.back-class {
  font-size: 23px;
  color: rgba(255, 255, 255, 0.85);
  display: block;
  margin-bottom: 18px;
}
.back h2 {
  font-size: 33px;
  padding-bottom: 5px;
}
.back .subtitle {
  font-size: 16px;
  margin-top: 12px;
  font-family: "Georgia", "KaiTi", serif;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
}
.back span {
  font-size: 25px;
}
.icons {
  margin: 10px 0;
  display: block;
}
i.fab {
  color: #042f4b;
  font-size: 20px;
  height: 40px;
  width: 40px;
  background: white;
  border-radius: 50%;
  margin: 0 5px;
  line-height: 40px;
  cursor: pointer;
}
.center:nth-child(1) > .front-face {
  background:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(../sucai/F.jpg);
  background-size: cover;
  background-position: center;
}
.center:nth-child(2) > .front-face {
  background:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(../sucai/O.jpg);
  background-size: cover;
  background-position: center;
}
.center:nth-child(3) > .front-face {
  background:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(../sucai/J.jpg);
  background-size: cover;
  background-position: center;
}
.center:hover > .back-face {
  transform: rotateY(0deg);
}
.center:hover > .front-face {
  transform: rotateY(-180deg);
}

/* ===== explore tiles + footer (from shaoshang) ===== */
.explore-project {
  width: 100%;
  max-width: 1400px;
  padding: 36px 20px 14px;
}

.explore-project__head {
  text-align: center;
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.explore-project__title {
  margin: 0;
  font-size: clamp(28px, 2.8vw, 44px);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffae62;
  text-shadow: 0 0 16px rgba(255, 174, 98, 0.18);
}

.explore-project__sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.5;
}

.explore-project__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 10px;
}

.explore-tile {
  appearance: none;
  border: 1px solid rgba(95, 255, 245, 0.14);
  background: linear-gradient(
    180deg,
    rgba(0, 136, 146, 0.5),
    rgba(0, 82, 90, 0.56)
  );
  color: #e9fffd;
  border-radius: 18px;
  padding: 18px 16px 16px;
  cursor: pointer;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 118px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.explore-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 255, 245, 0.24);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(95, 255, 245, 0.08),
    0 0 38px rgba(0, 210, 214, 0.08);
}
.explore-tile:active {
  transform: translateY(0);
}

.explore-tile__icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(255, 198, 116, 0.9),
    rgba(255, 142, 66, 0.92)
  );
  color: #fff;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.28),
    0 0 0 6px rgba(255, 172, 98, 0.14);
}
.explore-tile__icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.explore-tile__label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #eaffff;
}

.page2-footer {
  width: 100%;
  margin-top: 22px;
  padding: 20px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(0, 120, 126, 0.22),
    rgba(0, 60, 64, 0.35)
  );
}

.page2-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 12px 18px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: center;
}

.page2-footer__brand {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  align-items: center;
}

.page2-footer__logoWrap {
  width: 220px;
  height: 220px;
  overflow: visible;
  background: transparent;
  border: 0;
}
.page2-footer__logoWrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page2-footer__brandName {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ffbd74;
  line-height: 1.15;
}

.page2-footer__brandTagline {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  font-weight: 700;
}

.page2-footer__contactTitle {
  font-size: 18px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 10px;
}

.page2-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.page2-footer__list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.35;
}

.page2-footer__liIcon {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.7);
}
.page2-footer__liIcon svg {
  width: 18px;
  height: 18px;
  display: block;
}

@media (max-width: 1100px) {
  .nav {
    gap: 28px;
    margin-right: 22px;
  }
  .nav a {
    font-size: 20px;
  }
  .brand-word {
    font-size: 30px;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    position: absolute;
    right: 14px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px) saturate(1.35);
    -webkit-backdrop-filter: blur(20px) saturate(1.35);
  }
  .nav.is-open {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .explore-project__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page2-footer__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 520px) {
  .explore-project__grid {
    grid-template-columns: 1fr;
  }
  .page2-footer__brand {
    grid-template-columns: 192px 1fr;
  }
  .page2-footer__logoWrap {
    width: 192px;
    height: 192px;
  }
}
