/* =========================================================
   杭州诚基食品科技有限公司 · 企业官网
   全局样式 — 简约大气 / 食品科技专业风
   ========================================================= */

:root {
  --primary: #15663f;        /* 主色：沉稳食品绿 */
  --primary-dark: #0f4d35;
  --primary-light: #e8f2ec;
  --accent: #e0a23a;         /* 点缀：营养暖金 */
  --accent-dark: #c4862a;
  --download: #1a6fd4;       /* 下载按钮：协调蓝 */
  --download-dark: #1356ac;
  --bg: #ffffff;
  --bg-alt: #f5f8f6;
  --text: #1d2823;
  --text-muted: #5d6b64;
  --border: #e4eae6;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(15, 77, 53, 0.08);
  --shadow-sm: 0 4px 14px rgba(15, 77, 53, 0.06);
  --maxw: 1180px;
  --header-h: 68px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-download {
  background: var(--download);
  color: #fff;
}
.btn-download:hover { background: var(--download-dark); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------------- 顶部导航 ---------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.brand .logo {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: transparent;
  display: grid; place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.brand .logo svg { width: 22px; height: 22px; }
.brand .logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand .name { font-size: 17px; line-height: 1.2; }
.brand .name small { display: block; font-size: 11px; font-weight: 500; color: var(--text-muted); letter-spacing: 1px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: all .2s ease;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-links a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: none; background: transparent; cursor: pointer;
  border-radius: 10px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px auto;
  transition: .3s;
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 14px;
}
.section-head p { color: var(--text-muted); font-size: 16px; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(224,162,58,.16), transparent 60%),
    linear-gradient(135deg, #0f4d35 0%, #15663f 55%, #1c7a4d 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 50px;
  align-items: center;
  padding: 96px 0 100px;
}
.hero .tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: 7px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; margin-bottom: 22px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 22px;
}
.hero h1 .hl { color: var(--accent); }
.hero .lead { font-size: 17px; color: rgba(255,255,255,.86); margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap;
}
.hero-stats .item .num { font-size: 26px; font-weight: 800; color: #fff; }
.hero-stats .item .num span { color: var(--accent); }
.hero-stats .item .lbl { font-size: 13px; color: rgba(255,255,255,.75); }

/* HERO 产品卡 */
.hero-card {
  background: rgba(255,255,255,.96);
  border-radius: 18px;
  padding: 30px;
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.hero-card .badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--primary); background: var(--primary-light);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero-card h3 { font-size: 22px; margin-bottom: 6px; }
.hero-card .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }
.hero-card ul { display: grid; gap: 12px; margin-bottom: 22px; }
.hero-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.hero-card li svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }

/* ---------------- 卡片网格 ---------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: all .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .ic {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; }

/* 理念卡片 */
.philo {
  border-top: 3px solid var(--primary);
}
.philo .k {
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--accent-dark); margin-bottom: 8px;
}
.philo h3 { font-size: 20px; margin-bottom: 12px; }
.philo p { color: var(--text-muted); font-size: 15px; }

/* ---------------- 特性列表 ---------------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.feature-row + .feature-row { margin-top: 64px; }
.feature-row.reverse .feature-text { order: 2; }
.feature-text h3 { font-size: 26px; margin-bottom: 16px; }
.feature-text p { color: var(--text-muted); margin-bottom: 18px; }
.feature-list { display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list li svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.feature-visual {
  background: linear-gradient(135deg, var(--primary-light), #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 280px;
  display: grid; place-items: center;
  padding: 30px;
}
.feature-visual .mock {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm);
  width: 100%; max-width: 360px; padding: 22px;
}
.feature-visual .mock .bar { height: 10px; border-radius: 6px; background: var(--primary-light); margin-bottom: 12px; }
.feature-visual .mock .bar.s { width: 60%; }
.feature-visual .mock .row { display: flex; justify-content: space-between; font-size: 13px; padding: 9px 0; border-bottom: 1px dashed var(--border); color: var(--text-muted); }
.feature-visual .mock .row b { color: var(--primary); }

/* ---------------- 信任带 ---------------- */
.trust { background: var(--primary-dark); color: #fff; }
.trust .container { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: center; }
.trust .item { text-align: center; flex: 1; min-width: 150px; }
.trust .item .num { font-size: 30px; font-weight: 800; }
.trust .item .num span { color: var(--accent); }
.trust .item .lbl { font-size: 14px; color: rgba(255,255,255,.78); margin-top: 4px; }

/* ---------------- 面包屑/子页 HERO ---------------- */
.page-hero {
  background: linear-gradient(135deg, #0f4d35, #15663f);
  color: #fff; padding: 70px 0 64px;
}
.page-hero h1 { font-size: 36px; font-weight: 800; letter-spacing: 1px; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 640px; font-size: 16px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.breadcrumb a:hover { color: #fff; }

/* ---------------- 联系页 ---------------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info .item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info .ic {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
  background: var(--primary-light); color: var(--primary);
  display: grid; place-items: center;
}
.contact-info .ic svg { width: 22px; height: 22px; }
.contact-info .item h4 { font-size: 15px; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.contact-info .item p { font-size: 16px; font-weight: 600; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 21px; margin-bottom: 6px; }
.form-card .hint { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field label .req { color: #d9534f; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: var(--font);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text);
  background: #fff; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary); background: var(--primary-light);
}
.field textarea { resize: vertical; min-height: 110px; }
.field .err { color: #d9534f; font-size: 13px; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #d9534f; }
.field.invalid .err { display: block; }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.form-success {
  display: none; background: var(--primary-light); color: var(--primary-dark);
  border: 1px solid var(--primary); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 14px; margin-bottom: 18px; font-weight: 600;
}

.map-box {
  margin-top: 44px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); min-height: 260px;
  background:
    linear-gradient(rgba(21,102,63,.04), rgba(21,102,63,.04)),
    repeating-linear-gradient(45deg, #eef3f0 0 14px, #f6f8f6 14px 28px);
  display: grid; place-items: center; color: var(--text-muted); text-align: center;
}

/* 二维码展示区 */
.qr-box { margin-top: 44px; }
.qr-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.qr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 420px; }
.qr-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px; text-align: center; transition: all .25s ease;
}
.qr-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.qr-card img {
  width: 158px; height: 158px; object-fit: contain; margin: 0 auto 12px;
  border-radius: 10px; background: #fff; border: 1px solid var(--border);
}
.qr-card figcaption { font-size: 14px; font-weight: 600; color: var(--text); }

/* ---------------- 页脚 ---------------- */
.footer { background: #0f1c16; color: #c9d4ce; padding: 56px 0 28px; }
.footer .top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer .brand .name { color: #fff; }
.footer .brand .name small { color: #8aa093; }
.footer .about { font-size: 14px; color: #9fb0a8; margin-top: 16px; max-width: 320px; }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 700; }
.footer .col a { display: block; font-size: 14px; color: #9fb0a8; padding: 6px 0; transition: color .2s; }
.footer .col a:hover { color: #fff; }
.footer .contact-line { font-size: 14px; color: #9fb0a8; margin-bottom: 10px; }
.footer .bottom { padding-top: 22px; font-size: 13px; color: #7e8e86; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer .bottom a { color: #7e8e86; }
.footer .bottom a:hover { color: #fff; }

/* ---------------- 返回顶部 ---------------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 460px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.reverse .feature-text { order: 0; }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .footer .top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 14px 24px 22px; gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 26px; }
  .hero { text-align: left; }
  .hero h1 { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer .top { grid-template-columns: 1fr; gap: 28px; }
  .page-hero h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: 28px; }
  .trust .item { min-width: 45%; }
}
