/* ============================================================
   BYD Parts Export — aiqiCMS Template Stylesheet
   多主题设计令牌 + 布局 + 组件样式
   ============================================================ */

/* ============================================================
   Base / default theme (Dark Industrial)
   ============================================================ */
:root {
  --byd-primary: #D4A853;
  --byd-primary-600: #E0B86A;
  --byd-primary-700: #B08D3F;
  --byd-primary-foreground: #0A0B0D;

  --byd-background: #0A0B0D;
  --byd-foreground: #F2F2F5;
  --byd-card: #16181D;
  --byd-card-foreground: #F2F2F5;
  --byd-popover: #16181D;
  --byd-popover-foreground: #F2F2F5;
  --byd-muted: #1E2128;
  --byd-muted-foreground: #8A8F99;
  --byd-border: #2A2E36;
  --byd-input: #2A2E36;
  --byd-ring: #D4A853;

  --byd-ink: #F2F2F5;
  --byd-ink-2: #B0B5BE;
  --byd-ink-3: #8A8F99;
  --byd-line: #2A2E36;
  --byd-surface: #16181D;
  --byd-surface-2: #1E2128;

  --byd-hero-image: url('/static/byd_parts/hero-dark-industrial.jpg');
  --byd-hero-overlay: linear-gradient(to right, rgba(10,11,13,0.85) 0%, rgba(10,11,13,0.55) 60%, rgba(10,11,13,0.35) 100%);
  --byd-hero-foreground: #F2F2F5;

  --byd-radius-sm: 4px;
  --byd-radius-md: 8px;
  --byd-radius-lg: 12px;
  --byd-radius-pill: 999px;

  --byd-shadow-overlay: 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px 1px rgba(0, 0, 0, 0.15);
  --byd-shadow-popover: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
  --byd-shadow-modal: 0 24px 60px -20px rgba(0, 0, 0, 0.45);

  --byd-state-success: #22C55E;
  --byd-state-warning: #F59E0B;
  --byd-state-error: #EF4444;
  --byd-state-info: #38BDF8;

  --byd-font-sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --byd-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ============================================================
   Theme classes
   ============================================================ */
.theme-dark {
  --byd-primary: #D4A853;
  --byd-primary-600: #E0B86A;
  --byd-primary-700: #B08D3F;
  --byd-primary-foreground: #0A0B0D;
  --byd-background: #0A0B0D;
  --byd-foreground: #F2F2F5;
  --byd-card: #16181D;
  --byd-card-foreground: #F2F2F5;
  --byd-popover: #16181D;
  --byd-popover-foreground: #F2F2F5;
  --byd-muted: #1E2128;
  --byd-muted-foreground: #8A8F99;
  --byd-border: #2A2E36;
  --byd-input: #2A2E36;
  --byd-ring: #D4A853;
  --byd-ink: #F2F2F5;
  --byd-ink-2: #B0B5BE;
  --byd-ink-3: #8A8F99;
  --byd-line: #2A2E36;
  --byd-surface: #16181D;
  --byd-surface-2: #1E2128;
  --byd-hero-image: url('/static/byd_parts/hero-dark-industrial.jpg');
  --byd-hero-overlay: linear-gradient(to right, rgba(10,11,13,0.85) 0%, rgba(10,11,13,0.55) 60%, rgba(10,11,13,0.35) 100%);
  --byd-hero-foreground: #F2F2F5;
}

.theme-light {
  --byd-primary: #2563EB;
  --byd-primary-600: #1D4ED8;
  --byd-primary-700: #1E40AF;
  --byd-primary-foreground: #FFFFFF;
  --byd-background: #F8F9FB;
  --byd-foreground: #111827;
  --byd-card: #FFFFFF;
  --byd-card-foreground: #111827;
  --byd-popover: #FFFFFF;
  --byd-popover-foreground: #111827;
  --byd-muted: #F3F4F6;
  --byd-muted-foreground: #6B7280;
  --byd-border: #E5E7EB;
  --byd-input: #E5E7EB;
  --byd-ring: #2563EB;
  --byd-ink: #111827;
  --byd-ink-2: #4B5563;
  --byd-ink-3: #6B7280;
  --byd-line: #E5E7EB;
  --byd-surface: #FFFFFF;
  --byd-surface-2: #F3F4F6;
  --byd-hero-image: url('/static/byd_parts/hero-theme-light.jpg');
  --byd-hero-overlay: linear-gradient(to right, rgba(248,249,251,0.92) 0%, rgba(248,249,251,0.78) 50%, rgba(248,249,251,0.40) 100%);
  --byd-hero-foreground: #111827;
  --byd-shadow-overlay: 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.05);
  --byd-shadow-popover: 0 8px 24px -8px rgba(0, 0, 0, 0.14);
  --byd-shadow-modal: 0 24px 60px -20px rgba(0, 0, 0, 0.18);
}

.theme-blue-gold {
  --byd-primary: #D4A853;
  --byd-primary-600: #E0B86A;
  --byd-primary-700: #B08D3F;
  --byd-primary-foreground: #0A1020;
  --byd-background: #0A1020;
  --byd-foreground: #F8FAFC;
  --byd-card: #111A2E;
  --byd-card-foreground: #F8FAFC;
  --byd-popover: #111A2E;
  --byd-popover-foreground: #F8FAFC;
  --byd-muted: #172033;
  --byd-muted-foreground: #94A3B8;
  --byd-border: #243453;
  --byd-input: #243453;
  --byd-ring: #D4A853;
  --byd-ink: #F8FAFC;
  --byd-ink-2: #CBD5E1;
  --byd-ink-3: #94A3B8;
  --byd-line: #243453;
  --byd-surface: #111A2E;
  --byd-surface-2: #172033;
  --byd-hero-image: url('/static/byd_parts/hero-theme-blue-gold.jpg');
  --byd-hero-overlay: linear-gradient(to right, rgba(10,16,32,0.88) 0%, rgba(10,16,32,0.62) 60%, rgba(10,16,32,0.38) 100%);
  --byd-hero-foreground: #F8FAFC;
}

