/* 小园丁种业现代化响应式设计系统 */
:root {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #ecfdf5;
  --primary-border: #a7f3d0;
  --accent: #d97706;
  --accent-light: #fef3c7;
  --dark: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* 顶部通知条 */
.top-bar {
  background: #064e3b;
  color: #a7f3d0;
  font-size: 13px;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-bar-links a {
  margin-left: 16px;
  color: #fff;
  transition: opacity 0.2s;
}
.top-bar-links a:hover {
  opacity: 0.8;
}

/* 导航栏 */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.logo-text h1 {
  font-size: 20px;
  font-weight: 800;
  color: #064e3b;
  line-height: 1.2;
}
.logo-text p {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-link {
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 4px;
  position: relative;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}
.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary-light);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: #b45309;
}
.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-main);
}

/* Hero 首屏展示 */
.hero {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 60%, #047857 100%);
  color: #fff;
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.2) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero-title span {
  color: #6ee7b7;
}
.hero-desc {
  font-size: 17px;
  color: #d1fae5;
  margin-bottom: 30px;
  line-height: 1.7;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.stat-item h3 {
  font-size: 28px;
  font-weight: 800;
  color: #6ee7b7;
}
.stat-item p {
  font-size: 13px;
  color: #a7f3d0;
}

/* Hero 右侧快捷计算/线索卡片 */
.hero-card {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-main);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-card h3 {
  font-size: 20px;
  color: #064e3b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-card p.subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* 通用表单元素 */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* 信任与服务指标栏 */
.trust-bar {
  background: #fff;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-color);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.trust-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}
.trust-text p {
  font-size: 12px;
  color: var(--text-muted);
}

/* 区域大板块样式 */
.section {
  padding: 80px 0;
}
.section-alt {
  background: #fff;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  line-height: 1.3;
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

/* 智能计算器模块 (核心优化亮点) */
.calc-wrapper {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 40px;
}
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.calc-result-box {
  background: linear-gradient(145deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid var(--primary-border);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.calc-result-header {
  margin-bottom: 20px;
}
.calc-result-header h4 {
  font-size: 18px;
  color: #064e3b;
  margin-bottom: 6px;
}
.calc-result-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.result-card {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--primary-border);
}
.result-card .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.result-card .value {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}
.result-formula {
  background: rgba(255, 255, 255, 0.7);
  padding: 16px;
  border-radius: 8px;
  font-size: 13px;
  color: #1e293b;
  margin-bottom: 24px;
  line-height: 1.8;
}
.result-formula strong {
  color: #064e3b;
}

/* 产品中心筛选与卡片 */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
  background: #fff;
  padding: 18px 24px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tab-btn {
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: #f8fafc;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.search-box {
  position: relative;
  min-width: 260px;
}
.search-input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-border);
}
.product-thumb {
  height: 190px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}
.product-thumb-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.product-thumb-icon {
  font-size: 52px;
  opacity: 0.9;
}
.product-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}
.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.p-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--bg-main);
  color: #475569;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}
.product-specs {
  background: #f8fafc;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-main);
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.product-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}
.product-price {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}

/* 工程案例库 */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.case-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.case-header {
  height: 180px;
  background: linear-gradient(135deg, #047857, #065f46);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.case-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.case-body {
  padding: 22px;
}
.case-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}
.case-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.case-meta {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  border-top: 1px dashed var(--border-color);
  padding-top: 12px;
}

/* 种植知识与技术文章板块 */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 24px;
  transition: all 0.2s;
}
.article-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.article-tag {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.article-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}
.article-summary {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.article-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 留资表单与快速询价模块 (高转化漏斗) */
.inquiry-section {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  color: #fff;
  padding: 80px 0;
}
.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}
.inquiry-info h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}
.inquiry-info p {
  font-size: 16px;
  color: #a7f3d0;
  margin-bottom: 30px;
  line-height: 1.7;
}
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
}
.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.inquiry-form-card {
  background: #fff;
  color: var(--text-main);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* 页脚 */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-col h5 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* 浮动联系挂件与手机吸底转化栏 */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border-color);
  position: relative;
}
.float-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.float-btn span {
  font-size: 9px;
  font-weight: 700;
  margin-top: 1px;
}

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: #fff;
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  padding: 8px 16px;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
}

/* 模态框 (Modal) & 微信二维码弹窗 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-card {
  background: #fff;
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalFade 0.25s ease-out;
}
@keyframes modalFade {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
}
.modal-close:hover {
  color: var(--text-main);
}
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.toast.show {
  opacity: 1;
}

/* 响应式适配 */
@media (max-width: 1024px) {
  .hero-grid, .calc-layout, .inquiry-grid {
    grid-template-columns: 1fr;
  }
  .cases-grid, .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .mobile-bottom-bar {
    display: flex;
  }
  body {
    padding-bottom: 70px;
  }
  .hero {
    padding: 40px 0 60px;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cases-grid, .articles-grid, .trust-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .calc-wrapper {
    padding: 20px;
  }
  .calc-result-stat {
    grid-template-columns: 1fr;
  }
}

/* 产品卡片内页链接 */
.product-card-link{display:block;text-decoration:none;color:inherit}
.product-card-link .product-name{transition:color .2s}
.product-card-link:hover .product-name{color:#059669}

/* 产品卡片配图 */
.product-thumb-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.product-thumb-tag{z-index:2}
