/* =============================================
   Base Stylesheet — 优品农源
   Merged from: variables.css + reset.css + global.css
                + components.css + nav.css + footer.css
                + search-form
   Share the same cascade order across all pages
   ============================================= */

/* ═══════════════════════════════════════════════
   1. Design Tokens (variables.css)
   Organic Natural + Premium Rustic
   ═══════════════════════════════════════════════ */

:root {
  /* ── Color System ── */
  /* Warm Earth + Olive Green palette, all oklch */

  /* Backgrounds */
  --color-bg:           oklch(97% 0.005 95);
  --color-surface:      oklch(99.5% 0.002 95);
  --color-warm-bg:      oklch(94% 0.02 88);

  /* Primary — Olive Green */
  --color-primary:          oklch(52% 0.11 148);
  --color-primary-dark:     oklch(38% 0.10 148);
  --color-primary-darker:   oklch(28% 0.08 148);
  --color-primary-light:    oklch(75% 0.06 148);
  --color-primary-lighter:  oklch(92% 0.04 148);

  /* Accent — Warm Amber/Gold */
  --color-accent:           oklch(62% 0.14 72);
  --color-accent-dark:      oklch(48% 0.12 70);
  --color-accent-light:     oklch(85% 0.08 72);

  /* Text hierarchy */
  --color-text:             oklch(22% 0.02 90);
  --color-text-secondary:   oklch(48% 0.02 90);
  --color-text-muted:       oklch(65% 0.02 90);
  --color-text-inverse:     oklch(96% 0.01 95);

  /* Borders & Dividers */
  --color-border:           oklch(88% 0.01 90);
  --color-border-light:     oklch(94% 0.01 90);

  /* Semantic */
  --color-success:          oklch(55% 0.14 150);
  --color-success-light:    oklch(90% 0.06 150);
  --color-warning:          oklch(65% 0.16 80);
  --color-error:            oklch(50% 0.18 25);

  /* ── Typography ── */
  --font-display:   'Noto Serif SC', 'Songti SC', 'STSong', serif;
  --font-body:      'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Modular Scale — Perfect Fourth (1.333) */
  --text-xs:     clamp(0.7rem,  0.65rem + 0.2vw, 0.75rem);
  --text-sm:     clamp(0.8rem,  0.75rem + 0.2vw, 0.875rem);
  --text-base:   clamp(0.95rem, 0.9rem  + 0.2vw, 1rem);
  --text-md:     clamp(1.1rem,  1rem    + 0.3vw, 1.2rem);
  --text-lg:     clamp(1.25rem, 1.1rem  + 0.5vw, 1.5rem);
  --text-xl:     clamp(1.6rem,  1.3rem  + 1vw,   2.2rem);
  --text-2xl:    clamp(2rem,    1.6rem  + 1.5vw, 3rem);
  --text-3xl:    clamp(2.5rem,  2rem    + 2vw,   4rem);
  --text-hero:   clamp(2.8rem,  2rem    + 3vw,   5rem);

  /* Font weights */
  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    900;

  /* Line heights */
  --lh-tight:    1.15;
  --lh-snug:     1.35;
  --lh-normal:   1.65;
  --lh-relaxed:  1.75;

  /* Letter spacing */
  --ls-tight:    -0.02em;
  --ls-normal:   0;
  --ls-wide:     0.02em;
  --ls-wider:    0.05em;
  --ls-widest:   0.08em;

  /* ── Spacing — 4pt base grid ── */
  --space-3xs:   0.125rem;
  --space-2xs:   0.25rem;
  --space-xs:    0.5rem;
  --space-sm:    0.75rem;
  --space-md:    1rem;
  --space-lg:    1.5rem;
  --space-xl:    2rem;
  --space-2xl:   3rem;
  --space-3xl:   4rem;
  --space-4xl:   6rem;
  --space-5xl:   8rem;
  --space-6xl:   10rem;

  /* Fluid spacing */
  --section-gap: clamp(3rem, 5vw, 6rem);

  /* ── Layout ── */
  --max-width:     1200px;
  --max-width-sm:  860px;
  --max-width-xs:  640px;
  --nav-height:    4.5rem;
  --page-padding:  1.5rem;

  /* ── Border Radius ── */
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     20px;
  --radius-2xl:    24px;
  --radius-full:   9999px;

  /* ── Shadows ── */
  --shadow-xs:     0 1px 2px oklch(20% 0.02 90 / 0.04);
  --shadow-sm:     0 1px 3px oklch(20% 0.02 90 / 0.06), 0 1px 2px oklch(20% 0.02 90 / 0.04);
  --shadow-md:     0 4px 12px oklch(20% 0.02 90 / 0.08);
  --shadow-lg:     0 12px 32px oklch(20% 0.02 90 / 0.10);
  --shadow-xl:     0 20px 48px oklch(20% 0.02 90 / 0.14);
  --shadow-glow:   0 0 32px oklch(52% 0.11 148 / 0.15);

  /* ── Motion ── */
  --ease-out-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart:  cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out:     cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);

  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   400ms;
  --duration-glacial: 700ms;

  /* ── Z-Index Scale ── */
  --z-base:      1;
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-overlay:   300;
  --z-modal:     400;
  --z-toast:     500;
}
/* =============================================
   CSS Reset — 优品农源
   Based on modern-normalize + custom resets
   ============================================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Typography defaults ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-text);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-base); }

p {
  max-width: 65ch;
  line-height: var(--lh-relaxed);
  color: var(--color-text-secondary);
}

/* ── Inline elements ── */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-quart);
}

