/* =========================================================
   数码好价榜 · 设计系统
   ========================================================= */

:root {
  --bg: #f6f7fb;
  --bg-soft: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --primary-soft: #eff6ff;
  --violet: #7c3aed;
  --success: #059669;
  --success-soft: #ecfdf5;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --excellent: #059669;
  --good: #2563eb;
  --fair: #d97706;
  --low: #dc2626;
  --ring-track: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.13);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 68px;
  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #070b14;
  --bg-soft: #0b1220;
  --surface: #0f172a;
  --surface-2: #111c31;
  --surface-3: #16233a;
  --text: #e5edf8;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --border: #1e293b;
  --border-strong: #334155;
  --primary: #60a5fa;
  --primary-2: #3b82f6;
  --primary-soft: #172554;
  --success-soft: #052e2b;
  --warning-soft: #3b2606;
  --danger-soft: #3f1212;
  --ring-track: #1e293b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding-left: 1.2em;
}

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

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

button {
  cursor: pointer;
}

svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection {
  background: color-mix(in srgb, var(--primary) 25%, transparent);
}

.container {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

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

.tone-excellent {
  color: var(--excellent);
}

.tone-good {
  color: var(--good);
}

.tone-fair {
  color: var(--fair);
}

.tone-low {
  color: var(--low);
}

.tone-text-excellent {
  color: var(--excellent);
}

.tone-text-good {
  color: var(--good);
}

.tone-text-fair {
  color: var(--fair);
}

.tone-text-low {
  color: var(--low);
}

.icon {
  flex: none;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed 60%, #06b6d4);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-text small {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-link.is-active {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 650;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 220px;
}

.header-search input[type="search"] {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, width 0.18s ease;
}

.header-search input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}

.header-search input::placeholder {
  color: var(--muted-2);
}

.search-icon {
  position: absolute;
  left: 11px;
  color: var(--muted-2);
  pointer-events: none;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.theme-toggle .theme-icon--moon {
  display: none;
}

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

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

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 52px;
  border-bottom: 1px solid var(--border);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.hero-glow--one {
  width: 520px;
  height: 520px;
  left: -160px;
  top: -220px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 65%);
}

.hero-glow--two {
  width: 620px;
  height: 620px;
  right: -220px;
  top: -260px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.14), transparent 65%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 54px;
  align-items: center;
}

.hero-copy {
  animation: fade-up 0.6s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent);
  animation: pulse 2.4s ease infinite;
}

.hero h1 {
  margin-top: 16px;
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(92deg, #2563eb 0%, #7c3aed 48%, #0891b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 18px;
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.hero-search {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 590px;
  padding: 6px 6px 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}

.hero-search-icon {
  color: var(--muted-2);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 15px;
}

.hero-search input::placeholder {
  color: var(--muted-2);
}

.hero-stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 590px;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stats strong {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

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

.hero-board {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
  animation: fade-up 0.7s 0.08s ease both;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 650;
}

.board-head > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.board-head a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 600;
}

.board-list {
  display: flex;
  flex-direction: column;
}

.board-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 52px 74px;
  align-items: center;
  gap: 10px;
  padding: 14px 4px;
  border-bottom: 1px dashed var(--border);
  transition: background 0.18s ease;
}

.board-row:hover {
  background: var(--surface-2);
}

.board-row:last-child {
  border-bottom: 0;
}

.board-rank {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-3);
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
}

.board-row:nth-child(1) .board-rank {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
}

.board-row:nth-child(2) .board-rank {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  color: #fff;
}

.board-row:nth-child(3) .board-rank {
  background: linear-gradient(135deg, #d6a06a, #b77942);
  color: #fff;
}

.board-name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.board-name strong {
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-name small {
  font-size: 11px;
  color: var(--muted);
}

.board-score {
  text-align: right;
  font-weight: 750;
  color: var(--success);
}

.board-price {
  text-align: right;
  font-size: 13px;
  color: var(--text-2);
}

.board-foot {
  padding: 12px 4px 2px;
  font-size: 11px;
  color: var(--muted-2);
}

/* ---------------- Sections ---------------- */

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-title {
  margin-top: 4px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.03em;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.section-link:hover {
  text-decoration: underline;
}

.explore-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.category-desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ---------------- Tabs & pills ---------------- */

.category-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}

.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.category-tab:hover {
  color: var(--text);
  background: var(--surface-2);
}

.category-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.24);
}

