:root {
  --bg: #f4f5f2;
  --panel: #fbfcf9;
  --panel-strong: #ffffff;
  --panel2: #eef0eb;
  --text: #171815;
  --muted: #6f756e;
  --line: #d9ddd6;
  --line-strong: #c8cdc5;
  --accent: #e96d5d;
  --green: #27866c;
  --shadow: 0 18px 52px rgba(24, 28, 22, 0.09);
  --content-width: 1720px;
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #1e1e1e;
  --panel: #232323;
  --panel-strong: #272727;
  --panel2: #2b2b2b;
  --text: #f2f2ee;
  --muted: #a9ada6;
  --line: #383838;
  --line-strong: #484848;
  --accent: #ff8272;
  --green: #65c9a8;
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 1080px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

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

/* Full-width transparent navigation that contracts into the same floating bar as home. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  height: 70px;
  margin: 0 auto;
  padding-inline: max(32px, calc((100% - var(--content-width)) / 2));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    backdrop-filter 0.28s ease;
}

.site-header.is-compact {
  top: 10px;
  width: min(920px, calc(100% - 28px));
  height: 56px;
  padding-inline: 14px;
  border-color: color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 15px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  box-shadow: 0 12px 38px color-mix(in srgb, var(--text) 12%, transparent), inset 0 1px 0 #ffffff12;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

:root[data-theme="dark"] .site-header.is-compact {
  border-color: #383838;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  box-shadow: none;
}

.brand {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.brand img {
  width: 38px;
  height: 38px;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

.site-header nav {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin: 0 18px 0 auto;
}

.site-header nav a {
  padding: 10px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 7%, transparent);
}

.site-header nav a.active {
  font-weight: 650;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  box-shadow: none;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.icon-button:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 7%, transparent);
}

.icon-button:focus-visible,
.login-entry:focus-visible,
.site-header nav a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text) 22%, transparent);
  outline-offset: 2px;
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notice i {
  position: absolute;
  right: 7px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.theme-toggle .sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .moon {
  display: none;
}

.login-entry {
  height: 40px;
  min-width: 64px;
  padding: 0 18px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.login-entry:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.login-entry.logged-in {
  width: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 50%;
  background: #4c65b7;
  color: #fff;
}

.site-header.is-compact .brand {
  gap: 8px;
  font-size: 14px;
}

.site-header.is-compact .brand img {
  width: 30px;
  height: 30px;
}

.site-header.is-compact nav {
  margin-right: 10px;
}

.site-header.is-compact nav a {
  padding: 8px 9px;
  font-size: 13px;
}

.site-header.is-compact .icon-button,
.site-header.is-compact .login-entry {
  width: 34px;
  height: 34px;
}

.site-header.is-compact .login-entry:not(.logged-in) {
  width: auto;
  min-width: 58px;
  padding-inline: 14px;
}

.site-header.is-compact .login-entry.logged-in {
  min-width: 34px;
}

main {
  width: min(var(--content-width), calc(100% - 64px));
  margin: 0 auto;
  padding: 44px 0 80px;
}

.page-intro {
  min-height: 128px;
  padding: 6px 6px 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.page-intro > div:first-child {
  min-width: 0;
}

.page-intro h1 {
  margin: 0 0 14px;
  font-size: clamp(48px, 3.2vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.page-intro p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.stats {
  display: flex;
  flex: 0 0 auto;
  border-left: 1px solid var(--line);
}

.stats div {
  min-width: 116px;
  padding: 5px 24px;
  border-right: 1px solid var(--line);
}

.stats b,
.stats small {
  display: block;
}

.stats b {
  font-size: 30px;
  letter-spacing: -0.03em;
}

.stats small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 78px;
  align-self: start;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: top 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

body:has(.site-header.is-compact) .filters {
  top: 78px;
}

.filters > header {
  min-height: 82px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.filters > header b,
.filters > header small {
  display: block;
}

.filters > header b {
  font-size: 16px;
}

.filters > header small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.filters > header button {
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.filters > header button:hover {
  color: var(--text);
}

.filters section {
  padding: 20px 15px;
  border-bottom: 1px solid var(--line);
}

.filters h2 {
  margin: 0 7px 12px;
  font-size: 13px;
}

.filter-list {
  display: grid;
  gap: 4px;
}

.filter-list button {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.filter-list button:hover {
  background: var(--panel2);
  color: var(--text);
}

.filter-list button.active {
  background: var(--text);
  color: var(--bg);
  font-weight: 650;
}

.filter-list em {
  font-size: 11px;
  font-style: normal;
  opacity: 0.78;
}

.tip {
  margin: 16px;
  padding: 14px;
  border-radius: 9px;
  background: var(--panel2);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.catalog {
  min-width: 0;
}

.toolbar {
  min-height: 68px;
  padding: 11px;
  display: flex;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.search {
  height: 46px;
  min-width: 280px;
  flex: 1;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.search:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 6%, transparent);
}

.search svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
}

.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.search input::placeholder {
  color: color-mix(in srgb, var(--muted) 78%, transparent);
}

.unit-switch,
.currency-switch {
  height: 46px;
  padding: 3px;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
}

.unit-switch button,
.currency-switch button {
  min-width: 60px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.currency-switch button.active,
.unit-switch button.active {
  background: var(--text);
  color: var(--bg);
  font-weight: 680;
}

.sort-menu {
  position: relative;
  height: 46px;
  min-width: 164px;
}

.sort-trigger {
  width: 100%;
  height: 46px;
  padding: 0 13px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.sort-trigger:focus-visible,
.sort-menu.open .sort-trigger {
  border-color: var(--line-strong);
}

.sort-trigger i {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.16s ease;
}

.sort-menu.open .sort-trigger i {
  transform: translateY(2px) rotate(225deg);
}

.sort-options {
  position: absolute;
  z-index: 35;
  top: calc(100% + 7px);
  right: 0;
  width: 100%;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.sort-options[hidden] {
  display: none;
}

.sort-options button {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  display: block;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.sort-options button:hover {
  background: var(--panel2);
  color: var(--text);
}

:root[data-theme="dark"] .sort-options button.active {
  background: #ffffff;
  color: #171815;
  font-weight: 700;
}

:root[data-theme="light"] .sort-options button.active {
  background: #171815;
  color: #ffffff;
  font-weight: 700;
}

.summary {
  min-height: 54px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.summary b {
  color: var(--text);
  font-size: 16px;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.model-card {
  min-width: 0;
  min-height: 282px;
  padding: 21px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.model-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--text) 28%, var(--line));
  box-shadow: var(--shadow);
}

:root[data-theme="dark"] .model-card:hover {
  box-shadow: none;
}

.card-head {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
}

.model-logo {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--panel2);
  font-size: 17px;
  font-weight: 800;
}

.model-logo img {
  width: 27px;
  height: 27px;
  display: block;
  object-fit: contain;
}

.model-logo[data-provider="mimo"] img {
  width: 31px;
  height: 28px;
}

.model-logo[data-provider="north"] img {
  width: 23px;
  height: 29px;
}

.model-logo[data-provider="cohere"] img {
  width: 30px;
  height: 30px;
}

.model-logo[data-provider="tencent"] img {
  width: 31px;
  height: 31px;
}

:root[data-theme="dark"] .model-logo[data-provider="openai"] img,
:root[data-theme="dark"] .model-logo[data-provider="mimo"] img,
:root[data-theme="dark"] .model-logo[data-provider="north"] img {
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.model-logo.gpt {
  color: #2a9b7e;
}

.model-logo.free {
  color: #6681d3;
}

.card-title {
  min-width: 0;
}

.card-title h3 {
  margin: 0 0 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 720 15px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: -0.02em;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.card-meta i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
}

.detail-button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.detail-button:hover {
  border-color: var(--line-strong);
  background: var(--panel2);
  color: var(--text);
}

.model-scenario {
  min-height: 46px;
  margin: 22px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: auto;
  border-block: 1px solid var(--line);
}

.price-grid div {
  min-width: 0;
  padding: 13px 8px;
  border-right: 1px solid var(--line);
}

.price-grid div:last-child {
  border-right: 0;
}

.price-grid span,
.price-grid b {
  display: block;
}

.price-grid span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-grid b {
  margin-top: 7px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.free-price {
  min-height: 67px;
  margin-top: auto;
  padding: 15px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-block: 1px solid var(--line);
  background: var(--panel2);
}

.free-price span {
  color: var(--muted);
  font-size: 12px;
}

.free-price b {
  font-size: 15px;
}

.card-bottom {
  min-height: 39px;
  padding-top: 13px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.model-tags em {
  padding: 5px 7px;
  border-radius: 5px;
  background: var(--panel2);
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.availability {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}

.empty {
  min-height: 420px;
  padding: 130px 40px;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--panel);
}

.empty b {
  font-size: 18px;
}

.empty p {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.empty button {
  min-height: 40px;
  padding: 0 17px;
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
}

/* Pagination supports the JS-generated six-card pages without adding visual noise. */
[data-pagination],
.pagination {
  min-height: 64px;
  margin-top: 20px;
  padding: 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

[data-pagination][hidden],
.pagination[hidden] {
  display: none;
}

.page-button {
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  color: var(--text);
}

.page-button.active,
.page-button[aria-current="page"] {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.page-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.page-status {
  min-width: 90px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.page-ellipsis {
  min-width: 24px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.detail-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.detail-panel[hidden] {
  display: none;
}

.backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(5, 6, 5, 0.56);
  backdrop-filter: blur(3px);
}

.detail-panel aside {
  position: absolute;
  right: 0;
  top: 0;
  width: min(860px, 62vw);
  height: 100%;
  padding: 44px;
  overflow-y: auto;
  background: var(--panel);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.2);
  animation: panel-in 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.panel-close {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.panel-close:hover {
  background: var(--panel2);
  color: var(--text);
}

.panel-close svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.modal-model-head {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-right: 48px;
}

.modal-model-head h2 {
  margin: 0;
  font: 720 21px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.modal-model-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.modal-description {
  margin: 32px 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.detail-label {
  margin: 0;
  font-size: 14px;
}

.detail-label-row {
  margin: 30px 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.detail-label-actions,
.detail-price-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-price-controls .unit-switch,
.detail-price-controls .currency-switch {
  height: 36px;
}

.detail-price-controls .unit-switch button,
.detail-price-controls .currency-switch button {
  min-width: 48px;
}

.detail-label-row a {
  color: var(--muted);
  font-size: 12px;
}

.detail-label-row a:hover {
  color: var(--text);
}

@media (max-width: 760px) {
  .detail-label-row,
  .detail-label-actions {
    align-items: flex-start;
  }

  .detail-label-row {
    flex-direction: column;
    gap: 12px;
  }

  .detail-label-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .detail-label-actions a {
    margin-left: auto;
    align-self: center;
  }
}

.plan-price-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.plan-price-row {
  display: grid;
  grid-template-columns: minmax(132px, 1.18fr) repeat(4, minmax(88px, 1fr));
  border-top: 1px solid var(--line);
}

.plan-price-row:first-child {
  border-top: 0;
}

.plan-price-row > * {
  min-width: 0;
  padding: 14px 13px;
  border-left: 1px solid var(--line);
}

.plan-price-row > *:first-child {
  border-left: 0;
}

.plan-price-head {
  background: var(--bg);
}

.plan-price-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.plan-price-name b,
.plan-price-name small,
.plan-price-cell b,
.plan-price-cell small {
  display: block;
}

.plan-price-name b {
  font-size: 13px;
}

.plan-price-name em {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.plan-price-name small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.plan-price-cell b {
  font-size: 13px;
  white-space: nowrap;
}

.plan-price-cell small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.plan-price-row.lite .plan-price-name em {
  border-color: color-mix(in srgb, #35c996 38%, var(--line));
  color: #35c996;
}

.plan-price-row.pro .plan-price-name em {
  border-color: color-mix(in srgb, #4e8fff 42%, var(--line));
  color: #72a7ff;
}

.plan-price-row.max .plan-price-name em,
.plan-price-cell.promotion b {
  border-color: color-mix(in srgb, #a879ff 40%, var(--line));
  color: #bd98ff;
}

.detail-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

@keyframes panel-in {
  from {
    transform: translateX(34px);
    opacity: 0;
  }
}

@media (max-width: 1500px) {
  .site-header {
    padding-inline: 26px;
  }

  main {
    width: calc(100% - 48px);
  }

  .layout {
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 18px;
  }

  .model-card {
    padding: 18px;
  }

  .card-head {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 11px;
  }

  .model-logo {
    width: 46px;
    height: 46px;
  }

  .price-grid div {
    padding-inline: 6px;
  }
}

@media (max-width: 1360px) {
  .stats div {
    min-width: 98px;
    padding-inline: 18px;
  }

  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-card {
    min-height: 270px;
  }
}

@media (max-width: 1180px) {
  .site-header nav {
    margin-right: 10px;
  }

  .site-header nav a {
    padding-inline: 10px;
  }

  .stats {
    display: none;
  }

  .layout {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .sort-menu {
    min-width: 132px;
  }

  .unit-switch button {
    min-width: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .model-card,
  .page-button,
  .detail-panel aside {
    transition: none;
    animation: none;
  }
}