.theme-warm-gold {
  --byd-primary: #E8B923;
  --byd-primary-600: #F0C94A;
  --byd-primary-700: #B88D1A;
  --byd-primary-foreground: #1A1510;
  --byd-background: #1A1510;
  --byd-foreground: #FDF6E3;
  --byd-card: #251E16;
  --byd-card-foreground: #FDF6E3;
  --byd-popover: #251E16;
  --byd-popover-foreground: #FDF6E3;
  --byd-muted: #30261C;
  --byd-muted-foreground: #A89B85;
  --byd-border: #3D3023;
  --byd-input: #3D3023;
  --byd-ring: #E8B923;
  --byd-ink: #FDF6E3;
  --byd-ink-2: #D6C4A8;
  --byd-ink-3: #A89B85;
  --byd-line: #3D3023;
  --byd-surface: #251E16;
  --byd-surface-2: #30261C;
  --byd-hero-image: url('/static/byd_parts/hero-theme-warm-gold.jpg');
  --byd-hero-overlay: linear-gradient(to right, rgba(26,21,16,0.88) 0%, rgba(26,21,16,0.60) 60%, rgba(26,21,16,0.35) 100%);
  --byd-hero-foreground: #FDF6E3;
}

.theme-graphite-red {
  --byd-primary: #E63946;
  --byd-primary-600: #F04A57;
  --byd-primary-700: #B52B36;
  --byd-primary-foreground: #FFFFFF;
  --byd-background: #121212;
  --byd-foreground: #F5F5F5;
  --byd-card: #1E1E1E;
  --byd-card-foreground: #F5F5F5;
  --byd-popover: #1E1E1E;
  --byd-popover-foreground: #F5F5F5;
  --byd-muted: #2A2A2A;
  --byd-muted-foreground: #828282;
  --byd-border: #3A3A3A;
  --byd-input: #3A3A3A;
  --byd-ring: #E63946;
  --byd-ink: #F5F5F5;
  --byd-ink-2: #BDBDBD;
  --byd-ink-3: #828282;
  --byd-line: #3A3A3A;
  --byd-surface: #1E1E1E;
  --byd-surface-2: #2A2A2A;
  --byd-hero-image: url('/static/byd_parts/hero-theme-graphite-red.jpg');
  --byd-hero-overlay: linear-gradient(to right, rgba(18,18,18,0.88) 0%, rgba(18,18,18,0.60) 60%, rgba(18,18,18,0.38) 100%);
  --byd-hero-foreground: #F5F5F5;
}

.theme-electric-green {
  --byd-primary: #39D98A;
  --byd-primary-600: #55E69D;
  --byd-primary-700: #27A366;
  --byd-primary-foreground: #050F0A;
  --byd-background: #050F0A;
  --byd-foreground: #E6F4EA;
  --byd-card: #0B1A12;
  --byd-card-foreground: #E6F4EA;
  --byd-popover: #0B1A12;
  --byd-popover-foreground: #E6F4EA;
  --byd-muted: #112219;
  --byd-muted-foreground: #6FA682;
  --byd-border: #1A3322;
  --byd-input: #1A3322;
  --byd-ring: #39D98A;
  --byd-ink: #E6F4EA;
  --byd-ink-2: #A8D5BA;
  --byd-ink-3: #6FA682;
  --byd-line: #1A3322;
  --byd-surface: #0B1A12;
  --byd-surface-2: #112219;
  --byd-hero-image: url('/static/byd_parts/hero-theme-electric-green.jpg');
  --byd-hero-overlay: linear-gradient(to right, rgba(5,15,10,0.88) 0%, rgba(5,15,10,0.62) 60%, rgba(5,15,10,0.38) 100%);
  --byd-hero-foreground: #E6F4EA;
}

.theme-soft-pastel {
  --byd-primary: #C45D3A;
  --byd-primary-600: #D97852;
  --byd-primary-700: #9C462D;
  --byd-primary-foreground: #FFFFFF;
  --byd-background: #F5F3F0;
  --byd-foreground: #2D2A26;
  --byd-card: #FFFFFF;
  --byd-card-foreground: #2D2A26;
  --byd-popover: #FFFFFF;
  --byd-popover-foreground: #2D2A26;
  --byd-muted: #EDE9E4;
  --byd-muted-foreground: #8C847B;
  --byd-border: #DDD8D1;
  --byd-input: #DDD8D1;
  --byd-ring: #C45D3A;
  --byd-ink: #2D2A26;
  --byd-ink-2: #5C5751;
  --byd-ink-3: #8C847B;
  --byd-line: #DDD8D1;
  --byd-surface: #FFFFFF;
  --byd-surface-2: #EDE9E4;
  --byd-hero-image: url('/static/byd_parts/hero-theme-soft-pastel.jpg');
  --byd-hero-overlay: linear-gradient(to right, rgba(245,243,240,0.92) 0%, rgba(245,243,240,0.78) 50%, rgba(245,243,240,0.40) 100%);
  --byd-hero-foreground: #2D2A26;
  --byd-shadow-overlay: 0 1px 2px rgba(45, 42, 38, 0.08), 0 1px 1px rgba(45, 42, 38, 0.05);
  --byd-shadow-popover: 0 8px 24px -8px rgba(45, 42, 38, 0.14);
  --byd-shadow-modal: 0 24px 60px -20px rgba(45, 42, 38, 0.18);
}

/* ============================================================
   Base typography
   ============================================================ */
* { box-sizing: border-box; }
body {
  font-family: var(--byd-font-sans);
  background-color: var(--byd-background);
  color: var(--byd-foreground);
  line-height: 1.6;
  margin: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--byd-ink);
  text-wrap: balance;
  word-break: keep-all;
  margin: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection {
  background-color: color-mix(in srgb, var(--byd-primary) 20%, transparent);
  color: var(--byd-ink);
}
:focus-visible {
  outline: 2px solid var(--byd-ring);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Layout helpers
   ============================================================ */
.byd-container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) { .byd-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .byd-container { padding: 0 2rem; } }

.byd-section { padding: 4rem 0; }
@media (min-width: 768px) { .byd-section { padding: 5rem 0; } }

.byd-hero-bg {
  background-image: var(--byd-hero-overlay), var(--byd-hero-image);
  background-size: cover;
  background-position: center;
}

.byd-page { overflow-x: hidden; min-height: 100vh; }
#home { min-height: 100vh; min-height: 680px; }
@media (max-width: 640px) { #home { min-height: 100svh; } }

.byd-timeline-line {
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--byd-border);
}
@media (min-width: 768px) {
  .byd-timeline-line { left: 50%; transform: translateX(-50%); }
}