a:hover {
  color: var(--color-primary);
}

strong, b {
  font-weight: var(--fw-bold);
  color: inherit;
}

em, i {
  font-style: italic;
}

/* ── Media ── */
img, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  font-style: italic;
  background-repeat: no-repeat;
  background-size: cover;
  shape-margin: var(--space-md);
}

/* ── Forms ── */
input, textarea, select, button {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

fieldset {
  border: none;
}

/* ── Lists ── */
ul, ol {
  list-style: none;
}

/* ── Tables ── */
table {
  border-collapse: collapse;
  width: 100%;
}

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── Selection ── */
::selection {
  background: oklch(75% 0.1 148 / 0.3);
  color: var(--color-primary-darker);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* =============================================
   Global Layout & Utilities — 优品农源
   ============================================= */

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--page-padding);
}

.container-sm {
  max-width: var(--max-width-sm);
  margin-inline: auto;
  padding-inline: var(--page-padding);
}

.container-xs {
  max-width: var(--max-width-xs);
  margin-inline: auto;
  padding-inline: var(--page-padding);
}

/* ── Section ── */
.section {
  padding-block: var(--section-gap);
}

.section-top {
  padding-block-start: var(--section-gap);
}

.section-bottom {
  padding-block-end: var(--section-gap);
}

/* ── Section Header (centered intro block) ── */
.section-header {
  text-align: center;
  max-width: var(--max-width-xs);
  margin-inline: auto;
  margin-block-end: var(--space-4xl);
}

.section-header--left {
  text-align: left;
  margin-inline: 0;
}

.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--color-primary);
  margin-block-end: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: var(--lh-snug);
  margin-block-end: var(--space-md);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-inline: auto;
}

.section-header--left .section-desc {
  margin-inline: 0;
}

