/* ============================================
   荣林粮贸通 - 品牌官网样式 v2
   Organic/Natural Aesthetic
   cloud1-d5gp2c7m43aed59ac-1434521935.tcloudbaseapp.com
   ============================================ */

/* === CSS Variables === */
:root {
  --green-deep: #1E3D23;
  --green: #3A7D44;
  --green-light: #4CAF50;
  --green-pale: #E8F5E9;
  --gold: #D4A853;
  --gold-dark: #B8923A;
  --gold-light: #F5E6C8;
  --cream: #F5F0E8;
  --cream-warm: #EDE4D3;
  --white: #FFFFFF;
  --carbon: #2C2C2C;
  --slate: #5C6B5E;
  --slate-light: #8A9B8C;
  --border-subtle: rgba(30, 61, 35, 0.08);
  --border-soft: rgba(30, 61, 35, 0.12);

  --font-heading: 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(30, 61, 35, 0.06);
  --shadow: 0 4px 12px rgba(30, 61, 35, 0.08);
  --shadow-lg: 0 12px 32px rgba(30, 61, 35, 0.1);
  --shadow-card: 0 2px 16px rgba(30, 61, 35, 0.06), 0 0 0 1px rgba(30, 61, 35, 0.04);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--carbon);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}
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 28px;
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 1160px;
  transition: var(--ease);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: blur(24px) saturate(2);
  -webkit-backdrop-filter: blur(24px) saturate(2);
  border: 1px solid rgba(30, 61, 35, 0.08);
  border-radius: 100px;
  transition: var(--ease);
}
.navbar.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 24px rgba(30, 61, 35, 0.1);
  border-color: rgba(30, 61, 35, 0.12);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo { flex-shrink: 0; }
.brand-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.02em;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  transition: var(--ease);
}
.nav-links a:hover { color: var(--green-deep); background: var(--green-pale); }
.nav-cta {
  background: var(--green-deep) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  margin-left: 8px;
  display: flex !important;
  align-items: center;
  gap: 6px;
}
.nav-cta:hover {
  background: #2a502f !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(30, 61, 35, 0.3) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: var(--ease);
}

/* ===== Hero 主视觉 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 160px 0 80px;
  background: linear-gradient(175deg, var(--cream-warm) 0%, var(--cream) 30%, var(--white) 100%);
  overflow: hidden;
}

/* 飘浮谷物 */
.hero-grain {
  position: absolute;
  opacity: 0.07;
  animation: grainFloat 10s ease-in-out infinite;
  font-size: 4rem;
  pointer-events: none;
  user-select: none;
}
.hero-grain-1 { top: 12%; left: 6%; animation-delay: 0s; }
.hero-grain-2 { top: 55%; left: 80%; animation-delay: 1.5s; font-size: 3.5rem; opacity: 0.05; }
.hero-grain-3 { top: 22%; left: 72%; animation-delay: 3s; font-size: 2.5rem; opacity: 0.06; }
.hero-grain-4 { top: 65%; left: 8%; animation-delay: 4.5s; font-size: 3rem; opacity: 0.05; }
.hero-grain-5 { top: 40%; left: 45%; animation-delay: 6s; font-size: 2.8rem; opacity: 0.04; }