/* ============================================================
   Component: Buttons
   ============================================================ */
.byd-btn-primary {
  background-color: var(--byd-primary);
  color: var(--byd-primary-foreground);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--byd-radius-md);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
}
.byd-btn-primary:hover { background-color: var(--byd-primary-600); transform: translateY(-1px); }

.byd-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--byd-radius-md);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  color: var(--byd-foreground);
  border: 1px solid rgba(255,255,255,0.3);
  transition: background-color 0.2s ease;
}
.byd-btn-outline:hover { background-color: rgba(255,255,255,0.1); }

/* ============================================================
   Component: Cards
   ============================================================ */
.byd-card {
  background-color: var(--byd-card);
  border: 1px solid var(--byd-border);
  border-radius: var(--byd-radius-lg);
  overflow: hidden;
}
.byd-card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.byd-card-hover:hover { transform: translateY(-4px); box-shadow: var(--byd-shadow-modal); border-color: var(--byd-primary-700); }
.byd-shadow-1 { box-shadow: var(--byd-shadow-overlay); }
.byd-shadow-hover { transition: box-shadow 0.2s ease; }
.byd-shadow-hover:hover { box-shadow: var(--byd-shadow-popover); }

.byd-product-img, .byd-article-img { transition: transform 0.5s ease; }
.byd-card-hover:hover .byd-product-img,
.byd-card-hover:hover .byd-article-img { transform: scale(1.05); }

/* ============================================================
   Component: Forms
   ============================================================ */
.byd-form-input {
  width: 100%;
  border-radius: var(--byd-radius-md);
  border: 1px solid var(--byd-input);
  background-color: var(--byd-background);
  color: var(--byd-foreground);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}
.byd-form-input::placeholder { color: var(--byd-muted-foreground); }
.byd-form-input:focus {
  outline: none;
  border-color: var(--byd-primary);
  box-shadow: 0 0 0 2px var(--byd-ring);
}
.byd-form-input:invalid:not(:placeholder-shown) { border-color: var(--byd-state-error); }
.byd-form-input:valid:not(:placeholder-shown) { border-color: var(--byd-state-success); }

/* ============================================================
   Component: Navigation
   ============================================================ */
.byd-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--byd-border);
  background-color: color-mix(in srgb, var(--byd-card) 95%, transparent);
  backdrop-filter: blur(8px);
}
.byd-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  max-width: 80rem;
  margin: 0 auto;
  gap: 1rem;
}
@media (min-width: 768px) {
  .byd-nav-inner { padding: 1rem 1.5rem; }
}
@media (min-width: 1024px) {
  .byd-nav-inner { padding: 1rem 2rem; }
}
.byd-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--byd-foreground);
}
.byd-nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .byd-nav-links { display: flex; } }
.byd-nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--byd-muted-foreground);
  transition: color 0.2s ease;
}
.byd-nav-links a:hover,
.byd-nav-links a.active { color: var(--byd-foreground); }

.byd-nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 768px) { .byd-nav-actions { display: flex; } }

.byd-lang-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--byd-muted-foreground);
  transition: color 0.2s ease;
}
.byd-lang-btn:hover { color: var(--byd-primary); }
.byd-lang-btn.active { color: var(--byd-primary); font-weight: 600; }

.byd-theme-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: var(--byd-radius-md);
  border: 1px solid var(--byd-border);
  background-color: var(--byd-card);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--byd-foreground);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.byd-theme-trigger:hover { border-color: var(--byd-primary); }

.byd-theme-menu {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 50;
  margin-top: 0.5rem;
  width: 13rem;
  border-radius: var(--byd-radius-lg);
  border: 1px solid var(--byd-border);
  background-color: var(--byd-card);
  padding: 0.375rem;
  box-shadow: var(--byd-shadow-popover);
}
.byd-theme-menu button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border-radius: var(--byd-radius-md);
  font-size: 0.8125rem;
  color: var(--byd-foreground);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.byd-theme-menu button:hover,
.byd-theme-menu button.active { background-color: var(--byd-muted); color: var(--byd-primary); }

.byd-mobile-menu { display: none; border-top: 1px solid var(--byd-border); background-color: var(--byd-card); padding: 0 1rem 1rem; }
.byd-mobile-menu.open { display: block; }
.byd-mobile-menu .byd-mobile-links { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.75rem; }
.byd-mobile-menu a {
  border-radius: var(--byd-radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--byd-foreground);
}
.byd-mobile-menu a:hover { background-color: var(--byd-muted); }

.byd-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--byd-radius-md);
  padding: 0.5rem;
  color: var(--byd-foreground);
  background: none;
  border: none;
  cursor: pointer;
}
.byd-menu-btn:hover { background-color: var(--byd-muted); }
@media (min-width: 768px) { .byd-menu-btn { display: none; } }

/* ============================================================
   Component: Product / Article Cards
   ============================================================ */
.byd-product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .byd-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .byd-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .byd-product-grid { grid-template-columns: repeat(4, 1fr); } }

.byd-product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--byd-radius-lg);
  border: 1px solid var(--byd-border);
  background-color: var(--byd-card);
}
.byd-product-card .byd-product-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--byd-muted);
}
.byd-product-card .byd-product-cover img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.byd-product-card .byd-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}
.byd-badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--byd-radius-pill);
  background-color: var(--byd-muted);
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--byd-primary);
  width: fit-content;
}
.byd-product-card h3 {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.byd-product-card h3 a:hover { color: var(--byd-primary); }
.byd-product-card .byd-product-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--byd-muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.byd-product-card .byd-product-foot {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--byd-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.byd-product-card .byd-moq {
  font-size: 0.75rem;
  color: var(--byd-muted-foreground);
}
.byd-product-card .byd-moq strong { color: var(--byd-foreground); font-weight: 500; }
.byd-view-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--byd-primary);
}
.byd-view-link:hover { color: var(--byd-primary-600); }

/* ============================================================
   Component: Hero text (theme-aware)
   ============================================================ */