.profile-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.pill:hover {
  color: var(--text);
  background: var(--surface-2);
}

.pill.is-active {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 24%, transparent);
  font-weight: 650;
}

.pill-sm {
  padding: 5px 10px;
  font-size: 12px;
}

/* ---------------- Layout & filters ---------------- */

.layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 650;
}

.filters-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filters-head a {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.filters-head a:hover {
  color: var(--primary);
}

.filter-group {
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}

.filter-group:last-of-type {
  border-bottom: 0;
}

.filter-group h3 {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-options--brands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 6px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-2);
  transition: background 0.16s ease, color 0.16s ease;
}

.filter-option:hover {
  background: var(--surface-2);
  color: var(--text);
}

.filter-option.is-active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 650;
}

.filter-note {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding: 11px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.filter-note .icon {
  margin-top: 2px;
  color: var(--primary);
}

.results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.results-head h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.results-head p {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}

.results-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-form {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.sort-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.sort-form select {
  height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.sort-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}

.filters-toggle {
  display: none !important;
}

/* ---------------- Device grid & cards ---------------- */

.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 20px;
}

.device-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.device-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  box-shadow: var(--shadow-md);
}

.device-media {
  position: relative;
  padding: 10px 10px 0;
  background: linear-gradient(180deg, var(--surface-2), transparent);
}

.device-art {
  overflow: hidden;
  border-radius: 13px;
}

.device-art svg {
  width: 100%;
  height: 176px;
}

/* 真实商品外观图：统一 contain，避免裁掉机身 */
.device-art--photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.device-photo {
  display: block;
  width: 100%;
  height: 176px;
  padding: 8px;
  object-fit: contain;
}

.device-card--featured .device-photo {
  height: 100%;
  min-height: 280px;
  padding: 14px;
}

.rank-art .device-art--photo {
  height: 100%;
  border-radius: 10px;
}

.rank-art .device-photo {
  height: 62px;
  padding: 3px;
}

.compare-art .device-art--photo {
  height: 100%;
  border-radius: 10px;
}

.compare-art .device-photo {
  height: 92px;
  padding: 4px;
}

.detail-art-wrap .device-art--photo {
  border-radius: var(--radius);
}

.detail-art-wrap .device-photo {
  height: 250px;
  padding: 12px;
}

.device-photo-fallback {
  width: 100%;
}

.device-photo-fallback[hidden] {
  display: none;
}

.device-art--photo .device-photo-fallback .device-art svg {
  height: 100%;
  min-height: 176px;
}

.device-card--featured {
  grid-column: span 2;
  flex-direction: row;
}

.device-card--featured .device-media {
  flex: 0 0 46%;
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
  min-height: 300px;
}

.device-card--featured .device-art {
  flex: 1;
  display: flex;
  align-items: center;
}

.device-card--featured .device-art svg {
  height: 100%;
  min-height: 280px;
}

.device-card--featured .device-body {
  justify-content: center;
  padding: 22px;
}

.device-card--featured .device-title {
  font-size: 1.22rem;
}

.device-card--featured .device-tag {
  white-space: normal;
}

.media-top {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  color: var(--text-2);
  backdrop-filter: blur(8px);
}

.badge-rank {
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 24%, transparent);
}

.score-badge {
  position: absolute;
  right: 18px;
  bottom: 12px;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border);
  color: var(--muted);
  backdrop-filter: blur(10px);
}

.score-badge strong {
  font-size: 13px;
  color: var(--text);
}

.score-badge.tone-excellent {
  border-color: color-mix(in srgb, var(--success) 32%, var(--border));
  background: color-mix(in srgb, var(--success-soft) 82%, transparent);
  color: var(--success);
}

.score-badge.tone-excellent strong {
  color: var(--success);
}

.score-badge.tone-good {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  background: color-mix(in srgb, var(--primary-soft) 82%, transparent);
  color: var(--primary);
}