@keyframes grainFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-20px) rotate(6deg); }
  60% { transform: translateY(12px) rotate(-4deg); }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* 左栏 */
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kicker-line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.hero-heading {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--green-deep);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero-em {
  display: block;
  color: var(--gold-dark);
  margin-top: 4px;
}
.hero-em-2 {
  font-size: 0.9em;
  opacity: 0.7;
  margin-top: 2px;
}
.hero-desc {
  font-size: 1.08rem;
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 按钮 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--green-deep);
  color: var(--white);
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--ease);
  box-shadow: 0 4px 16px rgba(30, 61, 35, 0.25);
}
.btn-primary:hover {
  background: #2a502f;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(30, 61, 35, 0.35);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--green-deep);
  border: 2px solid rgba(30, 61, 35, 0.2);
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--ease);
}
.btn-outline:hover {
  background: var(--green-pale);
  border-color: var(--green);
  transform: translateY(-2px);
}
.btn-block {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* 右栏浮动卡片 */
.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}
.hero-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  transition: var(--ease);
}
.hero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hero-card-1 { align-self: flex-start; animation: cardIn 0.6s ease 0.2s both; }
.hero-card-2 { align-self: flex-end; margin-right: 40px; animation: cardIn 0.6s ease 0.4s both; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--green);
  flex-shrink: 0;
}
.hero-card-info { flex: 1; }
.hero-card-val {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--carbon);
  line-height: 1;
}
.hero-card-val small { font-size: 0.8rem; font-weight: 400; color: var(--slate-light); margin-left: 4px; }
.hero-card-label {
  display: block;
  font-size: 0.82rem;
  color: var(--slate-light);
  margin-top: 4px;
}
.hero-card-trend {
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--green-pale);
  color: var(--green);
}
.hero-dot-pattern {
  position: absolute;
  width: 120px;
  height: 120px;
  right: -20px;
  bottom: -40px;
  background-image: radial-gradient(rgba(30, 61, 35, 0.08) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  z-index: -1;
}

/* 统计栏 */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 80px;
  position: relative;
  z-index: 2;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
}
.stat-val {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--green-deep);
  line-height: 1;
}
.stat-plus { font-size: 1rem; font-weight: 500; color: var(--slate-light); margin-left: 2px; }
.stat-lbl {
  font-size: 0.85rem;
  color: var(--slate-light);
  margin-top: 6px;
  font-weight: 500;
}
.stat-sep {
  width: 1px;
  height: 48px;
  background: var(--border-soft);
}

/* 波浪分割 */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}
.wave-divider-up {
  top: -1px;
  bottom: auto;
}

/* ===== 通用区块标题 ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.section-tag i { color: var(--gold-dark); font-size: 0.8rem; }
.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green-deep);
  margin-bottom: 12px;
  line-height: 1.3;
}
.title-accent {
  color: var(--gold-dark);
  position: relative;
}
.title-accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-light);
  border-radius: 2px;
  z-index: -1;
}
.section-sub {
  font-size: 1.02rem;
  color: var(--slate-light);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== 数据模块 Features ===== */
.features {
  padding: 120px 0;
  background: var(--cream);
  position: relative;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.feat-card {
  display: flex;
  gap: 24px;
  padding: 36px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  transition: var(--ease);
  position: relative;
  overflow: hidden;
}
.feat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(30,61,35,0.02));
  pointer-events: none;
}
.feat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feat-card-right { margin-top: -16px; }

.feat-icon-wrap {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.feat-icon-green { background: #E8F5E9; color: var(--green); }
.feat-icon-gold { background: #FFF8E1; color: var(--gold-dark); }
.feat-icon-teal { background: #E0F2F1; color: #00796B; }
.feat-icon-dark { background: #ECEFF1; color: #37474F; }

.feat-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 8px;
}
.feat-content p {
  font-size: 0.92rem;
  color: var(--slate);
  margin-bottom: 16px;
  line-height: 1.7;
}
.feat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feat-meta span {
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--slate-light);
  background: var(--cream);
  border-radius: 100px;
  font-weight: 500;
}
.feat-meta span i { color: var(--green); font-size: 0.65rem; margin-right: 2px; }

/* ===== 平台优势 Highlights ===== */
.highlights {
  padding: 120px 0;
  background: var(--white);
  position: relative;
}
.hl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.hl-item {
  padding: 40px 32px;
  background: var(--cream);
  border-radius: var(--radius-xl);
  transition: var(--ease);
  position: relative;
  overflow: hidden;
}
.hl-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--ease);
}
.hl-item:hover { background: var(--white); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.hl-item:hover::before { transform: scaleX(1); }

.hl-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(30, 61, 35, 0.05);
  position: absolute;
  top: 12px;
  right: 24px;
  line-height: 1;
  pointer-events: none;
}
.hl-icon {
  font-size: 1.6rem;
  color: var(--green);
  margin-bottom: 16px;
}
.hl-item h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 8px;
}
.hl-item p {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.7;
}

