/* ============================================================
   Win Heart Technology — Main Stylesheet  v2.0
   Agricultural Greenhouse & Equipment B2B Website
   ============================================================ */

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --green-dark:    #1a5c2a;
  --green-main:    #2d7a3a;
  --green-mid:     #3d9b4a;
  --green-light:   #e8f5eb;
  --green-pale:    #f4fbf5;
  --gold:          #e8a020;
  --gold-light:    #fdf3e0;
  --text-dark:     #1a1f2e;
  --text-mid:      #4a5568;
  --text-light:    #718096;
  --white:         #ffffff;
  --bg-gray:       #f7f9fc;
  --border:        #e2e8f0;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.08);
  --shadow-md:     0 8px 24px rgba(0,0,0,.12);
  --shadow-lg:     0 16px 48px rgba(0,0,0,.15);
  --radius:        8px;
  --radius-lg:     16px;
  --transition:    .3s ease;
  --max-width:     1200px;
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', 'Inter', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  /* 防止闪烁：预先声明字体渲染 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

/* ─── Typography ────────────────────────────────────────── */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; line-height: 1.4; }
p  { color: var(--text-mid); line-height: 1.8; }

/* ─── Layout Helpers ────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-gray); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { color: var(--text-dark); margin-bottom: 12px; }
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.section-header .subtitle-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-main);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(45,122,58,.35);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,122,58,.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--green-main);
  border: 2px solid var(--green-main);
}
.btn-ghost:hover {
  background: var(--green-main);
  color: var(--white);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(232,160,32,.35);
}
.btn-gold:hover {
  background: #d4910f;
  transform: translateY(-2px);
}

/* ─── Header / Navbar ──────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
  will-change: auto; /* 防闪烁 */
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.nav-logo-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2;
}
.nav-logo-text span {
  font-size: .72rem;
  color: var(--text-light);
  letter-spacing: .04em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--green-main);
  background: var(--green-light);
}
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 999;
  padding: 16px 24px 24px;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-mobile a:hover, .nav-mobile a.active {
  color: var(--green-main);
  background: var(--green-light);
}
.nav-mobile .btn { width: 100%; justify-content: center; margin-top: 12px; }

/* ─── Hero / Slider ─────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  background: #0d2e14;
  margin-top: 68px;
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero-slide.active .hero-slide-bg { transform: scale(1); }
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(13,46,20,.82) 0%, rgba(13,46,20,.45) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding: 0 24px;
  margin-left: calc((100vw - var(--max-width)) / 2);
  margin-left: max(24px, calc((100vw - 1200px) / 2));
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.95);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.4); }
}
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero-content h1 em {
  font-style: normal;
  color: #86efac;
}
.hero-content p {
  color: rgba(255,255,255,.85);
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 4px;
}
/* Hero controls */
.hero-controls {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--white);
}
.hero-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}
.hero-arrow {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  pointer-events: all;
  color: white;
  font-size: 1.2rem;
}
.hero-arrow:hover { background: rgba(255,255,255,.3); }

/* ─── Trust Bar ─────────────────────────────────────────── */
.trust-bar {
  background: var(--green-dark);
  padding: 18px 0;
  overflow: hidden;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.9);
  font-size: .88rem;
  font-weight: 500;
  white-space: nowrap;
}
.trust-item svg, .trust-item .trust-icon {
  opacity: .8;
  font-size: 1.2rem;
}
.trust-divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,.2);
}

/* ─── Products Section ──────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f4f0;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--green-main);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
}
.product-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-cat {
  font-size: .75rem;
  font-weight: 600;
  color: var(--green-main);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 8px;
}
.product-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-desc {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.product-price {
  font-size: .85rem;
  font-weight: 700;
  color: var(--green-dark);
}
.product-price small {
  font-size: .72rem;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 4px;
}
.product-card-footer .btn {
  padding: 8px 18px;
  font-size: .83rem;
}

/* ─── Categories ───────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  display: block;
}
.cat-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}
.cat-card:hover .cat-card-bg { transform: scale(1.06); }
.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,46,20,.85) 0%, rgba(13,46,20,.35) 60%, transparent 100%);
}
.cat-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  color: var(--white);
}
.cat-card-content .cat-count {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 6px;
}
.cat-card-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.cat-card-content p {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
}
.cat-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: #86efac;
  margin-top: 10px;
}

/* ─── Advantages ───────────────────────────────────────── */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.adv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.adv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-main), var(--green-mid));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.adv-card:hover::before { transform: scaleX(1); }
.adv-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.adv-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.adv-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.adv-card p {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ─── Stats Banner ─────────────────────────────────────── */
.stats-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, #0d3d1a 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.stats-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #86efac 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
  letter-spacing: .04em;
}

/* ─── Testimonial / Why Us ──────────────────────────────── */
.why-us-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-us-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.why-us-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.why-us-badge {
  position: absolute;
  bottom: 24px; right: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
}
.why-us-badge-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.why-us-badge strong { display: block; font-size: 1rem; color: var(--text-dark); }
.why-us-badge span { font-size: .78rem; color: var(--text-light); }
.why-us-content .subtitle-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.why-us-content h2 { margin-bottom: 20px; }
.why-us-content p { margin-bottom: 28px; }
.why-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.why-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.why-list-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--green-main);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
  font-size: .7rem;
  color: white;
  font-weight: 700;
}
.why-list-text strong { display: block; font-size: .95rem; color: var(--text-dark); font-weight: 600; }
.why-list-text span { font-size: .85rem; color: var(--text-light); }

