/* 重庆监控安装 · 单页官网样式
   视觉方向：科技风（technology-evidence-system）生产基线
   容器：reading 720 / content 1200 / wide 1440；间距 4px 尺度；圆角 <= 8px */

:root {
  --canvas: #ffffff;
  --canvas-subtle: #f5f6f8;
  --canvas-inverse: #0b0d10;
  --text: #16181d;
  --text-muted: #5f6672;
  --text-inverse: #ffffff;
  --text-inverse-muted: #b8bec8;
  --line: #d9dde4;
  --line-strong: #8b93a1;
  --line-inverse: #2a2f37;
  --action: #1457d9;
  --action-hover: #0f47b7;
  --focus: #005fcc;
  --reading: 720px;
  --content: 1200px;
  --wide: 1440px;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 12px 32px rgba(11, 13, 16, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  text-align: left;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--action);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--action-hover);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: var(--canvas-inverse);
  color: var(--text-inverse);
  text-decoration: none;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--canvas-inverse);
  color: var(--text-inverse);
  border-bottom: 1px solid var(--line-inverse);
}

.site-header .wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--text-inverse);
}

.brand-name {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-note {
  font-size: 12px;
  line-height: 18px;
  color: var(--text-inverse-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--text-inverse);
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  padding: 12px 4px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--text-inverse);
  color: var(--text-inverse);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--action);
  color: var(--text-inverse);
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.header-phone:hover {
  background: var(--action-hover);
  color: var(--text-inverse);
}

.nav-toggle > summary {
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-inverse);
}

.nav-toggle > summary::-webkit-details-marker {
  display: none;
}

.nav-toggle[open] > summary {
  background: #1c2129;
}

.nav-mobile {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--canvas-inverse);
  border-bottom: 1px solid var(--line-inverse);
  padding: 8px 24px 16px;
  display: flex;
  flex-direction: column;
}

.nav-mobile a {
  color: var(--text-inverse);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-inverse);
}

/* ---------- 首屏 ---------- */

.hero {
  background: var(--canvas-subtle);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.hero h1 {
  font-size: 56px;
  line-height: 64px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 24px;
}

.lead {
  font-size: 18px;
  line-height: 28px;
  color: #333941;
  margin: 0 0 32px;
  max-width: 65ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 0 0 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.button-primary {
  background: var(--action);
  color: var(--text-inverse);
}

.button-primary:hover {
  background: var(--action-hover);
  color: var(--text-inverse);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.button-secondary:hover {
  color: var(--text);
  border-color: var(--text);
}

.button[aria-disabled="true"],
.button[disabled] {
  background: var(--canvas-subtle);
  color: var(--text-muted);
  border-color: var(--line);
  cursor: not-allowed;
}

.next-hint {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
  margin: 0;
}

.hero-figure {
  margin: 0;
}

.hero-media {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--canvas-inverse);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-figure figcaption {
  margin-top: 12px;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-muted);
}

/* ---------- 章节通用 ---------- */

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.section-subtle {
  background: var(--canvas-subtle);
}

.section-inverse {
  background: var(--canvas-inverse);
  color: var(--text-inverse);
}

.section h2 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  margin: 0 0 16px;
}

.section h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}

.section-lead {
  font-size: 17px;
  line-height: 26px;
  color: var(--text-muted);
  margin: 0 0 40px;
  max-width: 78ch;
}

.section-inverse .section-lead {
  color: var(--text-inverse-muted);
}

.note {
  font-size: 12px;
  line-height: 18px;
  color: var(--text-muted);
  margin: 24px 0 0;
  max-width: 90ch;
}

.section-inverse .note {
  color: var(--text-inverse-muted);
}

/* ---------- 服务分组 ---------- */

.service-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.service-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--canvas);
}

.service-group p {
  margin: 0 0 16px;
  color: #333941;
  font-size: 16px;
  line-height: 24px;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 14px;
  line-height: 20px;
  color: #333941;
  background: var(--canvas-subtle);
}

/* ---------- 设备清单表格 ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--canvas);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 16px 24px 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 24px;
}

thead th {
  background: var(--canvas-subtle);
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
  white-space: nowrap;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody th {
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- 流程 ---------- */

.process {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.process li {
  counter-increment: step;
  border-top: 2px solid var(--line-inverse);
  padding-top: 16px;
}

.process li::before {
  content: "0" counter(step);
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-inverse-muted);
  margin-bottom: 8px;
}

.process h3 {
  font-size: 18px;
  line-height: 26px;
  margin: 0 0 8px;
}

.process p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-inverse-muted);
}

/* ---------- 服务区域 ---------- */

.area-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.area-list li {
  border-left: 2px solid var(--line-strong);
  padding: 4px 0 4px 16px;
  font-size: 16px;
  line-height: 24px;
}

/* ---------- 联系方式 ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  font-size: 40px;
  line-height: 48px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0;
  word-break: break-all;
}

.contact-phone:hover {
  color: var(--action);
}

.scene-combos h3 {
  margin: 0 0 16px;
}

.scene-combos dl {
  margin: 0;
}

.scene-combos dt {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.scene-combos dd {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 24px;
  color: #333941;
}

.scene-combos .note {
  margin-top: 8px;
}

/* ---------- 页脚 ---------- */

.site-footer {
  background: var(--canvas-inverse);
  color: var(--text-inverse);
  padding: 32px 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.site-footer p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-inverse-muted);
  max-width: 90ch;
}

.site-footer a {
  color: var(--text-inverse);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 12px;
  line-height: 18px;
  color: var(--text-inverse-muted);
  margin: 0;
}

/* ---------- 响应式重排 ---------- */

@media (max-width: 1100px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero h1 {
    font-size: 44px;
    line-height: 52px;
  }

  .service-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .area-list {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .site-nav,
  .header-phone {
    display: none;
  }

  .nav-toggle {
    display: block;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 0;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }

  .hero {
    padding: 32px 0 32px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 24px;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 48px;
  }

  .section {
    padding: 48px 0;
  }

  .section h2 {
    font-size: 26px;
    line-height: 32px;
  }

  .section-lead {
    margin-bottom: 32px;
  }

  .process {
    grid-template-columns: minmax(0, 1fr);
  }

  .area-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-phone {
    font-size: 32px;
    line-height: 40px;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}