.byd-hero-eyebrow,
.byd-hero-title,
.byd-hero-desc,
.byd-hero-actions a {
  color: var(--byd-foreground);
}
.byd-hero-eyebrow { font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; opacity: 0.85; }
.byd-hero-title { margin-top: 1rem; max-width: 42rem; font-size: 2.25rem; font-weight: 600; line-height: 1.15; }
@media (min-width: 768px) { .byd-hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .byd-hero-title { font-size: 3.75rem; } }
.byd-hero-desc { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.7; opacity: 0.9; }
@media (min-width: 768px) { .byd-hero-desc { font-size: 1.25rem; } }
.byd-hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============================================================
   Component: Trust bar
   ============================================================ */
.byd-trust {
  border-top: 1px solid var(--byd-border);
  border-bottom: 1px solid var(--byd-border);
  background-color: var(--byd-card);
}
.byd-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0;
}
@media (min-width: 768px) { .byd-trust-grid { grid-template-columns: repeat(4, 1fr); } }
.byd-trust-item { display: flex; align-items: center; gap: 0.75rem; }
.byd-trust-item .byd-icon { width: 1.5rem; height: 1.5rem; color: var(--byd-primary); flex-shrink: 0; }
.byd-trust-item span { font-size: 0.875rem; font-weight: 500; color: var(--byd-foreground); }

/* ============================================================
   Component: Section heading
   ============================================================ */
.byd-section-head { max-width: 42rem; }
.byd-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--byd-primary);
}
.byd-section-title { margin-top: 0.5rem; font-size: 1.875rem; font-weight: 600; }
@media (min-width: 768px) { .byd-section-title { font-size: 2.25rem; } }
.byd-section-sub { margin-top: 1rem; color: var(--byd-muted-foreground); }

/* ============================================================
   Component: Footer
   ============================================================ */
.byd-footer {
  border-top: 1px solid var(--byd-border);
  background-color: var(--byd-foreground);
  color: color-mix(in srgb, var(--byd-primary-foreground) 80%, transparent);
}
.byd-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}
@media (min-width: 768px) { .byd-footer-inner { padding: 3.5rem 1.5rem; } }
@media (min-width: 1024px) { .byd-footer-inner { padding: 3.5rem 2rem; } }
.byd-footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .byd-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .byd-footer-grid { grid-template-columns: repeat(4, 1fr); } }
.byd-footer h4 { font-size: 0.875rem; font-weight: 600; color: var(--byd-primary-foreground); }
.byd-footer ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.byd-footer ul a { transition: color 0.2s ease; }
.byd-footer ul a:hover { color: var(--byd-primary-foreground); }
.byd-footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--byd-primary-foreground) 10%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
}
@media (min-width: 640px) { .byd-footer-bottom { flex-direction: row; } }

/* ============================================================
   Component: Carousel
   ============================================================ */
.byd-carousel { overflow-x: auto; scroll-snap-type: x mandatory; display: flex; gap: 1.5rem; padding-bottom: 1rem; }
.byd-carousel > * { scroll-snap-align: start; flex: 0 0 280px; }
@media (min-width: 640px) { .byd-carousel > * { flex: 0 0 320px; } }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ============================================================
   Component: Filter bar (list page)
   —— 修复 list 页搜索图标巨大、布局错位
   ============================================================ */
.byd-filter-bar {
  border-bottom: 1px solid var(--byd-border);
  background-color: var(--byd-card);
}
.byd-filter-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .byd-filter-inner { padding: 1.25rem 1.5rem; flex-direction: row; align-items: center; justify-content: space-between; }
}
.byd-search-box {
  position: relative;
  flex: 1;
  max-width: 28rem;
  min-width: 0;
  /* 统一高度：确保图标/输入框/圆角完全对齐，不再因 line-height/padding 漂移 */
  height: 2.75rem; /* 44px */
  box-sizing: border-box;
  overflow: visible;
}
/* 搜索图标：固定层级 + 固定尺寸，必须看起来在输入框内部左侧 */
.byd-search-box .byd-search-icon,
.byd-search-box svg,
.byd-search-box i {
  position: absolute;
  left: 0.875rem;
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: 1rem !important;
  height: 1rem !important;
  min-width: 1rem !important;
  min-height: 1rem !important;
  max-width: 1rem !important;
  max-height: 1rem !important;
  color: var(--byd-muted-foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* 关键：让图标层级高于 input（因为 input 有背景色会盖住前面元素） */
  z-index: 3 !important;
}
.byd-search-box svg { stroke: currentColor; fill: none; }
.byd-search-box input {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  border-radius: var(--byd-radius-md);
  border: 1px solid var(--byd-input);
  background-color: var(--byd-background);
  /* 左侧 2.5rem 留白，图标正好落在这块区域 */
  padding: 0 0.875rem 0 3.5rem;
  font-size: 0.875rem;
  color: var(--byd-foreground);
  line-height: 1;
}
.byd-search-box input::placeholder { color: var(--byd-muted-foreground); }
.byd-search-box input:focus { outline: none; border-color: var(--byd-primary); box-shadow: 0 0 0 2px var(--byd-ring); }
.byd-filter-selects {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}
@media (min-width: 640px) {
  .byd-filter-selects { flex-direction: row; align-items: center; }
}
.byd-filter-selects select {
  border-radius: var(--byd-radius-md);
  border: 1px solid var(--byd-input);
  background-color: var(--byd-background);
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--byd-foreground);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1rem) 50%, calc(100% - 0.6rem) 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* ============================================================
   Component: Pagination
   ============================================================ */
.byd-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 2.5rem;
}
.byd-pagination a, .byd-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.625rem;
  border-radius: var(--byd-radius-md);
  border: 1px solid var(--byd-border);
  background-color: var(--byd-card);
  font-size: 0.875rem;
  color: var(--byd-foreground);
}
.byd-pagination a:hover { border-color: var(--byd-primary); color: var(--byd-primary); }
.byd-pagination .current { background-color: var(--byd-primary); color: var(--byd-primary-foreground); border-color: var(--byd-primary); }

/* ============================================================
   Component: Detail page
   ============================================================ */
