:root {
  --page-bg: #ffffff;
  --text: #111111;
  --muted: #666a70;
  --line: #d9dadd;
  --soft: #f6f6f6;
  --card-width: 370px;
  --card-gap: 24px;
  --page-padding: 80px;
  --card-radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

.peek-carousel {
  overflow: hidden;
  padding: 28px 0 48px;
}

.peek-carousel-inner {
  width: min(100%, 1920px);
  margin: 0 auto;
}

.section-heading,
.carousel-toolbar,
.carousel-panel {
  padding-inline: var(--page-padding);
}

.section-heading {
  max-width: 980px;
}

.section-heading h1 {
  margin: 0;
  font-size: clamp(34px, 2.35vw, 48px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #34373b;
  font-size: 16px;
  line-height: 1.65;
}

.carousel-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-top: 50px;
}

.tab-scroll {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.tab-scroll::-webkit-scrollbar {
  display: none;
}

.tab-list {
  display: flex;
  width: max-content;
  min-width: min(100%, 880px);
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.tab-item {
  flex: 1 0 auto;
}

.tab-btn {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 150px;
  height: 56px;
  padding: 0 30px;
  border: 0;
  color: #8a8d92;
  background: transparent;
  cursor: pointer;
  transition: color 0.25s ease;
}

.tab-btn::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
  content: "";
}

.tab-btn:hover,
.tab-btn:focus-visible,
.tab-btn.is-active {
  color: var(--text);
}

.tab-btn.is-active::after {
  transform: scaleX(1);
}

.tab-btn:focus-visible,
.nav-btn:focus-visible,
.model-card:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.carousel-nav {
  display: flex;
  gap: 18px;
  padding-bottom: 1px;
}

.nav-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #111;
  background: #f4f4f4;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-btn:hover:not(:disabled) {
  background: #ededed;
  transform: translateY(-1px);
}

.nav-btn:disabled {
  color: #c7c9cc;
  cursor: default;
}

.nav-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-panel {
  margin-top: 40px;
}

.carousel-panel[hidden] {
  display: none !important;
}

.carousel-viewport {
  overflow: hidden;
  margin-inline: calc(var(--page-padding) * -1);
  padding-inline: var(--page-padding);
}

.model-swiper {
  overflow: visible;
}

.model-swiper .swiper-wrapper {
  align-items: stretch;
}

.model-swiper .swiper-slide {
  width: var(--card-width);
  height: auto;
}

.model-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 370 / 497;
  overflow: hidden;
  border-radius: var(--card-radius);
  color: #fff;
  background: #f6f6f6;
  text-decoration: none;
  transform: translateY(24px);
  opacity: 0;
}

.carousel-panel.is-active .model-card {
  animation: card-reveal 0.72s cubic-bezier(.3,.8,.3,1) forwards;
  animation-delay: var(--slide-delay, 0ms);
}

.model-card::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 58%;
  background: linear-gradient(0deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.72) 31%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  content: "";
}

.model-thumbnail {
  position: absolute;
  inset: 0;
  display: block;
}

.model-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.22,.61,.36,1);
}

.model-box {
  position: absolute;
  right: 30px;
  bottom: 32px;
  left: 30px;
  z-index: 2;
  display: block;
}

.model-title {
  display: block;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.model-subtitle {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,.9);
  font-size: 14px;
  line-height: 1.55;
}

@media (hover: hover) and (pointer: fine) {
  .model-card:hover .model-thumbnail img {
    transform: scale(1.02);
  }
}

@keyframes card-reveal {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 1280px) {
  :root {
    --page-padding: 40px;
  }
}

@media (max-width: 960px) {
  :root {
    --card-width: 300px;
    --page-padding: 32px;
  }

  .peek-carousel {
    padding-top: 24px;
  }

  .section-heading h1 {
    font-size: 34px;
  }

  .section-heading p {
    margin-top: 12px;
    font-size: 15px;
  }

  .carousel-toolbar {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 32px;
  }

  .carousel-nav {
    display: none;
  }

  .tab-list {
    min-width: 0;
  }

  .tab-btn {
    min-width: auto;
    height: 52px;
    padding-inline: 24px;
    font-size: 14px;
  }

  .carousel-panel {
    margin-top: 40px;
  }

  .model-box {
    right: 20px;
    bottom: 22px;
    left: 20px;
  }

  .model-title {
    font-size: 18px;
  }

  .model-subtitle {
    margin-top: 8px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  :root {
    --page-padding: 20px;
  }

  .peek-carousel {
    padding: 16px 0 28px;
  }

  .section-heading h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .section-heading p {
    max-width: 340px;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.55;
  }

  .carousel-toolbar {
    margin-top: 24px;
  }

  .tab-btn {
    height: 50px;
    padding-inline: 22px;
  }

  .carousel-panel {
    margin-top: 40px;
  }
}

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