/* ── Grid helpers ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, oklch(90% 0.04 120 / 0.25), transparent),
    var(--color-warm-bg);
  padding-block-start: calc(var(--nav-height) + var(--space-4xl));
  padding-block-end: var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 80%, oklch(85% 0.06 148 / 0.12) 0%, transparent 50%),
    radial-gradient(circle at 75% 25%, oklch(88% 0.08 72 / 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-text);
  margin-block-end: var(--space-md);
  position: relative;
  z-index: 1;
}

.page-hero-desc {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: var(--max-width-xs);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

.divider--thick {
  border-top-width: 2px;
}

/* ── Text utilities ── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-primary    { color: var(--color-primary); }
.text-primary-dark { color: var(--color-primary-dark); }
.text-accent     { color: var(--color-accent); }
.text-muted      { color: var(--color-text-muted); }
.text-secondary  { color: var(--color-text-secondary); }

.fw-bold    { font-weight: var(--fw-bold); }
.fw-black   { font-weight: var(--fw-black); }
.fw-medium  { font-weight: var(--fw-medium); }

/* ── Spacing utilities ── */
.mt-0  { margin-block-start: 0; }
.mt-md { margin-block-start: var(--space-md); }
.mt-lg { margin-block-start: var(--space-lg); }
.mt-xl { margin-block-start: var(--space-xl); }
.mt-2xl { margin-block-start: var(--space-2xl); }
.mt-3xl { margin-block-start: var(--space-3xl); }

.mb-0  { margin-block-end: 0; }
.mb-md { margin-block-end: var(--space-md); }
.mb-lg { margin-block-end: var(--space-lg); }
.mb-xl { margin-block-end: var(--space-xl); }
.mb-2xl { margin-block-end: var(--space-2xl); }

/* ── Gap utilities ── */
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* ── Flex helpers ── */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Responsive ── */
@media (max-width: 968px) {
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 4rem;
    --page-padding: 1rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-auto {
    grid-template-columns: 1fr;
  }

  .section {
    --section-gap: clamp(2rem, 8vw, 3rem);
  }

  .page-hero {
    padding-block-start: calc(var(--nav-height) + var(--space-2xl));
    padding-block-end: var(--space-2xl);
  }

  .page-hero-title {
    font-size: var(--text-xl);
  }
}
/* =============================================
   Reusable Components — 优品农源
   ============================================= */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition:
    background 0.2s var(--ease-out-quart),
    color 0.2s var(--ease-out-quart),
    border-color 0.2s var(--ease-out-quart),
    transform 0.2s var(--ease-out-quart),
    box-shadow 0.2s var(--ease-out-quart);
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(52% 0.11 148 / 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-primary-light);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  background: oklch(95% 0.04 148 / 0.15);
  transform: translateY(-2px);
}

.btn--light {
  background: #fff;
  color: var(--color-primary-dark);
  border-color: #fff;
}

.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px oklch(100% 0 0 / 0.2);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: oklch(100% 0 0 / 0.3);
}

.btn--ghost:hover {
  border-color: #fff;
  background: oklch(100% 0 0 / 0.08);
}

.btn--lg {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn--xl {
  padding: var(--space-md) var(--space-3xl);
  font-size: var(--text-md);
  border-radius: var(--radius-lg);
}

.btn--icon {
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
}

.btn--icon svg {
  width: 1.2em;
  height: 1.2em;
}

/* ── Badge / Tag ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}

.badge--primary {
  background: var(--color-primary-lighter);
  color: var(--color-primary-dark);
}

.badge--accent {
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
}

.badge--success {
  background: var(--color-success-light);
  color: var(--color-success);
}

.badge--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.badge--dot {
  position: relative;
  padding-inline-start: var(--space-lg);
}

.badge--dot::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  animation: pulse 2s ease-in-out infinite;
}

/* ── Card ── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s var(--ease-out-quart);
  overflow: hidden;
}

.card--hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card__body {
  padding: var(--space-lg);
}

.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: oklch(92% 0.04 115);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
}

/* ── Stats Counter ── */
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-black);
  color: var(--color-primary-dark);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-block-start: var(--space-2xs);
}

/* ── Quality Card ── */
.quality-card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border);
  transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s var(--ease-out-quart);
}

.quality-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.quality-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-block-end: var(--space-lg);
}

