/* ============================================================
   电力设备仿真平台 · 官网样式
   纯 CSS · 深蓝 + 电光青/能源绿 · 工业科技感
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --navy-900: #060f1f;
  --navy-800: #0a1628;
  --navy-700: #0d1b2a;
  --navy-600: #122438;

  --cyan: #22d3ee;
  --cyan-bright: #00e5ff;
  --blue: #3b82f6;
  --green: #34d399;
  --green-bright: #10b981;

  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --bg-soft: #f8fafc;
  --bg: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(8, 47, 73, .35);

  --maxw: 1200px;
  --grad: linear-gradient(135deg, var(--cyan-bright), var(--blue) 55%, #6366f1);
  --grad-soft: linear-gradient(135deg, #ecfeff, #e0f2fe);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
code { font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; line-height: 1;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px -8px rgba(34, 211, 238, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(34, 211, 238, .75); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.section .btn-ghost { color: var(--ink-2); border-color: var(--line); background: #fff; }
.section .btn-ghost:hover { background: var(--bg-soft); }

/* ---------- 章节通用 ---------- */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px); line-height: 1.2; font-weight: 800;
  letter-spacing: -.02em; color: var(--ink); margin-top: 14px;
}
.section-sub { color: var(--muted); font-size: 17px; margin-top: 14px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue);
  background: var(--grad-soft); padding: 6px 14px; border-radius: 999px;
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 15, 31, .72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad); color: #fff; box-shadow: 0 6px 16px -6px rgba(34,211,238,.7);
}
.brand-mark.sm { width: 30px; height: 30px; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 16px; }
.brand-text small { font-size: 11px; font-weight: 500; color: var(--muted-2); letter-spacing: .04em; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: rgba(255,255,255,.78); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 9px 18px; font-size: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-800); color: #fff; padding: 70px 0 90px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.glow-1 { width: 520px; height: 520px; background: radial-gradient(circle, var(--cyan), transparent 65%); top: -160px; right: -120px; }
.glow-2 { width: 460px; height: 460px; background: radial-gradient(circle, var(--blue), transparent 65%); bottom: -180px; left: -140px; opacity: .4; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-copy .eyebrow { color: var(--cyan-bright); background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.25); }
.hero-copy h1 {
  font-size: clamp(34px, 5vw, 52px); line-height: 1.12; font-weight: 800;
  letter-spacing: -.025em; margin: 20px 0 18px;
}
.hero-copy h1 strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: rgba(255,255,255,.78); max-width: 540px; }
.lead strong { color: var(--cyan-bright); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; margin: 30px 0 26px; flex-wrap: wrap; }
.hero-points { display: flex; flex-direction: column; gap: 10px; }
.hero-points li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.72); font-size: 15px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); flex-shrink: 0; }

