:root {
  --primary: #27199b;
  --primary-hover: #1d1278;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --surface: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 20px rgba(39, 25, 155, 0.08);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  min-width: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.main-nav a:hover {
  background: var(--accent-soft);
  color: var(--primary);
}

.main-nav a.active {
  background: var(--primary);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
}

/* Announcement bar */
.announce-bar {
  background: linear-gradient(90deg, #1e166e 0%, #27199b 55%, #1d4ed8 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 13.5px;
}

.announce-tag {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.announce-text {
  flex: 1;
  font-weight: 500;
  min-width: 0;
}

.announce-cta {
  color: #dbeafe;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.announce-cta:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Hero */
.hero-section {
  background:
    radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.10), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.text-accent {
  color: var(--primary);
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--ink);
  border-color: #cbd5e1;
}

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

.btn-block {
  width: 100%;
}

.quick-budgets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.quick-label {
  color: var(--muted);
  font-weight: 600;
}

.quick-budgets a {
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink-2);
  font-weight: 500;
}

.quick-budgets a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Hero AI Matrix Panel */
.hero-panel {
  background: #0f172a;
  color: #f8fafc;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  border: 1px solid #1e293b;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #cbd5e1;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #1e293b;
}

.panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.ai-matrix {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-row.highlight {
  background: linear-gradient(90deg, rgba(39, 25, 155, 0.45), rgba(37, 99, 235, 0.25));
  border-color: rgba(96, 165, 250, 0.4);
}

.ai-vram {
  min-width: 82px;
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
  text-align: center;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  flex-shrink: 0;
}

.ai-detail {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ai-detail strong {
  font-size: 13.5px;
  color: #ffffff;
}

.ai-detail span {
  font-size: 12px;
  color: #94a3b8;
}

.ai-link {
  font-size: 12px;
  font-weight: 700;
  color: #93c5fd;
  white-space: nowrap;
}

.ai-link:hover {
  color: #ffffff;
}

/* Sections */
.section {
  padding: 44px 0;
}

.section-alt {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-head h2 {
  margin: 0 0 4px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.section-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* Cards & Grids */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card-h2 {
  margin: 0 0 16px;
  font-size: 19px;
  font-weight: 800;
}

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

.card-title-row h2, .card-title-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

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

.build-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.build-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #c7d2fe;
}

.build-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.scene-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: #eef2ff;
  color: var(--primary);
}

.scene-ai { background: #ecfeff; color: #0e7490; }
.scene-gaming2k { background: #eff6ff; color: #1d4ed8; }
.scene-gaming4k { background: #fef3c7; color: #b45309; }
.scene-office { background: #ecfdf5; color: #047857; }
.scene-creator { background: #f3e8ff; color: #7e22ce; }
.scene-itx { background: #fce7f3; color: #be185d; }

.build-price {
  font-size: 20px;
  font-weight: 800;
  color: #dc2626;
  font-variant-numeric: tabular-nums;
}

.build-title {
  margin: 0 0 6px;
  font-size: 16.5px;
  line-height: 1.38;
}

.build-title a {
  color: var(--ink);
}

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

.build-summary {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.build-mini-specs {
  list-style: none;
  padding: 10px 0;
  margin: 0 0 12px;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.build-mini-specs li {
  display: flex;
  gap: 8px;
}

.spec-k {
  color: var(--muted);
  width: 44px;
  flex-shrink: 0;
}

.spec-v {
  color: var(--ink);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.build-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.build-meta-pills span {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 5px;
  background: #f1f5f9;
  color: var(--ink-2);
}

.build-card-foot {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.btn-sm {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
}

.btn-sm-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-sm-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

.btn-sm-ghost {
  background: #f1f5f9;
  color: var(--ink-2);
}

.btn-sm-ghost:hover {
  background: #e2e8f0;
  color: var(--ink);
}

/* Ad Banner */
.ad-banner {
  margin: 24px 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px 12px;
  overflow: hidden;
}

.ad-label {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ad-inner {
  min-height: 60px;
  width: 100%;
  overflow: hidden;
}

/* Tables */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cat-pill {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.cat-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.parts-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

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

.data-table thead th {
  background: #f8fafc;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

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

.data-table tbody tr:hover {
  background: #fafbff;
}

.data-table .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.price-cell {
  font-weight: 800;
  color: #dc2626;
}

.price-total {
  font-size: 18px;
  font-weight: 800;
  color: #dc2626;
}

.cat-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  background: #eef2ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.hl-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.vram-pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 12px;
  font-weight: 700;
  margin-left: 4px;
}

.part-name-link {
  font-weight: 700;
  color: var(--ink);
}

.part-name-link:hover {
  color: var(--primary);
}

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

.tiny-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

/* Ladder */
.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ladder-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ladder-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 14px;
}

.ladder-rank {
  font-weight: 800;
  color: var(--primary);
  min-width: 26px;
}

.ladder-name {
  flex: 1;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
}

.ladder-score {
  font-weight: 700;
  color: var(--ink-2);
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ladder-bar-bg {
  height: 9px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 4px;
}

.ladder-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.cpu-bar { background: linear-gradient(90deg, #27199b, #3b82f6); }
.gpu-bar { background: linear-gradient(90deg, #059669, #06b6d4); }
.ssd-bar { background: linear-gradient(90deg, #7c3aed, #2563eb); }

.ladder-meta {
  font-size: 12.5px;
  color: var(--muted);
}

/* Guides */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.guide-cat {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 700;
}

.guide-card h2, .guide-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  line-height: 1.42;
}

.guide-card h2 a, .guide-card h3 a {
  color: var(--ink);
}

.guide-card h2 a:hover, .guide-card h3 a:hover {
  color: var(--primary);
}

.guide-card p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted);
  flex: 1;
}

.guide-read {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
}

/* Brands */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.brand-card {
  display: block;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  transition: border-color 0.15s, transform 0.15s;
}

.brand-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.brand-card-name {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.brand-card-focus {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.brand-card-tag {
  font-size: 12px;
  color: var(--muted);
}

/* Inner page banner & filters */
.page-banner {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 26px 0 28px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.page-banner h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.28;
}

.page-banner p {
  margin: 0;
  color: var(--ink-2);
  max-width: 780px;
}

.filter-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.filter-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  padding-top: 5px;
  white-space: nowrap;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-form input[type="search"] {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
}

.parts-count {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Detail Pages */
.detail-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
}

.detail-price-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  min-width: 260px;
  flex-shrink: 0;
}

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

.detail-price-val {
  font-size: 30px;
  font-weight: 800;
  color: #dc2626;
  margin: 2px 0 12px;
  font-variant-numeric: tabular-nums;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.kpi-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
}

.kpi-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.kpi-item strong {
  font-size: 14px;
  color: var(--ink);
}

.detail-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
}

.check-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-links a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid transparent;
}

.side-links a:hover {
  border-color: var(--primary);
  background: #ffffff;
}

.side-link-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.side-link-meta {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* Builder */
.preset-bar {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 22px;
  align-items: start;
}

.slot-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.slot-row:last-child {
  border-bottom: none;
}

.slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}

.req-dot {
  font-size: 11px;
  color: #dc2626;
  background: #fef2f2;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.slot-price {
  font-weight: 800;
  color: #dc2626;
  font-variant-numeric: tabular-nums;
}

.slot-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background: #ffffff;
  color: var(--ink);
  max-width: 100%;
}

.slot-spec-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 5px;
  min-height: 18px;
}

.sticky-panel {
  position: sticky;
  top: 86px;
}

.summary-total-box {
  background: linear-gradient(135deg, #1e166e, #2563eb);
  color: #ffffff;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.summary-total-label {
  font-size: 12.5px;
  opacity: 0.85;
}

.summary-total-val {
  font-size: 32px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.diag-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.diag-metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

.diag-metric span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.diag-metric strong {
  font-size: 14px;
  color: var(--ink);
}

.compat-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.compat-ok, .compat-warn, .compat-err {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.compat-ok { background: var(--emerald-soft); color: #065f46; border: 1px solid #a7f3d0; }
.compat-warn { background: var(--amber-soft); color: #92400e; border: 1px solid #fde68a; }
.compat-err { background: var(--danger-soft); color: #991b1b; border: 1px solid #fecaca; }

.builder-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.builder-preview-box h3 {
  margin: 0 0 6px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.builder-pre {
  margin: 0;
  padding: 12px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow-y: auto;
}

/* Prose / Article */
.prose-card h2, .article-body h2 {
  margin: 22px 0 10px;
  font-size: 20px;
  color: var(--ink);
  border-left: 4px solid var(--primary);
  padding-left: 10px;
}

.prose-card h2:first-child, .article-body h2:first-child {
  margin-top: 0;
}

.prose-card h3, .article-body h3 {
  margin: 18px 0 8px;
  font-size: 16.5px;
  color: var(--ink);
}

.article-body p, .prose-card p {
  margin: 0 0 14px;
  color: var(--ink-2);
}

.article-body ul, .article-body ol, .prose-card ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--ink-2);
}

.article-body li, .prose-card li {
  margin-bottom: 6px;
}

.article-body blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  background: #eef2ff;
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13.5px;
  display: block;
  overflow-x: auto;
}

.article-body th, .article-body td {
  border: 1px solid var(--border);
  padding: 9px 12px;
  text-align: left;
  white-space: nowrap;
}

.article-body th {
  background: #f8fafc;
}

.article-cta-box {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(90deg, #eef2ff, #ffffff);
}

.article-cta-box h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.article-cta-box p {
  margin: 0;
  font-size: 13.5px;
}

.empty-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1fr 1.2fr;
  gap: 28px;
  padding: 40px 18px 32px;
}

.footer-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 13.5px;
  margin: 0 0 10px;
  color: #cbd5e1;
}

.footer-note {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
}

.footer-col a {
  color: #94a3b8;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.footer-brand-tags a {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.footer-brand-tags a:hover {
  background: var(--primary);
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 16px 0;
  font-size: 12.5px;
  color: #94a3b8;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.footer-bottom a {
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .detail-layout,
  .builder-grid,
  .two-col-grid {
    grid-template-columns: 1fr;
  }
  .builds-grid,
  .guides-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-head-row {
    flex-direction: column;
  }
  .detail-price-box {
    width: 100%;
  }
  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sticky-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 14px;
  }
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 12px 14px 16px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 11px 14px;
  }
  .brand-logo {
    height: 36px;
  }
  .brand-name {
    font-size: 15px;
  }
  .brand-sub {
    display: none;
  }
  .announce-inner {
    flex-wrap: wrap;
    font-size: 13px;
  }
  .hero-section {
    padding: 26px 0 30px;
  }
  .hero-copy h1 {
    font-size: 25px;
  }
  .page-banner h1 {
    font-size: 22px;
  }
  .builds-grid,
  .guides-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 30px 0;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .filter-row {
    flex-direction: column;
  }
  .article-cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .ai-row {
    flex-wrap: wrap;
  }
  .card {
    padding: 16px;
  }
}

@media print {
  .site-header, .announce-bar, .site-footer, .ad-banner, .preset-bar, .builder-actions {
    display: none !important;
  }
}
