:root {
  --ink: #102235;
  --ink-soft: #31465a;
  --muted: #63778b;
  --line: #d8e6ef;
  --line-strong: #b8d0df;
  --paper: #eaf3fb;
  --paper-2: #d7ecf8;
  --white: #ffffff;
  --blue: #0f9fe3;
  --blue-deep: #073d52;
  --cyan: #28b6e8;
  --green: #2d9f6b;
  --amber: #e5a11c;
  --orange: #df7d2e;
  --red: #d84b42;
  --shadow: 0 28px 84px rgba(16, 34, 53, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", "Segoe UI Variable", sans-serif;
  background:
    repeating-linear-gradient(0deg, rgba(7, 61, 82, 0.035) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(7, 61, 82, 0.035) 0 1px, transparent 1px 44px),
    linear-gradient(180deg, #eaf3fb 0%, #dceef8 48%, #eaf3fb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(184, 202, 219, 0.7);
  background: rgba(248, 252, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(31, 111, 180, 0.42);
  color: var(--blue);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.82);
}

.brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(31, 111, 180, 0.22);
  color: var(--blue-deep);
  background: rgba(31, 111, 180, 0.06);
}

.hero {
  position: relative;
  min-height: 560px;
  padding: 108px max(24px, calc((100vw - 1180px) / 2)) 88px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(100deg, rgba(5, 35, 51, 0.96) 0%, rgba(7, 61, 82, 0.94) 54%, rgba(9, 84, 112, 0.9) 100%),
    repeating-linear-gradient(115deg, rgba(40, 182, 232, 0.08) 0 1px, transparent 1px 18px);
}

.signal-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

.signal-field::before,
.signal-field::after,
.contour {
  position: absolute;
  border: 1px solid rgba(90, 206, 245, 0.22);
  content: "";
}

.signal-field::before {
  right: 8%;
  bottom: 18%;
  width: 440px;
  height: 250px;
  transform: skewX(-18deg);
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(40, 182, 232, 0.14) 58% 60%, transparent 60%),
    repeating-linear-gradient(0deg, rgba(40, 182, 232, 0.12) 0 1px, transparent 1px 34px);
}

.signal-field::after {
  right: 18%;
  top: 18%;
  width: 360px;
  height: 140px;
  border-color: rgba(40, 182, 232, 0.3);
  transform: rotate(-6deg);
  background: repeating-linear-gradient(90deg, rgba(40, 182, 232, 0.12) 0 2px, transparent 2px 16px);
}

.contour {
  border-radius: 50%;
}

.contour.c1 {
  right: 7%;
  top: 26%;
  width: 230px;
  height: 150px;
}

.contour.c2 {
  right: 24%;
  bottom: 18%;
  width: 310px;
  height: 120px;
  border-color: rgba(229, 161, 28, 0.34);
}

.contour.c3 {
  left: 8%;
  bottom: 7%;
  width: 360px;
  height: 110px;
  border-color: rgba(45, 159, 107, 0.24);
}

.scan-line {
  position: absolute;
  left: -20%;
  top: 50%;
  width: 140%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 111, 180, 0.42), transparent);
  animation: scan 7s linear infinite;
}

@keyframes scan {
  0% {
    transform: translateY(-220px);
    opacity: 0;
  }
  18%,
  76% {
    opacity: 1;
  }
  100% {
    transform: translateY(260px);
    opacity: 0;
  }
}

.hero-inner,
.section,
.case-section,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: 70px;
  line-height: 1;
  letter-spacing: 0;
  color: #ffffff;
}

.hero h2 {
  max-width: 850px;
  margin: 16px 0 0;
  color: #dff5ff;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 780px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: break-word;
}

.hero-copy.zh {
  max-width: 840px;
  color: rgba(230, 246, 255, 0.82);
  font-size: 17px;
}

.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.capability-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(143, 218, 245, 0.32);
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  color: #f3fbff;
  font-size: 15px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.capability-tags span:nth-child(2) {
  border-left-color: var(--green);
}

