/* 基础样式：现代农业科技风，清爽而不花哨 */
:root {
  --primary: #2a3038;           /* 深灰蓝基底，降低与橙色冲突 */
  --primary-strong: #1a1f26;
  --brand: #e57a4c;             /* logo 橙色主色 */
  --brand-strong: #c45e34;      /* logo 橙加深，用于渐变 */
  --accent: #f0b272;            /* 暖色点缀，柔和过渡 */
  --text: #111827;
  --muted: #5f6b73;
  --surface: #ffffff;
  --surface-soft: #f9f6f3;
  --surface-ghost: #f2ebe5;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

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

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 18% 18%, rgba(229, 122, 76, 0.06), transparent 30%),
    radial-gradient(circle at 82% 0%, rgba(42, 48, 56, 0.08), transparent 34%),
    var(--surface-soft);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

main {
  flex: 1;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.menu {
  display: flex;
  gap: 8px;
}

.menu a {
  position: relative;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.1px;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.menu a:hover {
  background: rgba(229, 122, 76, 0.12);
  color: var(--brand-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(196, 94, 52, 0.15);
}

.menu a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 12px 26px rgba(196, 94, 52, 0.2);
}

.menu a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transform: scaleX(0);
  transform-origin: center;
  transition: none;
  opacity: 0;
}

.menu a:hover::after,
.menu a.active::after {
  transform: scaleX(0);
}

.hero {
  max-width: 1200px;
  margin: 80px auto 60px;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 38px;
  margin-bottom: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--primary-strong);
}

.hero-text p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* 通用动画类 */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  animation: slideInRight 0.8s ease forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(229, 122, 76, 0.16);
  color: var(--brand-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-card {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
}

.hero-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-card p {
  color: #fff3eb;
}

.section {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 32px;
}

.section h2 {
  font-size: 28px;
  margin-bottom: 32px;
  font-weight: 700;
  color: var(--primary-strong);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-grid .card {
  align-items: center;
  text-align: center;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 12px;
}

.card h3 {
  font-size: 18px;
  text-align: center;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.link {
  color: var(--brand-strong);
  font-weight: 600;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* 新闻资讯卡片样式 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

.news-image {
  width: 100%;
  height: 220px;
  background: var(--surface-ghost);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.news-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.news-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-strong);
  line-height: 1.4;
  margin: 0;
}

.news-excerpt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.news-content .tag {
  align-self: flex-start;
  margin-top: auto;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(229, 122, 76, 0.12);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

footer {
  margin-top: 80px;
  padding: 50px 32px 40px;
  background: rgb(66, 66, 66);
  color: #e6e9ef;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  align-items: center;
}

.footer-copyright {
  color: #e6e9ef;
  font-size: 14px;
  margin: 0;
  font-weight: 500;
}

.footer-address {
  color: #cbd5e1;
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

.footer-contact {
  color: #cbd5e1;
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  color: #e6e9ef;
}

.footer-links a:hover {
  color: #ffffff;
}

.cta {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.22);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* 首页全宽轮播 */
.slider {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
  background: #0d1b13;
}

.slider-track {
  display: grid;
}

.slide {
  position: relative;
  width: 100%;
  min-height: 690px;
  display: none;
}

.slide.active {
  display: block;
}

.slide-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active .slide-image {
  opacity: 1;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.55));
}

.slide-overlay {
  position: relative;
  z-index: 2;
  color: #e9f4ec;
  max-width: 900px;
  padding: 130px 64px 110px;
  animation: textFadeUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(12px);
}

.slide.active .slide-overlay {
  opacity: 1;
  transform: translateY(0);
}

.slide-overlay .badge {
  background: rgba(20, 184, 166, 0.18);
  color: #9bf6d0;
}

.slide-overlay h2 {
  margin-top: 12px;
  font-size: 36px;
  line-height: 1.35;
  font-weight: 700;
}

.slide-overlay p {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.6;
  max-width: 560px;
  color: #d5e9dc;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.slider-dots button.active {
  background: #a1ffce;
  transform: scale(1.2);
}

@keyframes textFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 移动端优先的适配 */
@media (max-width: 900px) {
  .nav {
    padding: 14px 18px;
  }
  .hero {
    margin: 50px auto 40px;
    padding: 32px 24px;
    gap: 28px;
  }
  .section {
    padding: 0 24px;
    margin-bottom: 48px;
  }
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
  }
  .card img {
    height: 180px;
  }
  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
  }
  .news-image {
    height: 200px;
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.55;
  }
  header {
    position: sticky;
  }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .menu {
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero {
    margin: 40px auto 32px;
    padding: 24px 18px;
  }
  .hero-text h1 {
    font-size: 28px;
  }
  .badge {
    font-size: 11px;
  }
  .section h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }
  .slider {
    margin-bottom: 24px;
  }
  .slide {
    min-height: 320px;
  }
  .slide-overlay {
    padding: 80px 20px 72px;
  }
  .slide-overlay h2 {
    font-size: 26px;
    line-height: 1.35;
  }
  .slide-overlay p {
    font-size: 15px;
    line-height: 1.55;
    max-width: 90%;
  }
  .slider-dots {
    bottom: 14px;
  }
  .card {
    padding: 20px;
    gap: 10px;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .news-image {
    height: 180px;
  }
  .news-content {
    padding: 16px;
  }
  .news-content h3 {
    font-size: 16px;
  }
  .news-excerpt {
    font-size: 13px;
  }
  .footer-info {
    text-align: center;
    align-items: center;
  }
  footer {
    padding: 40px 24px 32px;
  }
}

.detail-hero {
  max-width: 1100px;
  margin: 50px auto 32px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: center;
}

.detail-hero img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  background: var(--surface-ghost);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.detail-hero img:hover {
  transform: translateY(-3px) scale(1.01);
}

.detail-meta {
  display: grid;
  gap: 12px;
}

.detail-actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
}

@media (max-width: 640px) {
  .detail-actions {
    justify-content: flex-start;
  }
}

.spec {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface-ghost);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}

.detail-images {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
  align-items: center;
}

/* 横屏图片：100%宽度，完全展示 */
.desc-image-horizontal {
  width: 100%;
  display: block;
  object-fit: contain;
  background: var(--surface-ghost);
  margin: 0;
  padding: 0;
}

/* 竖屏图片：多张竖向无缝拼接 */
.desc-image-vertical {
  width: 100%;
  display: block;
  object-fit: contain;
  background: var(--surface-ghost);
  margin: 0;
  padding: 0;
}

/* 兼容旧数据格式 */
.desc-image:not(.desc-image-horizontal):not(.desc-image-vertical) {
  width: 100%;
  display: block;
  object-fit: contain;
  background: var(--surface-ghost);
  margin: 0;
  padding: 0;
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .menu {
    flex-wrap: wrap;
  }
}

