@font-face {
  font-family: "Barlow Condensed";
  src: url("./assets/fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+00A5, U+0041-005A, U+0061-007A;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("./assets/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+00A5, U+0041-005A, U+0061-007A;
}

:root {
  --ground: #12110f;
  --ink: #f6f1e7;
  --muted: #cfc3b2;
  --line: rgba(246, 241, 231, 0.16);
  --paper: #f4efe4;
  --paper-ink: #1b1714;
  --paper-muted: #5e564c;
  --paper-line: rgba(27, 23, 20, 0.14);
  --oxide: #c2410c;
  --oxide-deep: #8a2e0f;
  --frame: #090807;
  --font-text: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-num: "Barlow Condensed", Bahnschrift, "Arial Narrow", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: #5c5348 var(--ground);
  scrollbar-width: thin;
}

body {
  min-height: 100vh;
  background: var(--ground);
}

::selection {
  background: #e7c4b0;
  color: var(--paper-ink);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid #e07a45;
  outline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 80px;
}

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.mast-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.mark {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.04em;
  line-height: 0.9;
}

.mark-rule {
  width: 1px;
  height: 16px;
  background: var(--line);
  flex: none;
}

.mark-tag {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.mast-since {
  font-size: 0.92rem;
  color: var(--muted);
  text-align: right;
}

.intro {
  margin-top: 24px;
}

.intro h1 {
  max-width: 11em;
  font-size: clamp(2.35rem, 4.8vw, 4.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.lede {
  margin-top: 14px;
  max-width: 36em;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(200px, 0.72fr);
  grid-template-rows: auto auto;
  column-gap: 20px;
  row-gap: 12px;
  margin-top: 20px;
}

.shot {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  min-width: 0;
  width: 100%;
}

.frame {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--frame);
  box-shadow: inset 0 0 0 1px var(--line);
}

.shot-video .frame {
  aspect-ratio: 16 / 9;
  height: auto;
}

.shot-radar .frame {
  height: 100%;
}

.frame video,
.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.7s var(--ease);
}

.shot-radar img {
  object-position: center 40%;
}

.shot:hover .frame video,
.shot:hover .frame img {
  transform: scale(1.045);
}

.chip {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px 0 10px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--paper-ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.7);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.shot-video .chip {
  left: 14px;
  bottom: 14px;
}

.shot-radar .chip {
  top: 14px;
  left: 14px;
}

.shot:hover .chip,
.shot:focus-visible .chip {
  background: var(--oxide);
  color: #fffaf6;
}

.caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 18px;
}

.caption strong {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
}

.caption span {
  flex: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.shot-radar .caption {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.shot-radar .caption span {
  font-weight: 500;
}

.offers {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(260px, 0.86fr);
  gap: 28px 56px;
  align-items: stretch;
  margin-top: 28px;
}

.offer {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.offer-lead {
  padding: 32px 32px 28px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--paper-ink);
  color-scheme: light;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.72);
}

.offer-lead ::selection {
  background: var(--paper-ink);
  color: var(--paper);
}

.offer-alt {
  padding: 32px 0 28px;
}

.offers > .offer-lead:not(.offer-sheet) {
  grid-column: 1;
  grid-row: 1;
}

.offers > .offer-alt {
  grid-column: 2;
  grid-row: 1;
}

.offer-sheet {
  grid-column: 1 / -1;
  grid-row: 2;
}

.sheet-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.95fr);
  gap: 4px 40px;
  align-items: start;
}

.prose h3 {
  margin: 20px 0 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--oxide-deep);
}

.prose h3:first-child {
  margin-top: 18px;
}

