/* ============================================================
   韭菜产业合作社 - 共享样式表
   绿色主题配色
   ============================================================ */

:root {
  --green-900: #14532d;
  --green-800: #166534;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-400: #4ade80;
  --green-300: #86efac;
  --green-200: #bbf7d0;
  --green-100: #dcfce7;
  --green-50:  #f0fdf4;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50:  #fafaf9;
  --white: #ffffff;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--stone-800);
  background: var(--stone-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--green-100);
  transition: box-shadow 0.3s;
}
.header.scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-800);
  letter-spacing: 1px;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--green-700);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}
.nav-list {
  display: flex;
  gap: 32px;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--stone-600);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--green-700);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--green-500);
  border-radius: 2px;
  transition: width 0.3s;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 24px; height: 2px;
  background: var(--stone-700);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Footer ===== */
.footer {
  background: var(--green-900);
  color: var(--green-100);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo {
  color: var(--green-200);
  margin-bottom: 16px;
}
.footer-brand p {
  color: var(--green-300);
  font-size: 0.9rem;
  line-height: 1.8;
}
.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-200);
  margin-bottom: 20px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--green-300);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-contact p {
  color: var(--green-300);
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  color: var(--green-400);
  font-size: 0.85rem;
}

.footer-bottom p + p {
  margin-top: 6px;
}

/* ===== Button Components ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  font-family: inherit;
}
.btn-primary {
  background: var(--green-700);
  color: white;
  box-shadow: 0 4px 14px rgba(21,128,61,0.3);
}
.btn-primary:hover {
  background: var(--green-800);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(21,128,61,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--green-700);
  border: 2px solid var(--green-200);
}
.btn-outline:hover {
  background: var(--green-50);
  border-color: var(--green-400);
}
.btn-white {
  background: white;
  color: var(--green-800);
}
.btn-white:hover {
  background: var(--green-50);
}

/* ===== Section Components ===== */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--white);
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 14px;
  line-height: 1.3;
}
.section-desc {
  color: var(--stone-500);
  font-size: 1.05rem;
}

/* ===== Cards ===== */
.card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--stone-200);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--green-100);
}
.card-body { padding: 24px; }
.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 10px;
}
.card-text {
  color: var(--stone-500);
  font-size: 0.92rem;
  line-height: 1.7;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--stone-400);
}

/* ===== Page Banner ===== */
.page-banner {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 100%);
  color: white;
  text-align: center;
}
.page-banner-title {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.page-banner-desc {
  font-size: 1.1rem;
  color: var(--green-200);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--stone-400);
  margin-bottom: 32px;
}
.breadcrumb a:hover { color: var(--green-600); }
.breadcrumb-sep { color: var(--stone-300); }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeInUp 0.6s ease-out both;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 20px 24px;
    gap: 0;
    border-bottom: 1px solid var(--stone-200);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }
  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--stone-100);
  }
  .nav-link:last-child { border-bottom: none; }
  .mobile-menu-btn { display: block; }
  .section { padding: 56px 0; }
  .section-title { font-size: 1.7rem; }
  .page-banner { padding: 110px 0 56px; }
  .page-banner-title { font-size: 1.9rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section-title { font-size: 1.5rem; }
  .btn { padding: 10px 20px; font-size: 0.9rem; }
}

/* ============================================================
   上线前打磨：无障碍、动效降级、细节状态
   ============================================================ */

:root {
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --focus-ring: rgba(34, 197, 94, 0.35);
}

html {
  -webkit-text-size-adjust: 100%;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.page-banner {
  position: relative;
}

.page-banner.has-bg {
  background-size: cover;
  background-position: center;
}

.page-banner.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20, 83, 45, 0.88) 0%, rgba(21, 128, 61, 0.78) 100%);
}

.page-banner > .container {
  position: relative;
  z-index: 1;
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  border: 1px solid var(--green-300);
  color: var(--green-800);
  font-size: 0.92rem;
  line-height: 1.6;
}

.form-success.visible {
  display: block;
}

.map-area {
  background-image:
    linear-gradient(135deg, rgba(220, 252, 231, 0.9), rgba(187, 247, 208, 0.9)),
    repeating-linear-gradient(90deg, rgba(21, 128, 61, 0.08) 0 2px, transparent 2px 44px),
    repeating-linear-gradient(0deg, rgba(21, 128, 61, 0.08) 0 2px, transparent 2px 38px);
  border: 1px solid var(--green-200);
  padding: 32px;
}

.map-area-inner {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px);
}

.map-area-inner svg {
  width: 42px;
  height: 42px;
  opacity: 0.85;
}

.map-area-inner h3 {
  font-size: 1.2rem;
  color: var(--green-900);
  margin: 10px 0 8px;
}

.map-area-inner p {
  color: var(--stone-600);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.map-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.map-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}

.map-actions .btn-primary {
  box-shadow: none;
}

.map-actions .btn-outline {
  border-width: 1px;
}

.tag-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--amber-400);
  color: #7c2d12;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.article-cover {
  position: relative;
  overflow: hidden;
  background-color: var(--green-100);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.article-cover::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(20, 83, 45, 0.35));
  pointer-events: none;
}

.news-card-img,
.product-card-img,
.about-img-main,
.product-visual,
.news-item-img,
.process-icon {
  background-color: var(--green-100);
  background-size: cover;
  background-position: center;
}

.footer-bottom a {
  color: var(--green-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 768px) {
  .article-cover {
    height: 230px !important;
  }

  .map-area {
    padding: 16px;
  }

  .map-area-inner {
    padding: 22px 18px;
  }
}
