/* ============================================================
   圣壤食品 · 企业官网样式
   ============================================================ */
:root {
  --green-900: #123726;
  --green-800: #17462f;
  --green-700: #245f40;
  --green-600: #347b53;
  --green-100: #eaf4e9;
  --cream: #f8f8f2;
  --white: #ffffff;
  --gold: #c99a3b;
  --ink: #1b2b21;
  --muted: #6a796f;
  --line: #e4eae2;
  --shadow-sm: 0 8px 30px rgba(22, 58, 38, .07);
  --shadow-md: 0 22px 60px rgba(22, 58, 38, .11);
  --radius: 18px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
svg { width: 1em; height: 1em; }
h1, h2, h3, h4, p { margin-top: 0; }
ul { list-style: none; margin: 0; padding: 0; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn svg { font-size: 17px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 10px 22px rgba(36, 95, 64, .22); }
.btn-primary:hover { background: var(--green-800); box-shadow: 0 14px 28px rgba(36, 95, 64, .3); }
.btn-ghost { border-color: #cfd9cf; color: var(--green-800); background: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: var(--green-600); background: #fff; }
.btn.full { width: 100%; }

.section { padding: 110px 0; }
.section-kicker { color: var(--green-600); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.section-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.3; letter-spacing: -.02em; color: var(--ink); margin-bottom: 22px; font-weight: 700; }
.section-desc { color: var(--muted); font-size: 16px; max-width: 620px; margin-bottom: 0; }
.section-desc.left { margin-bottom: 30px; }
.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; }
.section-head.center .section-desc { margin-inline: auto; }

/* 滚动显现（仅在 JS 可用时启用） */
body.js-enabled .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
body.js-enabled .reveal.visible { opacity: 1; transform: none; }

/* ---------- 导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 78px;
  display: flex;
  align-items: center;
  transition: background .25s ease, box-shadow .25s ease, height .25s ease;
}
.site-header.scrolled { background: rgba(255,255,255,.94); backdrop-filter: blur(14px); box-shadow: 0 4px 24px rgba(22,58,38,.08); height: 68px; }
.nav-inner { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--green-700); color: #fff;
  display: grid; place-items: center; font-size: 22px;
  box-shadow: 0 6px 14px rgba(36,95,64,.22);
}
.brand-mark.small { width: 34px; height: 34px; border-radius: 10px; font-size: 19px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 18px; letter-spacing: .04em; color: var(--green-900); }
.brand-text small { font-size: 9px; letter-spacing: .17em; color: var(--muted); font-weight: 600; margin-top: 4px; }
.brand-logo { display: block; width: auto; max-height: 46px; object-fit: contain; }
.footer-logo { max-height: 40px; }
.brand-mark.has-logo { width: auto; height: auto; border-radius: 0; background: transparent; box-shadow: none; }
.brand-mark.has-logo .footer-logo { max-height: 52px; }
#brandHeader .brand-text { width: 196px; }
#brandHeader .brand-text strong { font-size: 16px; letter-spacing: .02em; white-space: nowrap; text-align: justify; text-align-last: justify; }
#brandHeader .brand-text small { font-size: 10px; letter-spacing: .04em; margin-top: 3px; white-space: nowrap; text-align: justify; text-align-last: justify; }
#brandHeader .brand-mark.has-logo .brand-logo { max-height: 52px; }
.nav-links { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav-links a { font-size: 15px; color: #42564a; position: relative; padding: 6px 0; transition: color .2s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--green-600); transition: width .25s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--green-700); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--green-700); color: #fff; font-size: 14px; font-weight: 600;
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--green-800); transform: translateY(-1px); }
.nav-cta svg { font-size: 15px; }
.lang-switch { display: inline-flex; align-items: center; gap: 4px; padding-left: 16px; margin-left: 2px; border-left: 1px solid var(--line); }
.lang-switch a { font-size: 12px !important; padding: 4px 7px !important; border-bottom: 0 !important; border-radius: 6px; color: var(--muted) !important; font-weight: 700; }
.lang-switch a::after { display: none !important; }
.lang-switch a:hover, .lang-switch a.active { background: var(--green-100); color: var(--green-700) !important; }
.nav-toggle { display: none; background: none; border: 0; color: var(--green-900); font-size: 25px; cursor: pointer; padding: 4px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-open { display: none; }
.nav-toggle.open .icon-close { display: block; }

/* ---------- 首屏 ---------- */
.hero { position: relative; overflow: hidden; padding: 150px 0 0; background: linear-gradient(180deg, #fbfbf6 0%, var(--cream) 100%); }
.hero-bg-soft { position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(199,222,190,.45), transparent 68%); top: -230px; right: -160px; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 55px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-size: 13px; font-weight: 600; margin-bottom: 26px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,154,59,.15); }
.hero h1 { font-size: clamp(44px, 6.2vw, 76px); line-height: 1.14; letter-spacing: -.035em; margin-bottom: 24px; color: var(--green-900); font-weight: 800; }
.hero h1 span:not(.accent) { color: var(--gold); }
.hero h1 .accent { color: var(--green-600); position: relative; white-space: nowrap; }
.hero h1 .accent::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 4px; height: 10px; background: rgba(201,154,59,.28); border-radius: 6px; z-index: -1; }
.hero-lead { font-size: 17px; color: var(--muted); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { font-size: 17px; color: var(--green-600); }
.hero-meta a { display: inline-flex; align-items: center; gap: 7px; color: inherit; transition: color .2s ease; }
.hero-meta a:hover { color: var(--green-700); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 500px; }
.hero-art { width: min(100%, 500px); height: auto; aspect-ratio: 1; filter: drop-shadow(0 26px 45px rgba(24,69,44,.18)); animation: floatArt 7s ease-in-out infinite; }
@keyframes floatArt { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-orbit { position: absolute; width: min(100%, 560px); aspect-ratio: 1; border: 1px dashed rgba(52,123,83,.25); border-radius: 50%; animation: spin 36s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 11px;
  background: rgba(255,255,255,.95); border: 1px solid rgba(255,255,255,.9);
  border-radius: 14px; padding: 11px 15px; box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px); z-index: 2;
}
.float-card strong { display: block; font-size: 14px; color: var(--green-900); line-height: 1.4; }
.float-card small { display: block; font-size: 11px; color: var(--muted); }
.float-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.float-icon.green { background: var(--green-100); color: var(--green-600); }
.float-icon.gold { background: #fbf1dd; color: #b3832a; }
.float-icon.blue { background: #e5f0f5; color: #3f7f9c; }
.float-card-a { top: 12%; left: -2%; animation: bob 5s ease-in-out infinite; }
.float-card-b { top: 45%; right: -5%; animation: bob 6s ease-in-out .6s infinite; }
.float-card-c { bottom: 8%; left: 6%; animation: bob 5.5s ease-in-out 1.1s infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.stats-wrap { position: relative; margin-top: 66px; padding-bottom: 50px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px 20px; }
.stat { text-align: center; padding: 6px 12px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(24px, 3vw, 34px); color: var(--green-700); line-height: 1.2; letter-spacing: -.02em; }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- 关于我们 ---------- */
.about { background: #fff; }
.about-grid { max-width: 760px; }
.about-copy .lead { font-size: 17px; color: #405348; margin-bottom: 16px; }
.about-copy > p:not(.lead):not(.section-kicker) { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.value-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.value-tags span { padding: 7px 15px; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-size: 13px; font-weight: 600; }

/* ---------- 业务领域 ---------- */
.business { background: var(--cream); }
.business-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.biz-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px 30px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; overflow: hidden; }
.biz-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--green-600), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.biz-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #d3e1d2; }
.biz-card:hover::before { transform: scaleX(1); }
.biz-icon { width: 54px; height: 54px; border-radius: 15px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; font-size: 27px; margin-bottom: 24px; }
.biz-index { position: absolute; top: 26px; right: 28px; font-size: 34px; font-weight: 800; color: #eff3ed; line-height: 1; }
.biz-card h3 { font-size: 21px; color: var(--green-900); margin-bottom: 12px; }
.biz-card p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row span { font-size: 12px; color: var(--green-700); background: #f3f7f1; border: 1px solid #e3ece1; border-radius: 6px; padding: 4px 10px; }

/* ---------- 核心优势 ---------- */
.strength { background: var(--green-900); color: #fff; position: relative; overflow: hidden; }
.strength::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.05), transparent 70%); right: -120px; top: -180px; }
.section-head.center.light .section-kicker { color: #9ed0ab; }
.section-head.center.light .section-title { color: #fff; }
.section-head.center.light .section-desc { color: rgba(255,255,255,.68); }
.strength-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.strength-item { padding: 28px 24px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: rgba(255,255,255,.045); transition: background .25s ease, transform .25s ease; }
.strength-item:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.strength-icon { font-size: 28px; color: #9ed0ab; margin-bottom: 18px; }
.strength-item h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.strength-item p { font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 0; }

/* ---------- 合作模式 ---------- */
.partner { background: #fff; }
.cooperate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.coop-card { position: relative; padding: 28px 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.coop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); background: #f2f7f0; }
.coop-num { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--gold); }
.coop-card h3 { font-size: 18px; color: var(--green-900); margin: 12px 0 8px; }
.coop-card p { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.coop-card::after { content: "↗"; position: absolute; top: 22px; right: 22px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--green-600); font-size: 15px; border: 1px solid #dbe7d9; }

/* ---------- 联系我们 ---------- */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.contact-list small { display: block; color: var(--muted); font-size: 12px; }
.contact-list strong { display: block; color: var(--green-900); font-size: 14px; font-weight: 600; line-height: 1.6; }
.contact-list a { color: var(--green-700); word-break: break-all; }
.contact-list a:hover { text-decoration: underline; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow-sm); }
.contact-form h3 { font-size: 22px; color: var(--green-900); margin-bottom: 4px; }
.contact-form > p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.contact-form > p a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; color: #405348; margin-bottom: 18px; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px;
  border: 1px solid #dfe6dd; border-radius: 10px; background: #fcfdfb;
  font: inherit; font-size: 14px; font-weight: 400; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(52,123,83,.12); }
.contact-form textarea { resize: vertical; }
.form-note { min-height: 20px; margin: 12px 0 0 !important; font-size: 13px !important; text-align: center; color: var(--green-700) !important; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.7); padding: 70px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text small { color: rgba(255,255,255,.5); }
.site-footer #brandFooter .brand-text { width: 162px; }
.site-footer #brandFooter .brand-text strong { font-size: 14px; letter-spacing: 0; text-align: justify; text-align-last: justify; }
.site-footer #brandFooter .brand-text small { font-size: 9px; letter-spacing: .01em; text-align: justify; text-align-last: justify; }
.site-footer .brand-mark { background: rgba(255,255,255,.12); box-shadow: none; }
.footer-brand p { font-size: 14px; margin: 20px 0 0; line-height: 1.9; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; font-size: 13px; margin-bottom: 10px; transition: color .2s ease; }
.footer-col a:hover { color: #9ed0ab; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: rgba(255,255,255,.5); }

/* ---------- 返回顶部 ---------- */
.back-top { position: fixed; right: 26px; bottom: 28px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; font-size: 19px; box-shadow: 0 8px 24px rgba(22,58,38,.25); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .25s ease; }
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top svg { transform: rotate(-90deg); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-visual { min-height: 440px; }
  .hero-art, .hero-orbit { width: min(100%, 440px); }
  .float-card-a { left: 0; }
  .float-card-b { right: 0; }
  .strength-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 22px; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .25s ease; }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .lang-switch { border-left: 0; padding-left: 0; margin-left: 0; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: block; }
  .business-grid { grid-template-columns: 1fr; }
  .cooperate-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { width: min(calc(100% - 36px), var(--max)); }
  .nav-inner { gap: 10px; }
  #brandHeader .brand { gap: 8px; }
  #brandHeader .brand-text { width: 136px; }
  #brandHeader .brand-text strong { font-size: 12px; }
  #brandHeader .brand-text small { font-size: 7px; letter-spacing: .01em; }
  #brandHeader .brand-mark.has-logo .brand-logo { max-height: 36px; }
  .nav-cta { flex-shrink: 0; white-space: nowrap; padding: 8px 12px; font-size: 12px; gap: 0; }
  .nav-cta svg { display: none; }
  .nav-toggle { flex-shrink: 0; }
  .section { padding: 76px 0; }
  .hero { padding-top: 118px; }
  .hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .hero-visual { min-height: 330px; }
  .hero-art, .hero-orbit { width: min(100%, 350px); }
  .float-card { padding: 8px 11px; gap: 8px; }
  .float-card strong { font-size: 12px; }
  .float-card small { font-size: 10px; }
  .float-icon { width: 28px; height: 28px; font-size: 15px; }
  .float-card-a { top: 4%; left: 0; }
  .float-card-b { top: 42%; right: 0; }
  .float-card-c { bottom: 2%; left: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 18px 0; padding: 24px 10px; }
  .stat:nth-child(3) { grid-column: 1 / -1; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 18px; }
  .contact-grid { grid-template-columns: 1fr; }
  .strength-grid { grid-template-columns: 1fr; }
  .cooperate-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .back-top { right: 16px; bottom: 16px; }
}
@media (max-width: 340px) {
  .nav-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  body.js-enabled .reveal { opacity: 1; transform: none; }
}