/* ---------- Hero mockup 监控台 ---------- */
.mockup { perspective: 1600px; }
.window {
  background: linear-gradient(180deg, #0f1f33, #0a1626);
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: rotateY(-9deg) rotateX(4deg); transition: transform .4s ease;
}
.window:hover { transform: rotateY(-5deg) rotateX(2deg); }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07); }
.win-dot { width: 11px; height: 11px; border-radius: 50%; }
.win-dot.r { background: #ff5f57; } .win-dot.y { background: #febc2e; } .win-dot.g { background: #28c840; }
.win-url { margin-left: 8px; font-size: 12px; color: var(--muted-2); }
.win-live { margin-left: auto; font-size: 11px; color: var(--green); font-weight: 600; }
.win-body { padding: 16px; }
.m-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }
.m-stat { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 10px 12px; }
.m-stat b { display: block; font-size: 22px; color: #fff; font-weight: 800; }
.m-stat small { font-size: 11px; color: var(--muted-2); }
.m-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 11px 12px; }
.m-card.warn { border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.06); }
.m-card-h { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted-2); margin-bottom: 8px; }
.tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.tag-blue { background: rgba(59,130,246,.2); color: #93c5fd; }
.tag-green { background: rgba(52,211,153,.2); color: #6ee7b7; }
.tag-red { background: rgba(239,68,68,.22); color: #fca5a5; }
.m-val { font-size: 24px; font-weight: 800; color: #fff; line-height: 1; }
.m-val small { font-size: 12px; color: var(--muted-2); font-weight: 500; margin-left: 3px; }
.m-val.muted { color: var(--muted-2); }
.bar { height: 5px; background: rgba(255,255,255,.08); border-radius: 3px; margin-top: 9px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 3px; }
.bar i.flat { background: rgba(239,68,68,.5); width: 100% !important; }
.m-alarm { display: flex; align-items: center; gap: 9px; margin-top: 13px; padding: 9px 12px; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25); border-radius: 8px; }
.al-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.al-dot.critical { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.al-txt { font-size: 12px; color: #fca5a5; flex: 1; }
.al-time { font-size: 11px; color: var(--muted-2); }

/* ---------- 数据条 ---------- */
.stats { background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-num { font-size: clamp(32px, 4vw, 44px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat-label { color: var(--muted-2); font-size: 14px; margin-top: 8px; }

/* ---------- 痛点 ---------- */
.pain { background: var(--bg-soft); }
.pain-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.pain-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pain-ic { font-size: 30px; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 16px; opacity: .85; }
.pain-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.pain-card p { color: var(--muted); font-size: 15px; }

/* ---------- 核心卖点 ---------- */
.moat { background: var(--bg); }
.moat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.moat-card { background: linear-gradient(180deg, #fff, var(--bg-soft)); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 34px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.moat-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.moat-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); color: var(--blue); margin-bottom: 20px; }
.moat-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.01em; }
.moat-card > p { color: var(--muted); font-size: 16px; margin-bottom: 20px; }
.moat-list { display: flex; flex-direction: column; gap: 14px; }
.moat-list li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15px; }
.moat-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px; border-radius: 4px; background: var(--grad-soft); border: 1.5px solid var(--cyan); }
.moat-list li b { color: var(--ink); font-weight: 700; }

/* ---------- 功能网格 ---------- */
.features { background: var(--bg-soft); }
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feat-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.feat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c7d8ee; }
.feat-ic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.feat-ic.c1 { background: linear-gradient(135deg, #22d3ee, #3b82f6); }
.feat-ic.c2 { background: linear-gradient(135deg, #34d399, #14b8a6); }
.feat-ic.c3 { background: linear-gradient(135deg, #818cf8, #6366f1); }
.feat-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 9px; }
.feat-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- 实景截图 ---------- */
.showcase { background: var(--bg); }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.shot-wide { grid-column: 1 / -1; }
.shot-frame {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  background: linear-gradient(135deg, #0d1b2a, #122438);
  border: 1px solid rgba(34,211,238,.2);
  display: grid; place-items: center; text-align: center; overflow: hidden;
  box-shadow: var(--shadow);
}
.shot-wide .shot-frame { aspect-ratio: 16/9; }
.shot-frame::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(34,211,238,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(34,211,238,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.shot-tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 12px; font-weight: 700; color: var(--cyan-bright); background: rgba(6,15,31,.72); border: 1px solid rgba(34,211,238,.4); padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.shot-placeholder { position: relative; color: var(--muted-2); font-size: 14px; }
.shot-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.shot figcaption { margin-top: 14px; color: var(--muted); font-size: 14.5px; }

/* ---------- 技术栈 ---------- */
.stack { background: var(--navy-700); color: #fff; }
.stack .section-head h2 { color: #fff; }
.stack .section-sub { color: rgba(255,255,255,.65); }
.stack .eyebrow { color: var(--cyan-bright); background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.25); }
.stack-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.stack-col { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 30px 28px; }
.stack-col h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.stack-badge { font-size: 12px; font-weight: 700; color: var(--cyan-bright); background: rgba(34,211,238,.14); padding: 4px 10px; border-radius: 6px; }
.stack-col ul { display: flex; flex-direction: column; gap: 11px; }
.stack-col li { color: rgba(255,255,255,.72); font-size: 15px; padding-left: 18px; position: relative; }
.stack-col li::before { content: "▹"; position: absolute; left: 0; color: var(--cyan); }

/* ---------- SCADA 接入 ---------- */
.integrate { background: var(--bg-soft); }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 48px; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; position: relative; box-shadow: var(--shadow-sm); }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 20px; display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 8px 18px -8px rgba(34,211,238,.6); }
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }
.api-table { width: 100%; border-collapse: collapse; background: var(--bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.api-table th, .api-table td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.api-table thead th { background: var(--navy-700); color: #fff; font-weight: 600; }
.api-table tbody tr:last-child td { border-bottom: 0; }
.api-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; width: 30%; }
.api-table td:last-child { color: var(--muted); }
.api-table code { background: #eef4fb; color: #1d4ed8; padding: 2px 7px; border-radius: 5px; font-size: 13px; }

/* ---------- CTA ---------- */
.cta-section { background: var(--navy-800); color: #fff; padding: 90px 0; position: relative; overflow: hidden; }
.cta-section::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.25), transparent 65%); top: -200px; left: 50%; transform: translateX(-50%); }
.cta-inner { position: relative; text-align: center; max-width: 720px; }
.cta-inner h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.cta-inner p { color: rgba(255,255,255,.75); font-size: 18px; margin-bottom: 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.6); padding: 44px 0; border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner { text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.footer-meta { font-size: 14px; margin-bottom: 6px; }
.footer-contact { margin: 14px 0 10px; }
.footer-contact-label { display: block; font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 8px; }
.footer-email { display: inline-block; font-size: 16px; font-weight: 600; color: var(--cyan-bright); background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.3); padding: 8px 18px; border-radius: 999px; }
.nav-contact { font-size: 13px; font-weight: 600; color: var(--cyan-bright); background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.25); padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.4); }

/* ---------- 滚动 reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .mockup { max-width: 560px; }
  .window { transform: none; }
  .window:hover { transform: none; }
  .pain-grid, .feat-grid, .stack-grid, .steps { grid-template-columns: 1fr 1fr; }
  .moat-grid, .shots { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy-800); padding: 18px 24px; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .section { padding: 64px 0; }
  .pain-grid, .feat-grid, .stack-grid, .steps, .stats-grid { grid-template-columns: 1fr; }
  .m-stats { grid-template-columns: 1fr 1fr; }
  .m-cards { grid-template-columns: 1fr; }
  .api-table th, .api-table td { padding: 12px 14px; font-size: 14px; }
  .hero-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
