/* 河北晟坤食品科技有限公司 - 官方网站样式 */
:root {
  --primary: #0b6e55;
  --primary-dark: #085340;
  --primary-light: #e6f4f0;
  --accent: #e78b2c;
  --accent-light: #fff3e6;
  --text: #2b2b2b;
  --text-muted: #666;
  --bg: #ffffff;
  --bg-alt: #f6f8f7;
  --border: #e5e9e8;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,.06);
  --shadow-hover: 0 8px 28px rgba(0,0,0,.1);
  --max-width: 1160px;
  --header-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: .2s; }
a:hover { color: var(--accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 .6em; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 92%; max-width: var(--max-width); margin: 0 auto; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 42px; }
.section-title h2 { font-size: 2rem; color: var(--primary-dark); }
.section-title p { color: var(--text-muted); font-size: 1.05rem; max-width: 680px; margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.25rem; color: var(--primary-dark);
}
.logo-mark {
  width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: grid; place-items: center; font-size: .85rem;
}
.logo small { display: block; font-size: .72rem; color: var(--text-muted); font-weight: 500; }

.nav ul { display: flex; gap: 32px; }
.nav a { color: var(--text); font-weight: 500; font-size: .98rem; position: relative; padding: 6px 0; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--primary); transition: .25s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--primary); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); transition: .25s; }

/* Hero */
.hero {
  position: relative; min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,83,64,.82), rgba(8,83,64,.55));
}
.hero-content { position: relative; z-index: 2; max-width: 820px; padding: 0 5%; }
.hero h1 { font-size: 2.8rem; margin-bottom: .4em; text-shadow: 0 2px 10px rgba(0,0,0,.2); }
.hero p.lead { font-size: 1.25rem; opacity: .95; margin-bottom: 1.5em; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 30px; font-weight: 600; border: 2px solid transparent;
  cursor: pointer; transition: .2s; font-size: 1rem;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-line { background: #fff; color: var(--primary-dark); border-color: var(--primary); }
.btn-line:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-accent:hover { background: #d47a20; color: #fff; }

/* Stats */
.stats { background: var(--primary); color: #fff; padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat .num { font-size: 2.4rem; font-weight: 800; }
.stat .label { opacity: .85; font-size: .95rem; }

/* Cards */
.card-grid { display: grid; gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: .25s; border: 1px solid var(--border);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card-img { aspect-ratio: 16/10; background: var(--bg-alt); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 22px; }
.card-body h3 { font-size: 1.15rem; color: var(--primary-dark); }
.card-body p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* About snippet */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; }
.feature-list { margin-top: 20px; }
.feature-list li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--text-muted); }
.feature-list li::before {
  content: '✓'; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary); display: grid; place-items: center;
  font-size: .8rem; font-weight: 700;
}

/* Equipment grid */
.equipment-grid { grid-template-columns: repeat(4,1fr); }
.equipment-grid .card-img { aspect-ratio: 4/3; }

/* Product categories */
.product-grid { grid-template-columns: repeat(3,1fr); }
.product-card {
  background: #fff; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border: 1px solid var(--border); transition: .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px;
}
.product-card h3 { font-size: 1.15rem; color: var(--primary-dark); margin-bottom: 10px; }
.product-card ul { color: var(--text-muted); font-size: .95rem; padding-left: 1.1em; list-style: disc; }
.product-card li { margin-bottom: 4px; }

/* Cases */
.case-card { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: center; }
.case-card img { border-radius: var(--radius); box-shadow: var(--shadow); }
.case-meta h3 { color: var(--primary-dark); font-size: 1.35rem; }
.case-meta .tag {
  display: inline-block; background: var(--accent-light); color: var(--accent);
  padding: 4px 12px; border-radius: 20px; font-size: .85rem; font-weight: 600; margin-bottom: 10px;
}

/* Certificates */
.cert-grid { grid-template-columns: repeat(4,1fr); }
.cert-item { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); border: 1px solid var(--border); text-align: center; }
.cert-item img { width: 100%; border-radius: 6px; margin-bottom: 10px; }
.cert-item p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* Quality */
.quality-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 48px; }
.quality-feature.reverse { direction: rtl; }
.quality-feature.reverse > * { direction: ltr; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-grid.single { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.contact-info { background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.contact-item div span a { color: var(--primary); border-bottom: 1px dashed var(--primary); }
.contact-info h3 { color: var(--primary-dark); margin-bottom: 18px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-item .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.contact-item div strong { display: block; color: var(--primary-dark); }
.contact-item div span { color: var(--text-muted); font-size: .95rem; }
/* Map */
.map-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #e0e6e4; border: 1px solid var(--border); }
.map-box iframe { display: block; width: 100%; height: 380px; border: 0; }
.map-meta { text-align: center; margin-top: 14px; color: var(--text-muted); font-size: .92rem; }

/* Footer */
.site-footer { background: #0a3328; color: rgba(255,255,255,.85); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: .95rem; opacity: .85; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.75); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center; font-size: .88rem; }
.footer-bottom a { color: rgba(255,255,255,.8); }
.icp-box {
  background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.25);
  padding: 14px; border-radius: 8px; margin-top: 12px; text-align: center;
}
.icp-box strong { color: #fff; display: block; margin-bottom: 4px; }
.icp-box span { color: rgba(255,255,255,.7); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: .6s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .about-split, .case-card, .quality-feature, .contact-grid { grid-template-columns: 1fr; }
  .quality-feature.reverse { direction: ltr; }
  .equipment-grid, .product-grid, .cert-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hamburger { display: flex; }
  .nav { position: absolute; top: var(--header-height); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 12px 0; }
  .nav a { display: block; padding: 12px 5%; border-bottom: 1px solid var(--border); }
  .nav a::after { display: none; }
  .hero h1 { font-size: 2rem; }
  .hero p.lead { font-size: 1.05rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .stat .num { font-size: 1.8rem; }
  .equipment-grid, .product-grid, .cert-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
