body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  color: #1f2937;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.site-header {
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.logo { font-weight: 700; text-decoration: none; color: #111827; }
.main-nav ul { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: #111827; }
.compare-link { text-decoration: none; color: #1f2937; cursor: pointer; }

.site-main { padding: 22px 0 40px; min-height: 65vh; }
.site-footer { border-top: 1px solid #e5e7eb; padding: 20px 0; margin-top: 24px; color: #6b7280; }

.hero {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; background: #fff; }

.btn {
  border: 1px solid #111827;
  background: #111827;
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { opacity: .92; }

.btn-light {
  background: #fff;
  color: #111827;
  border: 1px solid #d1d5db;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.filter-bar input,
.filter-bar select {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.spec-table, .compare-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.spec-table th, .spec-table td, .compare-table th, .compare-table td {
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  text-align: left;
}
.meta-line { color: #4b5563; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.chip {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  text-decoration: none;
  color: #111827;
}
.diagram-box {
  border: 1px solid #e5e7eb;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  overflow: auto;
}

.float-compare {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99;
  border: 1px solid #111827;
  background: #111827;
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  cursor: pointer;
}

@media (max-width: 860px) {
  .main-nav { display: none; }
}