/* ===== 使用入口 Access ===== */
.access {
  padding: 120px 0;
  background: var(--cream);
}
.access-grid {
  display: flex;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}
.access-card {
  padding: 44px;
  border-radius: var(--radius-xl);
  transition: var(--ease);
  display: flex;
  flex-direction: column;
  width: 100%;
}
.access-card:hover { transform: translateY(-4px); }
.access-mini {
  background: linear-gradient(155deg, #E8F5E9 0%, #DCEDC8 40%, #C8E6C9 100%);
  border: 2px solid rgba(58, 125, 68, 0.15);
}

.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.7);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 16px;
}
.access-top h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 6px;
}
.access-top p {
  font-size: 0.92rem;
  color: var(--slate);
  margin-bottom: 28px;
}

/* 二维码 */
.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}
.qr-code {
  width: 220px;
  height: 220px;
  padding: 10px;
  background: var(--white);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(30, 61, 35, 0.12);
  border: 3px solid rgba(30, 61, 35, 0.12);
  overflow: hidden;
}
.qr-code canvas,
.qr-code img {
  border-radius: 12px;
}
.qr-code img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.qr-code i { font-size: 3.5rem; }
.qr-code span { font-size: 0.78rem; font-weight: 500; }

.qr-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--green-deep);
  font-weight: 600;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.qr-hint::before {
  content: '📱';
  font-size: 1rem;
}

.qr-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--slate-light);
  margin-top: 16px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.5);
  border-radius: 8px;
  line-height: 1.5;
}

.access-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.access-tags span {
  padding: 8px 16px;
  background: rgba(255,255,255,0.75);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--green-deep);
  font-weight: 500;
}

/* ===== 厂家 ===== */
.factories {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
  position: relative;
}
.factory-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 750px;
  margin: 0 auto;
}
.ft {
  padding: 12px 26px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate);
  transition: var(--ease);
  cursor: default;
}
.ft:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(30, 61, 35, 0.25);
}

/* ===== 页脚 ===== */
.footer {
  background: var(--green-deep);
  color: rgba(245, 240, 232, 0.75);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(212, 168, 83, 0.15);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 16px;
}
.footer-col-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.55);
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: rgba(245, 240, 232, 0.55);
  padding: 4px 0;
  transition: var(--ease);
}
.footer-col a:hover { color: var(--gold); padding-left: 4px; }
.footer-col a i { font-size: 0.6rem; opacity: 0.5; }
.footer-col p {
  font-size: 0.88rem;
  color: rgba(245,240,232,0.5);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col p i { color: var(--gold); font-size: 0.85rem; width: 18px; }
.footer-bottom {
  padding: 28px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.3);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-right { align-items: center; }
  .hero-card-1, .hero-card-2 { align-self: center; }
  .hero-card-2 { margin-right: 0; }
  .hero-desc { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-kicker { justify-content: center; }

  .features-grid { grid-template-columns: 1fr; }
  .feat-card-right { margin-top: 0; }
  .hl-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar { width: calc(100% - 32px); top: 10px; }
  .nav-inner { padding: 12px 20px; }
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 80px;
    left: 16px; right: 16px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-lg);
    flex-direction: column;
    padding: 16px;
    gap: 2px;
    display: none;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; text-align: center; padding: 14px; }
  .nav-cta { margin-left: 0; }

  .hero-heading { font-size: 2.4rem; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-sep { display: none; }
  .stat-item { padding: 0 20px; }

  .section-title { font-size: 1.8rem; }
  .hl-grid { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .features, .highlights, .access, .factories { padding: 72px 0; }
}

@media (max-width: 480px) {
  .hero-heading { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { justify-content: center; }
  .feat-card { flex-direction: column; padding: 28px; }
  .access-card { padding: 28px; }
  .factory-cloud { gap: 8px; }
  .ft { font-size: 0.82rem; padding: 10px 18px; }
  .section-title { font-size: 1.6rem; }
}
