:root {
  --bg: #081331;
  --panel: rgba(255,255,255,.08);
  --line: rgba(255,255,255,.16);
  --text: #f7f8ff;
  --muted: #c8d0f0;
  --cyan: #38d6ff;
  --violet: #9a6cff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(56,214,255,.22), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(255,94,196,.2), transparent 26%),
    linear-gradient(135deg, #071326, #241153 54%, #07172c);
  line-height: 1.75;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
}
a { color: inherit; }
.gallery-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 5vw;
  background: rgba(8,13,36,.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; text-decoration: none; min-width: 0; }
.brand > span:last-child { max-width: 260px; line-height: 1.35; }
html:lang(en) .brand > span:last-child { display: none; }
.brand-mark { display: grid; place-items: center; width: 58px; height: 34px; border: 1px solid rgba(255,255,255,.24); border-radius: 6px; color: var(--cyan); }
.nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.nav a { text-decoration: none; color: #edf2ff; font-weight: 800; }
.nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-link:hover,
.nav-item:hover .nav-link {
  color: var(--cyan);
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
}
.nav-item { position: relative; }
.nav-note { position: relative; }
.nav-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 30;
  width: max-content;
  max-width: 230px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #071326;
  background: linear-gradient(90deg, var(--cyan), #c2a7ff);
  box-shadow: 0 18px 46px rgba(0,0,0,.3);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s ease;
}
.nav-note:hover .nav-tooltip,
.nav-note:focus-within .nav-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 168px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(10, 16, 43, .94);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 54px rgba(0,0,0,.32);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease;
}
.dropdown a {
  display: block;
  padding: 9px 11px;
  border-radius: 6px;
  color: #edf2ff;
  white-space: nowrap;
}
.dropdown a:hover {
  color: #071326;
  background: linear-gradient(90deg, var(--cyan), #c2a7ff);
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.hero {
  padding: 78px 5vw 56px;
  text-align: center;
}
h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1;
}
.lead {
  max-width: 860px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 20px;
}
.year-block {
  width: min(1180px, 92vw);
  margin: 0 auto 64px;
}
.year-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 20px;
}
.year-title span {
  display: grid;
  place-items: center;
  width: 118px;
  height: 74px;
  border-radius: 8px;
  color: #071326;
  background: linear-gradient(135deg, var(--cyan), #c2a7ff);
  font-size: 30px;
  font-weight: 900;
}
h2 { margin: 0; font-size: clamp(28px, 4vw, 46px); }
.year-title p { margin: 4px 0 0; color: var(--muted); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
figure {
  position: relative;
  min-height: 270px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0,0,0,.24);
}
figure.wide { grid-column: span 2; min-height: 360px; }
img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
figure:hover img { transform: scale(1.04); }
.zoomable-image { cursor: zoom-in; }
figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 38px 16px 14px;
  background: linear-gradient(transparent, rgba(5,10,26,.86));
  color: #fff;
  font-weight: 900;
}
footer {
  padding: 30px 5vw 46px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 5vw;
  background: rgba(3, 8, 24, .86);
  backdrop-filter: blur(16px);
}
.image-lightbox[aria-hidden="false"] { display: grid; }
.image-lightbox figure {
  max-width: min(1120px, 92vw);
  max-height: 88vh;
  min-height: 0;
  margin: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.image-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 34px 100px rgba(0,0,0,.55);
}
.image-lightbox figure:hover img { transform: none; }
.image-lightbox figcaption {
  position: static;
  margin-top: 12px;
  padding: 0;
  color: #edf4ff;
  text-align: center;
  background: transparent;
}
.lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
body.lightbox-open { overflow: hidden; }
@media (max-width: 860px) {
  .gallery-header { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; flex-wrap: wrap; font-size: 14px; }
  .dropdown { left: 0; transform: translate(0, 8px); }
  .nav-item:hover .dropdown,
  .nav-item:focus-within .dropdown { transform: translate(0, 0); }
  .gallery-grid { grid-template-columns: 1fr; }
  figure.wide { grid-column: auto; }
  .year-title { grid-template-columns: 1fr; }
}
