/* 安居云枢 · 设计变量与全站样式 */
:root {
  --brand: #9b2c2c;
  --brand-deep: #6f1d1d;
  --steel: #2f4550;
  --steel-soft: #3d5a66;
  --ink: #1a2228;
  --muted: #5a6670;
  --line: rgba(26, 34, 40, 0.12);
  --bg: #eef1f3;
  --bg-warm: #f4f1ed;
  --surface: #fbfcfd;
  --ok: #2f6b4f;
  --warn: #b45309;
  --danger: #9b2c2c;
  --shadow: 0 14px 36px rgba(26, 34, 40, 0.08);
  --radius: 16px;
  --container: 1360px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(155, 44, 44, 0.06), transparent 55%),
    radial-gradient(800px 380px at 100% 8%, rgba(47, 69, 80, 0.07), transparent 50%),
    linear-gradient(180deg, #f2f4f6 0%, var(--bg) 45%, #e8ecef 100%);
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.container.narrow {
  width: min(720px, calc(100% - 2rem));
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  backdrop-filter: blur(12px);
  background: rgba(242, 244, 246, 0.9);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(26, 34, 40, 0.05);
  background: rgba(251, 252, 253, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--steel);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(26, 34, 40, 0.08);
}

.brand-mark-lg {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 0.95rem;
}

.site-nav a {
  color: var(--steel);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 0.25rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-deep);
}

.btn-secondary {
  background: var(--steel);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

/* —— 物业值班台：监控 + 孪生 —— */
.ops-center {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.ops-center .stage-caption,
.ops-center .stage-hint {
  display: none;
}

.ops-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  height: 100%;
  min-height: 0;
}

.ops-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border-right: 1px solid var(--line);
}

.ops-pane:last-child {
  border-right: 0;
}

.ops-pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem 0.55rem;
  flex-shrink: 0;
}

.ops-pane-head strong {
  display: block;
  font-size: 0.98rem;
}

.ops-pane-head span {
  color: var(--muted);
  font-size: 0.78rem;
}

.cam-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--ok);
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
}

.cam-badge.is-alert {
  background: var(--brand);
  animation: pulseBadge 1.2s ease infinite;
}

@keyframes pulseBadge {
  50% { opacity: 0.65; }
}

.camera-viewport {
  position: relative;
  flex: 1;
  min-height: 180px;
  margin: 0 0.75rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #1a2228;
}

.camera-feed {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: filter 0.35s ease, transform 0.45s ease;
}

.camera-feed-wide {
  background-image:
    linear-gradient(180deg, rgba(20, 24, 28, 0.15), rgba(20, 24, 28, 0.45)),
    url("assets/camera-wide.jpg");
}

.camera-live-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #10171c;
}

.camera-access-state {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: #f5f7f8;
  background: rgba(13, 23, 29, 0.76);
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.55;
}