.byd-detail-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .byd-detail-grid { grid-template-columns: repeat(2, 1fr); gap: 4rem; } }
.byd-detail-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--byd-radius-lg);
  border: 1px solid var(--byd-border);
  background-color: var(--byd-muted);
}
.byd-detail-cover img { height: 100%; width: 100%; object-fit: cover; }
.byd-detail-title { margin-top: 1rem; font-size: 1.875rem; font-weight: 600; }
@media (min-width: 768px) { .byd-detail-title { font-size: 2.25rem; } }
.byd-detail-desc { margin-top: 1rem; color: var(--byd-muted-foreground); }
.byd-detail-meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: var(--byd-muted-foreground); }
.byd-detail-meta strong { color: var(--byd-foreground); font-weight: 500; }
.byd-detail-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.byd-specs {
  margin-top: 2.5rem;
  border-radius: var(--byd-radius-lg);
  border: 1px solid var(--byd-border);
  background-color: var(--byd-card);
  padding: 1.5rem;
}
.byd-specs h2 { font-size: 1.125rem; font-weight: 600; }
.byd-specs table { margin-top: 1rem; width: 100%; border-collapse: collapse; }
.byd-specs tr { border-bottom: 1px solid var(--byd-border); }
.byd-specs tr:last-child { border-bottom: none; }
.byd-specs td { padding: 0.75rem 0; font-size: 0.875rem; vertical-align: top; }
.byd-specs td:first-child { color: var(--byd-muted-foreground); padding-right: 1rem; width: 40%; }
.byd-specs td:last-child { color: var(--byd-foreground); font-weight: 500; word-break: break-all; }

/* ============================================================
   Component: Breadcrumb
   ============================================================ */
.byd-breadcrumb {
  border-bottom: 1px solid var(--byd-border);
  background-color: var(--byd-card);
}
.byd-breadcrumb-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--byd-muted-foreground);
  flex-wrap: wrap;
}
.byd-breadcrumb-inner a:hover { color: var(--byd-primary); }
.byd-breadcrumb-inner .sep { color: var(--byd-muted-foreground); }
.byd-breadcrumb-inner .current { color: var(--byd-foreground); }

/* ============================================================
   Component: Empty state
   ============================================================ */
.byd-empty {
  text-align: center;
  padding: 4rem 1.25rem;
  color: var(--byd-muted-foreground);
}
.byd-empty i { width: 2.5rem; height: 2.5rem; color: var(--byd-muted-foreground); margin: 0 auto; }
.byd-empty p { margin-top: 0.75rem; font-size: 1.125rem; }
.byd-empty a { color: var(--byd-primary); }

/* ============================================================
   Utility classes
   ============================================================ */
.byd-grid-2 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .byd-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.byd-grid-3 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .byd-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .byd-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.byd-grid-4 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .byd-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .byd-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .byd-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.byd-text-primary { color: var(--byd-primary); }
.byd-text-muted { color: var(--byd-muted-foreground); }
.byd-bg-card { background-color: var(--byd-card); }
.byd-bg-surface-2 { background-color: var(--byd-surface-2); }
.byd-border { border: 1px solid var(--byd-border); }
.byd-rounded { border-radius: var(--byd-radius-lg); }
.byd-rounded-pill { border-radius: var(--byd-radius-pill); }
.byd-flex { display: flex; }
.byd-flex-center { display: flex; align-items: center; }
.byd-gap-2 { gap: 0.5rem; }
.byd-gap-3 { gap: 0.75rem; }
.byd-mt-2 { margin-top: 0.5rem; }
.byd-mt-4 { margin-top: 1rem; }
.byd-mt-6 { margin-top: 1.5rem; }
.byd-mt-8 { margin-top: 2rem; }

[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background-color: currentColor;
}

/* ============================================================
   Industrial Luxury — Homepage Beautification
   首页美化：滚动揭示、金属细节、卡片微交互、几何装饰
   ============================================================ */

/* ---------- 1. 滚动揭示 / 入场动效 ---------- */
.byd-reveal,
.byd-reveal-up,
.byd-reveal-left,
.byd-reveal-right {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--byd-stagger, 0s);
}
.byd-reveal-up    { transform: translateY(32px); }
.byd-reveal-left  { transform: translateX(-32px); }
.byd-reveal-right { transform: translateX(32px); }
.byd-reveal       { }

.byd-reveal.is-in,
.byd-reveal-up.is-in,
.byd-reveal-left.is-in,
.byd-reveal-right.is-in {
  opacity: 1;
  transform: translate(0, 0);
}

.byd-stagger-1 { --byd-stagger: 0.06s; }
.byd-stagger-2 { --byd-stagger: 0.12s; }
.byd-stagger-3 { --byd-stagger: 0.18s; }
.byd-stagger-4 { --byd-stagger: 0.24s; }
.byd-stagger-5 { --byd-stagger: 0.30s; }
.byd-stagger-6 { --byd-stagger: 0.36s; }

/* ---------- 2. Section 标题装饰 ---------- */
.byd-section-head-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 42rem;
}
.byd-section-head-wrap--between {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: none;
}

.byd-accent-line {
  position: relative;
  padding-left: 1.25rem;
}
.byd-accent-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--byd-primary), color-mix(in srgb, var(--byd-primary) 20%, transparent));
}

/* ---------- 3. Hero 增强 ---------- */
.byd-hero-inner {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 6rem;
}
@media (min-width: 1024px) {
  .byd-hero-inner { padding-top: 8rem; padding-bottom: 8rem; }
}

/* Hero 右下几何装饰：工业斜切 + 圆环 */
.byd-hero-decor {
  pointer-events: none;
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  width: 30rem;
  height: 30rem;
  opacity: 0.55;
  display: none;
}
@media (min-width: 1024px) { .byd-hero-decor { display: block; } }

.byd-hero-decor-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--byd-primary) 35%, transparent);
  animation: byd-ring-spin 28s linear infinite;
}
.byd-hero-decor-ring::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--byd-primary);
  box-shadow: 0 0 16px var(--byd-primary);
}
.byd-hero-decor-ring-2 {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--byd-primary) 22%, transparent);
  animation: byd-ring-spin 40s linear infinite reverse;
}
.byd-hero-decor-shear {
  position: absolute;
  right: 10%;
  bottom: 25%;
  width: 60%;
  height: 38%;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--byd-primary) 18%, transparent) 0%,
      color-mix(in srgb, var(--byd-primary) 4%, transparent) 100%);
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
  filter: blur(2px);
}
@keyframes byd-ring-spin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

