/* 中农绿禾官网 — 静态页面样式 */

:root {
  --green-900: #1a3d2e;
  --green-800: #234d3a;
  --green-700: #2d6a4f;
  --green-600: #40916c;
  --green-500: #52b788;
  --green-100: #d8f3dc;
  --green-50: #f0faf4;
  --gold-500: #c9a227;
  --gold-400: #d4af37;
  --gold-100: #f5ecd2;
  --neutral-900: #1a1f1c;
  --neutral-700: #4a524d;
  --neutral-500: #6b756f;
  --neutral-200: #e2e8e4;
  --neutral-100: #f4f7f5;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(26, 61, 46, 0.06);
  --shadow-md: 0 8px 30px rgba(26, 61, 46, 0.1);
  --shadow-lg: 0 20px 60px rgba(26, 61, 46, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--neutral-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--neutral-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  width: min(1140px, calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--green-900);
}

.brand-text small {
  font-size: 0.7rem;
  color: var(--neutral-500);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--neutral-700);
  transition: color var(--transition);
}

.site-nav a:hover {
  color: var(--green-700);
}

.site-nav a.active {
  color: var(--green-700);
  font-weight: 600;
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--green-600);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
  min-width: 44px;
  min-height: 44px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26, 61, 46, 0.92) 0%, rgba(45, 106, 79, 0.85) 50%, rgba(64, 145, 108, 0.75) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white), transparent);
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
  margin-inline: auto;
  text-align: center;
  color: var(--white);
}

.hero-tag {
  display: inline-block;
  padding: 6px 18px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gold-500);
  color: var(--green-900);
  border-color: var(--gold-500);
}

.btn-primary:hover {
  background: var(--gold-400);
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-full {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-header.light {
  color: var(--white);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 12px;
}

.section-header.light .section-label {
  color: var(--gold-400);
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 16px;
}

.section-header.light h2 {
  color: var(--white);
}

.section-intro {
  font-size: 1.0625rem;
  color: var(--neutral-500);
  line-height: 1.85;
}

.section-header.light .section-intro {
  color: rgba(255, 255, 255, 0.8);
}

/* About */
.about {
  background: var(--neutral-100);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.about-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.about-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.about-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--green-900);
  margin-bottom: 12px;
}

.about-card p {
  font-size: 0.9375rem;
  color: var(--neutral-500);
  line-height: 1.8;
}

/* Research */
.research {
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-700) 100%);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.research-card {
  position: relative;
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: var(--transition);
  overflow: hidden;
}

.research-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.research-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
  margin-bottom: 16px;
}

.research-card h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 12px;
}

.research-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

/* Program */
.program-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 64px;
}

.program-intro h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--green-900);
  line-height: 1.3;
  margin-bottom: 20px;
}

.program-intro p {
  color: var(--neutral-500);
  margin-bottom: 24px;
}

.program-quote {
  padding: 20px 24px;
  border-left: 4px solid var(--gold-500);
  background: var(--gold-100);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--green-800);
  line-height: 1.75;
}

.program-features {
  display: grid;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--green-50);
  border-radius: var(--radius);
  border: 1px solid var(--green-100);
}

.feature-badge {
  flex-shrink: 0;
  padding: 6px 14px;
  background: var(--green-700);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
}

.feature-item p {
  font-size: 0.9375rem;
  color: var(--neutral-700);
  line-height: 1.75;
}

.program-flow h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--green-900);
  text-align: center;
  margin-bottom: 32px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.flow-steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: calc(100% / 12);
  width: calc(100% * 10 / 12);
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--green-100) 0%,
    var(--green-300) 50%,
    var(--green-100) 100%
  );
  border-radius: 2px;
  z-index: 0;
}

.flow-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  min-width: 0;
}

.flow-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--green-700);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--green-200);
  flex-shrink: 0;
}

.flow-step-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-900);
  line-height: 1.45;
  word-break: keep-all;
}

/* News */
.news {
  background: var(--neutral-100);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-card time {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green-600);
  margin-bottom: 12px;
}

.news-card h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--green-900);
  line-height: 1.5;
  margin-bottom: 12px;
}

