:root {
  --blue: #165DFF;
  --blue-dark: #0E42D2;
  --orange: #FF7D00;
  --ink: #1D2129;
  --muted: #4E5969;
  --light: #F2F3F5;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(29, 33, 41, 0.10);
  --border: #E5E6EB;
  --success: #00B42A;
  --warn: #FF7D00;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--light);
  line-height: 1.7;
}
a { color: var(--blue); }
.nav {
  position: sticky;
  z-index: 10;
  top: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(29, 33, 41, 0.92);
  backdrop-filter: blur(14px);
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  display: block;
  width: 120px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-link {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.button.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.24);
}
.button.outline {
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--blue);
}
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}
.hero {
  padding: 72px 24px 48px;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 20%, rgba(255,125,0,0.12), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(22,93,255,0.22), transparent 32%),
    var(--ink);
}
.hero-inner, .container {
  max-width: 1120px;
  margin: 0 auto;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
}
.hero p {
  margin: 0 0 24px;
  max-width: 680px;
  color: rgba(255,255,255,0.72);
  font-size: 17px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.section { padding: 56px 24px; }
.section-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  text-align: center;
}
.section-lead {
  max-width: 720px;
  margin: 0 auto 32px;
  color: var(--muted);
  text-align: center;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.search-box {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
}
.search-box input, .form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: var(--white);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.chip.active {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(22,93,255,0.08);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.product-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #E8F3FF, #F7F8FA);
  color: var(--blue);
  font-size: 42px;
  font-weight: 900;
}
.product-body { padding: 20px; flex: 1; }
.product-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.product-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.price {
  color: var(--orange);
  font-size: 20px;
  font-weight: 900;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.badge.stock { background: rgba(0,180,42,0.12); color: var(--success); }
.badge.custom { background: rgba(255,125,0,0.12); color: var(--warn); }
.badge.low { background: rgba(255,125,0,0.12); color: var(--warn); }
.panel {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.layout-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table th, .spec-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}
.spec-table th {
  width: 120px;
  color: var(--muted);
  font-weight: 700;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}
.qty-row button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  font-size: 18px;
  cursor: pointer;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-table th, .cart-table td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.cart-table th { color: var(--muted); font-size: 13px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}
.summary-row.total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 18px;
  font-weight: 900;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pay-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.pay-options input { width: auto; }
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}
.step-item {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.step-dot {
  width: 28px;
  height: 28px;
  margin: 0 auto 6px;
  border-radius: 50%;
  line-height: 28px;
  background: var(--border);
  color: var(--muted);
  font-weight: 800;
}
.step-item.done .step-dot, .step-item.active .step-dot {
  background: var(--blue);
  color: var(--white);
}
.notice {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(22,93,255,0.08);
  color: var(--muted);
  font-size: 14px;
}
.notice.warn {
  background: rgba(255,125,0,0.10);
}
.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}
footer {
  padding: 28px 24px;
  color: rgba(255,255,255,0.52);
  background: var(--ink);
  text-align: center;
  font-size: 13px;
}
footer a { color: inherit; text-decoration: none; }
@media (max-width: 820px) {
  .grid, .layout-2, .form-grid, .steps { grid-template-columns: 1fr; }
  .nav-link.hide-mobile { display: none; }
}
