:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --red: #e31c23;
  --red-press: #c41218;
  --green: #1ec45a;
  --green-dark: #0fa84a;
  --max: 480px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* ——— Cover / Home ——— */
.cover {
  min-height: 100dvh;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.25rem 2rem;
  position: relative;
  overflow: hidden;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 45% at 50% 8%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 30% at 50% 100%, rgba(227, 28, 35, 0.08), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.cover > * {
  position: relative;
  z-index: 1;
}

.cover-hero {
  width: min(100%, 22rem);
  margin-top: clamp(0.25rem, 2vh, 1rem);
  aspect-ratio: 1080 / 1028;
  overflow: hidden;
}

.cover-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  animation: heroIn 1.1s var(--ease) both;
}

.cover-brand {
  margin-top: clamp(0.75rem, 2.5vh, 1.5rem);
  font-size: clamp(2.4rem, 11vw, 3.25rem);
  font-weight: 500;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  line-height: 1;
  animation: riseIn 0.9s var(--ease) 0.25s both;
}

.cover-actions {
  display: flex;
  gap: 0.85rem;
  width: 100%;
  max-width: 20rem;
  margin-top: clamp(1.25rem, 3.5vh, 2rem);
  animation: riseIn 0.9s var(--ease) 0.4s both;
}

.btn-red {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 0.75rem;
  background: var(--red);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  border-radius: 0.45rem;
  transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(227, 28, 35, 0.28);
}

.btn-red:hover {
  background: var(--red-press);
  transform: translateY(-1px);
}

.btn-red:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 3px 10px rgba(227, 28, 35, 0.25);
}

.cover-tagline {
  margin-top: clamp(1.4rem, 4vh, 2.2rem);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--text);
  animation: riseIn 0.9s var(--ease) 0.55s both;
}

.cover-contact {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
  animation: riseIn 0.9s var(--ease) 0.65s both;
}

.cover-contact a {
  display: block;
  padding: 0.15rem 0;
  transition: color 0.2s ease;
}

.cover-contact a:hover {
  color: #fff;
}

.cover-spacer {
  flex: 1;
  min-height: 1.5rem;
}

.location-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 0.5rem;
  animation: riseIn 0.9s var(--ease) 0.8s both;
}

.location-pin {
  width: 3.4rem;
  height: 4.1rem;
  position: relative;
  filter: drop-shadow(0 6px 14px rgba(30, 196, 90, 0.35));
  transition: transform 0.25s var(--ease);
}

.location-btn:hover .location-pin,
.location-btn:focus-visible .location-pin {
  transform: translateY(-3px) scale(1.04);
  animation: pinPulse 1.4s ease-in-out infinite;
}

.location-pin svg {
  width: 100%;
  height: 100%;
  display: block;
}

.location-label {
  position: absolute;
  inset: 18% 12% 32%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.15;
  text-align: center;
}

/* ——— Gallery pages ——— */
.page {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: 3rem;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.35rem 0.45rem;
  border-radius: 0.35rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.back-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.back-link svg {
  width: 1rem;
  height: 1rem;
}

.page-title {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

.page-switch {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--red);
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(227, 28, 35, 0.55);
  border-radius: 0.35rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-switch:hover {
  background: var(--red);
  color: #fff;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.55rem;
}

.gallery-loader {
  text-align: center;
  padding: 1rem 0 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.gallery-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: #111;
  opacity: 0;
  transform: translateY(12px);
  animation: cardIn 0.55s var(--ease) forwards;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.55s var(--ease);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ——— Lightbox ——— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  padding: 1rem;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: min(100%, 920px);
  max-height: 86dvh;
  object-fit: contain;
  transform: scale(0.96);
  transition: transform 0.3s var(--ease);
  border-radius: 2px;
}

.lightbox.is-open .lightbox-img {
  transform: scale(1);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.2s ease;
}

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

.lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 1.4rem;
  line-height: 1;
}

.lightbox-prev {
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ——— Motion ——— */
@keyframes heroIn {
  from {
    opacity: 0;
    transform: scale(1.04) translateY(-8px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pinPulse {
  0%,
  100% {
    transform: translateY(-3px) scale(1.04);
  }
  50% {
    transform: translateY(-6px) scale(1.07);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 768px) {
  .cover {
    padding-top: 1.5rem;
  }

  .gallery {
    gap: 0.75rem;
    padding: 0.85rem;
  }
}