.capability-tags span:nth-child(3) {
  border-left-color: var(--red);
}

.demo-note {
  display: inline-block;
  max-width: 100%;
  margin: 42px 0 0;
  padding: 11px 14px;
  border: 1px solid rgba(216, 75, 66, 0.18);
  border-radius: 4px;
  color: #773d35;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: break-word;
  background: rgba(255, 246, 241, 0.82);
}

.section {
  padding: 86px 0;
}

.matrix-section {
  padding-top: 76px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(280px, 1fr);
  gap: 52px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2,
.case-heading h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 900;
}

.section-heading p:last-child,
.case-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

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

.product-tile {
  position: relative;
  min-height: 270px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 70px rgba(16, 34, 53, 0.07);
}

.product-tile::after {
  position: absolute;
  right: -30px;
  bottom: -28px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(31, 111, 180, 0.15);
  border-radius: 50%;
  content: "";
}

.tile-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 30px;
  margin-bottom: 34px;
  border: 1px solid rgba(31, 111, 180, 0.24);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  background: #f8fbff;
}

.product-tile h3 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: 0;
}

.product-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.product-tile small {
  position: absolute;
  left: 28px;
  bottom: 24px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
}

.rainfall-tile {
  border-top: 4px solid var(--blue);
}

.deformation-tile {
  border-top: 4px solid var(--green);
}

.seismic-tile {
  border-top: 4px solid var(--red);
}

.case-section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.case-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 26px;
}

.case-heading > div {
  max-width: 760px;
}

.replay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(15, 159, 227, 0.42);
  border-radius: 4px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #0f9fe3, #28b6e8);
  cursor: pointer;
}

.replay-button:hover,
.replay-button:focus-visible {
  border-color: #7fd8f8;
  color: #ffffff;
  background: linear-gradient(135deg, #078bd1, #18aee5);
  box-shadow: 0 10px 28px rgba(31, 111, 180, 0.14);
}

.replay-button span {
  font-size: 18px;
  line-height: 1;
}

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
}

.chart-panel,
.status-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.chart-panel {
  min-width: 0;
  padding: 16px 16px 10px;
}

.panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  padding: 0 4px 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.panel-label strong {
  color: var(--blue);
  font-size: 13px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  min-height: 26px;
  padding: 0 6px 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.chart-legend i {
  display: inline-block;
  flex: 0 0 auto;
}

.chart-legend .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.chart-legend .line {
  width: 22px;
  height: 3px;
  border-radius: 999px;
}

.chart-legend .history {
  background: #f09b46;
}

.chart-legend .watch {
  background: #d59b00;
}

.chart-legend .warning {
  background: var(--orange);
}

.chart-legend .emergency {
  background: var(--red);
}

.chart-legend .current {
  background: var(--cyan);
}

.chart {
  width: 100%;
  height: 468px;
}

.rainfall-band .chart {
  height: 438px;
}

.status-panel {
  position: relative;
  display: flex;
  min-height: 514px;
  flex-direction: column;
  padding: 26px;
  overflow: hidden;
}

.status-panel::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(31, 111, 180, 0.07), transparent 34%),
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(31, 111, 180, 0.04) 20px 21px);
}

.status-panel > * {
  position: relative;
  z-index: 1;
}

.panel-kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.warning-badge {
  display: inline-flex;
  align-self: start;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  min-height: 42px;
  margin-bottom: 24px;
  padding: 0 16px;
  border-radius: 4px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  background: var(--green);
}

.warning-badge.normal,
.warning-badge.green,
.warning-badge.idle {
  background: var(--green);
}

.warning-badge.blue {
  background: var(--blue);
}

.warning-badge.watch {
  background: var(--amber);
}

.warning-badge.warning,
.warning-badge.orange {
  background: var(--orange);
}

.warning-badge.emergency,
.warning-badge.red,
.warning-badge.triggered {
  background: var(--red);
}