.news-card p {
  font-size: 0.9375rem;
  color: var(--neutral-500);
  margin-bottom: 20px;
  line-height: 1.75;
}

.news-card a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-700);
  transition: color var(--transition);
}

.news-card a:hover {
  color: var(--gold-500);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--green-900);
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--neutral-500);
  margin-bottom: 32px;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-list strong {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-list span {
  font-size: 0.9375rem;
  color: var(--neutral-700);
}

.contact-note {
  font-size: 0.8125rem;
  color: var(--neutral-500);
  padding: 12px 16px;
  background: var(--neutral-100);
  border-radius: var(--radius);
}

.contact-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-200);
}

.contact-qrcode-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 24px;
}

.contact-qrcode-box {
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-qrcode-box img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 4px;
}

.contact-qrcode-tip {
  margin-top: 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--green-700);
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--green-800) 0%, var(--green-900) 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 calc(32px + env(safe-area-inset-bottom, 0));
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding-bottom: 28px;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.5;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--gold-400);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: center;
}

.footer-links a {
  font-size: 0.875rem;
  white-space: nowrap;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-copy,
.footer-icp {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.footer-icp {
  transition: color var(--transition);
}

.footer-icp:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 960px) {
  .about-grid,
  .research-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .flow-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 16px;
  }

  .flow-steps::before {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .container,
  .header-inner {
    width: calc(100% - 32px);
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0));
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-md);
    padding: 8px 0 calc(24px + env(safe-area-inset-bottom, 0));
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    display: block;
    padding: 16px 24px;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    min-height: 48px;
    border-bottom: 1px solid var(--neutral-100);
  }

  .site-nav a.active::after {
    display: none;
  }

  .site-nav a.active {
    background: var(--green-50);
    border-left: 3px solid var(--green-600);
    padding-left: 21px;
  }

  .brand-text small {
    font-size: 0.625rem;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0) + 40px) 16px 56px;
  }

  .hero-tag {
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(1.625rem, 7vw, 2.25rem);
    margin-bottom: 20px;
  }

  .hero-desc {
    font-size: 0.9375rem;
    line-height: 1.75;
    margin-bottom: 28px;
    text-align: left;
  }

  .hero-actions {
    margin-bottom: 40px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 28px;
  }

  .stat-num {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.6875rem;
    line-height: 1.4;
  }

  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
    text-align: left;
  }

  .section-intro {
    font-size: 0.9375rem;
  }

  .about-grid,
  .research-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .about-card,
  .news-card {
    padding: 28px 24px;
  }

  .research-card {
    padding: 28px 24px;
  }

  .program-layout {
    gap: 32px;
    margin-bottom: 48px;
  }

  .program-quote {
    padding: 16px 18px;
    font-size: 0.9375rem;
  }

  .feature-item {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .feature-badge {
    align-self: flex-start;
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }

  .flow-step-label {
    font-size: 0.8125rem;
  }

  .contact-layout {
    gap: 40px;
  }

  .contact-qrcode {
    padding: 32px 24px;
  }

  .contact-qrcode-box img {
    width: min(220px, 70vw);
    height: min(220px, 70vw);
  }

  .site-footer {
    padding-top: 40px;
  }

  .footer-brand strong {
    font-size: 0.9375rem;
    line-height: 1.5;
    padding-inline: 8px;
  }

  .footer-links {
    gap: 12px 20px;
  }

  .footer-bottom {
    padding-top: 20px;
  }
}

@media (max-width: 480px) {
  .container,
  .header-inner {
    width: calc(100% - 24px);
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-stats .stat {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
  }

  .hero-stats .stat-num {
    margin-bottom: 0;
    min-width: 3rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    padding: 14px 24px;
  }

  .flow-steps {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-inline: auto;
    gap: 0;
  }

  .flow-step {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 14px 0;
    border-bottom: 1px solid var(--green-100);
  }

  .flow-step:last-child {
    border-bottom: none;
  }

  .flow-step-num {
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }

  .news-card h3 {
    font-size: 1.0625rem;
  }
}

@media (max-width: 360px) {
  .brand-text small {
    display: none;
  }
}
