/* 车型参数库 — 页面样式（只在本页加载，避免污染 main.css） */

.vh-hero { min-height: 380px; }
.vh-hero .page-hero-content { padding-bottom: 3rem; }
.vh-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;
}

.vh-hero-search {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
  max-width: 620px;
}

.vh-hero-search input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  backdrop-filter: blur(6px);
}

.vh-hero-search input::placeholder { color: rgba(255, 255, 255, 0.72); }
.vh-hero-search input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.2);
}

.vh-hero-search .btn { border-radius: 999px; white-space: nowrap; }

/* 数据规模 */
.vh-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.vh-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}

.vh-stat strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.vh-stat span { font-size: 0.82rem; color: var(--text-muted); }

/* 主体布局 */
.vh-layout { display: grid; gap: 1.5rem; align-items: start; }

.vh-filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.vh-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.vh-filter-head h2 { margin: 0; font-size: 1rem; }

.vh-reset {
  border: none;
  background: none;
  color: var(--primary);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
}

.vh-reset:disabled { color: var(--border); cursor: default; }

.vh-field { margin-bottom: 1rem; }
.vh-field:last-child { margin-bottom: 0; }

.vh-field > label,
.vh-field > .vh-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.vh-field input,
.vh-field select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.vh-field input:focus,
.vh-field select:focus {
  outline: 2px solid rgba(13, 92, 99, 0.18);
  border-color: var(--primary);
}

.vh-range { display: flex; align-items: center; gap: 0.4rem; }
.vh-range i { font-style: normal; color: var(--text-muted); flex: none; }
.vh-range select, .vh-range input { min-width: 0; }

.vh-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.vh-chip {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.vh-chip:hover { border-color: var(--primary); color: var(--primary); }

.vh-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.vh-quick { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.vh-quick .vh-chip { font-size: 0.75rem; padding: 0.25rem 0.55rem; }

.vh-tip { margin: 0.4rem 0 0; font-size: 0.72rem; line-height: 1.5; color: var(--text-muted); }

/* 结果区 */
.vh-main { min-width: 0; }

.vh-loading-box {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
}

.vh-loading-box strong { display: block; color: var(--text); margin-bottom: 0.35rem; }
.vh-loading-box span { font-size: 0.85rem; }

.vh-wall-head { margin-bottom: 1rem; }
.vh-h2 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.vh-sub { margin: 0; color: var(--text-muted); font-size: 0.88rem; }

.vh-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.7rem;
}

.vh-brand-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.vh-brand-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.vh-brand-name { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.vh-brand-zh { font-size: 0.75rem; color: var(--text-muted); }
.vh-brand-meta { font-size: 0.75rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.vh-muted { opacity: 0.8; }

.vh-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.vh-count { margin: 0; font-size: 0.88rem; color: var(--text-muted); }
.vh-count strong { color: var(--text); font-variant-numeric: tabular-nums; }

.vh-sort { font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.35rem; }
.vh-sort select {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
}

.vh-models { display: grid; gap: 0.6rem; }

.vh-model {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.vh-model.is-open { border-color: var(--primary); }

.vh-model-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title open" "meta open" "specs specs";
  gap: 0.2rem 0.75rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.vh-model-head:hover { background: rgba(13, 92, 99, 0.03); }

.vh-model-title { grid-area: title; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.45rem; }
.vh-model-brand { font-size: 0.75rem; color: var(--text-muted); }
.vh-model-name { font-size: 1rem; font-weight: 600; color: var(--text); }
.vh-model-meta { grid-area: meta; font-size: 0.78rem; color: var(--text-muted); }

.vh-model-specs {
  grid-area: specs;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.vh-model-specs span {
  padding: 0.15rem 0.5rem;
  background: var(--bg);
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.vh-model-open {
  grid-area: open;
  align-self: center;
  font-size: 0.78rem;
  color: var(--primary);
  white-space: nowrap;
}

.vh-model.is-open .vh-model-open { color: var(--text-muted); font-size: 0; }
.vh-model.is-open .vh-model-open::after { content: "收起"; font-size: 0.78rem; }

.vh-model-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
}

.vh-table-wrap { overflow-x: auto; margin-top: 0.75rem; }

.vh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vh-table th,
.vh-table td {
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.vh-table th {
  position: sticky;
  top: 0;
  background: var(--bg);
  font-weight: 600;
  color: var(--text-muted);
  z-index: 1;
}

.vh-table td { color: var(--text); }
.vh-table tbody tr:hover td { background: rgba(13, 92, 99, 0.03); }
.vh-year { color: var(--text-muted); }

.vh-kind {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: #eef1f6;
  color: #4a5366;
}

.vh-kind[data-k="1"] { background: #e4f5ec; color: #0f7a4e; }
.vh-kind[data-k="2"] { background: #e3f0f2; color: #0b6068; }
.vh-kind[data-k="3"] { background: #fdf1dc; color: #8a5c07; }
.vh-kind[data-k="4"] { background: #f0e9e1; color: #6b4a2a; }
.vh-kind[data-k="5"] { background: #ece8f8; color: #4e3a92; }

.vh-src {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.vh-table-note {
  margin: 0.6rem 0 0;
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.vh-loading { padding: 1rem 0; color: var(--text-muted); font-size: 0.85rem; }

.vh-empty {
  padding: 2.5rem 1.25rem;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.vh-empty strong { display: block; margin-bottom: 0.4rem; }
.vh-empty p { margin: 0 auto 1rem; max-width: 460px; color: var(--text-muted); font-size: 0.88rem; }

/* 口径说明 */
.vh-src-grid { display: grid; gap: 1rem; }

.vh-src-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.vh-src-card h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.vh-src-card p { margin: 0 0 0.75rem; color: var(--text-muted); font-size: 0.88rem; }
.vh-src-tag { font-size: 0.75rem !important; color: var(--primary) !important; margin: 0 !important; }

.vh-notes { margin-top: 1.75rem; display: grid; gap: 0.6rem; }
.vh-notes li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.vh-notes li::before { content: "·"; position: absolute; left: 0.2rem; color: var(--primary); font-weight: 700; }
.vh-notes strong { color: var(--text); }
.vh-notes code {
  padding: 0.05rem 0.3rem;
  background: var(--bg);
  border-radius: 4px;
  font-size: 0.82em;
}

.vh-meta-note { margin-top: 1.25rem; font-size: 0.75rem; color: var(--text-muted); }

/* 结尾 CTA */
.vh-cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.vh-cta-card h2 { margin: 0 0 0.75rem; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.vh-cta-card p { color: var(--text-muted); max-width: 720px; }

.vh-cta-list { margin: 1rem 0 1.5rem; display: grid; gap: 0.5rem; }
.vh-cta-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--text);
}

.vh-cta-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.vh-cta-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* 桌面端 */
@media (min-width: 760px) {
  .vh-stats { grid-template-columns: repeat(4, 1fr); }
  .vh-src-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .vh-layout { grid-template-columns: 262px minmax(0, 1fr); gap: 2rem; }
  .vh-filters { position: sticky; top: 88px; }
  .vh-model-head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
    grid-template-areas: "title meta open" "specs specs specs";
    align-items: center;
  }
  .vh-model-meta { text-align: right; }
  .vh-model-specs { margin-top: 0.2rem; }
}
