/* ========================================
   广西小虎农业科技有限公司 - 官网样式
   ======================================== */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #2d8c4a;
  --green-dark: #1a5c30;
  --green-light: #e8f5e9;
  --accent: #f5a623;
  --accent-hover: #e09510;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --gray-bg: #f5f7f6;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  position: relative;
  transition: color 0.3s;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.3s;
}

.nav a:hover,
.nav a.active {
  color: var(--green);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ---- Hero Section ---- */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(135deg, #0d3b1e 0%, #1a5c30 40%, #2d8c4a 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  flex: 1;
  color: var(--white);
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hero-image {
  flex: 0 0 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ---- Section Common ---- */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Features ---- */
.features {
  background: var(--gray-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--green-dark);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ---- Products Page ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.product-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--gray-bg);
}

.product-body {
  padding: 24px;
}

.product-body h3 {
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.product-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.product-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- About Page ---- */
.about-intro {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.about-intro-img {
  flex: 0 0 460px;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-intro-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.about-intro-text {
  flex: 1;
}

.about-intro-text h2 {
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 20px;
}

.about-intro-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.value-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--green-light);
  border-radius: var(--radius);
}

.value-card .number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green);
}

.value-card .label {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* ---- Contact Page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  padding: 40px;
  background: var(--green-light);
  border-radius: var(--radius);
}

.contact-info h3 {
  font-size: 1.3rem;
  color: var(--green-dark);
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item .info h4 {
  font-size: 0.95rem;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.contact-item .info p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact-form {
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.3rem;
  color: var(--green-dark);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---- Footer ---- */
.footer {
  background: #0d3b1e;
  color: rgba(255, 255, 255, 0.8);
  padding: 50px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* ---- Page Banner (内页) ---- */
.page-banner {
  height: 320px;
  background: linear-gradient(135deg, #0d3b1e 0%, #2d8c4a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.page-banner h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-banner p {
  opacity: 0.8;
  font-size: 1.05rem;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    max-width: 100%;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-image {
    flex: 0 0 auto;
    max-width: 320px;
    margin-top: 20px;
  }
  .about-intro {
    flex-direction: column;
  }
  .about-intro-img {
    flex: 0 0 auto;
    width: 100%;
  }
  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  .nav.open {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
  .hero {
    min-height: 500px;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-image {
    display: none;
  }
  .section {
    padding: 50px 0;
  }
  .section-header h2 {
    font-size: 1.6rem;
  }
  .features-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-intro-img img {
    height: 240px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .page-banner {
    height: 220px;
  }
  .page-banner h1 {
    font-size: 1.8rem;
  }
}
