:root {
  --bg: #0b1220;
  --bg-card: #111a2e;
  --bg-hover: #162036;
  --border: #1e3a5f;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-dim: #0891b2;
  --warn: #fbbf24;
  --danger: #f87171;
  --ok: #34d399;
  --font-mono: 'Consolas', 'SF Mono', 'Menlo', monospace;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: #0b1220;
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
}

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lead {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent-dim);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.card .mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

/* Download tools */
.tool-card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-title {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.section-title span {
  color: var(--accent);
}

/* CTA remote */
.cta-remote {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-remote h2 {
  margin: 0 0 0.5rem;
}

.cta-remote p {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0;
}

.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-hover);
  color: var(--muted);
  border: 1px solid var(--border);
}

.tag-nvme { color: var(--accent); border-color: var(--accent-dim); }
.tag-e3 { color: var(--ok); border-color: #059669; }
.tag-warn { color: var(--warn); }

/* Search & filters */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.filter-select {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
}

.product-list {
  display: grid;
  gap: 0.75rem;
}

.product-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.product-row:hover {
  border-color: var(--accent-dim);
}

.product-row h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.product-row .meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
}

/* Product detail */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1rem 0;
}

.breadcrumb a {
  color: var(--muted);
}

.detail-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr 320px;
  }
}

.detail-main .card {
  margin-bottom: 1rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.spec-table th {
  color: var(--muted);
  font-weight: 500;
  width: 38%;
}

.risk-box {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}

.risk-box ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.risk-box label {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  cursor: pointer;
}

.sticky-buy {
  position: sticky;
  top: 5rem;
}

.price-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Guide list */
.guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-list li {
  margin-bottom: 0.5rem;
}

.guide-list a {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

.guide-list a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* Utility */
.text-muted { color: var(--muted); }
.text-warn { color: var(--warn); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
