/* ==========================================================================
   众易源 · 官网样式
   配色取自「众易源充电」小程序：白底、浅灰、品牌绿
   ========================================================================== */

:root {
  --green: #00c250;
  --green-600: #00a844;
  --green-700: #008f3a;
  --green-050: #eaf9f0;
  --green-100: #d4f4e2;

  --ink: #16181a;
  --ink-2: #3d4348;
  --gray-600: #6b7280;
  --gray-500: #8b939c;
  --gray-400: #a8b0b8;

  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --line: #eceff2;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(22, 24, 26, 0.04);
  --shadow-md: 0 14px 38px rgba(22, 24, 26, 0.08);
  --shadow-green: 0 12px 26px rgba(0, 194, 80, 0.26);

  --container: 1080px;
  --header-h: 68px;

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

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

.ico {
  width: 1em;
  height: 1em;
  flex: none;
  display: inline-block;
  vertical-align: -0.14em;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn .ico { transition: transform 0.25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }

.btn--primary {
  color: #fff;
  background: var(--green);
  box-shadow: var(--shadow-green);
}
.btn--primary:hover {
  background: var(--green-600);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 194, 80, 0.32);
}

.btn--ghost {
  color: var(--ink-2);
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  color: var(--green-700);
  border-color: var(--green-100);
  transform: translateY(-2px);
}

.btn--lg { padding: 15px 30px; font-size: 16px; }

/* ---------- 顶部导航 ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(22, 24, 26, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
}
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(22, 24, 26, 0.12);
}
.brand__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.brand__tag {
  padding-left: 12px;
  margin-left: 3px;
  border-left: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--gray-500);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--gray-600);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }

.header__cta { padding: 9px 16px; font-size: 13.5px; }

.nav__cta { display: none; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle .ico { width: 20px; height: 20px; }
.nav-toggle__close { display: none; }
body.nav-open .nav-toggle__open { display: none; }
body.nav-open .nav-toggle__close { display: block; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 clamp(48px, 6vw, 68px);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #f2fcf6 0%, #ffffff 72%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(0, 194, 80, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 62%);
  opacity: 0.7;
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -180px;
  width: 780px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 194, 80, 0.14), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--green-100);
  font-size: 13px;
  color: var(--green-700);
  box-shadow: var(--shadow-sm);
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 194, 80, 0.14);
}

.hero__title {
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.hero__title em {
  font-style: normal;
  color: var(--green);
}

.hero__lead {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--gray-600);
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  max-width: 520px;
  margin: 40px auto 0;
  font-size: 13.5px;
  color: var(--gray-500);
}
.hero__chips li { display: inline-flex; align-items: center; gap: 6px; }
.hero__chips .ico {
  width: 15px;
  height: 15px;
  padding: 3px;
  border-radius: 50%;
  background: var(--green-050);
  color: var(--green);
}

/* ---------- 通用区块 ---------- */
.section { padding: clamp(54px, 7vw, 88px) 0; }
.section--tint {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green-700);
}
.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
}

.section__title {
  font-size: clamp(24px, 3.2vw, 36px);
  letter-spacing: -0.02em;
}
.section__head {
  max-width: 660px;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.section__lead {
  margin-top: 14px;
  font-size: 15.5px;
  color: var(--gray-600);
}

/* 滚动出现 */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--delay, 0) * 80ms);
}
[data-reveal][data-delay="1"] { --delay: 1; }
[data-reveal][data-delay="2"] { --delay: 2; }
[data-reveal][data-delay="3"] { --delay: 3; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 关于我们 ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.about__copy p {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--gray-600);
}
.about__copy .section__title + p { margin-top: 20px; }

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about__stats li {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.about__stats strong {
  display: inline-block;
  margin-right: 8px;
  font-size: 22px;
  color: var(--green-700);
  letter-spacing: -0.01em;
  vertical-align: -2px;
}
.about__stats span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.about__stats em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12.5px;
  color: var(--gray-500);
}

