* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --selection-accent: #f59a23;
  --selection-ink: #1d2024;
  --selection-muted: #696d72;
  --orange: #f79a2a;
  --safe-width: 1200px;
}

@media (max-width: 1300px) {
  :root {
    --safe-width: 75vw;
  }
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

a {
  color: inherit;
  text-decoration: none;
}

body.product-selection-page {
  min-width: 320px;
  overflow-x: hidden;
  background: #f4f4f4;
  color: var(--selection-ink);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.product-selection-page img {
  display: block;
  max-width: 100%;
}


.product-selection-page button {
  cursor: pointer;
}

.selection-safe-area {
  width: var(--safe-width);
  margin: 0 auto;
}

#matrix .selection-safe-area {
  margin-top: 7%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 4rem;
  background: rgba(8, 8, 8, 0.95);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
  height: 4rem;
  background: rgba(8, 8, 8, 0.98);
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--safe-width);
  height: 100%;
  margin: 0 auto;
}

.site-header-placeholder {
  display: none;
  height: 0;
}

body.has-fixed-header .site-header-placeholder {
  display: none;
}

body:not(.has-fixed-header) .site-header {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
}

body.has-fixed-header #header {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: all 0.3s ease;
}

.brand {
  flex: 0 0 auto;
  color: #fff;
  font-size: 1.6667rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8333rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--orange);
}

.buy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 0.625rem;
  min-width: 7.25rem;
  height: 2.3rem;
  margin-left: 2rem;
  background: var(--orange);
  color: #0a0a0a;
  font-size: 0.8333rem;
  font-weight: 800;
  text-decoration: none;
}

.buy-link span {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  color: var(--orange);
  font-size: 0.8333rem;
  filter: brightness(0);
}

.selection-hero {
  position: relative;
  overflow: hidden;
  background: #08090b;
}

.selection-hero__image {
  width: 100%;
  object-fit: contain;
  object-position: center;
}

.selection-hero__shade {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 10, 0.43);
}

.selection-hero__content {
  position: absolute;
  top: 20vh;
  left: 50%;
  width: min(52rem, 94vw);
  color: #fff;
  text-align: center;
  transform: translateX(-50%);
}

.selection-hero__content p {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}

.selection-hero__content h1 {
  margin-top: 0.65rem;
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.32;
}

.selection-hero__content span {
  display: block;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 300;
}

.selection-heading>p {
  margin-bottom: 0.55rem;
  color: var(--selection-accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.selection-heading h2 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.selection-heading>span {
  display: block;
  max-width: 54rem;
  margin-top: 1rem;
  color: var(--selection-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.selection-heading--center {
  text-align: center;
}

.selection-heading--center>span {
  margin-inline: auto;
}

.selection-heading--light h2 {
  color: #fff;
}

.selection-heading--light>span {
  color: rgba(255, 255, 255, 0.68);
}

.product-matrix {
  display: flex;
  /* align-items: center; */
  width: 100%;
  min-height: 0;
  aspect-ratio: 3840 / 1987;
  padding: 0;
  background: #090704 url("https://store.hiwonder.com.cn/static/image/lander/product-selection/%E8%83%8C%E6%99%AF2.png") center / cover no-repeat;
}

.matrix-levels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 1rem;
  margin-top: 5rem;
}

.matrix-level {
  display: flex;
  flex-direction: column;
  min-height: 28rem;
  padding: 1.5rem;
  padding-right: 1.2rem;
  /* border: 1px solid rgba(255, 255, 255, 0.08); */
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.matrix-level--2 {
  min-height: 32rem;
}

.matrix-level--3 {
  min-height: 35rem;
}

.matrix-level--4 {
  min-height: 38rem;
}

.matrix-level--5 {
  min-height: 41rem;
}

.matrix-level small {
  color: var(--selection-accent);
  font-size: 0.85rem;
}

.matrix-level h3 {
  margin-top: 1rem;
  font-size: 1.5rem;
  line-height: 1.35;
}

.matrix-level p {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 300;
}

.product-selector,
.selection-guides {
  padding: 8rem 0;
  background: #f5f5f5;
}

.product-selector {
  padding-bottom: 4rem;
}

.selection-guides {
  padding-top: 4rem;
}

.selector-controls {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  margin-top: 3.5rem;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}

.selector-controls__label {
  display: flex;
  align-items: self-start;
  justify-content: center;
  padding-top: 1.2rem;
  background: #eaeaea;
  color: #303236;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.selector-tabs {
  display: flex;
  align-items: center;
  gap: 1.925rem;
  min-width: 0;
  padding: 0 2.5rem;
  background: #fff;
}

.selector-tabs--platform {
  position: relative;
}

.selector-tabs--platform::after {
  position: absolute;
  right: 3rem;
  bottom: -1px;
  left: 2.75rem;
  height: 2px;
  background: #dedede;
  content: "";
}

.selector-tabs--type {
  flex-wrap: wrap;
  row-gap: 0.25rem;
  padding-block: 0.125rem;
  overflow: visible;
}

.selector-tabs button {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-height: 3.5rem;
  padding: 0.75rem 0.375rem;
  border: 0;
  background: transparent;
  color: #8a8a8a;
  font-size: 0.875rem;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
}

.selector-tabs--platform button.is-active,
.selector-tabs--type button.is-active {
  z-index: 2;
  color: var(--selection-accent);
  font-weight: 600;
  transform: scale(1.05);
}

.selector-tabs--platform button.is-active::after,
.selector-tabs--type button.is-active::after {
  position: absolute;
  right: 0.375rem;
  bottom: 0;
  left: 0.375rem;
  height: 2px;
  background: #3a3a3a;
  content: "";
}

.selector-result {
  margin: 1.5rem 0 1rem;
  color: #74777b;
  font-size: 0.88rem;
}

.selector-result span {
  color: var(--selection-ink);
  font-weight: 700;
}

.selector-products {
  position: relative;
  min-height: 46.9rem;
  margin-top: 10px;
}

.selector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  min-height: 46.9rem;
  gap: 0.4rem;
}

.selector-products>.selector-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.selector-products>.selector-empty[hidden] {
  display: none;
}

.selector-card {
  display: flex;
  flex-direction: column;
  min-height: 22.25rem;
  overflow: hidden;
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  background: #fff;
}

.selector-card:hover {
  transform: scale(1.02);
}

.selector-card[hidden] {
  display: none;
}

.selector-card>img {
  width: 68%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 1rem auto 0;
}

.selector-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 1rem 1.25rem;
  text-align: center;
}

.selector-card__body small {
  color: var(--selection-accent);
  font-size: 0.72rem;
}

.selector-card__body h3 {
  margin-top: 0rem;
  font-size: 1rem;
  font-weight: 400;
}

.selector-card__body p {
  margin-top: 0.6rem;
  color: #74777b;
  font-size: 0.85rem;
  line-height: 1.55;
}

.selector-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: auto;
}

.selector-card__actions button,
.selector-card__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border: 0;
  border-radius: 4px;
  background: #f1f1f1;
  color: #33363a;
  font-size: 1rem;
}

