:root {
  color-scheme: light;
  --ink: #07172f;
  --muted: #617086;
  --line: rgba(33, 89, 151, 0.14);
  --paper: #f4f9ff;
  --panel: rgba(255, 255, 255, 0.86);
  --accent: #0071e3;
  --accent-2: #68adff;
  --shadow: 0 22px 58px rgba(21, 73, 132, 0.16);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(91, 167, 255, 0.22), transparent 36rem),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 44%, #f7fbff 100%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(0, 72, 150, 0.1);
  background: rgba(246, 250, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.brand-mark {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 113, 227, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.24)),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 22px rgba(0, 113, 227, 0.18);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 70vw;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid rgba(0, 113, 227, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.filter {
  min-width: max-content;
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.filter:hover,
.filter:focus-visible {
  color: var(--ink);
  outline: none;
}

.filter.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.18);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.48fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 7vw, 80px);
}

.hero-image {
  position: relative;
  min-height: 360px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #dcecff;
}

.carousel-track {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  margin: 0;
  background: #dcecff;
}

.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.carousel-panel {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 23, 47, 0.34);
  backdrop-filter: blur(18px) saturate(160%);
}

.carousel-label {
  padding-left: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.carousel-controls,
.carousel-dots,
.lightbox-actions {
  display: flex;
  align-items: center;
}

.carousel-controls {
  gap: 10px;
}

.carousel-dots {
  gap: 6px;
}

.carousel-btn,
.carousel-dot,
.icon-btn {
  border: 0;
  border-radius: 999px;
}

.carousel-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #07172f;
  background: rgba(255, 255, 255, 0.84);
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(4, 21, 44, 0.16);
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  background: #fff;
  outline: none;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  background: rgba(255, 255, 255, 0.54);
  transition:
    width 220ms ease,
    background 220ms ease;
}

.carousel-dot.active {
  width: 22px;
  background: #fff;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

h1 {
  margin: 0;
  max-width: 8em;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
  background: linear-gradient(180deg, #061c3d 0%, #0a62bd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro {
  margin: 0;
  max-width: 24em;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 6px;
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.stat strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  color: #0066cc;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.gallery {
  column-count: 3;
  column-gap: 18px;
  padding-bottom: 72px;
}

.load-more {
  width: 180px;
  min-height: 42px;
  display: block;
  margin: -36px auto 72px;
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(0, 113, 227, 0.18);
}

.load-more.hidden {
  display: none;
}

.work {
  width: 100%;
  display: block;
  margin: 0 0 18px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 20px;
  overflow: hidden;
  break-inside: avoid;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(36, 89, 151, 0.08), 0 14px 38px rgba(42, 105, 176, 0.1);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.work:hover,
.work:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  outline: none;
}

.work.hidden {
  display: none;
}

.work img {
  width: 100%;
  height: auto;
  display: block;
}

.caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 14px;
  color: #1d334f;
  font-size: 14px;
}

.caption span:last-child {
  color: var(--muted);
  white-space: nowrap;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(7, 22, 45, 0.88);
  backdrop-filter: blur(18px);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(100%, 1280px);
  max-height: calc(100svh - 110px);
  display: block;
  border-radius: 20px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  object-fit: contain;
  background: #fff;
}

.lightbox-bar {
  position: fixed;
  left: 28px;
  right: 28px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  font-size: 14px;
}

.lightbox-actions {
  gap: 8px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 22px;
  line-height: 1;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-actions {
    max-width: 100%;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-copy {
    order: -1;
  }

  h1 {
    max-width: 7em;
  }

  .gallery {
    column-count: 2;
  }
}

@media (max-width: 560px) {
  .nav,
  main {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding-top: 24px;
  }

  .hero-image {
    min-height: 210px;
    border-radius: 20px;
  }

  .carousel-panel {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 8px;
  }

  .carousel-label {
    font-size: 12px;
  }

  .carousel-dots {
    display: none;
  }

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

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 8px;
    text-align: left;
  }

  .gallery {
    column-count: 1;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}