.score-badge.tone-good strong {
  color: var(--primary);
}

.score-badge.tone-fair {
  color: var(--warning);
  border-color: color-mix(in srgb, var(--warning) 28%, var(--border));
}

.score-badge.tone-fair strong {
  color: var(--warning);
}

.score-badge.tone-low {
  color: var(--danger);
}

.score-badge.tone-low strong {
  color: var(--danger);
}

.device-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 16px;
}

.device-kicker {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.device-title {
  margin-top: 3px;
  font-size: 1.03rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.device-title a:hover {
  color: var(--primary);
}

.device-tag {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.price {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.per-k {
  font-size: 11px;
  color: var(--muted);
}

.per-k strong {
  color: var(--text-2);
}

.score-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.chip strong {
  color: var(--text-2);
  font-weight: 700;
}

.chip-chip {
  color: var(--violet);
  background: color-mix(in srgb, var(--violet) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--violet) 18%, var(--border));
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.composite {
  font-size: 11px;
  color: var(--muted);
}

.composite strong {
  color: var(--text-2);
}

.compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.compare-toggle input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
}

.compare-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ---------------- Dimension cards ---------------- */

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.dimension-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dimension-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 26%, var(--border));
  box-shadow: var(--shadow-md);
}

.dimension-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 4px;
}

.dimension-title {
  font-size: 13px;
  color: var(--muted);
}

.dimension-top {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dimension-score {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary);
  line-height: 1.1;
}

.dimension-foot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------------- Page hero ---------------- */

