:root {
  --ink: #151515;
  --muted: #6f706d;
  --line: #d9dad5;
  --paper: #f5f5f0;
  --surface: #ffffff;
  --acid: #d8ff56;
  --coral: #ff6b4a;
  --cyan: #63d9e6;
  --yellow: #ffd84d;
  --violet: #9d89ef;
  --card-bg: #fbfcfa;
  --card-line: #cdd2cc;
  --info-bg: #eaf2ff;
  --info-ink: #1558a6;
  --context-bg: #edf7f5;
  --context-line: #c9e2dd;
  --price-bg: #f0f4f9;
  --shadow: 0 18px 50px rgba(20, 20, 18, 0.08);
  --side-width: 210px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 245, 240, 0.94);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
.brand-logo { width: 32px; height: 32px; display: block; object-fit: cover; border-radius: 6px; }
.header-nav { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem; }
.header-nav a { padding: .5rem .8rem; border-radius: 999px; color: #64748b; font-size: .94rem; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.header-nav a:hover { background: white; color: #2563eb; }
.header-nav .header-action { min-height: 2.9rem; padding: .75rem 1.15rem; background: #2563eb; color: white; font-weight: 800; box-shadow: 0 16px 34px rgba(37, 99, 235, .26); }
.header-nav .header-action:hover { background: #1d4ed8; color: white; }
.view-switch { height: 36px; display: inline-flex; border: 1px solid var(--ink); background: white; }
.view-switch button { min-width: 66px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-right: 1px solid var(--ink); background: transparent; color: var(--muted); font-size: 11px; }
.view-switch button:last-child { border-right: 0; }
.view-switch button:hover, .view-switch button.active { background: var(--ink); color: white; }
.view-icon { width: 13px; height: 13px; flex: 0 0 auto; color: currentColor; }
.grid-view-icon { background: linear-gradient(currentColor, currentColor) 0 0 / 5px 5px no-repeat, linear-gradient(currentColor, currentColor) 100% 0 / 5px 5px no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 5px 5px no-repeat, linear-gradient(currentColor, currentColor) 100% 100% / 5px 5px no-repeat; }
.list-view-icon { background: linear-gradient(currentColor, currentColor) 0 1px / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 6px / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 11px / 100% 2px no-repeat; }

.side-navigation { position: fixed; top: 72px; bottom: 0; left: 0; z-index: 18; width: var(--side-width); padding: 28px 16px 20px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #eeeeea; overflow-y: auto; }
.side-nav-heading { padding: 0 8px 20px; border-bottom: 1px solid #cacbc5; }
.side-nav-heading p { margin: 0 0 7px; color: var(--coral); font: 700 9px ui-monospace, monospace; }
.side-nav-heading strong { font-size: 18px; }
.side-navigation nav { padding-top: 12px; }
.side-nav-link { min-height: 42px; padding: 0 9px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; border-left: 2px solid transparent; }
.side-nav-link span { color: #9a9b96; font: 9px ui-monospace, monospace; }
.side-nav-link:hover, .side-nav-link.active { color: var(--ink); background: white; border-left-color: var(--coral); }
.side-nav-group { border-bottom: 1px solid #cacbc5; }
.side-provider-block { margin: 0 0 12px 18px; padding: 7px 0 4px 10px; border-left: 1px solid #c2c3bd; }
.side-provider-block > p { margin: 0 9px 7px; color: var(--muted); font: 700 9px ui-monospace, monospace; }
.side-provider { width: 100%; min-height: 34px; padding: 0 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; background: transparent; color: var(--muted); font-size: 11px; text-align: left; }
.side-provider b { min-width: 25px; padding: 3px 5px; background: white; color: var(--ink); font: 600 9px ui-monospace, monospace; text-align: center; }
.side-provider:hover, .side-provider.active { background: var(--ink); color: white; }
.side-provider.active b { background: var(--acid); }
.side-nav-status { margin-top: auto; padding: 16px 8px 0; display: flex; align-items: center; gap: 8px; border-top: 1px solid #cacbc5; color: var(--muted); font-size: 10px; }
.side-nav-status i { width: 7px; height: 7px; border-radius: 50%; background: #43ad67; box-shadow: 0 0 0 4px rgba(67,173,103,.12); }
.side-nav-status b { color: var(--ink); }
main { margin-left: var(--side-width); overflow: hidden; }
footer { margin-left: var(--side-width); }
.showcase-section, .catalog-section, .pricing-note { scroll-margin-top: 88px; }
.intro {
  min-height: 455px;
  padding: 70px clamp(20px, 6vw, 96px) 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, .5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.intro::after { content: ""; position: absolute; right: -50px; top: 48px; width: 190px; height: 190px; border: 1px solid #c5c6c0; transform: rotate(15deg); pointer-events: none; }
.eyebrow, .section-index { margin: 0 0 26px; font: 700 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 28px; height: 2px; background: var(--coral); }
h1 { margin: 0; max-width: 900px; font-size: clamp(46px, 4.8vw, 72px); line-height: 1.02; font-weight: 750; }
h1 em { font-family: Georgia, "Songti SC", serif; font-weight: 400; color: var(--coral); }
.intro-description { max-width: 600px; margin: 28px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.intro-aside { border-top: 3px solid var(--ink); padding-top: 20px; position: relative; z-index: 1; }
.stat-primary { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.stat-primary strong { font: 500 58px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.stat-primary span, .stat-row { font-size: 12px; color: var(--muted); }
.stat-row { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); }
.stat-row b { color: var(--ink); font-size: 17px; margin-right: 4px; }
.data-status { display: flex; align-items: center; gap: 8px; padding-top: 18px; font-size: 11px; color: var(--muted); }
.data-status time { margin-left: auto; }
.status-dot { width: 7px; height: 7px; background: #43ad67; border-radius: 50%; box-shadow: 0 0 0 4px rgba(67,173,103,.12); }

.showcase-section, .catalog-section { padding: 82px clamp(20px, 6vw, 96px); }
.showcase-section { background: var(--surface); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.section-heading h2, .pricing-note h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.08; }
.section-heading-side { max-width: 420px; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.section-heading-side > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; text-align: right; }
.section-index { margin-bottom: 12px; color: var(--coral); }
.showcase-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; background: transparent; }
.model-card.feature-card { min-height: 0; aspect-ratio: 1 / 1; padding: 12px; background: var(--card-bg); border: 1px solid var(--card-line); border-radius: 8px; }
.model-card.feature-card:hover { background: white; }
.feature-card .provider-sign { width: 34px; height: 34px; font-size: 10px; }
.feature-card .provider-name { font-size: 10px; }
.feature-card .mode-pill { margin-top: 5px; padding: 4px 6px; font-size: 10px; }
.feature-card .promo-badge { padding: 4px 7px; font-size: 11px; }
.showcase-empty { grid-column: 1 / -1; min-height: 220px; padding: 34px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--paper); text-align: center; }
.showcase-empty span { color: var(--line); font: 700 52px ui-monospace, monospace; }.showcase-empty strong { margin-top: 8px; font-size: 18px; }.showcase-empty p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.feature-top, .card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.provider-sign { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font: 700 15px ui-monospace, monospace; flex: 0 0 auto; }
.provider-name { font: 750 10px ui-monospace, monospace; text-transform: uppercase; color: #494d49; }
.mode-pill { display: inline-flex; margin-top: 9px; padding: 5px 8px; border: 1px solid #b9cfee; background: var(--info-bg); color: var(--info-ink); font: 700 10px ui-monospace, monospace; text-transform: uppercase; }
.feature-card .model-id { font-size: 12px; line-height: 1.35; }
.feature-card .model-description { margin-top: 4px; font-size: 12px; line-height: 1.45; -webkit-line-clamp: 1; }
.model-id { margin: 0; color: var(--muted); font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.price-block span { display: block; margin-bottom: 6px; font-size: 10px; color: var(--muted); }
.price-block strong { font: 700 18px ui-monospace, monospace; }
.price-block small { font-size: 9px; color: var(--muted); }
.price-block del { display: block; margin-top: 3px; color: var(--muted); font: 10px ui-monospace, monospace; }
.price-block .discounted-price { color: #d9472a; }
.promo-badge { display: inline-flex; width: fit-content; padding: 4px 7px; background: #e75332; color: white; font: 750 11px ui-monospace, monospace; }
.model-description { min-height: 21px; margin: 4px 0 0; padding-bottom: 4px; border-bottom: 1px solid var(--card-line); color: #555954; font-size: 12px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.model-meta-line { min-height: 18px; margin-top: 3px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.heat-label { display: inline-flex; padding: 3px 6px; background: #fff0e9; color: #b63c22; font: 750 11px ui-monospace, monospace; }

.catalog-section { background: var(--surface); }
.catalog-section .model-card { background: var(--card-bg); }
.catalog-heading { margin-bottom: 26px; }
.toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, auto)) auto; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.toolbar label { min-width: 0; border-right: 1px solid var(--line); }
.toolbar select, .search-box input { width: 100%; height: 56px; padding: 0 42px 0 16px; background: transparent; border: 0; outline: 0; font-size: 13px; }
.toolbar select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%); background-position: calc(100% - 17px) 25px, calc(100% - 12px) 25px; background-size: 5px 5px; background-repeat: no-repeat; }
.search-box { display: flex; align-items: center; padding-left: 18px; position: relative; }
.search-icon { width: 15px; height: 15px; border: 1.5px solid var(--ink); border-radius: 50%; position: relative; flex: 0 0 auto; }
.search-icon::after { content: ""; width: 6px; height: 1.5px; background: var(--ink); position: absolute; right: -5px; bottom: -2px; transform: rotate(45deg); }
.search-box input { padding-left: 12px; }
kbd { margin-right: 16px; border: 1px solid var(--line); background: white; padding: 3px 7px; font: 11px monospace; color: var(--muted); }
.reset-button { height: 56px; padding: 0 18px; border: 0; background: transparent; font-size: 12px; text-decoration: underline; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; min-height: 44px; padding: 10px 0; }
.filter-chip { border: 1px solid var(--line); padding: 6px 9px; background: white; font-size: 11px; }
.filter-chip:hover { border-color: var(--ink); }
.model-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.provider-groups { border-top: 1px solid var(--ink); }
.provider-group { border-bottom: 1px solid var(--ink); }
.provider-group-header { width: 100%; min-height: 92px; padding: 18px 4px; display: grid; grid-template-columns: 40px 48px minmax(180px, 1fr) auto 36px; align-items: center; gap: 16px; border: 0; background: transparent; text-align: left; }
.provider-group-header:hover { background: white; box-shadow: -16px 0 white, 16px 0 white; }
.group-index { color: var(--muted); font: 10px ui-monospace, monospace; }
.group-title { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.group-title strong { font-size: 22px; }
.group-title small { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.group-count { color: var(--muted); font-size: 11px; }
.group-count b { color: var(--ink); font: 600 20px ui-monospace, monospace; margin-right: 3px; }
.group-toggle { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); background: white; font-size: 18px; }
.provider-group-body { padding: 4px 0 30px; }
.provider-group.collapsed .provider-group-body { display: none; }
.model-card { min-height: 0; aspect-ratio: 1 / 1; background: var(--card-bg); border: 1px solid var(--card-line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s, background .2s; position: relative; }
.model-card:hover { border-color: #8f9990; background: white; transform: translateY(-3px); box-shadow: 0 14px 32px rgba(31, 42, 34, 0.10); }
.model-card .card-top { padding-right: 36px; gap: 8px; }
.model-card .provider-sign { width: 34px; height: 34px; font-size: 10px; }
.model-card .provider-name { font-size: 10px; }
.model-card .mode-pill { margin-top: 5px; padding: 4px 6px; font-size: 10px; }
.model-card h3 { margin: 7px 0 4px; color: #111512; font-size: 18px; line-height: 1.18; font-weight: 800; overflow-wrap: anywhere; }
.model-card .model-id { color: #626862; font-size: 12px; line-height: 1.4; }
.capability-list { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0; }
.capability { padding: 3px 5px; border: 1px solid #d8ddd7; background: #f0f2ef; color: #424842; font-size: 11px; font-weight: 600; }
.context-line { margin: auto -4px 5px; padding: 5px 6px; display: flex; justify-content: space-between; border-top: 1px solid var(--context-line); border-bottom: 1px solid var(--context-line); background: var(--context-bg); font-size: 11px; color: #53635f; }
.context-line strong { color: #164f46; font-size: 12px; font-family: ui-monospace, monospace; }
.token-stat { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.card-prices { margin: 0 -4px -4px; padding: 7px 6px 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-top: 1px solid #cbd6e1; border-radius: 0 0 5px 5px; background: var(--price-bg); }
.card-prices .price-block + .price-block { padding-left: 7px; border-left: 1px solid #d4dde6; }
.card-prices .price-block span { margin-bottom: 3px; color: #596674; font-size: 11px; font-weight: 650; }
.card-prices .price-block strong { color: #153f72; font-size: 14px; }
.card-prices .price-block small { display: block; margin-top: 2px; color: #687686; font-size: 10px; line-height: 1.2; }
.card-prices .price-block del { font-size: 11px; }
.card-actions { position: absolute; top: 14px; right: 14px; display: flex; gap: 4px; }
.icon-button { width: 28px; height: 28px; border: 1px solid var(--line); background: white; display: grid; place-items: center; font-size: 15px; }
.icon-button:hover { color: white; border-color: var(--ink); background: var(--ink); }
.copy-button::before { content: ""; width: 9px; height: 11px; border: 1px solid currentColor; box-shadow: 3px -3px 0 -1px white, 3px -3px 0 0 currentColor; }
.showcase-grid .model-card h3 { margin: 7px 0 4px; font-size: 18px; line-height: 1.18; }
.showcase-grid .card-actions { top: 14px; right: 14px; gap: 4px; }
.showcase-grid .icon-button { width: 28px; height: 28px; }
.showcase-grid .model-meta-line { min-height: 18px; margin-top: 3px; }
.showcase-grid .capability-list { gap: 4px; margin: 2px 0; }
.showcase-grid .capability { padding: 3px 5px; font-size: 11px; }
.showcase-grid .context-line { margin: auto -4px 5px; font-size: 11px; }
.showcase-grid .card-prices { gap: 6px; padding: 7px 6px 6px; }
.showcase-grid .card-prices .price-block span { margin-bottom: 3px; font-size: 11px; }
.showcase-grid .card-prices .price-block strong { font-size: 14px; }
.showcase-grid .card-prices .price-block small { display: block; margin-top: 2px; font-size: 10px; line-height: 1.2; }
.showcase-grid .card-prices .price-block del { font-size: 11px; }
.view-list .showcase-grid, .view-list .model-grid { grid-template-columns: 1fr; gap: 8px; }
.view-list .model-card, .view-list .model-card.feature-card {
  min-height: 140px;
  aspect-ratio: auto;
  padding: 14px 48px 14px 14px;
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(170px, 1fr) minmax(210px, 1.3fr) minmax(170px, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 20px;
  row-gap: 5px;
  align-items: center;
}
.view-list .model-card:hover { transform: translateX(3px); }
.view-list .model-card .card-top { grid-column: 1; grid-row: 1; padding-right: 0; }
.view-list .model-card h3 { grid-column: 1; grid-row: 2; margin: 0; }
.view-list .model-card .model-id { grid-column: 1; grid-row: 3; }
.view-list .model-card .model-description { grid-column: 2; grid-row: 1 / 3; align-self: stretch; margin: 0; padding: 4px 0 8px; -webkit-line-clamp: 2; }
.view-list .model-card .model-meta-line { grid-column: 2; grid-row: 3; margin: 0; }
.view-list .model-card .capability-list { grid-column: 3; grid-row: 1 / 3; margin: 0; align-self: center; }
.view-list .model-card .context-line { grid-column: 3; grid-row: 3; margin: 0; }
.view-list .model-card .card-prices { grid-column: 4; grid-row: 1 / 4; align-self: stretch; margin: 0; padding: 10px 8px 10px 20px; border-top: 0; border-left: 1px solid #cbd6e1; border-radius: 0; align-items: center; }
.empty-state { text-align: center; padding: 80px 20px; border-bottom: 1px solid var(--line); }
.empty-state span { font: 700 66px monospace; color: var(--line); }
.empty-state h3 { margin: 8px 0; }
.empty-state p { color: var(--muted); }
.empty-state button { border: 1px solid var(--ink); background: var(--ink); color: white; padding: 10px 16px; }
.pricing-note { padding: 70px clamp(20px, 6vw, 96px); background: var(--ink); color: white; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.pricing-note .section-index { color: var(--acid); }
.note-copy { border-top: 1px solid #555; padding-top: 18px; color: #b9bab5; font-size: 13px; line-height: 1.8; }
.note-copy p { margin: 0 0 12px; }
footer { min-height: 92px; padding: 22px clamp(20px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; background: white; border-top: 1px solid var(--line); }
footer p { color: var(--muted); font-size: 11px; }
footer button { width: 38px; height: 38px; border: 1px solid var(--ink); background: white; font-size: 18px; }

dialog { width: min(700px, calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--ink); border-radius: 0; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(20,20,18,.55); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; right: 18px; top: 18px; z-index: 1; width: 36px; height: 36px; border: 1px solid var(--ink); background: white; font-size: 23px; line-height: 1; }
.dialog-inner { padding: 42px; }
.dialog-heading { padding-right: 50px; }
.dialog-heading h2 { margin: 16px 0 8px; font-size: clamp(30px, 6vw, 52px); line-height: 1; overflow-wrap: anywhere; }
.dialog-description { max-width: 520px; color: var(--muted); line-height: 1.7; }
.dialog-promo { display: flex; gap: 8px; margin-top: 12px; }
.dialog-promo span { padding: 6px 9px; background: var(--acid); font-size: 11px; font-weight: 700; }
.dialog-section { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.dialog-section h3 { margin: 0 0 14px; font-size: 12px; text-transform: uppercase; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.detail-grid div { min-height: 90px; padding: 14px; background: white; }
.detail-grid span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 10px; }
.detail-grid strong { font-size: 14px; overflow-wrap: anywhere; }
.full-capabilities { display: flex; flex-wrap: wrap; gap: 7px; }
.full-capabilities span { border: 1px solid var(--line); padding: 7px 9px; font-size: 11px; }
.copy-id { width: 100%; margin-top: 24px; border: 0; background: var(--ink); color: white; padding: 14px; font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 11px 16px; background: var(--ink); color: white; font-size: 12px; z-index: 50; opacity: 0; visibility: hidden; transition: .2s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.skeleton { min-height: 330px; background: linear-gradient(100deg, #eeeeea 25%, #fafaf7 45%, #eeeeea 65%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position-x: -200%; } }

@media (max-width: 1500px) {
  .showcase-grid, .model-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  :root { --side-width: 190px; }
  .showcase-grid, .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .view-list .model-card, .view-list .model-card.feature-card { min-height: 210px; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr); grid-template-rows: repeat(5, auto); }
  .view-list .model-card .card-top { grid-column: 1; grid-row: 1; }
  .view-list .model-card h3 { grid-column: 1; grid-row: 2; }
  .view-list .model-card .model-id { grid-column: 1; grid-row: 3; }
  .view-list .model-card .model-description { grid-column: 2; grid-row: 1 / 3; }
  .view-list .model-card .model-meta-line { grid-column: 2; grid-row: 3; }
  .view-list .model-card .capability-list { grid-column: 1; grid-row: 4; }
  .view-list .model-card .context-line { grid-column: 1; grid-row: 5; }
  .view-list .model-card .card-prices { grid-column: 2; grid-row: 4 / 6; }
}
@media (max-width: 980px) {
  .intro { grid-template-columns: 1fr; }
  .intro-aside { max-width: 500px; }
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar .search-box { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .reset-button { border-top: 1px solid var(--line); }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --side-width: 0px; }
  .side-navigation { position: sticky; top: 62px; bottom: auto; width: 100%; height: 52px; padding: 0 12px; display: block; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; white-space: nowrap; }
  .side-navigation::-webkit-scrollbar { display: none; }
  .side-nav-heading, .side-nav-status, .side-provider-block > p { display: none; }
  .side-navigation nav, .side-nav-group, .side-provider-block, #side-provider-list { height: 100%; padding: 0; margin: 0; display: inline-flex; align-items: center; border: 0; }
  .side-nav-link { min-height: 36px; padding: 0 10px; display: inline-flex; border-left: 0; border-bottom: 2px solid transparent; }
  .side-nav-link:hover, .side-nav-link.active { border-left-color: transparent; border-bottom-color: var(--coral); }
  .side-provider { width: auto; min-height: 34px; padding: 0 9px; gap: 7px; }
  main, footer { margin-left: 0; }
  .showcase-section, .catalog-section, .pricing-note { scroll-margin-top: 126px; }
}
@media (max-width: 680px) {
  .site-header { height: 62px; }
  .site-header .brand { flex: 0 0 auto; gap: 7px; font-size: 14px; white-space: nowrap; }
  .site-header .brand-logo { width: 28px; height: 28px; }
  .header-nav { height: 100%; flex: 1 1 auto; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .header-nav::-webkit-scrollbar { display: none; }
  .header-nav a { flex: 0 0 auto; background: rgba(255, 255, 255, .7); font-size: 12px; }
  .header-nav .header-action { min-height: 38px; padding: 8px 12px; }
  .view-switch button { min-width: 34px; width: 34px; padding: 0; }
  .view-switch-label { display: none; }
  .intro { min-height: auto; padding-top: 54px; }
  h1 { font-size: 40px; }
  .intro::after { display: none; }
  .showcase-section, .catalog-section { padding-top: 60px; padding-bottom: 60px; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
  .section-heading-side { width: 100%; max-width: none; align-items: flex-start; }
  .section-heading-side > p { text-align: left; }
  .showcase-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .toolbar { grid-template-columns: 1fr; }
  .toolbar .search-box { grid-column: auto; }
  .toolbar label { border-bottom: 1px solid var(--line); border-right: 0; }
  .model-grid { grid-template-columns: 1fr; }
  .view-list .model-card, .view-list .model-card.feature-card { min-height: 0; padding: 12px 46px 12px 12px; grid-template-columns: 1fr; grid-template-rows: none; gap: 5px; }
  .view-list .model-card > :not(.card-actions) { grid-column: 1; grid-row: auto; }
  .view-list .model-card .model-description { min-height: 20px; padding: 3px 0; -webkit-line-clamp: 1; }
  .view-list .model-card .card-prices { padding: 7px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .provider-group-header { grid-template-columns: 28px 42px minmax(0,1fr) 30px; gap: 10px; }
  .provider-group-header .provider-sign { width: 38px; height: 38px; }
  .group-count { grid-column: 3; }
  .group-toggle { grid-column: 4; grid-row: 1 / span 2; }
  .pricing-note { grid-template-columns: 1fr; gap: 36px; }
  footer { gap: 18px; }
  footer p { display: none; }
  .dialog-inner { padding: 28px 20px; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
}