.camera-access-state a { color: #fff; font-weight: 800; }
.camera-access-state[hidden] { display: none; }
.camera-viewport[data-source="live"] .camera-feed { background-image: none; }
.camera-viewport[data-source="live"] .camera-meta { z-index: 3; }
.camera-viewport[data-source="live"] .camera-overlay { display: none; }

.cam-badge.is-offline { background: #687781; }
.cam-badge.is-candidate { background: #b77822; }
.cam-badge.is-confirmed { background: var(--brand); animation: pulseBadge 1.2s ease infinite; }

.camera-viewport[data-mode="alert"] .camera-feed {
  background-image:
    linear-gradient(180deg, rgba(111, 29, 29, 0.25), rgba(20, 24, 28, 0.55)),
    url("assets/camera-detail.jpg");
  filter: saturate(1.15) contrast(1.05);
}

.camera-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.yolo-tag,
.smoke-tag {
  position: absolute;
  top: 0.65rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
}

.yolo-tag { left: 0.65rem; background: rgba(155, 44, 44, 0.92); }
.smoke-tag { left: 4.6rem; background: rgba(47, 69, 80, 0.92); }

.detect-box {
  position: absolute;
  left: 28%;
  top: 30%;
  width: 34%;
  height: 36%;
  border: 2px solid #f0c7c0;
  box-shadow: 0 0 0 1px rgba(155, 44, 44, 0.5);
  border-radius: 4px;
  animation: boxPulse 1.4s ease infinite;
}

@keyframes boxPulse {
  50% { border-color: #fff; }
}

.detect-label {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 2.2rem;
  margin: 0;
  padding: 0.45rem 0.6rem;
  background: rgba(111, 29, 29, 0.88);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
}

.camera-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
}

.ops-pane-actions {
  padding: 0.7rem 0.75rem 0.85rem;
  flex-shrink: 0;
}

.fire-timer-bar {
  margin-top: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(155, 44, 44, 0.08);
  border: 1px solid rgba(155, 44, 44, 0.2);
}

.timer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.timer-row strong {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  color: var(--brand-deep);
}

.urge-msg {
  margin: 0.35rem 0 0;
  color: var(--brand-deep);
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 1.2em;
}

.twin-stage {
  position: relative;
  flex: 1;
  min-height: 180px;
  margin: 0 0.75rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(251, 252, 253, 0.95), rgba(238, 241, 243, 0.98)),
    repeating-linear-gradient(-18deg, transparent, transparent 11px, rgba(47, 69, 80, 0.03) 11px, rgba(47, 69, 80, 0.03) 12px);
}

.twin-iso {
  position: absolute;
  inset: 0;
}

.twin-iso .iso-world {
  width: min(420px, 95%);
  height: min(320px, 78%);
}

.fire-marker {
  position: absolute;
  left: 42%;
  top: 8%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 8px rgba(155, 44, 44, 0.25);
  transform: translateZ(40px);
  animation: pulseBadge 1s ease infinite;
  z-index: 5;
}

.building.is-fire .b-top {
  background: linear-gradient(135deg, #e11d48, #9b2c2c);
}

.building.is-fire .b-front {
  box-shadow: inset 0 0 0 2px rgba(225, 29, 72, 0.45);
}

/* Modal */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 34, 40, 0.45);
}

.modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  background: var(--surface);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.modal-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.modal-body {
  padding: 1.1rem 1.2rem 0.5rem;
}

.step-lead {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.choice-grid {
  display: grid;
  gap: 0.7rem;
}

.choice-grid.three {
  grid-template-columns: 1fr;
}

.choice-card {
  text-align: left;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.choice-card:hover {
  border-color: rgba(155, 44, 44, 0.45);
  transform: translateY(-1px);
}

.choice-card strong {
  display: block;
  margin-bottom: 0.25rem;
}

.choice-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.action-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}

.urge-toast {
  position: fixed;
  top: calc(var(--header-h) + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  max-width: min(520px, calc(100% - 2rem));
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--brand-deep);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(111, 29, 29, 0.35);
}

.urge-toast[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .ops-split {
    grid-template-columns: 1fr;
  }

  .ops-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ops-camera {
    min-height: 320px;
  }

  .ops-twin {
    min-height: 340px;
  }
}

/* —— Home command board —— */
.home-board {
  padding: 0.85rem 0 1.25rem;
}

body.page-home .home-board > .container {
  width: calc(100% - 0.75rem);
  max-width: none;
  margin-right: 0.25rem;
  margin-left: 0.5rem;
}

.board-grid {
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(0, 1fr) minmax(240px, 280px);
  gap: 0.75rem;
  height: calc(100vh - var(--header-h) - 1.5rem);
  max-height: calc(100vh - var(--header-h) - 1.5rem);
  align-items: stretch;
}

body.page-home .board-left {
  padding-bottom: 7rem;
}

.board-left,
.board-right,
.board-center {
  min-width: 0;
  min-height: 0;
}

.board-left,
.board-right {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: auto;
  padding-right: 2px;
}

.platform-lockup {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.7s ease forwards;
  flex-shrink: 0;
}

.platform-lockup .brand-mark-lg {
  width: 44px;
  height: 44px;
}

.platform-lockup h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.platform-lockup p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.dash-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.7s ease forwards;
  flex-shrink: 0;
}

.dash-panel:nth-child(2) { animation-delay: 0.08s; }
.dash-panel:nth-child(3) { animation-delay: 0.16s; }
.dash-panel:nth-child(4) { animation-delay: 0.24s; }
.dash-panel:nth-child(5) { animation-delay: 0.32s; }

.board-right .dash-panel:nth-child(1) { animation-delay: 0.12s; }
.board-right .dash-panel:nth-child(2) { animation-delay: 0.2s; }
.board-right .dash-panel:nth-child(3) { animation-delay: 0.28s; }
.board-right .dash-panel:nth-child(4) { animation-delay: 0.36s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dash-panel h2,
.dash-panel h3 {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--steel);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
}

.status-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pill-ok,
.pill-warn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill-ok {
  color: var(--ok);
}

.pill-warn {
  color: var(--warn);
}

.pill-ok::before,
.pill-warn::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.dash-actions {
  display: grid;
  gap: 0.55rem;
}

.dash-actions .btn {
  min-height: 38px;
  font-size: 0.86rem;
}

/* 桌面：首页一屏看全貌（左右可内部微滚，中间楼栋始终可见） */
@media (min-width: 901px) {
  body.page-home {
    overflow: hidden;
  }

  body.page-home .site-footer {
    display: none;
  }

  body.page-home .float-call,
  body.page-home .float-alarm {
    left: 1.25rem;
    right: auto;
    bottom: 1.25rem;
    min-height: 96px;
    min-width: 96px;
    padding: 1.15rem 1.8rem;
    font-size: 1.35rem;
  }
}

.stat-big {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-big strong {
  font-size: 1.65rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-big span {
  color: var(--muted);
  font-size: 0.85rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.stat-cell {
  padding: 0.55rem 0.6rem;
  background: rgba(47, 69, 80, 0.04);
  border-radius: 10px;
}

.stat-cell strong {
  display: block;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.stat-cell span {
  color: var(--muted);
  font-size: 0.78rem;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.mini-table th,
.mini-table td {
  text-align: left;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}

.mini-table th {
  color: var(--muted);
  font-weight: 500;
}

.mini-table tr:last-child td {
  border-bottom: 0;
}

/* —— 3D community stage —— */
.board-center {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(251, 252, 253, 0.95), rgba(238, 241, 243, 0.98)),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 11px,
      rgba(47, 69, 80, 0.03) 11px,
      rgba(47, 69, 80, 0.03) 12px
    );
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.8s ease 0.1s forwards;
}

.stage-caption {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  max-width: 16rem;
}

.stage-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.stage-caption span {
  color: var(--muted);
  font-size: 0.85rem;
}

.stage-hint {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.stage-hint p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.iso-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.iso-world {
  position: relative;
  width: min(560px, 92%);
  height: min(420px, 70%);
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-32deg);
  animation: worldIn 1.1s ease 0.2s both;
}

@keyframes worldIn {
  from {
    opacity: 0;
    transform: rotateX(58deg) rotateZ(-32deg) translateY(24px);
  }
  to {
    opacity: 1;
    transform: rotateX(58deg) rotateZ(-32deg) translateY(0);
  }
}

.iso-ground {
  position: absolute;
  inset: 8% 4% 4%;
  background:
    linear-gradient(90deg, rgba(47, 69, 80, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(47, 69, 80, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #d7e0e4, #c5d2d8);
  background-size: 28px 28px, 28px 28px, auto;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(47, 69, 80, 0.08);
}

.iso-road {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 46%;
  height: 34px;
  background: #8d97a0;
  border-radius: 4px;
  transform: translateZ(2px);
}

.iso-road::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #f4f1ed 0 16px, transparent 16px 28px);
  transform: translateY(-50%);
}

.building {
  position: absolute;
  transform-style: preserve-3d;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: transparent;
}

.building:focus-visible .b-front,
.building:hover .b-front {
  filter: brightness(1.06);
}

.building.is-active .b-label,
.building:hover .b-label {
  opacity: 1;
  transform: translate(-50%, -120%) translateZ(80px) rotateZ(32deg) rotateX(-58deg) scale(1);
}

.b-face {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
}

.b-front {
  background: linear-gradient(180deg, #f7f3ee 0%, #e0d6ca 55%, #d0c4b6 100%);
  border: 1px solid rgba(47, 69, 80, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.b-side {
  background: linear-gradient(180deg, #cfc5ba, #9f9184);
  transform-origin: left;
}

.b-top {
  background: linear-gradient(135deg, #9b2c2c, #6f1d1d);
  transform-origin: bottom;
}

.b-windows {
  position: absolute;
  inset: 12% 10% 10%;
  background:
    linear-gradient(90deg, rgba(47, 69, 80, 0.22) 1px, transparent 1px),
    linear-gradient(0deg, rgba(47, 69, 80, 0.22) 1px, transparent 1px);
  background-size: 14px 16px;
  opacity: 0.55;
}

.b-label {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -110%) translateZ(80px) rotateZ(32deg) rotateX(-58deg) scale(0.96);
  background: rgba(26, 34, 40, 0.88);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.b1 { left: 14%; top: 14%; width: 78px; height: 132px; transform: translateZ(1px); }
.b1 .b-front { width: 78px; height: 132px; }
.b1 .b-side { width: 48px; height: 132px; transform: rotateY(90deg); }
.b1 .b-top { width: 78px; height: 48px; transform: translateY(-48px) rotateX(90deg); }

.b2 { left: 36%; top: 4%; width: 88px; height: 168px; transform: translateZ(1px); }
.b2 .b-front { width: 88px; height: 168px; }
.b2 .b-side { width: 52px; height: 168px; transform: rotateY(90deg); }
.b2 .b-top { width: 88px; height: 52px; transform: translateY(-52px) rotateX(90deg); }

.b3 { left: 60%; top: 12%; width: 74px; height: 124px; transform: translateZ(1px); }
.b3 .b-front { width: 74px; height: 124px; }
.b3 .b-side { width: 46px; height: 124px; transform: rotateY(90deg); }
.b3 .b-top { width: 74px; height: 46px; transform: translateY(-46px) rotateX(90deg); }

.b4 { left: 26%; top: 50%; width: 68px; height: 100px; transform: translateZ(1px); }
.b4 .b-front { width: 68px; height: 100px; background: linear-gradient(180deg, #eef3f5, #c8d4da); }
.b4 .b-side { width: 40px; height: 100px; transform: rotateY(90deg); background: linear-gradient(180deg, #b7c4cb, #8fa0a9); }
.b4 .b-top { width: 68px; height: 40px; transform: translateY(-40px) rotateX(90deg); background: linear-gradient(135deg, #2f4550, #1a2228); }

.station-dot {
  position: absolute;
  left: 72%;
  top: 58%;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand);
  transform: translateZ(12px);
  box-shadow: 0 0 0 6px rgba(155, 44, 44, 0.15);
}

.building-info {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: min(220px, calc(100% - 2rem));
  padding: 0.85rem 0.95rem;
  background: rgba(251, 252, 253, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
}

.building-info.is-open {
  display: block;
  animation: rise 0.25s ease;
}

.building-info h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.building-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.building-info a {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.88rem;
}

/* —— Page sections —— */
.page-hero {
  padding: 2.5rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.page-hero p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

.section {
  padding: 2.5rem 0 4rem;
}

.section-alt {
  background: rgba(251, 252, 253, 0.55);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.section-head p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.duty-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
}

.person-list {
  display: grid;
  gap: 0.85rem;
}

.person {
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.person.highlight {
  background: linear-gradient(135deg, #fff8f5, #f6ece7);
  border-color: rgba(155, 44, 44, 0.22);
}

.person h3 {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.person-name {
  margin: 0.4rem 0 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.person-role {
  margin: 0.2rem 0 0.7rem;
  color: var(--muted);
}

.phone {
  color: var(--brand);
  font-weight: 700;
}

.duty-side {
  padding: 1.35rem;
  background: var(--steel);
  color: #fff;
  border-radius: var(--radius);
}

.duty-side h3 {
  margin: 0 0 0.9rem;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #f0c7c0;
}

.note {
  margin: 1.1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  min-width: 640px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.data-table th {
  background: rgba(47, 69, 80, 0.05);
  font-weight: 600;
  color: var(--steel);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.tag-ok {
  color: var(--ok);
  font-weight: 700;
}

.tag-warn {
  color: var(--warn);
  font-weight: 700;
}

.facility-layout {
  display: grid;
  gap: 1.25rem;
}

.facility-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
}

.facility-visual {
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(26, 34, 40, 0.15), rgba(26, 34, 40, 0.45)),
    linear-gradient(135deg, #3d5a66, #2f4550);
}

.facility-copy {
  padding: 1.5rem;
}

.facility-copy h3 {
  margin: 0 0 0.65rem;
}

.facility-copy p {
  margin: 0;
  color: var(--muted);
}

.facility-copy ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
}

.point-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.point-row article {
  padding: 1rem 0.2rem;
  border-top: 3px solid var(--brand);
}

.point-row h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

.point-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.knowledge-item {
  padding: 1.25rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.knowledge-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.k-num {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.knowledge-item h3 {
  margin: 0.45rem 0;
  font-size: 1.15rem;
}

.knowledge-item p {
  margin: 0;
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(47, 69, 80, 0.03);
  display: grid;
  gap: 1rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--line);
}

.timeline li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.timeline time {
  color: var(--brand);
  font-weight: 700;
}

.timeline p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.report-form {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.form-row label span {
  color: var(--brand);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: #fff;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(155, 44, 44, 0.22);
  border-color: rgba(155, 44, 44, 0.4);
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field-hint {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.form-status {
  min-height: 1.4rem;
  margin: 0.75rem 0 0;
  font-weight: 600;
}

.form-status.is-ok {
  color: var(--ok);
}

.form-status.is-error {
  color: var(--brand);
}

.emergency-block {
  padding: 3rem 0;
  background: linear-gradient(135deg, #3a1d1d 0%, #6f1d1d 48%, #2f4550 100%);
  color: #fff;
}

.emergency-block .page-hero h1,
.emergency-block .page-hero p {
  color: #fff;
}

.emergency-block .page-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.emergency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.emergency-card {
  display: grid;
  gap: 0.3rem;
  padding: 1.3rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, transform 0.2s ease;
}

.emergency-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.emergency-card strong {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.emergency-tips {
  margin: 1.4rem 0 0;
  padding-left: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
}

.building-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* —— 人员信息 —— */
.people-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.people-summary article {
  padding: 1rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.people-summary strong {
  display: block;
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.people-summary span {
  color: var(--muted);
  font-size: 0.85rem;
}

.people-summary .is-special {
  border-color: rgba(155, 44, 44, 0.28);
  background: linear-gradient(135deg, #fff8f5, #f7ece7);
}

.people-summary .is-special strong {
  color: var(--brand);
}

.people-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.people-tab {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--steel);
  font-weight: 600;
  cursor: pointer;
}

.people-tab.is-active {
  background: var(--steel);
  border-color: var(--steel);
  color: #fff;
}

.people-filter-check {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  cursor: pointer;
}

.people-table-wrap {
  margin-top: 0.25rem;
}

.people-table {
  min-width: 920px;
}

.people-table tr.has-special {
  background: rgba(155, 44, 44, 0.04);
}

.tag-special {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(155, 44, 44, 0.1);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.tag-none {
  color: var(--muted);
}

@media (max-width: 900px) {
  .people-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .people-filter-check {
    margin-left: 0;
    width: 100%;
  }
}

.building-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.building-card-visual {
  height: 140px;
  background:
    linear-gradient(135deg, rgba(47, 69, 80, 0.35), rgba(155, 44, 44, 0.35)),
    linear-gradient(180deg, #d7dee3, #b7c3cb);
}

.building-card-body {
  padding: 1.1rem 1.2rem 1.25rem;
}

.building-card-body h3 {
  margin: 0 0 0.4rem;
}

.building-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.meta-list {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.3rem;
}

.meta-list span {
  color: var(--muted);
}

.footnote {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footnote a {
  color: var(--brand);
  text-decoration: underline;
}

.site-footer {
  padding: 2.2rem 0;
  background: #1a2228;
  color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-footer strong {
  color: #fff;
}

.site-footer p {
  margin: 0.35rem 0 0;
}

.site-footer a {
  color: #f0c7c0;
}

.float-call {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(155, 44, 44, 0.3);
}

.float-alarm {
  left: 1.25rem;
  right: auto;
  bottom: 1.25rem;
  min-height: 96px;
  min-width: 96px;
  padding: 1.15rem 1.8rem;
  font-size: 1.35rem;
  border-radius: 999px;
  background: var(--brand-deep);
  letter-spacing: 0.08em;
  box-shadow: 0 14px 32px rgba(111, 29, 29, 0.4);
}

.replace-note {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid var(--warn);
  background: rgba(180, 83, 9, 0.08);
  color: var(--muted);
  font-size: 0.84rem;
}

@media (max-width: 1100px) {
  .board-grid {
    grid-template-columns: minmax(200px, 220px) minmax(0, 1fr) minmax(190px, 210px);
    gap: 0.55rem;
  }
}

/* 平板及以下：允许纵向滚动看全貌，不再强行锁一屏高度 */
@media (max-width: 900px) {
  .board-grid {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }

  .board-center {
    min-height: 420px;
    height: 52vh;
    order: -1;
  }

  .board-left,
  .board-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    overflow: visible;
  }

  .platform-lockup {
    grid-column: 1 / -1;
  }

  .home-board {
    padding-bottom: 2rem;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.7rem 1rem 1rem;
    background: rgba(251, 252, 253, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem 0.35rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin: 0.7rem 0 0;
    text-align: center;
  }

  .board-left,
  .board-right,
  .duty-grid,
  .facility-feature,
  .knowledge-grid,
  .point-row,
  .emergency-grid,
  .building-cards,
  .form-row.two-col,
  .timeline li {
    grid-template-columns: 1fr;
  }

  .brand-text small {
    display: none;
  }

  .iso-world {
    transform: rotateX(58deg) rotateZ(-32deg) scale(0.82);
  }
}
