:root {
  --brand: #0575ff;
  --brand-dark: #0348b0;
  --brand-deep: #0a2c6e;
  --brand-soft: #e8f2ff;
  --ink: #0f2440;
  --text: #44546a;
  --muted: #7a8aa0;
  --bg: #f5f9ff;
  --line: #e3ecf9;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 18px 45px rgba(10, 44, 110, 0.10);
  --shadow-lg: 0 28px 70px rgba(10, 44, 110, 0.18);
  --header-h: 72px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.section {
  padding: 104px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: 36px;
  line-height: 1.3;
  color: var(--ink);
  margin: 10px 0 14px;
  font-weight: 700;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
}

.section-head.light h2 { color: var(--white); }
.section-head.light .section-sub { color: rgba(255, 255, 255, 0.72); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, #1f8bff, #0575ff);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(5, 117, 255, 0.32);
}

.btn-primary:hover { box-shadow: 0 16px 34px rgba(5, 117, 255, 0.42); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.10);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

.btn-sm { padding: 11px 22px; font-size: 15px; border-radius: 10px; }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  color: var(--white);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img { height: 44px; width: auto; }

.main-nav {
  display: flex;
  gap: 34px;
  font-size: 17px;
  font-weight: 500;
}

.main-nav a {
  position: relative;
  opacity: 0.92;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: width 0.25s ease;
}

.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 8px 30px rgba(10, 44, 110, 0.08);
}