.page-hero {
  position: relative;
  padding: 34px 0 36px;
  background:
    radial-gradient(600px 220px at 12% 0%, rgba(37, 99, 235, 0.1), transparent 70%),
    radial-gradient(520px 220px at 88% 0%, rgba(124, 58, 237, 0.09), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-top: 10px;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.page-hero-sub {
  margin-top: 12px;
  max-width: 760px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.page-hero-controls {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.crumb-sep {
  color: var(--muted-2);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-2);
}

/* ---------------- Rank list ---------------- */

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 26px;
  align-items: start;
}

.rank-main-col {
  min-width: 0;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 40px 94px minmax(0, 1fr) 132px 92px 20px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.rank-row:hover {
  transform: translateX(3px);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  box-shadow: var(--shadow-md);
}

.rank-pos {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.rank-pos--1 {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
}

.rank-pos--2 {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  color: #fff;
}

.rank-pos--3 {
  background: linear-gradient(135deg, #d6a06a, #b77942);
  color: #fff;
}

.rank-art {
  display: block;
  width: 94px;
  height: 62px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2);
}

.rank-art .device-art {
  border-radius: 0;
}

.rank-art svg {
  width: 100%;
  height: 62px;
}

.rank-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rank-kicker {
  font-size: 11px;
  color: var(--muted);
}

.rank-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-tag {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-chips {
  display: flex;
  gap: 4px;
  margin-top: 3px;
  overflow: hidden;
}

.rank-chips .chip {
  padding: 2px 6px;
  font-size: 10px;
}

.rank-chips .chip:nth-child(n + 4) {
  display: none;
}

.rank-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.rank-metric-label {
  font-size: 10.5px;
  color: var(--muted);
}

.rank-score strong {
  font-size: 1.3rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.rank-bar {
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.rank-bar span {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: currentColor;
  animation: grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.rank-price {
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.rank-arrow {
  color: var(--muted-2);
}

.explain-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.explain-card h3 {
  margin-top: 4px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.explain-card > p:not(.eyebrow) {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.explain-top {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 16px 0;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-soft), color-mix(in srgb, var(--violet) 8%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--border));
}

.explain-top span {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.explain-top strong {
  font-size: 15px;
}

.explain-top small {
  font-size: 11.5px;
  color: var(--muted);
}

.explain-weights {
  margin: 16px 0;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--muted);
}

.weight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.explain-card .btn {
  margin-top: 6px;
}

.note-card {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.note-card .icon {
  margin-top: 2px;
  color: var(--primary);
}

/* ---------------- Tables ---------------- */

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 620px;
}

.data-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: var(--surface-2);
}

.data-table tfoot td {
  background: var(--surface-2);
  font-weight: 700;
}

.table-rank {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--surface-3);
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
}

.table-rank.is-top {
  background: var(--primary-soft);
  color: var(--primary);
}

.chip-name-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chip-name-cell strong {
  color: var(--text);
  font-size: 13.5px;
}

.chip-tier {
  font-size: 10.5px;
  color: var(--muted);
}

.chip-score-value {
  color: var(--primary);
  font-size: 15px;
}

.chip-process {
  font-size: 10.5px;
  color: var(--muted);
}

.chip-table {
  min-width: 900px;
}

.chip-device-link {
  color: var(--text-2);
  font-weight: 600;
}

.chip-device-link:hover {
  color: var(--primary);
}

.chip-device-count {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 10px;
  color: var(--muted);
}

.mini-meter {
  display: inline-block;
  width: 72px;
  height: 5px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
  vertical-align: middle;
}

.mini-meter span {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: currentColor;
  animation: grow 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* ---------------- Detail ---------------- */

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  padding: 24px 0 44px;
}

.detail-art-wrap {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.detail-art-wrap svg {
  width: 100%;
  height: 250px;
}

.detail-info {
  padding-top: 10px;
}

.detail-kicker {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.detail-info h1 {
  margin-top: 6px;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.detail-tag {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
}

.detail-price {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.detail-price-note {
  font-size: 11.5px;
  color: var(--muted);
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}

.detail-badges .score-badge {
  position: static;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.detail-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.detail-mini-stats div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.detail-mini-stats span {
  font-size: 11px;
  color: var(--muted);
}

.detail-mini-stats strong {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.detail-score-panel {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.score-ring {
  --ring-color: var(--good);
  position: relative;
  width: 146px;
  height: 146px;
  margin: 4px auto 10px;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--ring-color) calc(var(--score) * 1%),
    var(--ring-track) 0
  );
  display: grid;
  place-items: center;
}

.score-ring.tone-excellent {
  --ring-color: var(--excellent);
}

.score-ring.tone-good {
  --ring-color: var(--good);
}

.score-ring.tone-fair {
  --ring-color: var(--fair);
}

.score-ring.tone-low {
  --ring-color: var(--low);
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--surface);
}

.score-ring-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.score-ring-inner strong {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.score-ring-inner span {
  font-size: 11px;
  color: var(--muted);
}

.detail-score-label {
  font-size: 13px;
  font-weight: 650;
}

.detail-score-hint {
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--muted);
}

.detail-meters {
  margin-top: 16px;
  text-align: left;
}

.meter-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.meter-label {
  font-size: 11px;
  color: var(--muted);
}

.meter {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.meter-fill {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: currentColor;
  animation: grow 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.meter-value {
  text-align: right;
  font-size: 11px;
  font-weight: 650;
  color: var(--text-2);
}

.detail-section {
  padding: 34px 0;
  border-top: 1px solid var(--border);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 24px;
  align-items: start;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.analysis-card,
.breakdown-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-head-row h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.card-head-row > span {
  font-size: 12px;
  font-weight: 650;
}

.analysis-text {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.8;
}

.analysis-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.analysis-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.analysis-stats span {
  font-size: 10.5px;
  color: var(--muted);
}

.analysis-stats strong {
  font-size: 15px;
}

.analysis-stats small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.breakdown-table {
  min-width: 520px;
}

.breakdown-table td:nth-child(2) {
  white-space: nowrap;
}

.detail-side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.side-card-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.side-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--violet) 10%, var(--surface));
  color: var(--violet);
}

.side-card h3 {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.side-card-head p {
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--muted);
}

.side-list {
  margin-top: 14px;
}

.side-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 12.5px;
}

.side-list > div:last-child {
  border-bottom: 0;
}

.side-list dt {
  color: var(--muted);
}

.side-list dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

.side-card--accent {
  background: linear-gradient(150deg, var(--primary-soft), color-mix(in srgb, var(--violet) 8%, var(--surface)));
  border-color: color-mix(in srgb, var(--primary) 18%, var(--border));
}

.side-card--accent p {
  margin: 6px 0 14px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
}

.side-card--accent .btn + .btn {
  margin-top: 8px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.spec-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.spec-card h3 {
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-row dt {
  color: var(--muted);
  white-space: nowrap;
}

.spec-row dd {
  margin: 0;
  text-align: right;
  color: var(--text-2);
  font-weight: 550;
}

.device-grid--four {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-2);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12.5px;
  border-radius: 9px;
}

.btn-block {
  width: 100%;
}

.compare-action.is-selected {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.24);
}

/* ---------------- Compare ---------------- */

.compare-page {
  padding-top: 30px;
}

.compare-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.compare-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--muted);
}

.compare-back:hover {
  color: var(--primary);
}

.compare-title h1 {
  margin-top: 2px;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
}

.compare-title p:not(.eyebrow) {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}

.compare-actions {
  display: flex;
  gap: 8px;
}

.compare-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 13px;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.compare-corner {
  width: 150px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.compare-group th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-table tbody th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 150px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.compare-table tbody tr:hover th[scope="row"],
.compare-table tbody tr:hover td {
  background: var(--surface-2);
}

.compare-device-head {
  position: relative;
  min-width: 210px;
  vertical-align: top !important;
}

.compare-remove {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  z-index: 2;
}

.compare-remove:hover {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 30%, var(--border));
}

.compare-device-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
}

.compare-art {
  display: block;
  height: 92px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 6px;
  background: var(--surface-2);
}

.compare-art svg {
  width: 100%;
  height: 92px;
}

.compare-device-name {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.compare-device-meta {
  font-size: 11px;
  color: var(--muted);
}

.compare-device-price {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 800;
}

.compare-device-link .score-badge {
  position: static;
  align-self: flex-start;
  margin-top: 3px;
}

.is-best {
  background: color-mix(in srgb, var(--success-soft) 72%, var(--surface)) !important;
  color: var(--success) !important;
  font-weight: 700;
}

.best-mark {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--success);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  vertical-align: 1px;
}

/* ---------------- About ---------------- */

.page-hero--about {
  padding-bottom: 42px;
}

.about-stats {
  display: flex;
  gap: 38px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.about-stats div {
  display: flex;
  flex-direction: column;
}

.about-stats strong {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.about-stats span {
  font-size: 11.5px;
  color: var(--muted);
}

.prose {
  max-width: 1000px;
}

.about-block {
  margin-bottom: 52px;
}

.about-block h2 {
  margin-bottom: 12px;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.about-block h3 {
  margin: 22px 0 10px;
  font-size: 1.05rem;
}

.about-block > p {
  margin-bottom: 10px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.8;
}

.about-block li {
  margin-bottom: 4px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

.about-block code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-3);
  font-family: var(--mono);
  font-size: 12.5px;
}

.formula-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.formula-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.formula-card h3 {
  margin: 0 0 8px;
}

.formula-card ul {
  margin: 0;
  padding-left: 18px;
}

.formula-card li {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.8;
}

.formula-block {
  margin: 16px 0;
  padding: 20px;
  border-radius: var(--radius);
  background: #0b1220;
  color: #e2e8f0;
  overflow-x: auto;
  border: 1px solid #1e293b;
}

.formula-block code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre;
}

.weights-table {
  min-width: 760px;
}

.weights-table td:first-child {
  display: flex;
  flex-direction: column;
  min-width: 130px;
}

.weights-table td:first-child small {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 400;
}

.about-block .btn {
  margin-top: 12px;
}

/* ---------------- Empty & toast ---------------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 24px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.empty-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--muted);
  margin-bottom: 14px;
}

.empty-state h3 {
  font-size: 1.2rem;
}

.empty-state p {
  max-width: 440px;
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 120;
  padding: 11px 16px;
  border-radius: 10px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  animation: fade-up 0.25s ease both;
}

/* ---------------- Compare bar ---------------- */

.compare-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 110;
  width: min(920px, calc(100% - 32px));
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.compare-bar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
}

.compare-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.compare-bar-label strong {
  color: var(--text);
}

.compare-bar-items {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}

.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-2);
  white-space: nowrap;
}

.compare-chip button {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.compare-chip button:hover {
  background: var(--surface-3);
  color: var(--danger);
}

.compare-bar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ---------------- Footer ---------------- */

.site-footer {
  margin-top: 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 1fr 1fr;
  gap: 40px;
  padding: 44px 0 30px;
}

.footer-brand p {
  max-width: 420px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h4 {
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0.04em;
}

.footer-col a {
  font-size: 12.5px;
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 24px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 11px;
}

.footer-meta {
  white-space: nowrap;
}

/* ---------------- Live JD offers ---------------- */

.live-strip {
  padding: 12px 0;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 7%, var(--surface)),
    color-mix(in srgb, var(--violet) 5%, var(--surface))
  );
  border-bottom: 1px solid var(--border);
}

.live-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.live-strip-copy {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}

.live-strip-copy strong {
  color: var(--text);
}

.live-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--success) 14%, var(--surface));
  color: var(--success);
  font-size: 9.5px;
  font-weight: 750;
  vertical-align: 2px;
  letter-spacing: 0.02em;
}

.price-origin {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted-2);
}

.price-origin s {
  color: var(--muted-2);
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.live-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.live-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--danger) 22%, var(--border));
  box-shadow: var(--shadow-md);
}