/* ---------- 业务卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-100);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--green-050);
  color: var(--green-700);
  font-size: 23px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14px; line-height: 1.85; color: var(--gray-600); }
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.card__tags li {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--gray-600);
}

/* ---------- 优势 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature {
  display: flex;
  gap: 16px;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature:hover { border-color: var(--green-100); box-shadow: var(--shadow-sm); }
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--green-050);
  color: var(--green-700);
  font-size: 21px;
}
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { font-size: 13.5px; line-height: 1.8; color: var(--gray-600); }

/* ---------- 联系我们 ---------- */
.section--contact {
  padding-top: clamp(40px, 5vw, 56px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
.contact {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(30px, 4.6vw, 52px);
  border-radius: 28px;
  background: linear-gradient(120deg, #00c250 0%, #00ad48 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 194, 80, 0.24);
}
.contact::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.contact__copy { position: relative; z-index: 1; }
.contact__kicker {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  opacity: 0.85;
  margin-bottom: 10px;
}
.contact h2 {
  font-size: clamp(22px, 3vw, 30px);
  color: #fff;
  line-height: 1.35;
}
.contact__lead {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  max-width: 420px;
}

.contact__ways {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.way {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
a.way:hover {
  background: #fff;
  color: var(--green-700);
  transform: translateX(3px);
}
a.way:hover .way__icon { background: var(--green-050); color: var(--green-700); }
.way__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 17px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.way__text { display: flex; flex-direction: column; line-height: 1.4; }
.way__text small { font-size: 11.5px; opacity: 0.82; }
.way__text b {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ---------- 页脚 ---------- */
.footer {
  padding: 34px 0 40px;
  background: #fff;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.brand--footer .brand__mark { width: 28px; height: 28px; box-shadow: none; }
.brand--footer .brand__name { font-size: 16px; }
.footer__desc {
  font-size: 12.5px;
  color: var(--gray-500);
}
.footer__meta {
  display: flex;
  gap: 16px;
  margin-left: auto;
  font-size: 12.5px;
  color: var(--gray-400);
}
.footer__meta a:hover { color: var(--green-700); }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--gray-600);
  box-shadow: 0 8px 22px rgba(22, 24, 26, 0.12);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--green-700); border-color: var(--green-100); }

/* ---------- 响应式 ---------- */
@media (max-width: 940px) {
  .about { grid-template-columns: 1fr; }
  .about__stats { flex-direction: row; flex-wrap: wrap; }
  .about__stats li { flex: 1 1 200px; }
  .cards { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact__lead { max-width: none; }
}

@media (max-width: 820px) {
  .brand__tag { display: none; }
  .header__cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px 20px 20px;
    background: #fff;
    border-bottom: 1px solid #e2e6ea;
    box-shadow: 0 22px 34px rgba(22, 24, 26, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 10px; font-size: 15.5px; border-radius: 10px; }
  .nav a:hover { background: var(--green-050); color: var(--green-700); }

  .nav a.nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 12px 16px;
    background: var(--green);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow-green);
  }
  .nav a.nav__cta:hover { background: var(--green-600); color: #fff; }

  .hero { padding-top: calc(var(--header-h) + 56px); }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero__title { font-size: clamp(28px, 9vw, 36px); }
  .hero__lead { font-size: 15px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__chips { gap: 8px 12px; font-size: 12px; padding: 0 2px; }
  .about__stats { flex-direction: column; }
  .about__stats li { flex: 0 0 auto; }
  .card { padding: 22px 20px; }
  .feature { padding: 22px 20px; }
  .contact { padding: 26px 20px; border-radius: 22px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer__meta { margin-left: 0; }
  .footer__desc { order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .header, .to-top, .nav-toggle { display: none !important; }
  .hero, .section, .contact { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .contact h2, .contact__lead, .contact__kicker { color: #000 !important; }
}