.selector-card__actions button.is-selected {
  background: #111;
  color: #fff;
}

.selector-card__actions button:hover,
.selector-card__actions a:hover {
  background: #000;
  color: #fff;
}

.selector-card__actions {
  grid-template-columns: 1fr;
}

.selector-card__actions button {
  display: none;
}

.selector-card__actions a {
  width: 50%;
  justify-self: center;
}

.product-selection-page.is-comparison-open {
  overflow: hidden;
}

.comparison-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 0;
  background: rgba(0, 0, 0, 0.6);
}

.comparison-modal[hidden] {
  display: none;
}

.comparison-modal__safe {
  width: var(--safe-width);
}

.comparison-modal__dialog {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  aspect-ratio: 1259 / 583;
  margin: 0 auto;
  background: url("https://store.hiwonder.com.cn/static/image/lander/product-selection/%E5%9B%BE%E5%B1%82%20537.png") center / 100% 100% no-repeat;
  color: var(--selection-ink);
}

.comparison-modal__close {
  position: absolute;
  top: 4%;
  right: 2.8%;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c8c8c8;
}

.comparison-modal__close::before,
.comparison-modal__close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.75rem;
  height: 2px;
  background: #fff;
  content: "";
}

.comparison-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.comparison-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.comparison-modal__close:hover {
  background: #999;
}

.comparison-modal__content {
  width: 62.5%;
}

.comparison-modal__content h2 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
}

.comparison-modal__content ul {
  list-style: none;
}

.comparison-modal__content li {
  padding: 1.2rem 0;
  border-bottom: 1px solid #dedede;
  font-size: 1rem;
  line-height: 1.45;
}

.comparison-modal__content li:hover {
  color: var(--selection-accent);
}

.selector-empty,
.guide-empty {
  padding: 4rem 1rem;
  color: #777b80;
  text-align: center;
}

.selection-guides {
  /* background: #ececec; */
}

.guide-search {
  position: relative;
  display: block;
  width: min(38rem, 100%);
  margin: 2.5rem auto 3rem;
}

.guide-search input {
  width: 100%;
  height: 3.2rem;
  padding: 0 3.75rem 0 1.5rem;
  border: 1px solid #dedede;
  border-radius: 999px;
  outline: 0;
  background: #fff;
}

.guide-search input:focus {
  border-color: var(--selection-accent);
  box-shadow: 0 0 0 3px rgba(245, 154, 35, 0.14);
}

.guide-search__icon {
  position: absolute;
  top: 50%;
  right: 1.35rem;
  width: 1.15rem;
  height: 1.15rem;
  border: 2.2px solid #b7b9bc;
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.guide-search__icon::after {
  position: absolute;
  right: -0.48rem;
  bottom: 0.1rem;
  width: 0.55rem;
  height: 2px;
  background: #b7b9bc;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  height: 23.5rem;
  min-height: 23.5rem;
  overflow: hidden;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.guide-card[hidden] {
  display: none;
}

.guide-card:hover {
  /* border-color: var(--selection-accent); */
  transform: translateY(-3px);
}

.guide-card>img {
  flex: 0 0 auto;
  width: 100%;
  /* aspect-ratio: 1.55 / 1; */
  object-fit: cover;
}

.guide-card__content {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  padding: 1.15rem 1.35rem 1.25rem;
}

.guide-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 500;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.guide-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}

.guide-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #686c71;
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 300;
}

