:root {
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --line: #d2d2d7;
  --blue: #0071e3;
  --radius: 18px;
  --nav-h: 48px;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 56px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue',
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-right: 12px;
  white-space: nowrap;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-link {
  font-size: 13px;
  color: var(--text);
  opacity: 0.88;
  padding: 4px 10px;
  border-radius: 980px;
  white-space: nowrap;
  transition: background 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
  opacity: 1;
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  text-align: center;
  background: var(--bg);
}

.hero h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hero p {
  margin: 16px auto 0;
  max-width: 640px;
  font-size: 21px;
  line-height: 1.4;
  color: var(--text-muted);
}

.hero-meta {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.search-wrap {
  margin: 32px auto 0;
  max-width: 520px;
  position: relative;
}

.search-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 44px;
  font-size: 17px;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: 980px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.search-wrap input:focus {
  background: #fff;
  border-color: var(--blue);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

.search-clear.on {
  display: flex;
}

/* ---------- 系列概览 ---------- */
.families {
  background: var(--bg);
  padding: 8px 0 72px;
}

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

.family-card {
  display: block;
  padding: 22px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  color: var(--text);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.family-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
  text-decoration: none;
}

.family-card strong {
  display: block;
  font-size: 19px;
  font-weight: 600;
}

.family-card span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}

.family-card em {
  display: inline-block;
  margin-top: 12px;
  font-style: normal;
  font-size: 14px;
  color: var(--blue);
}

/* ---------- 型号区块 ---------- */
.models {
  background: var(--bg-alt);
  padding: 72px 0 88px;
}

.section-head {
  padding-top: 8px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.section-head p {
  margin: 10px 0 0;
  font-size: 17px;
  color: var(--text-muted);
}

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

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.card-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 176px;
  margin: 0 0 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fafafa 0%, #f0f0f2 100%);
  overflow: hidden;
}

.card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.card:hover .card-thumb img {
  transform: scale(1.04);
}

.card h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.spec {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 6px 12px;
  font-size: 14px;
}

.spec dt {
  color: var(--text-muted);
}

.spec dd {
  margin: 0;
  color: var(--text);
}

.card-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #b25000;
  background: #fff2e4;
  border-radius: 980px;
}

.spec dd.price {
  font-weight: 600;
  color: #b25000;
}

.codes {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.code-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 13px;
  background: var(--bg-alt);
  border-radius: 980px;
  color: var(--text);
}

.code-pill b {
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.code-pill span {
  color: var(--text-muted);
}

.card-intro {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.card-features {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.card-features li {
  margin-bottom: 4px;
}

.empty {
  padding: 56px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
}

.hidden {
  display: none !important;
}

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer a {
  color: var(--blue);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 14px;
}

@media (max-width: 734px) {
  .hero {
    padding: 56px 0 40px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero p {
    font-size: 18px;
  }
  .section-head h2 {
    font-size: 30px;
  }
  .families,
  .models {
    padding-top: 40px;
    padding-bottom: 48px;
  }
  .card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
