/**
 * 易统计 · 前台展示页样式
 *
 * @author LCByte
 * @link   https://www.etongji.vip
 */
:root {
  --p: #4DB222;          /* 易统计品牌绿，取自 logo */
  --p-dark: #3E9419;
  --p-light: #EEF8E7;
  --p-mid: #A6D991;

  --ink: #1D2630;
  --body: #5A6472;
  --muted: #77836F;
  --line: #E4EADF;
  --soft: #F6F9F3;
  --white: #fff;

  --r: 8px;
  --r-sm: 5px;
  --shadow: 0 2px 12px rgba(29, 38, 48, .06);
  --shadow-lg: 0 12px 40px rgba(29, 38, 48, .12);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background: var(--white);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.3; }
a { color: var(--p); text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* 顶部导航 */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; gap: 32px;
}
.nav-brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 18px; font-weight: 600; color: var(--ink);
  letter-spacing: -.2px;
}
.nav-brand img { height: 34px; width: auto; display: block; }
.nav-brand:hover { color: var(--ink); }

.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a {
  color: var(--body); font-size: 14px;
  transition: color .15s;
}
.nav-links a:hover { color: var(--p); }

.nav-act { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 26px;
  border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 500;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--p); color: #fff; border-color: var(--p);
  box-shadow: 0 2px 8px rgba(67, 165, 33, .28);
}
.btn-primary:hover {
  background: var(--p-dark); border-color: var(--p-dark); color: #fff;
  box-shadow: 0 4px 16px rgba(67, 165, 33, .34);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--white); color: var(--body);
  border-color: #d8dee7;
}
.btn-ghost:hover {
  border-color: var(--p); color: var(--p); background: var(--p-light);
}
.btn-sm { height: 36px; padding: 0 18px; font-size: 14px; }

/* 通用区块 */
.sec { padding: 68px 0; }
.sec-soft { background: var(--soft); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-head h2 {
  font-size: 30px; font-weight: 600; letter-spacing: -.4px;
  margin-bottom: 12px;
}
.sec-head p { margin: 0; color: var(--muted); font-size: 15px; }

/* Hero */
.hero { padding: 72px 0 0; text-align: center; }
.hero h1 {
  font-size: 44px; font-weight: 700; letter-spacing: -1px;
  line-height: 1.25;
  margin: 0 auto 18px;
  max-width: 800px;
}
.hero .lead {
  font-size: 17px; color: var(--muted);
  max-width: 620px; margin: 0 auto 32px;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.shot { padding: 52px 0 0; }
.shot-frame {
  position: relative;
  max-width: 1040px; margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}
.shot-frame img { display: block; width: 100%; height: auto; }
.shot-frame::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 84px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 92%);
  pointer-events: none;
}
.shot-cap {
  text-align: center; font-size: 13px; color: var(--muted);
  margin: 16px 0 0;
}

/* 四宫格特性 */
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 22px;
  transition: .2s;
}
.feat:hover {
  border-color: var(--p-mid);
  box-shadow: 0 6px 24px rgba(67, 165, 33, .1);
  transform: translateY(-2px);
}
.feat-ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--p-light);
  color: var(--p);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.feat h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feat p { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--muted); }

/* 功能模块（六宫格） */
.mod {
  display: flex; gap: 14px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: .2s;
}
.mod:hover {
  border-color: var(--p-mid);
  box-shadow: 0 6px 24px rgba(67, 165, 33, .1);
}
.mod-ico {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--p-light); color: var(--p);
  display: grid; place-items: center;
}
.mod-tx h3 { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.mod-tx p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--muted); }

/* 上手步骤 */
.steps-wrap {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px; align-items: start;
}
.steps-left { align-self: start; }
.steps-left h2 { font-size: 30px; font-weight: 600; margin-bottom: 12px; letter-spacing: -.4px; }
.steps-left p { margin: 0; color: var(--muted); font-size: 15px; }

.step {
  display: flex; gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.step:first-child { padding-top: 2px; }
.step:last-child { border-bottom: 0; }
.step-no {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--p); color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600;
}
.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.step p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.75; }

/* 底部 CTA */
.cta {
  background: linear-gradient(135deg, var(--p-dark), var(--p) 55%, var(--secondary));
  padding: 68px 0;
  text-align: center;
  color: #fff;
}
.cta h2 {
  color: #fff;
  font-size: 32px; font-weight: 600;
  letter-spacing: -.5px;
  margin-bottom: 14px;
}
.cta p {
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, .88);
  font-size: 16px; max-width: 560px;
}
.cta .btn-primary {
  background: var(--white); color: var(--p-dark); border-color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .16);
}
.cta .btn-primary:hover {
  background: var(--white); color: var(--p-dark);
  transform: translateY(-1px);
}
.cta .btn-ghost {
  background: transparent; color: #fff;
  border-color: rgba(255, 255, 255, .55);
}
.cta .btn-ghost:hover {
  background: rgba(255, 255, 255, .14); color: #fff;
  border-color: #fff;
}

/* 页脚 */
.foot {
  background: var(--ink);
  color: var(--muted);
  padding: 44px 0 34px;
  font-size: 13.5px;
}
.foot-in {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 16px; }
.foot-brand img { height: 30px; width: auto; display: block; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { color: #A79C95; }
.foot-links a:hover { color: #fff; }
.foot-bottom {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px; color: #8A8078;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.foot-bottom a { color: #A79C95; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* 响应式 */
@media (max-width: 1024px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 36px; }
  .sec { padding: 60px 0; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-in { height: 58px; gap: 12px; }
  .nav-brand { font-size: 16px; }
  .nav-brand img { height: 26px; }

  .hero { padding: 48px 0 0; }
  .hero h1 { font-size: 27px; letter-spacing: -.5px; }
  .hero .lead { font-size: 15px; }
  .hero-btns .btn { width: 100%; }

  .sec { padding: 48px 0; }
  .sec-head h2 { font-size: 23px; }
  .sec-head { margin-bottom: 32px; }

  .grid4, .grid3, .grid2 { grid-template-columns: 1fr; }
  .feat { padding: 22px 18px; }

  .steps-left { align-self: start; }
.steps-left h2 { font-size: 23px; }
  .cta { padding: 52px 0; }
  .cta h2 { font-size: 24px; }
  .cta p { font-size: 15px; }
  .cta .btn { width: 100%; }

  .foot-in { flex-direction: column; gap: 20px; }
  .wrap { padding: 0 18px; }
}