.quality-card__icon--green  { background: var(--color-success-light); }
.quality-card__icon--amber  { background: oklch(92% 0.08 75); }
.quality-card__icon--earth  { background: oklch(90% 0.04 50); }

.quality-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  margin-block-end: var(--space-sm);
  color: var(--color-text);
}

.quality-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: none;
}

.quality-card__steps {
  margin-block-start: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.quality-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.quality-step__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-success);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ── Trace Node ── */
.trace-node {
  text-align: center;
  position: relative;
}

.trace-node:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -20px;
  top: 28px;
  color: oklch(75% 0.06 148 / 0.5);
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
}

.trace-node--dark:not(:last-child)::after {
  color: oklch(75% 0.06 148 / 0.6);
}

.trace-node__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto var(--space-md);
}

.trace-node__icon--light  { background: oklch(90% 0.04 115); }
.trace-node__icon--dark   { background: oklch(100% 0 0 / 0.12); border: 2px solid oklch(100% 0 0 / 0.2); }
.trace-node__icon--green  { background: var(--color-success-light); }

.trace-node__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  margin-block-end: var(--space-2xs);
}

.trace-node__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: none;
}

/* ── Product Card ── */
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s var(--ease-out-quart);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  background: linear-gradient(135deg, oklch(92% 0.04 120), oklch(88% 0.04 105));
}

.product-card__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0 0 0 / 0.06), transparent);
}

.product-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  white-space: nowrap;
}

.product-badge--hot  { background: var(--color-accent); color: oklch(30% 0.1 70); }
.product-badge--new  { background: var(--color-primary); color: #fff; }

.product-trace-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  background: oklch(100% 0 0 / 0.85);
  backdrop-filter: blur(8px);
  color: var(--color-primary-dark);
}

.product-card__info {
  padding: var(--space-lg);
}

.product-card__category {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-block-end: var(--space-2xs);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-block-end: var(--space-2xs);
}

.product-card__origin {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-block-end: var(--space-md);
}

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.product-card__price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  display: flex;
  align-items: baseline;
  gap: var(--space-2xs);
}

.product-card__price-unit {
  font-size: var(--text-xs);
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
}

.product-card__score {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--text-xs);
  color: var(--color-success);
  font-weight: var(--fw-semibold);
}

/* ── Benefit Item ── */
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: background 0.2s var(--ease-out-quart);
}

.benefit-item:hover {
  background: var(--color-surface);
}

.benefit-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.benefit-item__icon--green  { background: var(--color-success-light); }
.benefit-item__icon--amber  { background: oklch(92% 0.08 75); }
.benefit-item__icon--earth  { background: oklch(90% 0.04 50); }

.benefit-item__title {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-block-end: 2px;
}

.benefit-item__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: none;
}

/* ── Floating Card ── */
.floating-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  z-index: 2;
}

.floating-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.floating-card__icon--green  { background: var(--color-success-light); }
.floating-card__icon--amber  { background: oklch(92% 0.08 75); }

.floating-card__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.floating-card__value {
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

/* ── QR Placeholder ── */
.qr-block {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
}

.qr-block--dark {
  background: oklch(100% 0 0 / 0.08);
}

.qr-block__image {
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.qr-block__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  margin-block-end: var(--space-2xs);
}

.qr-block__desc {
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  max-width: none;
}

.qr-block__desc--muted { opacity: 0.75; }
/* =============================================
   Navigation — 优品农源
   Fixed top bar with backdrop blur
   ============================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--nav-height);
  background: oklch(99% 0.002 95 / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s var(--ease-out-quart),
    border-color 0.3s var(--ease-out-quart),
    box-shadow 0.3s var(--ease-out-quart);
}

.nav--scrolled {
  background: oklch(99% 0.002 95 / 0.96);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--page-padding);
}

/* ── Brand ── */
.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: var(--color-primary-dark);
  letter-spacing: var(--ls-wide);
  text-decoration: none;
  transition: opacity 0.2s var(--ease-out-quart);
}