.site-header.scrolled .btn-primary { background: linear-gradient(135deg, #1f8bff, #0575ff); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.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;
  padding: calc(var(--header-h) + 72px) 0 130px;
  background: linear-gradient(150deg, #072a70 0%, #0657d9 46%, #1a8cff 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 60% 20%, rgba(0, 0, 0, 0.9), transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 20%, rgba(0, 0, 0, 0.9), transparent 68%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

.glow-a { width: 480px; height: 480px; background: #35a2ff; top: -160px; left: -120px; }
.glow-b { width: 420px; height: 420px; background: #7c5bff; bottom: -140px; left: 32%; opacity: 0.28; }
.glow-c { width: 380px; height: 380px; background: #1fd1ff; top: 18%; right: -140px; opacity: 0.35; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: center;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.hero-copy h1 {
  font-size: 52px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 6px 0 20px;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span {
  font-size: 13px;
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-visual { position: relative; }

.browser-frame {
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: #f1f5fb;
  border-bottom: 1px solid var(--line);
}

.browser-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.browser-bar .dot:nth-child(2) { background: #febc2e; }
.browser-bar .dot:nth-child(3) { background: #28c840; }

.browser-bar .url {
  margin-left: 10px;
  flex: 1;
  max-width: 260px;
  font-size: 12px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-body img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(closest-side, rgba(31, 139, 255, 0.45), transparent 70%);
  z-index: -1;
}

/* ---------- Stats ---------- */
.stats-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.stat:first-child { border-left: 0; }

.stat strong {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(120deg, #ffffff, #bfe0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat span { font-size: 13px; color: rgba(255, 255, 255, 0.82); margin-top: 2px; }

/* ---------- Features ---------- */
.features { background: var(--white); }

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

.feature-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #b9d8ff;
  box-shadow: var(--shadow);
  background: var(--white);
}

.f-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: linear-gradient(135deg, #e3f0ff, #cfe4ff);
  color: var(--brand);
  margin-bottom: 16px;
}

.f-icon svg { width: 24px; height: 24px; }

.feature-card h3 {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 700;
}

.feature-card p { font-size: 14px; color: var(--muted); }

/* ---------- Showcase ---------- */
.showcase { background: var(--bg); }

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  align-items: start;
}

.shot figcaption {
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.shot .browser-frame {
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.shot .browser-body {
  background: #eef3fa;
  aspect-ratio: 16 / 10;
}

.shot .browser-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.shot-phone { justify-self: center; }

.phone-frame {
  width: 240px;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #1b2a4a, #33456b);
  box-shadow: var(--shadow-lg);
}

.phone-body {
  border-radius: 26px;
  overflow: hidden;
  background: var(--white);
}

.phone-body img {
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top;
}

/* ---------- Protocols ---------- */
.protocols {
  background: linear-gradient(150deg, #081f52 0%, #07449f 55%, #0a6fe0 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.protocols::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
}

.protocol-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.protocol-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 14px;
  padding: 20px 22px;
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.protocol-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.protocol-chip strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.protocol-chip span { font-size: 13px; color: rgba(255, 255, 255, 0.78); }

.protocol-note {
  position: relative;
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Scenarios ---------- */
.scenarios { background: var(--white); }

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

.scenario-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.scenario-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.s-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0575ff, #2f9bff);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(5, 117, 255, 0.30);
  margin-bottom: 18px;
}

.s-icon svg { width: 26px; height: 26px; }

.scenario-card h3 {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 10px;
  font-weight: 700;
}

.scenario-card p { font-size: 14px; color: var(--muted); }

/* ---------- About ---------- */
.about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.about-copy h2 {
  font-size: 34px;
  color: var(--ink);
  margin: 12px 0 18px;
  line-height: 1.3;
}

.about-copy p { margin-bottom: 16px; font-size: 15px; }

.about-copy .btn { margin-top: 8px; }

.about .about-copy {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.about .about-copy .btn { margin-top: 14px; }

.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}

.about-card h3 {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 16px;
}

.doc-list li {
  border-bottom: 1px dashed var(--line);
}

.doc-list li:last-child { border-bottom: 0; }

.doc-list a {
  display: block;
  padding: 12px 2px;
  font-size: 15px;
  color: var(--text);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.doc-list a:hover {
  color: var(--brand);
  padding-left: 8px;
}

.about-card-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  max-width: 920px;
  margin: 0 auto;
  align-items: start;
}

.contact-info h3 {
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 18px;
}

.contact-info li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px dashed var(--line);
}

.contact-info li span {
  min-width: 44px;
  color: var(--muted);
  font-size: 14px;
}

.contact-tip {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.qr-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.qr-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.qr-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--white);
  margin-bottom: 14px;
}

.qr-card strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
}

.qr-card span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(5, 117, 255, 0.14);
}

.form-tip {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.form-tip.ok { color: #0d9a4e; }

/* ---------- Footer ---------- */
.site-footer {
  background: #081d46;
  color: rgba(255, 255, 255, 0.72);
  padding: 44px 0 28px;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.footer-brand strong {
  display: block;
  font-size: 18px;
  color: var(--white);
}

.footer-brand span { font-size: 13px; color: rgba(255, 255, 255, 0.6); }

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  flex-wrap: wrap;
}

.footer-links a { transition: color 0.2s ease; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: inherit;
  transition: color 0.2s ease;
}

.footer-bottom a:hover { color: var(--white); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-copy h1 { font-size: 44px; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-bottom: 170px; }
  .hero-visual { max-width: 640px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .protocol-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-head h2 { font-size: 28px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .stat:nth-child(odd) { border-left: 0; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    box-shadow: 0 18px 40px rgba(10, 44, 110, 0.14);
    padding: 12px 6%;
    border-radius: 0 0 16px 16px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .main-nav.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 18px; }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }
}

@media (max-width: 560px) {
  .hero { padding: calc(var(--header-h) + 48px) 0 150px; }
  .hero-copy h1 { font-size: 34px; }
  .hero-sub { font-size: 15px; }
  .hero-cta .btn { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: 1fr; }
  .protocol-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .browser-bar .url { display: none; }
  .header-actions .btn-sm { display: none; }
  .brand img { height: 34px; }
}

/* ---------- 快速接入 ---------- */
.workflow { background: linear-gradient(180deg, #ffffff, #f5f9ff); }

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  position: relative;
}

.workflow-grid::before {
  content: "";
  position: absolute;
  top: 46px;
  left: 18%;
  right: 18%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #b9d8ff 0 10px, transparent 10px 20px);
}

.workflow-step {
  position: relative;
  text-align: center;
  padding: 0 12px;
}

.step-num {
  width: 92px;
  height: 92px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  border-radius: 26px;
  background: linear-gradient(135deg, #1f8bff, #0575ff);
  box-shadow: 0 16px 34px rgba(5, 117, 255, 0.28);
  position: relative;
  z-index: 1;
}

.workflow-step h3 {
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 10px;
}

.workflow-step p {
  font-size: 14px;
  color: var(--muted);
  max-width: 300px;
  margin: 0 auto;
}

/* ---------- 首屏产品界面 ---------- */
.dash {
  display: flex;
  height: 330px;
  background: #f7faff;
}

.dash-side {
  width: 62px;
  flex: 0 0 62px;
  background: #0f2c63;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 13px;
}

.dash-logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1f8bff, #0575ff);
  margin-bottom: 8px;
}

.dash-nav {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
}

.dash-nav.on { background: #1f8bff; }

.dash-main {
  flex: 1;
  min-width: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dash-stat {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
}

.dash-stat span { font-size: 11px; color: var(--muted); display: block; }
.dash-stat strong { display: block; font-size: 20px; color: var(--ink); line-height: 1.3; }
.dash-stat em { font-style: normal; font-size: 11px; font-weight: 600; }
.dash-stat em.up { color: #0d9a4e; }
.dash-stat em.down { color: #e5484d; }

.dash-chart {
  position: relative;
  flex: 1;
  min-height: 82px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 5px;
}

.dash-chart svg { width: 100%; height: 100%; display: block; }
.dash-chart .line { fill: none; stroke: #0575ff; stroke-width: 3; stroke-linecap: round; }

.chart-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #0575ff;
  box-shadow: 0 0 0 6px rgba(5, 117, 255, 0.16);
  animation: dotPing 2.4s ease-out infinite;
}

@keyframes dotPing {
  0% { box-shadow: 0 0 0 0 rgba(5, 117, 255, 0.35); }
  70% { box-shadow: 0 0 0 12px rgba(5, 117, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 117, 255, 0); }
}

.chart-tip {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 11px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}

.dash-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dash-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--ink);
}

.dash-item span {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dash-item b { font-size: 12px; font-weight: 600; }
.dash-item .st { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.dash-item .st.ok { background: #17b26a; }
.dash-item .st.warn { background: #f79009; }

/* ---------- 首屏轮播 ---------- */
.carousel { position: relative; overflow: hidden; }

.carousel-track {
  display: flex;
  align-items: stretch;
  width: 100%;
  transition: transform 0.65s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
}

.carousel-slide > div {
  flex: 1;
  min-width: 0;
}

.hero-visual .carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 16px);
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.4);
  padding: 0;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease, border-radius 0.25s ease;
}

.carousel-dots button.active {
  width: 26px;
  border-radius: 5px;
  background: #ffffff;
}

.dash-protocols,
.dash-api,
.dash-screen {
  min-height: 330px;
  padding: 18px;
  background: #f7faff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slide-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.slide-head strong { font-size: 17px; color: var(--ink); }
.slide-head span { font-size: 12px; color: var(--muted); }

.proto-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-content: center;
}

.proto-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.proto-item .p {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: 0 0 auto;
}

.p.mqtt { background: #0575ff; }
.p.modbus { background: #0d9a4e; }
.p.s7 { background: #ff8a3d; }
.p.opc { background: #8b5cf6; }
.p.tcp { background: #06b6d4; }
.p.http { background: #f59e0b; }
.p.lora { background: #10b981; }
.p.custom { background: #64748b; }

.api-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.api-code {
  background: #0f2440;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12.5px;
  color: #dbe7f6;
}

.api-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.api-line .tok { font-style: normal; }
.tok.m { color: #7dd3fc; font-weight: 700; }
.tok.k { color: #ffd166; }
.api-resp { color: #86efac; }

.api-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.api-tags span {
  background: #e8f2ff;
  border: 1px solid #cfe3ff;
  color: var(--brand);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
}

.mini-screen {
  flex: 1;
  background: linear-gradient(150deg, #081f52, #0a2f6e);
  border-radius: 12px;
  padding: 16px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mini-stats span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px 10px;
}

.mini-stats em {
  display: block;
  font-style: normal;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
}

.mini-stats b { font-size: 18px; }

.mini-chart {
  width: 100%;
  height: 54px;
}

.mini-line {
  fill: none;
  stroke: #3fa0ff;
  stroke-width: 3;
  stroke-linecap: round;
}

.mini-map {
  position: relative;
  flex: 1;
}

.mini-map i {
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3fa0ff;
  box-shadow: 0 0 10px rgba(63, 160, 255, 0.9);
}

/* ---------- 管理台展示 ---------- */
.mock-admin {
  display: flex;
  height: 300px;
  background: #f7faff;
}

.mock-side {
  width: 50px;
  flex: 0 0 50px;
  background: #0f2c63;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 12px;
}

.m-logo {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #1f8bff, #0575ff);
  margin-bottom: 6px;
}

.m-item {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
}

.m-item.on { background: #1f8bff; }

.mock-main {
  flex: 1;
  min-width: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.m-crumb {
  width: 96px;
  height: 10px;
  border-radius: 5px;
  background: #dbe7f6;
}

.m-user {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f8bff, #0575ff);
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mock-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.mock-card strong { display: block; font-size: 19px; color: var(--ink); line-height: 1.35; }
.mock-card span { font-size: 11px; color: var(--muted); }

.mock-chart {
  flex: 1;
  min-height: 86px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.mock-chart svg { width: 100%; height: 100%; display: block; }
.bars rect { fill: #cfe4ff; rx: 5px; }
.bars rect:nth-last-child(2) { fill: #0575ff; }

/* ---------- 大屏展示 ---------- */
.big-frame { background: #071a3f; color: #ffffff; }

.big-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.big-title { font-weight: 700; letter-spacing: 0.08em; font-size: 14px; }
.big-time { font-size: 12px; color: rgba(255, 255, 255, 0.6); }

.big-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 12px;
  padding: 14px;
}

.big-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px;
  min-height: 176px;
  display: flex;
  flex-direction: column;
}

.big-panel h4 {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.big-num {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.big-ring {
  margin: auto auto 0;
  width: 76px;
  height: 76px;
}

.big-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 8; }
.ring-fg { fill: none; stroke: #1f8bff; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 198 3; }

.big-lines {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 92px;
  flex: 1;
}

.big-lines span {
  flex: 1;
  border-radius: 3px;
  background: linear-gradient(180deg, #1f8bff, #0575ff);
}

.bl-1 { height: 45%; }
.bl-2 { height: 65%; }
.bl-3 { height: 52%; }
.bl-4 { height: 80%; }
.bl-5 { height: 95%; }

.big-lines.small { height: 42px; flex: 0 0 auto; margin-top: 12px; }
.big-lines.small span { background: rgba(31, 139, 255, 0.55); }

.big-map svg { width: 100%; flex: 1; }
.map-grid { fill: none; stroke: rgba(255, 255, 255, 0.08); }
.map-path { fill: none; stroke: #1f8bff; stroke-width: 2; stroke-dasharray: 4 5; }
.map-dot { fill: #1f8bff; stroke: #ffffff; stroke-width: 2; }
.map-pulse {
  fill: none;
  stroke: #3fa0ff;
  stroke-width: 2;
  transform-origin: 108px 52px;
  animation: mapPing 2.4s ease-out infinite;
}

@keyframes mapPing {
  0% { transform: scale(0.7); opacity: 0.9; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- 组态展示 ---------- */
.scada-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f1f5fb;
  border-bottom: 1px solid var(--line);
}

.tool {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #d7e4f6;
}

.tool.on { background: #0575ff; }
.toolbar-name { margin-left: auto; font-size: 12px; color: var(--muted); }

.scada-canvas {
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  padding: 16px;
}

.scada-canvas svg { width: 100%; height: auto; display: block; }
.scada-tank { fill: #ffffff; stroke: #7fb6ff; stroke-width: 4; }
.scada-water { fill: url(#waterFill); }
.scada-pipe { fill: none; stroke: #7fb6ff; stroke-width: 7; stroke-linecap: round; }
.scada-pump { fill: #0575ff; }
.scada-rotor { fill: none; stroke: #ffffff; stroke-width: 5; stroke-linecap: round; }
.scada-pump-core { fill: #ffffff; }
.scada-valve { fill: #0d9a4e; }
.scada-gauge { fill: #ffffff; stroke: #b9d8ff; stroke-width: 4; }
.gauge-needle { fill: none; stroke: #ff8a3d; stroke-width: 4; stroke-linecap: round; }
.gauge-pin { fill: #ff8a3d; }
.scada-label { fill: #44546a; font-size: 15px; font-weight: 600; text-anchor: middle; }

/* ---------- 移动端展示 ---------- */
.app-body {
  aspect-ratio: 9 / 19;
  background: #f2f6fc;
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 10px;
}

.app-brand { font-size: 14px; font-weight: 700; color: var(--ink); }
.app-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f8bff, #0575ff);
}

.app-hero {
  margin: 2px 16px 12px;
  padding: 15px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0a2c6e, #0575ff);
  color: #ffffff;
}

.app-hero strong { display: block; font-size: 17px; }
.app-hero span { font-size: 12px; color: rgba(255, 255, 255, 0.8); }

.app-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
}

.app-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(10, 44, 110, 0.06);
}

.app-card span { display: block; font-size: 11px; color: var(--muted); }
.app-card b { font-size: 19px; color: var(--ink); }

.app-trend {
  margin: 12px 16px 0;
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 14px 10px;
  box-shadow: 0 8px 20px rgba(10, 44, 110, 0.06);
}

.app-trend svg { width: 100%; height: 54px; display: block; }
.app-line { fill: none; stroke: #0575ff; stroke-width: 3; stroke-linecap: round; }
.app-trend span { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }

.app-tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 22px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.app-tabbar i {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #dbe7f6;
}

.app-tabbar i.on { background: #0575ff; }

/* ---------- 场景插画 ---------- */
.scenario-card {
  padding: 0 0 28px;
  overflow: hidden;
}

.scene {
  border-radius: 0;
  overflow: hidden;
  line-height: 0;
}

.scene svg { width: 100%; height: auto; display: block; }

.scenario-card h3 { padding: 20px 24px 0; }
.scenario-card p { padding: 8px 24px 0; }

/* ---------- 响应式补充 ---------- */
@media (max-width: 900px) {
  .workflow-grid { grid-template-columns: 1fr; gap: 38px; }
  .workflow-grid::before { display: none; }
  .big-grid { grid-template-columns: 1fr; }
  .dash { height: auto; }
  .mock-admin { height: 260px; }
}

@media (max-width: 560px) {
  .dash-side { width: 48px; flex-basis: 48px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-stat:last-child { display: none; }
  .mock-cards { grid-template-columns: 1fr; }
  .mock-card { display: none; }
  .mock-card:first-child { display: block; }
  .big-time { display: none; }
  .qr-cards { grid-template-columns: 1fr; }
  .qr-card img { height: 260px; }
}

/* ---------- 行业大屏 ---------- */
.screens { background: var(--white); }

.screens-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.screen-card figcaption {
  text-align: center;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.screen-frame {
  background: linear-gradient(160deg, #081f52, #0a2f6e);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.screen-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.screen-time {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}

.screen-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.screen-stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
}

.screen-stat span {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.screen-stat strong {
  font-size: 16px;
  line-height: 1.3;
}

.screen-chart {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 8px;
  height: 118px;
}

.screen-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.scr-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}

.scr-line.en { stroke: #ffb020; }
.scr-line.ag { stroke: #2fce8a; }
.scr-line.wa { stroke: #3fa0ff; }
.scr-line.tr { stroke: #ffd166; }
.scr-line.bd { stroke: #22d3ee; }

.scr-bars rect { rx: 5px; }
.scr-bars.cp rect { fill: #8b7cff; }
.scr-bars.cp rect:nth-last-child(2) { fill: #b3a8ff; }
.scr-bars.bd rect { fill: #22d3ee; }
.scr-bars.bd rect:nth-last-child(2) { fill: #67e8f9; }

.screen-foot {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.screen-tag {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.78);
}

.screen-tag svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .screens-grid { grid-template-columns: 1fr; }
}

/* ---------- 大屏实拍 ---------- */
.gallery { background: var(--bg); }
