/* ============================================================
   正仓WMS 官网样式
   设计原则：首屏直击痛点，功能一眼看清，CTA贯穿始终
   ============================================================ */

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

:root {
  --primary:   #2563eb;
  --primary-d: #1d4ed8;
  --green:     #10b981;
  --red:       #ef4444;
  --text:      #111827;
  --muted:     #6b7280;
  --bg:        #f8fafc;
  --white:     #ffffff;
  --border:    #e5e7eb;
  --radius:    12px;
  --shadow:    0 2px 8px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
               'Microsoft YaHei', 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--primary-d); transform: translateY(-2px); }

.btn-ghost {
  display: inline-block;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: all .2s;
}
.btn-ghost:hover { background: var(--primary); color: #fff; }

/* ===== 通用标题 ===== */
.section-title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 48px;
}
.highlight { color: var(--primary); }
.highlight-white { color: #fff; text-decoration: underline; }

/* ===== 导航 ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
}
.logo-emoji { font-size: 26px; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.btn-nav {
  background: var(--primary);
  color: #fff;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s;
}
.btn-nav:hover { background: var(--primary-d); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
  color: #fff;
  padding: 80px 0 72px;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-text { flex: 1; }
.badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: .5px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 .highlight { color: #facc15; }
.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,.88);
  margin-bottom: 28px;
  line-height: 1.75;
}
.hero-checks {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-checks li {
  font-size: 16px;
  color: rgba(255,255,255,.9);
  font-weight: 500;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-primary { background: #facc15; color: #111; font-size: 17px; padding: 16px 32px; }
.hero .btn-primary:hover { background: #eab308; }
.hero .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); }

.hero-qr {
  flex-shrink: 0;
  text-align: center;
}
.hero-qr img {
  border-radius: 16px;
  border: 4px solid rgba(255,255,255,.3);
  width: 200px;
  height: 200px;
  object-fit: cover;
}
.qr-label {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
}
.qr-sub {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}

/* ===== 信任带 ===== */
.trust-bar {
  background: var(--primary);
  color: #fff;
  padding: 24px 0;
}
.trust-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}
.trust-item {
  text-align: center;
  min-width: 120px;
}
.trust-item strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
}
.trust-item span {
  font-size: 13px;
  opacity: .85;
}

/* ===== 痛点 ===== */
.pain {
  background: #fff;
  padding: 80px 0;
}
.pain .section-title { color: #dc2626; }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.pain-card {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pain-emoji { font-size: 40px; margin-bottom: 14px; }
.pain-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.pain-card p  { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.pain-loss {
  display: inline-block;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ===== 功能 ===== */
.features {
  background: var(--bg);
  padding: 80px 0;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.feat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feat-card.feat-highlight {
  border-color: var(--primary);
  background: #eff6ff;
}
.feat-icon { font-size: 38px; margin-bottom: 14px; }
.feat-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feat-card p  { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.feat-tag {
  display: inline-block;
  background: #dbeafe;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .3px;
}
.feat-card.feat-highlight .feat-tag {
  background: var(--primary);
  color: #fff;
}

/* ===== Before / After ===== */
.before-after {
  background: var(--white);
  padding: 80px 0;
}
.ba-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.ba-col { display: flex; flex-direction: column; }
.ba-header {
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}
.ba-before .ba-header { background: #fef2f2; color: #dc2626; }
.ba-after  .ba-header { background: #f0fdf4; color: #16a34a; }
.ba-row {
  padding: 14px 24px;
  font-size: 15px;
  border-top: 1px solid var(--border);
}
.ba-before .ba-row { background: #fff; color: var(--muted); }
.ba-after  .ba-row { background: #f0fdf4; color: #15803d; font-weight: 600; }

/* ===== 行业 ===== */
.industries {
  background: var(--bg);
  padding: 80px 0;
}
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.ind-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.ind-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ind-card span { font-size: 44px; display: block; margin-bottom: 14px; }
.ind-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.ind-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ===== FAQ ===== */
.faq { background: var(--white); padding: 80px 0; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--primary);
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] { border-color: var(--primary); }
.faq-item p, .faq-item ul, .faq-item ol {
  padding: 0 24px 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.faq-item ul, .faq-item ol { padding-left: 40px; }
.faq-item li { margin-bottom: 6px; }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  padding: 80px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.cta-text { flex: 1; }
.cta-text h2 { font-size: 38px; font-weight: 900; margin-bottom: 16px; }
.cta-text > p { font-size: 18px; color: rgba(255,255,255,.85); margin-bottom: 24px; }
.cta-list {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cta-list li { font-size: 16px; color: rgba(255,255,255,.9); font-weight: 500; }
.cta-contact { font-size: 15px; color: rgba(255,255,255,.7); }
.cta-contact strong { color: #facc15; }

.cta-qr-wrap { flex-shrink: 0; text-align: center; }
.cta-qr-img {
  border-radius: 16px;
  border: 4px solid rgba(255,255,255,.3);
  width: 220px;
  height: 220px;
  object-fit: cover;
}

/* ===== Footer ===== */
.footer {
  background: #0f172a;
  color: rgba(255,255,255,.6);
  padding: 40px 0 24px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer .logo { color: #fff; }
.footer-desc { color: rgba(255,255,255,.5); font-size: 14px; margin-top: 6px; }
.footer-nav { display: flex; gap: 24px; font-size: 14px; }
.footer-nav a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  font-size: 13px;
  text-align: center;
}
.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: underline; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .hero { padding: 50px 0 48px; }
  .hero-inner { flex-direction: column; gap: 40px; align-items: flex-start; }
  .hero h1 { font-size: 34px; }
  .hero-desc { font-size: 16px; }
  .hero-qr { width: 100%; display: flex; flex-direction: column; align-items: center; }
  .hero-qr img { width: 160px; height: 160px; }
  .hero-actions { flex-direction: column; }
  .hero .btn-primary, .hero .btn-ghost { width: 100%; text-align: center; }

  .trust-grid { justify-content: center; gap: 24px; }
  .trust-item strong { font-size: 22px; }

  .section-title { font-size: 26px; }

  .ba-table { grid-template-columns: 1fr; }
  .ba-col:first-child { border-bottom: 2px solid var(--border); }
  .ba-row { grid-template-columns: 1fr; }
  .ba-row > span { border-bottom: 1px dashed var(--border); }
  .ba-row > span:last-child { border-bottom: none; }

  .cta-inner { flex-direction: column; }
  .cta-text h2 { font-size: 28px; }
  .cta-qr-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; }
  .cta-qr-img { width: 180px; height: 180px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { flex-wrap: wrap; gap: 16px; }
}