/* Hero 主按钮：金属光泽扫过 + 悬浮微光 */
.byd-btn-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.25),
    0 0 0 1px color-mix(in srgb, var(--byd-primary-700) 45%, transparent),
    0 0 20px -6px color-mix(in srgb, var(--byd-primary) 65%, transparent);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.byd-btn-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 30%,
    color-mix(in srgb, #fff 28%, transparent) 50%,
    transparent 70%,
    transparent 100%
  );
  transform: translateX(-120%);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.byd-btn-hero:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 18px -8px color-mix(in srgb, var(--byd-primary) 85%, transparent),
    0 0 0 1px color-mix(in srgb, var(--byd-primary-600) 60%, transparent),
    0 0 32px -8px var(--byd-primary);
}
.byd-btn-hero:hover::after { transform: translateX(120%); }
.byd-btn-hero:active { transform: translateY(0); }

/* 滚动提示：玻璃胶囊 */
.byd-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--byd-foreground) 25%, transparent);
  background: color-mix(in srgb, var(--byd-card) 50%, transparent);
  backdrop-filter: blur(8px);
  color: var(--byd-foreground);
  animation: byd-float 2.4s ease-in-out infinite;
  opacity: 0.9;
}
.byd-scroll-hint:hover { color: var(--byd-primary); border-color: color-mix(in srgb, var(--byd-primary) 60%, transparent); }
@keyframes byd-float {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* Hero 标题渐变关键词 */
.byd-hero-title .byd-highlight {
  background: linear-gradient(120deg, var(--byd-primary), var(--byd-primary-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. Trust bar 增强 ---------- */
.byd-trust {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--byd-border);
  border-bottom: 1px solid var(--byd-border);
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--byd-primary) 8%, var(--byd-card)) 0%,
      var(--byd-card) 50%,
      color-mix(in srgb, var(--byd-primary) 8%, var(--byd-card)) 100%
    );
}
.byd-trust::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0 12px,
    color-mix(in srgb, var(--byd-foreground) 2%, transparent) 12px 13px
  );
  pointer-events: none;
}
.byd-trust-grid {
  position: relative;
  z-index: 1;
}
.byd-trust-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem;
  transition: transform 0.3s ease;
}
.byd-trust-item:hover { transform: translateY(-2px); }
.byd-trust-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--byd-radius-md);
  background:
    radial-gradient(circle at 30% 25%,
      color-mix(in srgb, var(--byd-primary) 22%, transparent),
      transparent 60%),
    var(--byd-surface-2);
  border: 1px solid color-mix(in srgb, var(--byd-primary) 30%, var(--byd-border));
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.byd-trust-icon-wrap svg { width: 1.25rem; height: 1.25rem; color: var(--byd-primary); }
.byd-trust-item:hover .byd-trust-icon-wrap {
  border-color: color-mix(in srgb, var(--byd-primary) 70%, var(--byd-border));
  box-shadow: 0 0 20px -6px color-mix(in srgb, var(--byd-primary) 70%, transparent);
}

/* ---------- 5. 产品分类卡片 ---------- */
.byd-category-card {
  position: relative;
  display: block;
  padding: 1.5rem;
  border-radius: var(--byd-radius-lg);
  border: 1px solid var(--byd-border);
  background-color: var(--byd-card);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.byd-category-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--byd-primary), color-mix(in srgb, var(--byd-primary) 25%, transparent));
  transform: scaleY(0.2);
  transform-origin: top;
  transition: transform 0.4s ease;
}
.byd-category-card::after {
  content: "";
  position: absolute;
  right: -30%;
  top: -30%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--byd-primary) 12%, transparent), transparent 70%);
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}
.byd-category-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--byd-primary) 60%, var(--byd-border));
  box-shadow: var(--byd-shadow-modal);
}
.byd-category-card:hover::before { transform: scaleY(1); }
.byd-category-card:hover::after  { transform: scale(1.15); opacity: 1; }

.byd-category-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.byd-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--byd-radius-md);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--byd-primary) 25%, var(--byd-surface-2)),
    var(--byd-surface-2));
  border: 1px solid color-mix(in srgb, var(--byd-primary) 35%, var(--byd-border));
  color: var(--byd-primary);
}
.byd-category-icon svg { width: 1.375rem; height: 1.375rem; }
.byd-category-title {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}
.byd-category-desc {
  position: relative;
  z-index: 1;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--byd-muted-foreground);
  line-height: 1.6;
}
.byd-category-card .byd-view-link {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  display: inline-flex;
}

/* ---------- 6. 产品卡片增强 ---------- */
.byd-product-card {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s ease, border-color 0.3s ease;
}
.byd-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--byd-shadow-modal);
  border-color: color-mix(in srgb, var(--byd-primary) 50%, var(--byd-border));
}
.byd-product-card .byd-product-cover {
  position: relative;
}
.byd-product-card .byd-product-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--byd-primary) 0%, transparent) 0%,
    color-mix(in srgb, var(--byd-primary) 30%, transparent) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.byd-product-card:hover .byd-product-cover::after { opacity: 1; }

.byd-badge--primary {
  background: linear-gradient(135deg, var(--byd-primary), var(--byd-primary-600));
  color: var(--byd-primary-foreground);
  font-weight: 600;
  box-shadow: 0 2px 8px -4px color-mix(in srgb, var(--byd-primary) 70%, transparent);
}

/* ---------- 7. Feature 列表（Why Us / 服务承诺） ---------- */
.byd-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 1.5rem;
}
.byd-feature-item {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 0.75rem 0.75rem 0.75rem 0.25rem;
  border-radius: var(--byd-radius-md);
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.byd-feature-item:hover {
  background: color-mix(in srgb, var(--byd-primary) 6%, var(--byd-surface-2));
  transform: translateX(4px);
}
.byd-feature-icon-wrap {
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--byd-radius-md);
  border: 1px solid color-mix(in srgb, var(--byd-primary) 40%, var(--byd-border));
  background:
    radial-gradient(circle at 30% 25%,
      color-mix(in srgb, var(--byd-primary) 18%, transparent),
      transparent 60%),
    var(--byd-card);
  color: var(--byd-primary);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
}
.byd-feature-icon-wrap svg { width: 1.125rem; height: 1.125rem; }
.byd-feature-item:hover .byd-feature-icon-wrap {
  transform: rotate(-4deg) scale(1.05);
  border-color: color-mix(in srgb, var(--byd-primary) 85%, var(--byd-border));
  box-shadow: 0 0 16px -4px color-mix(in srgb, var(--byd-primary) 75%, transparent);
}
.byd-feature-text { font-size: 0.875rem; line-height: 1.7; }
.byd-feature-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--byd-foreground);
}
.byd-feature-sub {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--byd-muted-foreground);
}