.nav__brand:hover {
  opacity: 0.85;
  color: var(--color-primary-dark);
}

.nav__brand-icon {
  width: 34px;
  height: 34px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--fw-black);
}

/* ── Links ── */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  text-decoration: none;
  position: relative;
  padding-block: var(--space-2xs);
  transition: color 0.2s var(--ease-out-quart);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.3s var(--ease-out-quart);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-primary-dark);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* ── CTA ── */
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition:
    background 0.2s var(--ease-out-quart),
    transform 0.2s var(--ease-out-quart);
}

.nav__cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* ── Mobile toggle ── */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: var(--space-2xs);
  cursor: pointer;
  background: none;
  border: none;
}

.nav__toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition:
    transform 0.3s var(--ease-out-quart),
    opacity 0.3s var(--ease-out-quart);
}

.nav__toggle--open .nav__toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle--open .nav__toggle-line:nth-child(2) {
  opacity: 0;
}

.nav__toggle--open .nav__toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile menu ── */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface);
  z-index: calc(var(--z-sticky) - 1);
  padding: var(--space-2xl) var(--page-padding);
  flex-direction: column;
  gap: var(--space-lg);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.3s var(--ease-out-quart),
    transform 0.3s var(--ease-out-quart);
  pointer-events: none;
}

.nav__mobile--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav__mobile .nav__link {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--color-border-light);
}

.nav__mobile .nav__link::after {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__mobile {
    display: flex;
  }
}
/* =============================================
   Footer — 优品农源
   ============================================= */

.footer {
  background: oklch(15% 0.02 90);
  color: oklch(80% 0.01 90);
  padding-block-start: var(--space-5xl);
  padding-block-end: var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-block-end: var(--space-4xl);
}

/* ── Brand column ── */
.footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: #fff;
  margin-block-end: var(--space-md);
}

.footer__about {
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  color: oklch(70% 0.01 90);
  max-width: 280px;
}

/* ── Link columns ── */
.footer__col-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: #fff;
  margin-block-end: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--text-sm);
  color: oklch(70% 0.01 90);
  text-decoration: none;
  transition: color 0.2s var(--ease-out-quart);
}

.footer__link:hover {
  color: #fff;
}

/* ── Bottom bar ── */
.footer__bottom {
  border-top: 1px solid oklch(100% 0 0 / 0.08);
  padding-block-start: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: oklch(60% 0.01 90);
}

/* ── Responsive ── */
@media (max-width: 968px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* =============================================
   Search Form & Results — 优品农源
   ============================================= */

.search-form {
  width: 100%;
}

.search-form__inner {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-out-quart),
              box-shadow var(--duration-fast) var(--ease-out-quart);
}

.search-form__inner:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(52% 0.11 148 / 0.12);
}

.search-form__input {
  flex: 1;
  min-width: 0;
  padding: var(--space-sm) var(--space-lg);
  border: none;
  outline: none;
  font-size: var(--text-base);
  background: transparent;
  color: var(--color-text);
  line-height: 1.6;
}

.search-form__input::placeholder {
  color: var(--color-text-muted);
}

.search-form__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out-quart),
              background var(--duration-fast) var(--ease-out-quart);
}

.search-form__btn:hover {
  color: var(--color-primary-dark);
  background: oklch(92% 0.04 148 / 0.25);
}

/* Search result card */
.search-result-card {
  transition: transform 0.25s var(--ease-out-quart),
              box-shadow 0.25s var(--ease-out-quart);
}

.search-result-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-block-start: var(--space-3xl);
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out-quart),
              color var(--duration-fast) var(--ease-out-quart),
              border-color var(--duration-fast) var(--ease-out-quart);
}

.pagination .page-numbers.current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.pagination .page-numbers:hover:not(.current) {
  background: var(--color-primary-lighter);
  border-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .search-result-card > div {
    flex-direction: column;
  }
}