.metric-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.metric-list div {
  display: grid;
  grid-template-columns: minmax(116px, 1fr) minmax(96px, auto);
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(184, 202, 219, 0.52);
}

.metric-list dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.metric-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  text-align: right;
}

.source-note {
  margin: auto 0 0;
  padding-top: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.stage-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 22px 0 18px;
}

.deformation-track {
  grid-template-columns: repeat(2, 1fr);
}

.stage-track span {
  min-height: 56px;
  padding: 10px 8px;
  border: 1px solid rgba(184, 202, 219, 0.72);
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  background: rgba(255, 255, 255, 0.74);
}

.stage-track span.active {
  border-color: var(--blue);
  color: var(--ink);
  background: rgba(31, 111, 180, 0.1);
}

.event-line {
  min-height: 44px;
  margin: 22px 0 0;
  padding: 12px;
  border: 1px solid rgba(31, 111, 180, 0.16);
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.72);
}

.signal-triggered {
  animation: warningPulse 780ms ease;
}

.signal-triggered .status-panel {
  border-color: rgba(216, 75, 66, 0.48);
}

@keyframes warningPulse {
  0% {
    filter: none;
  }
  35% {
    filter: drop-shadow(0 0 20px rgba(216, 75, 66, 0.28));
  }
  100% {
    filter: none;
  }
}

.workflow-section {
  padding-bottom: 100px;
}

.workflow-section .section-heading {
  display: block;
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.workflow-section .section-heading h2 {
  margin-bottom: 14px;
}

.workflow-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list::before {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 42px;
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(15, 159, 227, 0.95), rgba(40, 182, 232, 0.72)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.42) 0 10px, transparent 10px 20px);
  content: "";
  box-shadow: 0 12px 28px rgba(15, 159, 227, 0.16);
}

.workflow-list li {
  position: relative;
  min-height: 146px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 70px 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 900;
  text-align: center;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(16, 34, 53, 0.07);
}

.workflow-list li::before {
  position: absolute;
  top: 32px;
  left: 50%;
  width: 26px;
  height: 26px;
  border: 5px solid #ffffff;
  border-radius: 50%;
  background: var(--blue);
  content: "";
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(15, 159, 227, 0.18);
}

.workflow-list span {
  display: inline-flex;
  width: 38px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 6px;
  color: var(--blue);
  background: rgba(15, 159, 227, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  padding-left: 12px;
  border-left: 3px solid rgba(31, 111, 180, 0.28);
  font-size: 13px;
  line-height: 1.55;
}

.site-footer a {
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 1020px) {
  .section-heading,
  .case-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .workflow-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .workflow-list::before {
    left: 31px;
    right: auto;
    top: 34px;
    bottom: 34px;
    width: 6px;
    height: auto;
    background: linear-gradient(180deg, rgba(15, 159, 227, 0.95), rgba(40, 182, 232, 0.72));
  }

  .workflow-list li {
    min-height: 92px;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 18px 18px 74px;
    text-align: left;
  }

  .workflow-list li::before {
    top: 50%;
    left: 31px;
    transform: translate(-50%, -50%);
  }

  .workflow-list span {
    margin-bottom: 8px;
  }

  .case-heading {
    align-items: start;
    flex-direction: column;
  }

  .status-panel {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px;
  }

  .site-nav {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 620px;
    padding: 72px 20px 58px;
  }

  .hero-inner,
  .section,
  .case-section,
  .site-footer {
    width: min(100% - 40px, 1180px);
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero h2 {
    font-size: 23px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .section,
  .case-section {
    padding: 64px 0;
  }

  .section-heading h2,
  .case-heading h2 {
    font-size: 32px;
  }

  .chart {
    height: 380px;
  }

  .chart-panel {
    padding: 12px 10px 6px;
  }

  .status-panel {
    padding: 22px;
  }

  .metric-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .metric-list dd {
    text-align: left;
  }

  .stage-track {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
