/* 薪农菜市官网样式 */
:root {
  --primary: #1b5e20;
  --primary-mid: #2e7d32;
  --primary-soft: #e8f5e9;
  --text: #1a1a1a;
  --text-2: #5a5a5a;
  --text-3: #8a8a8a;
  --line: #e6ebe6;
  --bg: #f7faf7;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(27, 94, 32, 0.08);
  --font: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
a { color: var(--primary-mid); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ===== 顶栏 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 94, 32, 0.08);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--primary-mid), var(--primary));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}
.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav a {
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
}
.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: var(--primary-soft);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(46, 125, 50, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(27, 94, 32, 0.12), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f0f7f1 100%);
  padding: 72px 0 88px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-kicker {
  display: inline-block;
  font-size: 13px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--primary-mid); }
.hero-desc {
  font-size: 17px;
  color: var(--text-2);
  max-width: 34em;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-mid), var(--primary));
  color: #fff;
  box-shadow: 0 10px 24px rgba(27, 94, 32, 0.25);
}
.btn-primary:hover { color: #fff; }
.btn-ghost {
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(27, 94, 32, 0.2);
}
.hero-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid rgba(27, 94, 32, 0.06);
}
.hero-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat {
  background: var(--bg);
  border-radius: 14px;
  padding: 16px;
}
.stat strong {
  display: block;
  font-size: 22px;
  color: var(--primary);
  line-height: 1.2;
}
.stat span {
  font-size: 13px;
  color: var(--text-3);
}

/* ===== 区块 ===== */
.section {
  padding: 72px 0;
}
.section-alt { background: #fff; }
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: 30px;
  margin-bottom: 10px;
}
.section-head p {
  color: var(--text-2);
  font-size: 16px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.section-alt .feature { background: var(--bg); border-color: transparent; }
.feature:hover {
  box-shadow: var(--shadow);
  border-color: rgba(46, 125, 50, 0.25);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.feature p {
  color: var(--text-2);
  font-size: 14px;
}

/* ===== 公司信息 ===== */
.company-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: #fff;
  border-radius: 24px;
  padding: 36px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.company-panel h3 {
  font-size: 20px;
  margin-bottom: 18px;
  color: var(--primary);
}
.info-list {
  list-style: none;
}
.info-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.info-list li:last-child { border-bottom: none; }
.info-list .label {
  color: var(--text-3);
}
.info-list .value {
  color: var(--text);
  word-break: break-all;
}
.about-text {
  color: var(--text-2);
  font-size: 15px;
}
.about-text p + p { margin-top: 12px; }

/* ===== 页脚 ===== */
.site-footer {
  background: #102814;
  color: rgba(255, 255, 255, 0.78);
  padding: 40px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand {
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links a { color: rgba(255, 255, 255, 0.78); font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  line-height: 1.9;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: #fff; }

/* ===== 协议页 ===== */
.legal-wrap {
  padding: 40px 0 72px;
}
.legal-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.legal-card h1 {
  font-size: 28px;
  margin-bottom: 8px;
}
.legal-meta {
  color: var(--text-3);
  font-size: 13px;
  margin-bottom: 28px;
}
.legal-card h2 {
  font-size: 18px;
  margin: 24px 0 10px;
  color: var(--primary);
}
.legal-card p,
.legal-card li {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 10px;
}
.legal-card ul {
  padding-left: 1.2em;
  margin-bottom: 12px;
}

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .hero-grid,
  .company-panel,
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .nav { display: none; }
  .hero { padding: 48px 0 56px; }
  .section { padding: 48px 0; }
  .legal-card { padding: 24px 18px; }
  .info-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
