:root {
  color-scheme: light;
  --bg-top: #f7f2e8;
  --bg-bottom: #dbe8f2;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-border: rgba(43, 62, 80, 0.12);
  --text-main: #1f2a35;
  --text-muted: #5b6875;
  --accent: #c95f37;
  --accent-soft: rgba(201, 95, 55, 0.18);
  --shadow: 0 24px 60px rgba(31, 42, 53, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 38%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

code {
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  background: rgba(31, 42, 53, 0.08);
  font-family: Consolas, Monaco, monospace;
}

.page {
  width: min(1080px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0 56px;
}

.hero {
  text-align: center;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.description {
  width: min(660px, 100%);
  margin: 16px auto 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.carousel-shell {
  padding: 24px;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.carousel {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  gap: 16px;
  align-items: center;
}

.slide-frame {
  position: relative;
  overflow: hidden;
  min-height: 62vh;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(31, 42, 53, 0.08), rgba(255, 255, 255, 0.66)),
    rgba(255, 255, 255, 0.48);
}

#slideImage {
  display: block;
  width: 100%;
  height: 62vh;
  object-fit: contain;
  animation: fade-in 360ms ease;
}

.placeholder {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding: 24px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
}

.nav-button {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent);
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(31, 42, 53, 0.16);
  transition: transform 180ms ease, background-color 180ms ease;
}

.nav-button:hover {
  transform: translateY(-2px);
  background: #fff7f3;
}

.caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 42, 53, 0.18);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.dot.active {
  transform: scale(1.2);
  background: var(--accent);
}

@keyframes fade-in {
  from {
    opacity: 0.2;
    transform: scale(0.985);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 840px) {
  .page {
    width: min(100vw - 20px, 100%);
    padding-top: 24px;
  }

  .carousel-shell {
    padding: 16px;
  }

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

  .nav-button {
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }

  .slide-frame,
  #slideImage,
  .placeholder {
    min-height: 45vh;
    height: 45vh;
  }

  .caption {
    flex-direction: column;
  }
}