.prose p {
  max-width: 40em;
  font-size: 1.02rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.keep {
  white-space: nowrap;
}

.compare {
  margin-top: 16px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.55;
}

.offer-sheet .actions {
  max-width: 32rem;
}

.offer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.offer-id {
  flex: 1 1 12rem;
  min-width: 0;
}

.offer h2 {
  font-size: clamp(1.65rem, 2.3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

.offer-line {
  margin-top: 8px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
}

.offer-lead .offer-line {
  color: var(--oxide-deep);
}

.offer-price {
  margin-left: auto;
  text-align: right;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2px;
  line-height: 0.8;
}

.yuan,
.price b {
  font-family: var(--font-num);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.yuan {
  font-size: 1.45rem;
}

.price b {
  font-size: clamp(3.3rem, 5vw, 4.5rem);
}

.offer-alt .price b {
  font-size: clamp(2.7rem, 4vw, 3.6rem);
}

.unit {
  margin-left: 6px;
  font-size: 0.95rem;
  font-weight: 700;
}

.offer-lead .unit,
.offer-lead .since,
.offer-lead .k {
  color: var(--paper-muted);
}

.price-note {
  margin-top: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
}

.since {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

.specs {
  list-style: none;
  margin-top: 20px;
}

.specs li {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  gap: 8px 16px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--paper-line);
}

.specs li:last-child {
  border-bottom: 1px solid var(--paper-line);
}

.offer-alt .specs li {
  border-color: var(--line);
}

.k {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.v {
  font-size: 1.02rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.v strong {
  font-weight: 700;
}

.emph {
  color: var(--oxide-deep);
}

.spec-end {
  margin-top: 4px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.btn svg {
  flex: none;
}

.offer-lead .btn {
  flex: 1 1 9.5rem;
}

.offer-lead .btn-solid {
  background: var(--paper-ink);
  color: var(--paper);
}

.offer-lead .btn-solid:hover {
  background: var(--oxide);
  color: #fffaf6;
}

.offer-lead .btn-quiet {
  color: var(--paper-ink);
  box-shadow: inset 0 0 0 1px rgba(27, 23, 20, 0.28);
}

.offer-lead .btn-quiet:hover {
  background: rgba(27, 23, 20, 0.06);
}

.offer-alt .btn-solid {
  width: 100%;
  background: var(--paper);
  color: var(--paper-ink);
}

.offer-alt .btn-solid:hover {
  background: var(--oxide);
  color: #fffaf6;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 7, 6, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}

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

.modal-box {
  width: min(1040px, 100%);
  overflow: hidden;
  border-radius: 16px;
  background: #1a1816;
  box-shadow: 0 28px 70px -24px rgba(0, 0, 0, 0.8);
  transform: translateY(12px);
  transition: transform 0.35s var(--ease);
}

.modal-backdrop.is-open .modal-box {
  transform: none;
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
}

.modal-header {
  padding: 14px 16px;
  align-items: flex-start;
}

.modal-title-side {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1 1 16rem;
}

.modal-badge {
  flex: none;
  margin-top: 2px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--paper-ink);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.modal-title-side h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  text-wrap: pretty;
}

.modal-control-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-switch-group {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--ground);
}

.switch-tab,
.close-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.switch-tab {
  color: var(--muted);
}

.switch-tab.active {
  background: var(--paper);
  color: var(--paper-ink);
}

.close-btn {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.close-btn:hover {
  background: var(--oxide);
  color: #fffaf6;
  box-shadow: none;
}

.modal-content-area {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 75vh;
  background: var(--frame);
}

.modal-content-area:has(.modal-image-viewer.is-visible) {
  aspect-ratio: auto;
  height: min(78vh, 820px);
}

#modal-video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: var(--frame);
}

.modal-image-viewer {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--frame);
}

.modal-image-viewer.is-visible {
  display: flex;
}

.modal-image-viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-footer {
  padding: 12px 16px 14px;
  font-size: 0.86rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .stage,
  .offers {
    grid-template-columns: 1fr;
  }

  .stage {
    row-gap: 28px;
  }

  .shot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-row: auto;
    grid-template-rows: none;
  }

  .shot-video .frame,
  .shot-radar .frame {
    height: auto;
  }

  .shot-radar .frame {
    aspect-ratio: 3 / 4;
    max-height: 560px;
  }

  .offers {
    gap: 36px;
    margin-top: 48px;
  }

  .offer-alt {
    padding: 0;
  }

  .offers > .offer-lead:not(.offer-sheet),
  .offers > .offer-alt,
  .offer-sheet {
    grid-column: auto;
    grid-row: auto;
  }

  .offers > .offer-lead:not(.offer-sheet) {
    order: 1;
  }

  .offer-sheet {
    order: 2;
  }

  .offers > .offer-alt {
    order: 3;
  }

  .sheet-body {
    grid-template-columns: 1fr;
  }

  .offer-sheet .actions {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(1120px, calc(100% - 32px));
    padding-top: 20px;
    padding-bottom: 56px;
  }

  .mast {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .mark-rule {
    display: none;
  }

  .mast-since {
    text-align: left;
  }

  .intro {
    margin-top: 28px;
  }

  .offer-lead {
    padding: 22px 18px 18px;
  }

  .offer-head {
    flex-direction: column;
  }

  .offer-price {
    margin-left: 0;
    text-align: left;
  }

  .price,
  .price-note {
    justify-content: flex-start;
    text-align: left;
  }

  .specs li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .actions {
    flex-direction: column;
  }

  .offer-lead .btn,
  .offer-alt .btn-solid {
    width: 100%;
    flex-basis: auto;
  }

  .caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .shot:hover .frame video,
  .shot:hover .frame img {
    transform: none;
  }
}