.guide-card__author,
.guide-card__meta time {
  position: relative;
  padding-left: 1.65rem;
}

.guide-card__author::before,
.guide-card__meta time::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1.2rem;
  height: 1.2rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  transform: translateY(-50%);
}

.guide-card__author::before {
  background-image: url("https://store.hiwonder.com.cn/static/image/lander/product-selection/724person.webp");
}

.guide-card__meta time::before {
  background-image: url("https://store.hiwonder.com.cn/static/image/lander/product-selection/724clock.png");
}

.guide-card__arrow {
  position: relative;
  width: 1.35rem;
  height: 1rem;
  flex: 0 0 1.35rem;
  color: var(--selection-accent);
}

.guide-card__arrow::before,
.guide-card__arrow::after {
  position: absolute;
  top: 50%;
  width: 0.82rem;
  height: 0.82rem;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.guide-card__arrow::before {
  left: 0.05rem;
}

.guide-card__arrow::after {
  left: 0.55rem;
}

.guide-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.5rem;
  margin-top: .5rem;
}

#guides .guide-pagination {
  margin-top: 2rem;
}

.guide-pagination[hidden] {
  display: none;
}

.guide-pagination__arrow {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 2.35rem;
  border: 0;
  border-radius: 50%;
  background: #c5c7c9;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.guide-pagination__arrow::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.42rem;
  height: 0.42rem;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  content: "";
}

.guide-pagination__arrow--prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.guide-pagination__arrow--next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.guide-pagination__arrow:hover:not(:disabled) {
  background: #aeb1b4;
}

.guide-pagination__arrow:disabled {
  opacity: 0.45;
  cursor: default;
}

.guide-pagination__dots {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.guide-pagination__dot {
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 0.48rem;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c7c9cb;
  cursor: pointer;
  transition: width 0.2s ease, flex-basis 0.2s ease, background-color 0.2s ease;
}

.guide-pagination__dot.is-active {
  width: 1.85rem;
  flex-basis: 1.85rem;
  background: var(--selection-accent);
}

@media (max-width: 1920px) {
  .product-matrix {
    aspect-ratio: 3840 / 2100;
  }
}

@media (max-width: 1600px) {
  .matrix-levels {
    margin-top: 1rem;
  }

  .matrix-level h3 {
    /* font-size: 1.3rem; */
  }

  .matrix-level p {
    /* font-size: 0.8rem; */
  }
}

@media (max-width: 1400px) {
  .product-matrix {
    aspect-ratio: auto;
    padding: 6rem 0;
  }
}

@media (max-width: 1300px) {
  .selector-tabs--platform {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .selector-tabs--platform::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 1024px) {
  .matrix-levels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .matrix-level,
  .matrix-level--2,
  .matrix-level--3,
  .matrix-level--4,
  .matrix-level--5 {
    min-height: 19rem;
  }

  .selector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --safe-width: 94%;
  }

  .site-header,
  .site-header.is-scrolled {
    height: 4.5rem;
  }

  .site-header__inner {
    width: 94%;
  }

  .site-nav {
    display: none;
  }

  .brand {
    font-size: 1.5rem;
  }

  .buy-link {
    min-width: auto;
    margin-left: 1rem;
    padding: 0 1rem;
  }

  .selection-hero,
  .selection-hero__image {
    min-height: 86svh;
  }

  .selection-hero__content {
    top: 12vh;
  }

  .selection-hero__content span {
    font-size: 0.9rem;
  }

  .product-matrix,
  .product-selector,
  .selection-guides {
    padding: 5rem 0;
  }

  .selection-heading h2 {
    font-size: 2rem;
  }

  .matrix-levels {
    grid-template-columns: 1fr;
    margin-top: 3rem;
  }

  .matrix-level,
  .matrix-level--2,
  .matrix-level--3,
  .matrix-level--4,
  .matrix-level--5 {
    min-height: 13rem;
  }

  .selector-controls {
    grid-template-columns: 12rem minmax(0, 1fr);
  }

  .selector-tabs--platform {
    overflow-x: auto;
  }

  .comparison-modal {
    padding: 1rem 3%;
  }

  .comparison-modal__dialog {
    width: 100%;
    min-height: 24rem;
    aspect-ratio: auto;
    padding: 4.5rem 2rem 3.5rem;
  }

  .comparison-modal__content {
    width: 100%;
  }

  .comparison-modal__content h2 {
    font-size: 1.2rem;
  }

  .comparison-modal__content li {
    font-size: 0.84rem;
  }

  .selector-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .selector-card,
  .guide-card {
    height: auto;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .guide-card {
    transition: none;
  }
}