/* ---------- 8. 统计卡片（认证资质 / 服务承诺右侧） ---------- */
.byd-stat-card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--byd-radius-lg);
  border: 1px solid var(--byd-border);
  background-color: var(--byd-card);
  overflow: hidden;
  box-shadow: var(--byd-shadow-overlay);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.byd-stat-card::before {
  /* 左上角金属光泽装饰条 */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 55%;
  height: 3px;
  background: linear-gradient(90deg,
    var(--byd-primary),
    color-mix(in srgb, var(--byd-primary) 45%, var(--byd-primary-600)),
    transparent);
}
.byd-stat-card::after {
  /* 背景微噪点/纹理 */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 10%,
      color-mix(in srgb, var(--byd-primary) 10%, transparent) 0%,
      transparent 50%),
    repeating-linear-gradient(
      -45deg,
      transparent 0 14px,
      color-mix(in srgb, var(--byd-foreground) 1.5%, transparent) 14px 15px
    );
  pointer-events: none;
  opacity: 0.9;
}
.byd-stat-card > * { position: relative; z-index: 1; }
.byd-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--byd-shadow-modal);
  border-color: color-mix(in srgb, var(--byd-primary) 40%, var(--byd-border));
}

.byd-stat-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.byd-stat-chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.byd-stat-chip {
  padding: 0.25rem 0.75rem;
  border-radius: var(--byd-radius-pill);
  border: 1px solid color-mix(in srgb, var(--byd-primary) 35%, var(--byd-border));
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--byd-primary) 12%, var(--byd-surface-2)),
    var(--byd-surface-2));
  color: var(--byd-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.byd-stat-grid {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--byd-border);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.byd-stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--byd-primary), var(--byd-primary-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.byd-stat-label {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--byd-muted-foreground);
  letter-spacing: 0.02em;
}

/* ---------- 9. 时间线增强 ---------- */
.byd-timeline-step {
  position: relative;
  padding-left: 3rem;
  transition: transform 0.35s ease;
}
.byd-timeline-step:hover { transform: translateX(4px); }

.byd-timeline-node {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--byd-primary), var(--byd-primary-600));
  color: var(--byd-primary-foreground);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow:
    0 0 0 3px var(--byd-card),
    0 0 0 4px color-mix(in srgb, var(--byd-primary) 55%, var(--byd-border)),
    0 4px 16px -4px color-mix(in srgb, var(--byd-primary) 75%, transparent);
  z-index: 1;
}
.byd-timeline-node::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--byd-primary) 35%, transparent);
  animation: byd-node-pulse 2.2s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes byd-node-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.25); opacity: 0; }
}

.byd-timeline-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--byd-foreground);
}
.byd-timeline-desc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--byd-muted-foreground);
  line-height: 1.7;
}

/* ---------- 10. 询盘表单增强 ---------- */
.byd-inquiry-shell {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem;
  border-radius: calc(var(--byd-radius-lg) + 4px);
  border: 1px solid var(--byd-border);
  background-color: var(--byd-card);
  overflow: hidden;
  box-shadow: var(--byd-shadow-overlay);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.byd-inquiry-shell::before {
  /* 右上角工业对角装饰线 */
  content: "";
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 4rem;
  height: 4rem;
  border-right: 2px solid color-mix(in srgb, var(--byd-primary) 55%, transparent);
  border-top: 2px solid color-mix(in srgb, var(--byd-primary) 55%, transparent);
  opacity: 0.9;
  pointer-events: none;
}
.byd-inquiry-shell::after {
  /* 左下角对角装饰线 */
  content: "";
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  width: 4rem;
  height: 4rem;
  border-left: 2px solid color-mix(in srgb, var(--byd-primary) 55%, transparent);
  border-bottom: 2px solid color-mix(in srgb, var(--byd-primary) 55%, transparent);
  opacity: 0.9;
  pointer-events: none;
}
.byd-inquiry-shell:hover {
  box-shadow:
    var(--byd-shadow-modal),
    0 0 0 1px color-mix(in srgb, var(--byd-primary) 25%, transparent) inset;
  border-color: color-mix(in srgb, var(--byd-primary) 35%, var(--byd-border));
}
.byd-inquiry-shell > * { position: relative; z-index: 1; }

.byd-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.byd-form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--byd-foreground);
  transition: color 0.2s ease;
}
.byd-form-row:focus-within .byd-form-label { color: var(--byd-primary); }

.byd-btn-submit {
  position: relative;
  overflow: hidden;
  justify-content: center;
  padding: 0.875rem 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.byd-btn-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 30%,
    color-mix(in srgb, #fff 25%, transparent) 50%,
    transparent 70%,
    transparent 100%
  );
  transform: translateX(-120%);
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.byd-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--byd-primary) 85%, transparent);
}
.byd-btn-submit:hover::after { transform: translateX(120%); }
.byd-btn-submit:active { transform: translateY(0); }

/* ---------- 11. 资讯卡片增强 ---------- */
.byd-article-card {
  position: relative;
  border-radius: var(--byd-radius-lg);
  border: 1px solid var(--byd-border);
  background-color: var(--byd-card);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
}
.byd-article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--byd-shadow-modal);
  border-color: color-mix(in srgb, var(--byd-primary) 50%, var(--byd-border));
}
.byd-article-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
}
.byd-article-cover img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.byd-article-card:hover .byd-article-cover img { transform: scale(1.06); }

.byd-article-date-badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.625rem;
  border-radius: var(--byd-radius-md);
  background: color-mix(in srgb, var(--byd-card) 82%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--byd-border) 80%, transparent);
  color: var(--byd-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 2;
}
.byd-article-date-badge svg { width: 0.9rem; height: 0.9rem; color: var(--byd-primary); }

.byd-article-headline {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 600;
}
.byd-article-headline a { transition: color 0.2s ease; }
.byd-article-card:hover .byd-article-headline a { color: var(--byd-primary); }

.byd-article-excerpt {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--byd-muted-foreground);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.byd-article-foot {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--byd-border);
}