.live-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  padding: 14px;
  background: var(--surface-2);
}

.live-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.live-img-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--muted-2);
  font-size: 13px;
}

.live-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 10px;
  font-weight: 650;
  backdrop-filter: blur(8px);
}

.live-discount {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.24);
}

.live-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 13px 14px 14px;
}

.live-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.live-match {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--success);
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
}

.live-match:hover {
  text-decoration: underline;
}

.live-unmatched {
  color: var(--muted-2);
  font-size: 10.5px;
  white-space: nowrap;
}

.live-shop {
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 10.5px;
}

.live-title {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-title a:hover {
  color: var(--primary);
}

.live-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.live-price {
  color: var(--danger);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.live-origin {
  color: var(--muted-2);
  font-size: 11px;
  text-decoration: line-through;
}

.live-coupon-price {
  color: var(--success);
  font-size: 11px;
  font-weight: 650;
}

.live-price-note {
  margin-top: 4px;
  color: var(--warning);
  font-size: 10.5px;
  line-height: 1.5;
}

.coupon-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--danger-soft);
  border: 1px solid color-mix(in srgb, var(--danger) 24%, var(--border));
  color: var(--danger);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 9px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
}

.live-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.live-pending {
  color: var(--muted-2);
  font-size: 10.5px;
}