/* ─── CTA Banner ────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--green-main) 0%, var(--green-dark) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -5%;
  width: 350px; height: 350px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { color: var(--white); margin-bottom: 16px; }
.cta-content p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white {
  background: var(--white);
  color: var(--green-dark);
  font-weight: 700;
}
.btn-white:hover { background: var(--green-light); }

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  background: #0d1f11;
  padding: 64px 0 0;
  color: rgba(255,255,255,.75);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  opacity: .9;
}
.footer-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-tagline {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 20px;
}
.footer-brand p { font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.6); }
.footer-col h4 {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: #86efac; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .88rem;
}
.footer-contact-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--green-mid);
  margin-top: 2px;
}
.footer-contact-item a { color: rgba(255,255,255,.65); }
.footer-contact-item a:hover { color: #86efac; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.35); }
.footer-certifications {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cert-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: .75rem;
  color: rgba(255,255,255,.5);
}
.cert-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
}

/* ─── Products Page ─────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #0d3d1a 100%);
  padding: 80px 0 60px;
  margin-top: 68px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #86efac; }
.breadcrumb-sep { font-size: .7rem; }

/* filter tabs */
.filter-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-tab {
  padding: 10px 22px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--border);
  color: var(--text-mid);
  background: var(--white);
}
.filter-tab:hover { border-color: var(--green-main); color: var(--green-main); }
.filter-tab.active {
  background: var(--green-main);
  border-color: var(--green-main);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(45,122,58,.3);
}

/* ─── Product Detail ────────────────────────────────────── */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.product-gallery { position: sticky; top: 88px; }
.product-main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-gray);
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.product-main-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.product-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.product-thumb {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition);
}
.product-thumb.active { border-color: var(--green-main); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info-title { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 700; color: var(--text-dark); margin-bottom: 12px; line-height: 1.3; }
.product-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.product-meta .cat-tag {
  background: var(--green-light);
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.product-price-box {
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.product-price-box .price { font-size: 1.6rem; font-weight: 800; color: var(--green-dark); }
.product-price-box .price-note { font-size: .82rem; color: var(--text-light); margin-top: 4px; }
.product-desc { font-size: .95rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 28px; }
.product-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.product-actions .btn { flex: 1; min-width: 140px; justify-content: center; padding: 14px 24px; }

/* spec table */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.spec-table tr:nth-child(odd) td:first-child { background: var(--bg-gray); }
.spec-table td {
  padding: 10px 14px;
  font-size: .88rem;
  border-bottom: 1px solid var(--border);
}
.spec-table td:first-child {
  font-weight: 600;
  color: var(--text-dark);
  width: 38%;
}
.spec-table td:last-child { color: var(--text-mid); }

/* tabs */
.product-tabs { margin-top: 48px; }
.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  gap: 0;
}
.tab-btn {
  padding: 12px 24px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.tab-btn.active { color: var(--green-main); border-bottom-color: var(--green-main); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Contact / About ──────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-form-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-group label .req { color: var(--green-main); }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-control:focus { border-color: var(--green-main); box-shadow: 0 0 0 3px rgba(45,122,58,.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea.form-control { resize: vertical; min-height: 120px; }
.contact-info-box { display: flex; flex-direction: column; gap: 20px; }
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.contact-info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.contact-info-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.contact-info-body strong { display: block; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.contact-info-body span, .contact-info-body a { font-size: .9rem; color: var(--text-light); }
.contact-info-body a:hover { color: var(--green-main); }

/* whatsapp float */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
}
.whatsapp-float-btn {
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: var(--transition);
  animation: float-bounce 3s ease-in-out infinite;
}
.whatsapp-float-btn:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(37,211,102,.55); }
@keyframes float-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.whatsapp-float-btn svg { width: 28px; height: 28px; fill: white; }
.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  background: var(--text-dark);
  color: white;
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--text-dark);
  border-right: 0;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ─── Scroll Animation (NO-FLASH VERSION) ───────────────── */
/* 关键：不使用 visibility:hidden 导致闪烁，改用 opacity+translate */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── Image Fallback ────────────────────────────────────── */
.img-fallback {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f5eb, #f4fbf5);
  color: var(--green-mid);
  font-size: 3rem;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .why-us-split { grid-template-columns: 1fr; gap: 40px; }
  .why-us-img { max-width: 560px; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero { height: calc(100vh - 68px); max-height: unset; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 1.4rem; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
  .categories-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-form-box { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .trust-bar-inner { gap: 16px; justify-content: flex-start; overflow-x: auto; padding: 0 24px; flex-wrap: nowrap; }
  .trust-divider { display: none; }
  .hero-content { margin-left: 0; padding: 0 24px; }
  .product-actions { flex-direction: column; }
}
@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* ─── About Page ────────────────────────────────────────── */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img-stack {
  position: relative;
}
.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-accent {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 55%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1/1;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-lg);
}
.about-img-accent img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1024px) {
  .about-story-grid { grid-template-columns: 1fr; }
  .about-img-accent { display: none; }
}
