/* ──────────────────────────────────────────────
   一网天行 · 生鲜配送ERP系统 官网
   HTML + CSS + JS 静态版
   ────────────────────────────────────────────── */

:root {
  --green-dark: #0c2a18;
  --green-primary: #1a5c33;
  --green: #25a84e;
  --green-bright: #6ddf97;
  --green-light: #e6f2eb;
  --green-border: #cde0d3;
  --ink: #0f1f12;
  --muted: #5a7060;
  --bg-soft: #f5f8f5;
  --white: #ffffff;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-display: 'Outfit', 'Noto Sans SC', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-soft);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--green-border); border-radius: 3px; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Shared buttons ─────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 12px;
  padding: 14px 32px;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green-primary); color: #fff; }
.btn-primary:hover { background: #154d2a; }
.btn-outline { color: var(--green-primary); border: 1px solid var(--green-primary); background: transparent; }
.btn-outline:hover { background: var(--green-light); }
.btn-green { background: var(--green); color: #fff; font-weight: 500; }
.btn-green:hover { background: #1d9042; box-shadow: 0 10px 24px rgba(37,168,78,.3); transform: translateY(-2px); }
.btn-ghost { color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.02); backdrop-filter: blur(4px); }
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-white { background: #fff; color: var(--green-primary); font-weight: 600; }
.btn-white:hover { background: var(--green-light); box-shadow: 0 14px 30px rgba(0,0,0,.18); transform: translateY(-2px); }
.btn-ghost-dark { color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.1); }
.btn-line { color: var(--green-primary); border: 1px solid var(--green-primary); font-size: 14px; padding: 10px 20px; border-radius: 10px; }
.btn-line:hover { background: var(--green-light); }

/* ── Section scaffolding ────────────────────── */
.section { padding: 96px 0; }
.bg-white { background: #fff; }
.bg-soft { background: var(--bg-soft); }
.bg-dark { background: var(--green-dark); position: relative; overflow: hidden; }

.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { font-size: 36px; font-weight: 700; color: var(--ink); margin-bottom: 16px; letter-spacing: -.5px; }
.section-head h2.light { color: #fff; }
.section-head p { color: var(--muted); max-width: 576px; margin: 0 auto; }
.section-head p.light-60 { color: rgba(255,255,255,.5); }

/* ── HERO ───────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--green-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hero-dots {
  position: absolute; inset: 0;
  opacity: .2;
  background-image: radial-gradient(circle at center, rgba(37,168,78,.15) 1px, transparent 1.5px);
  background-size: 32px 32px;
}
.hero-glow {
  position: absolute; top: 0; right: 0;
  width: 50%; height: 100%;
  opacity: .1;
  background: radial-gradient(ellipse at top right, var(--green) 0%, transparent 70%);
}
.hero-inner {
  position: relative; z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 24px 64px;
  width: 100%;
}
.hero-text { flex: 1; min-width: 0; }
.hero-text h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.15;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 24px;
}
.hero-text .green { color: var(--green); }
.hero-text .white-dim { color: rgba(255,255,255,.8); }
.hero-lead { font-size: 20px; color: rgba(255,255,255,.6); line-height: 1.7; font-weight: 300; margin-bottom: 16px; }
.hero-sub { font-size: 14px; color: rgba(255,255,255,.4); line-height: 1.8; margin-bottom: 40px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-scroll {
  position: relative; z-index: 10;
  display: flex; justify-content: center;
  padding-bottom: 32px;
}
.mouse {
  width: 24px; height: 40px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  display: flex; justify-content: center; padding-top: 8px;
}
.mouse span {
  width: 4px; height: 8px;
  border-radius: 2px;
  background: rgba(255,255,255,.4);
  animation: scrollHint 1.6s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* hero dashboard */
.hero-dashboard { display: none; flex: 1; align-items: center; justify-content: center; }

@media (min-width: 1024px) {
  .hero-inner { padding-top: 120px; }
  .hero-dashboard { display: flex; }
  .hero-text h1 { font-size: 60px; }
}

/* ── ERP dashboard card ─────────────────────── */
.erp-card {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(12px);
  overflow: hidden;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.4));
  user-select: none;
}
.erp-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.erp-dots { display: flex; gap: 6px; }
.erp-dots span { width: 10px; height: 10px; border-radius: 50%; opacity: .7; }
.erp-dots span:nth-child(1) { background: rgba(248,113,113,.7); }
.erp-dots span:nth-child(2) { background: rgba(250,204,21,.7); }
.erp-dots span:nth-child(3) { background: rgba(74,222,128,.7); }
.erp-title { font-family: var(--font-display); font-size: 12px; color: rgba(255,255,255,.4); }
.erp-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--green); }
.erp-status .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.erp-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.metric { background: rgba(255,255,255,.03); padding: 12px; min-width: 0; }
.m-label { display: block; font-size: 12px; color: rgba(255,255,255,.4); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-value { display: block; font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1; color: #fff; white-space: nowrap; }
.m-value em { font-style: normal; font-weight: 400; font-size: 12px; color: rgba(255,255,255,.3); margin-left: 2px; }

.erp-flow-wrap { padding: 16px 16px 8px; }
.erp-section-title { font-size: 12px; color: rgba(255,255,255,.3); margin-bottom: 12px; }
.erp-flow { width: 100%; display: block; overflow: visible; }

.erp-edge { stroke: rgba(255,255,255,.1); stroke-width: 1; stroke-dasharray: 4 4; transition: stroke .4s, stroke-width .4s; }
.erp-edge.active { stroke: url(#edgeActive); stroke-width: 2; stroke-dasharray: none; }
.erp-dot { transition: opacity .3s; }

.erp-node rect {
  fill: rgba(255,255,255,.04);
  stroke: rgba(255,255,255,.12);
  stroke-width: 1;
  transition: fill .4s, stroke .4s;
}
.erp-node .n-label {
  fill: rgba(255,255,255,.6);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  text-anchor: middle;
  transition: fill .4s;
}
.erp-node .n-sub {
  fill: rgba(255,255,255,.3);
  font-size: 10px;
  font-family: var(--font-sans);
  text-anchor: middle;
  transition: fill .4s;
}
.erp-node.active rect { fill: rgba(37,168,78,.25); stroke: var(--green); stroke-width: 1.5; }
.erp-node.active .n-label { fill: #fff; }
.erp-node.active .n-sub { fill: rgba(37,168,78,.9); }

.erp-chart { padding: 0 16px 16px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.bar-fill {
  width: 100%;
  border-radius: 2px;
  background: rgba(255,255,255,.15);
  height: 0;
  transition: height .7s ease;
}
.bar-fill.today { background: var(--green); }
.bar i { font-style: normal; font-size: 9px; color: rgba(255,255,255,.25); }

/* ── Advantages ─────────────────────────────── */
.grid-adv { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .grid-adv { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-adv { grid-template-columns: repeat(4, 1fr); } }

.adv-card {
  border: 1px solid var(--green-border);
  border-radius: 16px;
  padding: 24px;
  background: #fff;
  transition: all .3s ease;
}
.adv-card:hover {
  border-color: var(--green-primary);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(26,92,51,.1);
}
.adv-icon { width: 40px; height: 40px; margin-bottom: 16px; }
.adv-icon svg { width: 100%; height: 100%; }
.green-600 { color: #059669; }
.amber-500 { color: #f59e0b; }
.blue-500 { color: #3b82f6; }
.purple-500 { color: #a855f7; }
.adv-card h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.card-sub { font-size: 12px; font-weight: 500; color: var(--green); margin-bottom: 12px; }
.card-desc { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ── Features ───────────────────────────────── */
.features { display: flex; flex-direction: column; gap: 16px; }
.feature-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.feature-tabs::-webkit-scrollbar { display: none; }
.feature-tab {
  display: flex; align-items: center; gap: 8px;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--green-border);
  flex-shrink: 0;
  white-space: nowrap;
  transition: all .2s ease;
}
.feature-tab:hover { background: var(--green-light); color: var(--green-primary); }
.feature-tab.active { background: var(--green-primary); color: #fff; box-shadow: 0 8px 20px rgba(26,92,51,.25); }
.tab-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--green); }
.feature-tab.active .tab-icon { color: rgba(255,255,255,.8); }
.tab-icon svg { width: 100%; height: 100%; }

.feature-panel { background: #fff; border: 1px solid var(--green-border); border-radius: 16px; padding: 32px; }
.fp-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.fp-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--green-light);
  color: var(--green-primary);
  display: flex; align-items: center; justify-content: center;
}
.fp-icon svg { width: 24px; height: 24px; }
.fp-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.fp-sub { font-size: 14px; font-weight: 500; color: var(--green); }
.fp-desc { font-size: 16px; color: var(--muted); line-height: 1.9; }
.fp-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.fp-tags span {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--green-border);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ── Multi-endpoint ─────────────────────────── */
.dark-dots {
  position: absolute; inset: 0;
  opacity: .1;
  background-image: radial-gradient(circle at center, rgba(37,168,78,.3) 1px, transparent 1.5px);
  background-size: 24px 24px;
}
.bg-dark .container { position: relative; z-index: 1; }

.grid-endpoints { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .grid-endpoints { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-endpoints { grid-template-columns: repeat(4, 1fr); } }

.endpoint-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 24px;
  transition: all .25s ease;
}
.endpoint-card:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.endpoint-card h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.endpoint-card p { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.8; }

/* ── Deployment ─────────────────────────────── */
.grid-deploy { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .grid-deploy { grid-template-columns: repeat(3, 1fr); } }

.deploy-card {
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--green-border);
  background: var(--bg-soft);
  color: var(--ink);
  transition: all .25s ease;
}
.deploy-card:hover { border-color: var(--green-primary); }
.deploy-card.featured { background: var(--green-primary); border-color: var(--green-primary); color: #fff; }
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--green-light);
  color: var(--green-primary);
  margin-bottom: 16px;
}
.badge.light { background: rgba(255,255,255,.2); color: #fff; }
.deploy-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.deploy-card > p { font-size: 14px; line-height: 1.8; margin-bottom: 24px; color: var(--muted); }
.deploy-card.featured > p { color: rgba(255,255,255,.7); }
.deploy-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.deploy-card li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.deploy-card.featured li { color: rgba(255,255,255,.8); }
.deploy-card .check { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }
.deploy-card.featured .check { color: var(--green-bright); }
.deploy-card .check svg { width: 100%; height: 100%; }

/* ── Solutions ──────────────────────────────── */
.solutions { display: flex; flex-direction: column; gap: 24px; }
.solution-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; flex-shrink: 0; scrollbar-width: none; }
.solution-tabs::-webkit-scrollbar { display: none; }
.solution-tab {
  display: flex; align-items: center; gap: 8px;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--green-border);
  white-space: nowrap;
  min-width: max-content;
  transition: all .2s ease;
}
.solution-tab:hover { background: var(--green-light); }
.solution-tab.active { background: var(--green-primary); color: #fff; }
.solution-tab .tag {
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--green-light);
  color: var(--green);
  flex-shrink: 0;
}
.solution-tab.active .tag { background: rgba(255,255,255,.2); color: #fff; }

.solution-panel {
  flex: 1;
  background: #fff;
  border: 1px solid var(--green-border);
  border-radius: 16px;
  padding: 32px;
}
.sol-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--green-light);
  color: var(--green-primary);
  margin-bottom: 16px;
}
.sol-title { font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.sol-desc { font-size: 16px; color: var(--muted); line-height: 1.9; }
.solution-panel .btn-line { margin-top: 32px; }

@media (min-width: 1024px) {
  .solutions { flex-direction: row; }
  .solution-tabs { flex-direction: column; width: 224px; }
  .solution-tab { white-space: normal; min-width: 0; }
}

/* ── Service process ────────────────────────── */
.process { position: relative; }
.process-line { display: none; position: absolute; top: 24px; left: 0; right: 0; height: 1px; background: var(--green-border); margin: 0 3.5%; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(9, 1fr); } .process-line { display: block; } }
.step { display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--green-light);
  border: 2px solid var(--green-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  position: relative;
  z-index: 1;
}
.step p { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.3; }

/* ── CTA ────────────────────────────────────── */
.cta { background: var(--green-primary); position: relative; overflow: hidden; }
.cta-dots {
  position: absolute; inset: 0;
  opacity: .1;
  background-image: radial-gradient(circle at center, #fff 1px, transparent 1.5px);
  background-size: 28px 28px;
}
.cta-inner { position: relative; z-index: 1; text-align: center; max-width: 768px; }
.cta-inner h2 { font-size: 36px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: -.5px; }
.cta-inner > p { font-size: 18px; color: rgba(255,255,255,.6); margin-bottom: 40px; }
.cta-btns { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
@media (min-width: 640px) { .cta-btns { flex-direction: row; } }

/* ── Scroll reveal ──────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mouse span { animation: none; }
}