.live-disclaimer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.page-hero--live {
  padding-bottom: 30px;
}

.live-sync-row {
  display: flex;
  align-items: center;
  gap: 6px 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.live-sync-row .live-dot {
  margin-right: 2px;
}

.live-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.live-search {
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-search input {
  height: 36px;
  min-width: 190px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  outline: none;
  font-size: 13px;
}

.live-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}

.live-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}

.tab-count {
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  font-size: 10px;
  opacity: 0.8;
}

.live-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.live-detail-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.live-detail-meta .icon {
  color: var(--warning);
}

.live-config-note,
.live-source-note {
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 11px;
}

.detail-origin {
  color: var(--muted-2);
  font-size: 1.05rem;
  text-decoration: line-through;
}

.detail-coupon-price {
  color: var(--success);
  font-size: 12.5px;
  font-weight: 650;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
}

.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.page-gap {
  padding: 0 2px;
  color: var(--muted-2);
}

.img-fallback {
  position: relative;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
}

.img-fallback::after {
  content: attr(data-letter);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-size: 28px;
  font-weight: 800;
}

@media (max-width: 620px) {
  .live-media {
    aspect-ratio: 4 / 3;
  }

  .live-sync-row {
    font-size: 11px;
  }

  .live-toolbar {
    align-items: stretch;
  }

  .live-search {
    width: 100%;
  }

  .live-search input {
    flex: 1;
    min-width: 0;
  }

  .live-results-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

/* ---------------- Animations ---------------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 30%, transparent);
  }
  50% {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--success) 0%, transparent);
  }
}

@keyframes grow {
  from {
    width: 0;
  }
  to {
    width: var(--w);
  }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1120px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
  }

  .detail-hero {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .detail-score-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    text-align: left;
  }

  .detail-score-panel .score-ring {
    grid-row: span 2;
  }

  .detail-score-panel .detail-meters {
    grid-column: 2;
    margin-top: 0;
  }
}

@media (max-width: 980px) {
  .header-search {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-board {
    max-width: 640px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
    display: none;
  }

  .filters.is-open {
    display: block;
  }

  .filters-toggle {
    display: inline-flex !important;
  }

  .filter-options--brands {
    max-height: none;
    grid-template-columns: repeat(3, 1fr);
  }

  .rank-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .explain-card,
  .detail-side {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 26px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    padding-bottom: 2px;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .hero-stats strong {
    font-size: 1.15rem;
  }

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

  .device-card--featured {
    grid-column: span 2;
    flex-direction: column;
  }

  .device-card--featured .device-media {
    flex: none;
    width: 100%;
    min-height: 0;
    padding-bottom: 0;
  }

  .device-card--featured .device-art svg {
    height: 200px;
    min-height: 0;
  }

  .device-card--featured .device-body {
    padding: 14px 16px 16px;
  }

  .device-card--featured .device-title {
    font-size: 1.03rem;
  }

  .results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-tools {
    width: 100%;
    justify-content: space-between;
  }

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

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

  .formula-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-art-wrap svg {
    height: 210px;
  }

  .detail-score-panel {
    display: block;
    text-align: center;
  }

  .detail-score-panel .detail-meters {
    margin-top: 16px;
  }
}

@media (max-width: 620px) {
  .container {
    width: calc(100% - 28px);
  }

  .brand-text small {
    display: none;
  }

  .main-nav {
    gap: 0;
  }

  .nav-link {
    padding: 8px 6px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .hero-sub {
    font-size: 14px;
  }

  .hero-search {
    flex-wrap: wrap;
    padding: 8px;
  }

  .hero-search input {
    flex: 1 1 150px;
  }

  .hero-search .btn {
    flex: 1 0 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .category-tabs {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .category-tab {
    padding: 8px 12px;
    font-size: 13px;
  }

  .device-grid {
    grid-template-columns: 1fr;
  }

  .device-card--featured {
    grid-column: auto;
  }

  .device-card--featured .device-art svg {
    height: 190px;
  }

  .category-desc {
    display: none;
  }

  .filter-options--brands {
    grid-template-columns: 1fr 1fr;
  }

  .rank-row {
    grid-template-columns: 34px minmax(0, 1fr) 64px;
    gap: 10px;
    padding: 12px;
  }

  .rank-art,
  .rank-chips,
  .rank-arrow {
    display: none;
  }

  .rank-score {
    align-items: flex-end;
  }

  .rank-score strong {
    font-size: 1.1rem;
  }

  .rank-bar {
    width: 56px;
  }

  .rank-price {
    display: none;
  }

  .rank-tag {
    display: none;
  }

  .dimension-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .dimension-card {
    padding: 14px;
  }

  .dimension-score {
    font-size: 1.45rem;
  }

  .page-hero {
    padding-top: 26px;
  }

  .detail-mini-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .detail-mini-stats strong {
    font-size: 0.95rem;
  }

  .analysis-stats {
    grid-template-columns: 1fr 1fr;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    gap: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .compare-bar {
    bottom: 0;
    width: 100%;
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
  }

  .compare-bar-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .compare-bar-items {
    order: 3;
    flex-basis: 100%;
  }

  .compare-bar-actions {
    margin-left: auto;
  }

  .toast {
    left: 14px;
    right: 14px;
    bottom: 108px;
    text-align: center;
  }
}

/* 筛选局部更新时的顶部进度条（固定定位，不占布局、不影响滚动） */
#filter-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

#filter-progress.is-active {
  opacity: 1;
  transform: scaleX(0.72);
}

#filter-progress.is-done {
  opacity: 0;
  transform: scaleX(1);
  transition: transform 0.15s ease, opacity 0.2s ease 0.1s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
