/* ==========================================================================
   果蔬盒 B2B 展示站 —— 全局样式
   主色：绿 #17884D（果蔬），点缀暖橙 #F59E0B
   ========================================================================== */

:root {
  --green: #17884D;
  --green-dark: #0f5a33;
  --green-deep: #0a3d23;
  --green-light: #e8f4ec;
  --green-lighter: #f3faf6;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text: #1f2937;
  --text-light: #6b7280;
  --text-faint: #9ca3af;
  --bg: #ffffff;
  --bg-gray: #f6f8f7;
  --line: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(16, 40, 24, 0.08);
  --shadow-md: 0 6px 24px rgba(16, 40, 24, 0.10);
  --shadow-lg: 0 16px 48px rgba(16, 40, 24, 0.16);
  --radius: 8px;
  --radius-sm: 6px;
  --maxw: 1200px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: var(--green-dark); }
.brand .logo { width: 34px; height: 34px; flex: none; }
.brand .logo svg { width: 100%; height: 100%; }
.brand small { display: block; font-weight: 500; font-size: 11px; color: var(--text-light); letter-spacing: 1px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--green); background: var(--green-lighter); }
.nav a.active { color: var(--green); background: var(--green-light); font-weight: 600; }
.nav .btn-inquire {
  margin-left: 8px;
  background: var(--green);
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
}
.nav .btn-inquire:hover { background: var(--green-dark); color: #fff; }

.menu-toggle {
  display: none;
  border: none;
  background: var(--green-light);
  color: var(--green-dark);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(23, 136, 77, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(245, 158, 11, 0.12), transparent 55%),
    linear-gradient(180deg, #fbfefc 0%, #ffffff 100%);
}
.hero .container {
  max-width: 780px;
  text-align: center;
  padding-top: 60px;
  padding-bottom: 68px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.25;
  font-weight: 800;
  color: var(--green-deep);
  letter-spacing: -0.5px;
}
.hero h1 .hl { color: var(--green); position: relative; }
.hero p.lead {
  margin-top: 18px;
  font-size: 18px;
  color: var(--text-light);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; border-radius: 999px; font-weight: 600; padding: 13px 28px; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(23, 136, 77, 0.28); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--green-dark); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.hero-stats { margin-top: 40px; display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; }
.hero-stats .stat b { font-size: 26px; color: var(--green-dark); display: block; line-height: 1.1; }
.hero-stats .stat span { font-size: 13px; color: var(--text-light); }

/* ---------- 通用 section ---------- */
.section { padding: 76px 0; }
.section.tint { background: var(--bg-gray); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head .tag { display: inline-block; color: var(--green); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--green-deep); margin-top: 8px; font-weight: 800; }
.section-head p { color: var(--text-light); margin-top: 12px; }

/* ---------- 分类卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 14px;
  text-align: center;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: var(--shadow-md); }
.cat-card .ic { width: 54px; height: 54px; border-radius: 10px; background: var(--green-light); color: var(--green); display: flex; align-items: center; justify-content: center; }
.cat-card .ic svg { width: 28px; height: 28px; }
.cat-card .tt { font-weight: 600; }
.cat-card .n { font-size: 12px; color: var(--text-faint); }

/* ---------- 产品卡片 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.prod-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(23, 136, 77, 0.35); }
.prod-card .thumb { aspect-ratio: 4 / 3; background: var(--green-lighter); overflow: hidden; position: relative; }
.prod-card .thumb img, .prod-card .thumb svg { width: 100%; height: 100%; object-fit: cover; }
.prod-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.prod-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-card .name { font-weight: 700; font-size: 16px; color: var(--text); }
.prod-card .meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-light); }
.prod-card .meta span { background: var(--bg-gray); padding: 3px 10px; border-radius: 999px; }
.prod-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--line); }
.prod-card .price { color: var(--accent-dark); font-weight: 700; font-size: 15px; }
.prod-card .more { color: var(--green); font-weight: 600; font-size: 14px; }

/* ---------- 筛选条 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.filter-chip {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  transition: all .15s;
}
.filter-chip:hover { border-color: var(--green); color: var(--green); }
.filter-chip.on { background: var(--green); color: #fff; border-color: var(--green); }
.search-box { display: flex; justify-content: center; margin-bottom: 30px; }
.search-box input {
  width: 100%;
  max-width: 440px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-box input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(23, 136, 77, 0.12); }
.empty { text-align: center; color: var(--text-faint); padding: 60px 0; font-size: 15px; }

/* ---------- 优势 / 流程 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.adv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .18s, box-shadow .18s; }
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.adv-card .ic { width: 48px; height: 48px; border-radius: 8px; background: var(--green-light); color: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.adv-card .ic svg { width: 26px; height: 26px; }
.adv-card h3 { font-size: 17px; color: var(--green-deep); margin-bottom: 8px; }
.adv-card p { font-size: 14px; color: var(--text-light); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h4 { color: var(--green-deep); margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-light); }

/* ---------- 产品详情 ---------- */
.breadcrumb { font-size: 14px; color: var(--text-faint); padding: 20px 0 0; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { color: var(--text-light); }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 32px 0 76px; align-items: start; }
.detail .gallery { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--green-lighter); }
.detail .gallery img, .detail .gallery svg { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.detail .info h1 { font-size: 30px; color: var(--green-deep); line-height: 1.3; }
.detail .info .cat-tag { display: inline-block; background: var(--green-light); color: var(--green-dark); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-top: 12px; }
.detail .info .desc { margin-top: 18px; color: var(--text-light); }
.detail .specs { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.detail .specs .row { display: grid; grid-template-columns: 140px 1fr; border-bottom: 1px solid var(--line); }
.detail .specs .row:last-child { border-bottom: none; }
.detail .specs .k { background: var(--bg-gray); padding: 12px 16px; font-size: 14px; color: var(--text-light); font-weight: 600; }
.detail .specs .v { padding: 12px 16px; font-size: 14px; }
.detail .cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.detail .feats { margin-top: 24px; }
.detail .feats h3 { font-size: 16px; color: var(--green-deep); margin-bottom: 10px; }
.detail .feats li { position: relative; padding-left: 24px; margin-bottom: 8px; font-size: 14px; color: var(--text-light); }
.detail .feats li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- 表单 ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form .field { margin-bottom: 18px; }
.form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--text); }
.form input, .form textarea, .form select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  outline: none;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(23, 136, 77, 0.12); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .submit { width: 100%; justify-content: center; }
.form .hint { font-size: 12px; color: var(--text-faint); margin-top: 12px; text-align: center; }
.contact-info .card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; display: flex; gap: 14px; align-items: flex-start; }
.contact-info .card .ic { width: 42px; height: 42px; flex: none; border-radius: 8px; background: var(--green-light); color: var(--green); display: flex; align-items: center; justify-content: center; }
.contact-info .card .ic svg { width: 22px; height: 22px; }
.contact-info .card h4 { font-size: 15px; color: var(--green-deep); }
.contact-info .card p { font-size: 14px; color: var(--text-light); }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-grid .pic { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--green-lighter); }
.about-grid .pic svg, .about-grid .pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-grid h2 { font-size: 30px; color: var(--green-deep); margin-bottom: 16px; }
.about-grid p { color: var(--text-light); margin-bottom: 14px; }
.about-points { margin-top: 20px; display: grid; gap: 10px; }
.about-points li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.about-points li::before { content: "●"; color: var(--green); font-size: 10px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--green-deep); color: rgba(255, 255, 255, 0.8); padding: 56px 0 28px; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer .f-brand { color: #fff; font-weight: 800; font-size: 20px; }
.site-footer p { font-size: 14px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { font-size: 14px; color: rgba(255, 255, 255, 0.7); transition: color .15s; }
.site-footer ul a:hover { color: #fff; }
.site-footer .f-contact li { font-size: 14px; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.site-footer .f-contact li svg { width: 18px; height: 18px; flex: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 40px; padding-top: 22px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
  .hero-visual { order: 2; }
  .detail { grid-template-columns: 1fr; gap: 28px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 16px; }
  .nav .btn-inquire { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero-stats { gap: 24px; }
  .site-footer .container { grid-template-columns: 1fr; }
  .form .row2 { grid-template-columns: 1fr; }
}
