/* ==========================================================================
   火世连锁零售系统 官网样式
   公司：西安火世科技有限公司 | 域名：rms.huokeji.cn
   ========================================================================== */

:root {
  --fire: #ff6a00;
  --fire-dark: #e55a00;
  --fire-light: #fff3e8;
  --navy: #0e1a2b;
  --navy-2: #16263c;
  --ink: #1c2634;
  --text: #3b4757;
  --muted: #6b7787;
  --line: #e5eaf1;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --green: #16a34a;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(14, 26, 43, 0.08);
  --shadow-lg: 0 16px 48px rgba(14, 26, 43, 0.14);
  --maxw: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--fire); text-decoration: none; }
a:hover { color: var(--fire-dark); }
ul, ol { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 19px; white-space: nowrap; }
.brand:hover { color: var(--navy); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--fire), #ff9a3d);
  display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.35);
}
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a {
  color: var(--ink); font-size: 15.5px; padding: 8px 14px; border-radius: 8px; font-weight: 500;
}
.nav-menu a:hover { color: var(--fire); background: var(--fire-light); }
.nav-menu a.active { color: var(--fire); background: var(--fire-light); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 40px; height: 40px; cursor: pointer; color: var(--navy); font-size: 20px; line-height: 1;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 10px; font-size: 16px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--fire), #ff8b2d); color: #fff; box-shadow: 0 6px 18px rgba(255, 106, 0, 0.35); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 106, 0, 0.45); }
.btn-outline { border-color: var(--fire); color: var(--fire); background: #fff; }
.btn-outline:hover { background: var(--fire-light); color: var(--fire-dark); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { color: #fff; background: var(--navy-2); }
.btn-sm { padding: 8px 18px; font-size: 14.5px; }
.btn-lg { padding: 15px 34px; font-size: 17px; }

/* ---------------- Hero ---------------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 106, 0, 0.18), transparent 60%),
    radial-gradient(700px 380px at 8% 110%, rgba(22, 93, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
  padding: 84px 0 96px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  color: var(--fire); font-weight: 600; font-size: 14px; padding: 6px 16px; border-radius: 999px;
  box-shadow: var(--shadow); margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.28; color: var(--navy);
  font-weight: 800; letter-spacing: .5px; margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--fire); }
.hero-sub { font-size: 18px; color: var(--muted); margin-bottom: 30px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 26px; color: var(--navy); font-weight: 800; line-height: 1.3; }
.hero-stats .stat span { font-size: 14px; color: var(--muted); }

/* Hero visual: mock dashboard card */
.hero-visual { position: relative; }
.mock-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 22px; position: relative;
}
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mock-head b { color: var(--navy); font-size: 15px; }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-dots i:first-child { background: #ffb26b; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.mock-kpi { background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; }
.mock-kpi span { font-size: 12.5px; color: var(--muted); display: block; }
.mock-kpi b { font-size: 19px; color: var(--navy); }
.mock-kpi b.up { color: var(--green); }
.mock-bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding: 14px 6px 0; border-bottom: 2px solid var(--line); }
.mock-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #ffc99a, var(--fire)); min-height: 12%; }
.mock-bars i:nth-child(odd) { background: linear-gradient(180deg, #cdd9ea, #9fb3cd); }
.mock-legend { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); padding-top: 8px; }
.mock-float {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 10px 16px; font-size: 13.5px; color: var(--navy); font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.mock-float small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.mock-float.f1 { top: -22px; right: -14px; }
.mock-float.f2 { bottom: -20px; left: -18px; }
.dot-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; flex: none; }
.dot-ico.o { background: var(--fire-light); }
.dot-ico.g { background: #e8f7ee; }

/* ---------------- Sections ---------------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-soft); }
.section.dark { background: linear-gradient(160deg, var(--navy) 0%, #13233a 100%); color: #c6d2e2; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head .eyebrow { color: var(--fire); font-weight: 700; font-size: 15px; letter-spacing: 2px; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 34px); color: var(--navy); font-weight: 800; margin-bottom: 14px; line-height: 1.4; }
.section.dark .section-head h2 { color: #fff; }
.section-head p { color: var(--muted); font-size: 16.5px; }
.section.dark .section-head p { color: #9fb0c6; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--fire-light); color: var(--fire);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 18.5px; color: var(--navy); margin-bottom: 10px; font-weight: 700; }
.card p { font-size: 15px; color: var(--muted); }
.card .tag { display: inline-block; font-size: 12.5px; color: var(--fire); background: var(--fire-light); border-radius: 6px; padding: 2px 10px; margin-bottom: 12px; font-weight: 600; }

/* Pain point cards (before/after) */
.pain-card { border-left: 4px solid var(--fire); }
.pain-card .before { color: #b42318; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.pain-card .after { font-size: 15px; color: var(--muted); }
.pain-card .after b { color: var(--green); }

/* Solution steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  padding: 26px 22px;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 30px; font-weight: 800; color: var(--fire); display: block; margin-bottom: 12px; font-style: italic;
}
.step h3 { color: #fff; font-size: 17.5px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: #a9b8cc; }

/* Feature list */
.feature-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.feature-block:last-child { margin-bottom: 0; }
.feature-block.rev .fb-text { order: 2; }
.fb-text h3 { font-size: 24px; color: var(--navy); margin-bottom: 14px; font-weight: 800; }
.fb-text > p { color: var(--muted); margin-bottom: 18px; }
.fb-list li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 15.5px; color: var(--text); }
.fb-list li::before { content: "✓"; color: var(--fire); font-weight: 800; flex: none; }
.fb-panel {
  background: linear-gradient(160deg, var(--navy), #182c48); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 26px; color: #d5dfec;
}
.fb-panel .row { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; }
.fb-panel .row:nth-child(odd) { background: rgba(255,255,255,.05); }
.fb-panel .row b { color: #fff; font-weight: 600; }
.fb-panel .row .ok { color: #6ee7a8; }
.fb-panel .row .warn { color: #ffb26b; }
.fb-panel .panel-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.fb-panel .panel-title b { color: #fff; }
.fb-panel .panel-title span { font-size: 12.5px; color: #8fa2bd; }

/* Pricing */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px;
  display: flex; flex-direction: column; position: relative;
}
.plan.popular { border: 2px solid var(--fire); box-shadow: var(--shadow-lg); }
.plan .ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--fire), #ff8b2d); color: #fff; font-size: 13px;
  font-weight: 700; padding: 4px 18px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 19px; color: var(--navy); margin-bottom: 6px; }
.plan .plan-desc { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; min-height: 40px; }
.plan .price { margin-bottom: 6px; }
.plan .price b { font-size: 34px; color: var(--navy); font-weight: 800; }
.plan .price small { color: var(--muted); font-size: 14px; }
.plan .price-note { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }
.plan ul { flex: 1; margin-bottom: 24px; }
.plan ul li { display: flex; gap: 8px; font-size: 14.5px; padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--text); }
.plan ul li::before { content: "✓"; color: var(--green); font-weight: 700; flex: none; }
.plan ul li.no { color: #aab3bf; }
.plan ul li.no::before { content: "—"; color: #d5dae1; }
.plan-divider { text-align: center; font-size: 12.5px; color: var(--muted); margin: 6px 0 14px; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 15px; }
table.compare th, table.compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; }
table.compare thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: 15.5px; }
table.compare tbody th { font-weight: 600; color: var(--navy); background: var(--bg-soft); white-space: nowrap; }
table.compare td.center { text-align: center; }
table.compare .yes { color: var(--green); font-weight: 700; }
table.compare .no { color: #c3cad4; }
table.compare tr.group td { background: var(--fire-light); color: var(--fire-dark); font-weight: 700; }

/* Addon cards */
.addon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.addon {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; gap: 14px; align-items: flex-start;
}
.addon .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--fire-light); color: var(--fire); display: grid; place-items: center; flex: none; }
.addon h4 { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.addon p { font-size: 13.5px; color: var(--muted); }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--navy); font-size: 16.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--fire); font-weight: 400; flex: none; transition: transform .2s; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 22px 18px; font-size: 15px; color: var(--muted); }
.faq-item .faq-body p { margin-bottom: 8px; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--fire) 0%, #ff8b2d 55%, #ffab5e 100%);
  border-radius: 22px; padding: 56px 48px; color: #fff; display: flex; align-items: center;
  justify-content: space-between; gap: 32px; box-shadow: 0 20px 50px rgba(255, 106, 0, .3);
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; font-weight: 800; }
.cta-band p { opacity: .92; font-size: 16px; max-width: 520px; }
.cta-band .btn { background: #fff; color: var(--fire-dark); }
.cta-band .btn:hover { color: var(--fire-dark); transform: translateY(-1px); }
.cta-band .btn-line { background: transparent; border: 1.5px solid rgba(255,255,255,.8); color: #fff; }
.cta-band .btn-line:hover { color: #fff; background: rgba(255,255,255,.12); }

/* Page hero (sub pages) */
.page-hero {
  background:
    radial-gradient(700px 300px at 90% -20%, rgba(255, 106, 0, 0.16), transparent 60%),
    linear-gradient(180deg, #fbfcfe, #f4f7fb);
  padding: 60px 0 64px; text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); color: var(--navy); font-weight: 800; margin-bottom: 14px; }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 680px; margin: 0 auto 8px; }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--fire); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.contact-card h2 { color: var(--navy); font-size: 22px; margin-bottom: 8px; }
.contact-card > p { color: var(--muted); margin-bottom: 24px; font-size: 15px; }
.contact-item { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.contact-item .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--fire-light); color: var(--fire); display: grid; place-items: center; flex: none; }
.contact-item b { display: block; color: var(--navy); font-size: 15.5px; margin-bottom: 2px; }
.contact-item span, .contact-item a { font-size: 15px; color: var(--muted); }
.qr-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; text-align: center; box-shadow: var(--shadow); }
.qr-card h2 { color: var(--navy); font-size: 20px; margin-bottom: 6px; }
.qr-card .qr-sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.qr-frame {
  width: 240px; height: 240px; margin: 0 auto 16px; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px; background: #fff;
}
.qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.qr-card .hint { font-size: 13px; color: var(--muted); }
.company-info { margin-top: 26px; background: var(--bg-soft); border-radius: 12px; padding: 18px 20px; font-size: 14px; color: var(--muted); text-align: left; }
.company-info b { color: var(--navy); display: block; margin-bottom: 6px; font-size: 15px; }
.company-info p { margin-bottom: 4px; }

/* Trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-strip .t { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; }
.trust-strip .t b { display: block; font-size: 24px; color: var(--fire); font-weight: 800; }
.trust-strip .t span { font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #93a5bd; padding: 60px 0 30px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 300px; }
.site-footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 16px; font-weight: 700; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #93a5bd; }
.site-footer a:hover { color: var(--fire); }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.footer-bottom a { color: #93a5bd; }

/* Back to top */
.back-top {
  position: fixed; right: 22px; bottom: 26px; width: 44px; height: 44px; border-radius: 12px;
  background: var(--fire); color: #fff; border: none; font-size: 20px; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .25s; box-shadow: var(--shadow); z-index: 90;
}
.back-top.show { opacity: 1; pointer-events: auto; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .grid-4, .plan-grid, .steps, .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-block { grid-template-columns: 1fr; gap: 28px; }
  .feature-block.rev .fb-text { order: 0; }
  .addon-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { padding: 56px 0 68px; }
  .nav-menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 18px; gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { display: block; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .grid-2, .grid-3, .grid-4, .plan-grid, .steps, .addon-grid, .trust-strip { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 26px; }
  .mock-kpis { grid-template-columns: repeat(3, 1fr); }
  .hero-stats { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
