/* ============================================================
   电力物联 EMS · 官网样式
   取色与版式对齐《电力物联EMS 宣传彩页》：主色 #0F766E，强调 #F59E0B
   ============================================================ */

:root {
  --ink: #0F172A;
  --ink-2: #1E293B;
  --muted: #64748B;
  --muted-2: #94A3B8;
  --teal: #0F766E;
  --teal-deep: #115E59;
  --teal-dark: #0B2F2D;
  --teal-mid: #0F4F4A;
  --teal-light: #2DD4BF;
  --teal-pale: #99F6E4;
  --teal-bg: #EDFBF8;
  --amber: #F59E0B;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-md: 0 2px 6px rgba(15, 23, 42, .08), 0 18px 44px rgba(15, 23, 42, .10);
  --radius: 18px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: .01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 24px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-size: 15px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 9px; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(15, 118, 110, .28); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-amber { background: var(--amber); color: #3B2500; box-shadow: 0 8px 22px rgba(245, 158, 11, .30); }
.btn-amber:hover { background: #E08C06; }
.btn-outline { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .04); }
.btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .7); }
.btn-ghost { color: var(--teal-deep); border-color: var(--border); background: #fff; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-outline.on-dark { border-color: rgba(255, 255, 255, .55); }

/* ---------------- 页头 ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(15, 23, 42, .05); background: rgba(255, 255, 255, .94); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: .02em; }
.brand img { border-radius: 9px; }
.brand-text b { color: var(--teal); }

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a { position: relative; font-size: 15px; color: var(--muted); font-weight: 600; padding: 6px 0; transition: color .18s ease; }
.nav a:hover, .nav a.active { color: var(--teal); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--amber); border-radius: 2px; transition: right .22s ease;
}
.nav a:hover::after, .nav a.active::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 11px 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 4px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 85% -10%, #12564F 0%, transparent 60%),
              linear-gradient(160deg, #0B2F2D 0%, #0A2A28 55%, #082321 100%);
  padding: calc(var(--header-h) + 72px) 0 44px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg i { position: absolute; border-radius: 50%; filter: blur(1px); }
.hero-bg .c1 { width: 720px; height: 720px; right: -220px; top: -300px; background: radial-gradient(circle at 40% 40%, rgba(45, 212, 191, .16), transparent 62%); border: 1px solid rgba(45, 212, 191, .10); }
.hero-bg .c2 { width: 520px; height: 520px; left: -220px; bottom: -300px; background: radial-gradient(circle at 60% 40%, rgba(245, 158, 11, .10), transparent 65%); border: 1px solid rgba(245, 158, 11, .10); }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; padding-bottom: 40px; }

.eyebrow { font-size: 13px; letter-spacing: .22em; color: var(--teal-light); font-weight: 700; margin-bottom: 18px; }
.hero h1 { font-size: clamp(42px, 6vw, 66px); font-weight: 800; letter-spacing: .01em; line-height: 1.08; }
.hero h1 span { color: var(--teal-light); }
.hero-sub { margin-top: 18px; font-size: clamp(18px, 2.2vw, 23px); color: var(--teal-light); font-weight: 700; }
.hero-flow { margin-top: 10px; font-size: 15px; letter-spacing: .32em; color: #CBD5E1; }
.hero-claim { margin-top: 26px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; }
.hero-desc { margin-top: 14px; max-width: 560px; color: #B9CBC9; font-size: 15px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.hero-stats li {
  border: 1px solid rgba(45, 212, 191, .28); background: rgba(15, 79, 74, .55);
  border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px;
}
.hero-stats b { color: var(--amber); font-size: 12px; letter-spacing: .08em; }
.hero-stats span { font-weight: 700; font-size: 15px; }
.hero-stats em { font-style: normal; font-size: 12.5px; color: var(--teal-pale); }

.hero-visual { position: relative; padding: 0 0 28px 0; }
.browser {
  background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .12);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #F1F5F9; border-bottom: 1px solid #E2E8F0; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1; }
.browser-bar i:nth-child(1) { background: #FCA5A5; }
.browser-bar i:nth-child(2) { background: #FCD34D; }
.browser-bar i:nth-child(3) { background: #86EFAC; }
.browser-bar em { font-style: normal; margin-left: 10px; font-size: 11px; color: var(--muted-2); background: #fff; border: 1px solid #E2E8F0; border-radius: 6px; padding: 1px 10px; }
.browser img { width: 100%; }
.browser.small { border-radius: 10px; box-shadow: none; border: 1px solid var(--border); }
.browser.small .browser-bar { padding: 6px 9px; }

.phone {
  position: absolute; right: -10px; bottom: 0; width: 158px; margin: 0;
  border: 5px solid #fff; border-radius: 24px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, .45);
  background: #fff;
}
.phone img { width: 100%; border-radius: 19px; }
.phone figcaption { position: absolute; left: 50%; transform: translateX(-50%); bottom: -30px; white-space: nowrap; font-size: 12px; color: var(--teal-pale); }

.scene-strip {
  position: relative; margin: 26px 0 0; padding: 16px 22px; border-radius: 10px;
  background: rgba(15, 118, 110, .55); border: 1px solid rgba(45, 212, 191, .25);
  color: #E6FFFA; font-size: 14px; text-align: center;
}
.scene-strip span { color: var(--teal-light); margin: 0 6px; }
.hero .wrap:last-child { padding-bottom: 0; }
.hero .scene-strip { margin-bottom: 0; transform: translateY(1px); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 3px; background: var(--amber); margin-bottom: 18px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 16px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 30px 18px; box-shadow: var(--shadow-sm); }
.panel > h3 { font-size: 19px; color: var(--teal); margin-bottom: 6px; }

.feature-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.feature-list li:last-child { border-bottom: 0; }
.feature-list i {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: #fff; font-style: normal; font-size: 12px; font-weight: 800; margin-top: 3px;
}
.feature-list.check i { background: var(--amber); color: #3B2500; }
.feature-list h4 { font-size: 15px; font-weight: 700; }
.feature-list p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

/* ---------------- 部署 ---------------- */
.topology { margin: 0 0 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.topology img { width: 100%; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: var(--shadow-sm); }
.card b { display: inline-block; color: var(--amber); font-size: 12px; letter-spacing: .1em; }
.card h3 { font-size: 16px; color: var(--teal); margin: 6px 0 8px; }
.card p { color: var(--muted); font-size: 13.5px; }

.strip {
  margin-top: 22px; padding: 14px 22px; border-radius: 10px;
  background: var(--teal); color: #fff; font-size: 14px; text-align: center;
}

/* ---------------- 架构 ---------------- */
.arch { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 26px; box-shadow: var(--shadow-sm); }
.arch-row { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; padding: 16px 0; border-bottom: 1px dashed var(--border); }
.arch-row:last-child { border-bottom: 0; }
.arch-label { font-weight: 800; font-size: 15px; color: var(--teal); display: flex; align-items: center; gap: 10px; }
.arch-label::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--amber); }
.arch-items { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 13.5px; color: var(--ink-2); }
.arch-row:nth-child(3) .chip { background: var(--teal-bg); border-color: #CFF7EE; }
.arch-row:nth-child(4) .chip { border-color: #FDE68A; background: #FFFBEB; }
.arch-note { margin-top: 16px; color: var(--muted); font-size: 13.5px; }

/* ---------------- 界面 ---------------- */
.ui-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ui-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px 22px; box-shadow: var(--shadow-sm); }
.ui-card > h3 { font-size: 20px; color: var(--teal); }
.ui-card .browser { margin-top: 16px; }
.ui-card .phone { position: static; width: 52%; margin: 20px auto 0; border-width: 4px; border-radius: 18px; box-shadow: 0 12px 26px rgba(15, 23, 42, .16); }
.ui-card .phone figcaption { display: none; }
.ui-card .phone.tall img { aspect-ratio: auto; }
.ui-cap { text-align: center; color: var(--muted-2); font-size: 12.5px; margin-top: 8px; }

.demo { margin: 42px 0 0; text-align: center; }
.demo video { width: min(880px, 100%); border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-md); background: #000; display: block; margin: 0 auto; }
.demo figcaption { margin-top: 12px; color: var(--muted); font-size: 13.5px; }

/* ---------------- 服务 ---------------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card.service { display: flex; flex-direction: column; padding: 24px 22px; }
.card.service > .kicker { margin-top: 2px; }
.card.service .kicker { color: var(--teal); font-weight: 800; font-size: 14px; margin: 2px 0 10px; }
.card.service p { font-size: 13.5px; }
.card.service .fit { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--border); color: var(--muted-2); font-size: 12.5px; }

.flow {
  margin-top: 30px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 30px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 30px;
}
.flow h3 { font-size: 17px; color: var(--teal); white-space: nowrap; }
.flow-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; flex: 1; }
.flow-steps li {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px; border: 1px solid #CFF7EE; background: var(--teal-bg);
  font-size: 14px; font-weight: 700;
}
.flow-steps li b { color: var(--amber); font-size: 14px; }
.flow-steps li:not(:last-child)::after {
  content: "→"; position: absolute; right: -24px; color: var(--muted-2); font-weight: 400;
}

/* ---------------- 联系 ---------------- */
.contact { background: linear-gradient(135deg, #0F766E 0%, #0C5F59 100%); color: #fff; padding: 52px 0; }
.contact-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.contact-brand { display: flex; align-items: center; gap: 16px; }
.contact-logo { width: 74px; height: 74px; border-radius: 16px; background: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.contact-logo img { border-radius: 10px; }
.contact-brand h2 { font-size: 24px; }
.contact-brand p { color: var(--teal-pale); font-size: 13.5px; margin-top: 3px; }
.contact-items { display: flex; gap: 32px; flex-wrap: wrap; margin-left: auto; padding-left: 32px; border-left: 1px solid rgba(45, 212, 191, .35); }
.contact-item span { display: block; color: var(--teal-pale); font-size: 12.5px; }
.contact-item a { display: block; font-size: 19px; font-weight: 800; margin-top: 4px; letter-spacing: .01em; }
.contact-item a:hover { color: var(--teal-light); }
.contact-item a.email { font-size: 16px; letter-spacing: 0; word-break: break-all; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 26px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-2); }
.footer-brand img { border-radius: 7px; }
.footer-nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.footer-nav a:hover { color: var(--teal); }
.footer-legal a { color: var(--muted); border-bottom: 1px solid var(--border); }
.footer-legal a:hover { color: var(--teal); }

/* ---------------- 回到顶部 ---------------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); color: #fff; font-size: 18px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 118, 110, .35);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------------- 进场动画 ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 32px; }
  .phone { width: 138px; }
  .contact-items { margin-left: 0; padding-left: 0; border-left: 0; width: 100%; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; padding: 14px 24px 20px; border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px rgba(15, 23, 42, .08);
  }
  .nav.open a { padding: 10px 0; font-size: 16px; width: 100%; }

  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 8px; max-width: 620px; }
  .phone { width: 132px; right: 0; }

  .two-col, .cards-3, .ui-grid { grid-template-columns: 1fr; }
  .ui-grid { gap: 20px; }
  .ui-card .phone { width: 42%; max-width: 240px; }

  .arch-row { grid-template-columns: 1fr; gap: 10px; padding: 14px 0; }
  .arch-label { font-size: 14px; }

  .flow { flex-direction: column; align-items: flex-start; gap: 16px; }
  .flow-steps { gap: 30px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .cards-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 8px; }
  .hero-stats li { flex-direction: row; align-items: baseline; gap: 10px; padding: 10px 14px; }
  .hero-stats em { margin-left: auto; text-align: right; }
  .hero-visual { padding-bottom: 0; }
  .phone { position: static; width: 46%; margin: 16px auto 0; }
  .phone figcaption { display: none; }
  .scene-strip { font-size: 13px; padding: 14px 16px; }
  .contact-info, .contact-inner { gap: 24px; }
  .contact-items { gap: 24px; }
  .contact-item a { font-size: 18px; }
  .footer-nav { margin-left: 0; }
  .header-actions .btn-ghost { display: none; }
  .flow-steps { gap: 10px; }
  .flow-steps li { font-size: 13px; padding: 8px 14px; }
  .flow-steps li:not(:last-child)::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
