:root {
  --bg: #6e0a16;
  --ink: #f6e7c1;
  --muted: rgba(246, 231, 193, 0.58);
  --card: #fff;
  --badge: #6b6b6b;
  --badge2: #9a9a9a;
  --yun: url("/clouds.svg");
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background-color: var(--bg); }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image: var(--yun);
  background-repeat: repeat;
  background-size: 720px 480px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1 1 auto;
  background-color: transparent;
  background-image: none;
  padding-top: 3.177vw;
  padding-bottom: 4vw;
  overflow: hidden;
}

.page-title {
  margin: 0;
  text-align: center;
  font-weight: 400;
  font-size: clamp(18px, 1.7708vw, 34px);
  line-height: 1;
  letter-spacing: 0.02em;
}

.tabs-wrap {
  margin-top: 2.55vw;
  display: flex;
  justify-content: center;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 2.08vw;
  flex-wrap: nowrap;
}

.tab {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.4vw 0;
  font: inherit;
  font-size: clamp(14px, 1.25vw, 24px);
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  min-height: 40px;
}

.tab.is-on { color: var(--ink); }

.stage {
  position: relative;
  margin-top: 3.7vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewport {
  width: 65.938vw;
  height: 25.104vw;
  overflow: hidden;
}

.track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
}

.screen {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  gap: 0.885vw;
}

.col {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
}

.col-pair {
  display: flex;
  flex-direction: column;
  gap: 0.885vw;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 1.15vw;
  overflow: hidden;
  height: 100%;
  text-decoration: none;
  color: #111;
  position: relative;
}

.card.is-link { cursor: pointer; }
.card-img .media { height: 70%; flex: 0 0 70%; }
.media { overflow: hidden; }
.media img, .swatch {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-title {
  margin: 1.45vw 1.4vw 0;
  font-size: clamp(14px, 1.25vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  padding-right: 8px;
}

.card-title .prefix { font-weight: 400; margin-right: 0.15em; }
.card-title.stacked { margin-top: 1.6vw; }
.card-title.stacked .prefix {
  display: block;
  font-weight: 400;
  font-size: 0.92em;
  margin: 0 0 0.15em;
}
.card-title.stacked .main { display: block; }

.badge {
  margin: auto 1.4vw 0.75vw auto;
  text-align: right;
  font-size: clamp(9px, 0.52vw, 10px);
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.25;
  color: var(--badge);
}
.badge span { display: block; }
.badge span + span { color: var(--badge2); }

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 46px;
  border: 0;
  background: none;
  color: #f6e7c1;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}
.arrow svg { width: 100%; height: 100%; display: block; }
.arrow.prev { left: calc(50% - 32.969vw - 7.4vw); }
.arrow.next { right: calc(50% - 32.969vw - 7.4vw); }

.footers { width: 65.938vw; margin: 4.2vw auto 0; min-height: 0; }
.footer {
  display: none;
  align-items: center;
  gap: 2.2vw;
}
.footer.is-on { display: flex; }
.footer[hidden] { display: none !important; }

.footer-lead h2 {
  margin: 0;
  font-size: clamp(22px, 2.083vw, 40px);
  font-weight: 600;
  line-height: 1.2;
}
.footer-lead p {
  margin: 0.35vw 0 0;
  font-size: clamp(12px, 0.7vw, 13.5px);
  font-weight: 300;
  letter-spacing: 0.3em;
}

.more {
  flex: 0 0 122px;
  width: 122px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f6e7c1;
  color: #f6e7c1;
  text-decoration: none;
  font-size: 16px;
}

.points {
  margin-left: auto;
  display: flex;
  gap: 0;
}
.point {
  padding: 0 1.7vw;
  border-left: 1px solid rgba(246, 231, 193, 0.35);
  min-width: 7vw;
}
.point:first-child { border-left: 0; }
.point strong, .point span {
  display: block;
  font-size: clamp(12px, 0.833vw, 16px);
  line-height: 1.5;
}
.point strong { font-weight: 600; }
.point span { font-weight: 300; }

@media (max-width: 1024px) and (min-width: 601px) {
  .viewport { width: 90vw; height: 34vw; }
  .arrow.prev { left: 1vw; }
  .arrow.next { right: 1vw; }
  .footers { width: 90vw; }
}

@media (max-width: 600px) {
  .page { padding: 28px 16px 40px; }
  .page-title { font-size: 22px; }
  .tabs-wrap {
    margin-top: 18px;
    justify-content: flex-start;
    overflow: hidden;
  }
  .tabs {
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 4px 6px;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { font-size: 16px; }
  .stage { margin-top: 18px; }
  .arrow { display: none; }
  .viewport {
    width: 100%;
    height: auto;
  }
  .track { transition: transform 0.45s ease; }
  .screen {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .col, .col-pair { height: auto; min-height: 42vw; }
  .card { border-radius: 16px; min-height: 42vw; }
  .card-img .media { height: 58vw; flex-basis: 58vw; }
  .card-title { margin: 14px 14px 0; font-size: 15px; padding-right: 8px; }
  .badge { margin: 16px 14px 12px auto; font-size: 9px; }
  .footers { width: 100%; margin-top: 22px; }
  .footer.is-on { flex-direction: column; align-items: flex-start; gap: 14px; }
  .points { margin-left: 0; flex-direction: column; width: 100%; }
  .point { border-left: 0; border-top: 1px solid #c8c8c8; padding: 10px 0; }
  .site-bar { min-height: 64px; padding: 12px 16px; }
  .contact-btn { font-size: 16px; min-height: 40px; }
}

.site-bar {
  flex: 0 0 auto;
  background: #1e3a5f;
  color: #fff;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 4vw;
  position: relative;
}

.contact { position: relative; }

.contact-btn {
  appearance: none;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: clamp(15px, 1.05vw, 20px);
  cursor: pointer;
  padding: 8px 0;
  min-height: 40px;
}

.contact-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  background: #fff;
  color: #111;
  min-width: 240px;
  padding: 16px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}

.contact-panel[hidden] { display: none; }

.contact-line {
  color: #111;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
  min-height: 24px;
}

.contact-line:hover { text-decoration: underline; }
.contact-empty { margin: 0; color: #666; font-size: 14px; }