/* ---------- 12. section 分隔层（金属细条） ---------- */
.byd-metal-divider {
  position: relative;
  height: 1px;
  margin: 0 auto;
  max-width: 80rem;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--byd-primary) 45%, var(--byd-border)) 30%,
    color-mix(in srgb, var(--byd-primary) 65%, var(--byd-border)) 50%,
    color-mix(in srgb, var(--byd-primary) 45%, var(--byd-border)) 70%,
    transparent 100%
  );
}
.byd-metal-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 2px;
  background: var(--byd-primary);
  box-shadow: 0 0 14px var(--byd-primary);
  transform-origin: center;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ============================================================
   13. Hero 进一步增强：聚光灯、玻璃胶囊、动作按钮质感
   ============================================================ */
.byd-hero-bg {
  position: relative;
  isolation: isolate;
}
.byd-hero-bg::before {
  /* 顶部与左侧柔和聚光 */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%,
      color-mix(in srgb, var(--byd-primary) 18%, transparent) 0%,
      transparent 60%),
    radial-gradient(ellipse 40% 55% at 100% 100%,
      color-mix(in srgb, var(--byd-primary) 12%, transparent) 0%,
      transparent 65%);
  pointer-events: none;
}
.byd-hero-bg > * { position: relative; z-index: 1; }

.byd-hero-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.75rem 0.35rem 1.25rem;
  border-radius: var(--byd-radius-pill);
  border: 1px solid color-mix(in srgb, var(--byd-primary) 35%, transparent);
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--byd-primary) 10%, transparent),
      transparent);
  backdrop-filter: blur(6px);
}
.byd-hero-eyebrow::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--byd-primary);
  box-shadow: 0 0 12px var(--byd-primary);
  animation: byd-blink 1.6s ease-in-out infinite;
}
@keyframes byd-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.85); }
}

.byd-hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}
.byd-btn-outline {
  border-color: color-mix(in srgb, var(--byd-foreground) 30%, transparent);
  backdrop-filter: blur(6px);
  background: color-mix(in srgb, var(--byd-card) 40%, transparent);
  transition: transform 0.25s ease, background-color 0.25s ease,
              border-color 0.25s ease, color 0.25s ease;
}
.byd-btn-outline:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--byd-primary) 70%, var(--byd-border));
  color: var(--byd-primary);
  background: color-mix(in srgb, var(--byd-primary) 8%, var(--byd-card));
}

/* Hero 文字颜色：强制使用 --byd-foreground 变量（跨主题正确可互换） */
.byd-hero-eyebrow,
.byd-hero-title,
.byd-hero-desc,
.byd-hero-actions .byd-btn-outline {
  color: var(--byd-foreground) !important;
}
.theme-light .byd-hero-title .byd-highlight,
.theme-electric-green .byd-hero-title .byd-highlight,
.theme-soft-pastel .byd-hero-title .byd-highlight {
  /* 浅色主题下关键词更深，保证在浅字背景下仍具对比度 */
  background: linear-gradient(120deg, var(--byd-primary-700), var(--byd-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   14. 产品卡片图片外框/微噪点 & 热门标签
   ============================================================ */
.byd-product-card {
  border: 1px solid var(--byd-border);
  background-color: var(--byd-card);
  border-radius: var(--byd-radius-lg);
  overflow: hidden;
  position: relative;
}
.byd-product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 16px,
      color-mix(in srgb, var(--byd-foreground) 1.2%, transparent) 16px 17px
    );
  opacity: 0.7;
}
.byd-product-card > * { position: relative; z-index: 1; }

.byd-product-cover {
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--byd-primary) 8%, var(--byd-surface-2)),
    var(--byd-surface-2));
}
.byd-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.byd-product-card:hover .byd-product-img { transform: scale(1.07); }

.byd-product-body {
  padding: 1rem 1.125rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.byd-product-card h3 {
  margin: 0.125rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
}
.byd-product-card h3 a { color: inherit; }
.byd-product-card h3 a:hover { color: var(--byd-primary); }
.byd-product-desc {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--byd-muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.byd-product-foot {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px dashed var(--byd-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.byd-moq {
  font-size: 0.75rem;
  color: var(--byd-muted-foreground);
}
.byd-moq strong { color: var(--byd-foreground); font-weight: 600; }

.byd-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--byd-radius-pill);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  border: 1px solid color-mix(in srgb, var(--byd-primary) 30%, transparent);
  color: var(--byd-primary);
  background: color-mix(in srgb, var(--byd-primary) 8%, transparent);
  width: fit-content;
}

/* ============================================================
   15. 时间线细条金属光 & why-us / process 双列栅格的断点
   —— 竖线始终对齐圆形编号节点的圆心（1.125rem = 节点宽 2.25rem / 2）
   ============================================================ */
.byd-timeline-line {
  left: 1.125rem !important;
  transform: none !important;
  background: linear-gradient(180deg,
    transparent 0%,
    color-mix(in srgb, var(--byd-primary) 55%, var(--byd-border)) 15%,
    color-mix(in srgb, var(--byd-primary) 35%, var(--byd-border)) 50%,
    color-mix(in srgb, var(--byd-primary) 55%, var(--byd-border)) 85%,
    transparent 100%);
}

.why-us-grid,
.byd-process-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .why-us-grid,
  .byd-process-grid {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
    align-items: center;
  }
}

/* ============================================================
   16. 表单输入：微光、悬停态、聚焦环
   ============================================================ */
.byd-form-input {
  --tw-ring-color: transparent;
  border-radius: var(--byd-radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
              background-color 0.2s ease, transform 0.15s ease;
  background-color: color-mix(in srgb, var(--byd-card) 30%, var(--byd-background));
}
.byd-form-input:hover {
  border-color: color-mix(in srgb, var(--byd-primary) 45%, var(--byd-input));
}
.byd-form-input:focus {
  outline: none;
  border-color: var(--byd-primary);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--byd-primary) 18%, transparent),
    0 10px 30px -18px color-mix(in srgb, var(--byd-primary) 70%, transparent);
  background-color: var(--byd-card);
}

/* ============================================================
   17. Eyebrow / Section 标题的节奏与约束
   ============================================================ */
.byd-eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--byd-primary);
}
.byd-section-sub {
  margin: 0.75rem 0 0;
  color: var(--byd-muted-foreground);
  font-size: 1rem;
  line-height: 1.75;
}

/* ============================================================
   18. 平滑滚动 & 首屏锚点的补偿（因为 sticky 导航）
   ============================================================ */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
#trust, #products, #why-us, #process, #inquiry {
  scroll-margin-top: 84px;
}
