/* ===== 深色主题：靛蓝 + 琥珀 · 极宇品牌色 ===== */
:root {
  --bg-deep: #08080f;
  --bg-mid: #0f1018;
  --accent: #818cf8;
  --accent-strong: #6366f1;
  --accent-dim: rgba(129, 140, 248, 0.38);
  --accent-alt: #f59e0b;
  --accent-alt-dim: rgba(245, 158, 11, 0.35);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(129, 140, 248, 0.22);
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  opacity: 0.35;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 13, 0.95) 0%,
    rgba(5, 8, 13, 0.65) 70%,
    transparent 100%
  );
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  line-height: 1.15;
}

.logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 0 10px rgba(129, 140, 248, 0.45));
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-cn {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.42em;
  background: linear-gradient(
    105deg,
    #f8fafc 0%,
    #c7d2fe 42%,
    #fde68a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-en {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: #cbd5e1;
}

.logo-bracket {
  color: var(--accent-alt);
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: color 0.2s, text-shadow 0.2s;
}

.nav a:hover {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-dim);
}

.nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 14px var(--accent-dim);
}

main {
  position: relative;
  z-index: 2;
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--accent-alt);
  margin-bottom: 1rem;
  position: relative;
}

.hero-tag::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  clip-path: inset(0 0 50% 0);
  opacity: 0.5;
}

.hero-title {
  margin: 0 0 1rem;
  line-height: 1.2;
}

.hero-brand {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: 0.28em;
  background: linear-gradient(120deg, var(--text) 0%, var(--accent) 55%, var(--accent-alt) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(129, 140, 248, 0.3));
}

.hero-brand--compact {
  letter-spacing: 0.14em;
  font-size: clamp(2.1rem, 7vw, 3.5rem);
}

.hero-lead {
  max-width: 36em;
  margin: 0 auto 0.75rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.75;
}

.glitch {
  position: relative;
  color: var(--text);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
}

.glitch::before {
  color: var(--accent);
  animation: glitch-1 2.5s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
  color: var(--accent-alt);
  animation: glitch-2 3s infinite linear alternate-reverse;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 1px);
  }
  40% {
    transform: translate(2px, -1px);
  }
}

@keyframes glitch-2 {
  0%,
  100% {
    transform: translate(0);
  }
  25% {
    transform: translate(2px, 1px);
  }
  50% {
    transform: translate(-1px, -2px);
  }
}

.hero-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
}

.cursor-blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
  color: #f8fafc;
  background: linear-gradient(135deg, var(--accent-strong), #4f46e5);
  border: none;
  font-weight: 600;
  box-shadow: 0 0 24px var(--accent-dim);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(99, 102, 241, 0.55);
}

.btn-ghost {
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  box-shadow: inset 0 0 20px rgba(129, 140, 248, 0.1);
  transform: translateY(-2px);
}

.btn-console {
  color: #0f172a;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 45%, #fde68a 100%);
  border: 1px solid rgba(99, 102, 241, 0.45);
  font-weight: 600;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}

.btn-console:hover {
  border-color: rgba(99, 102, 241, 0.75);
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 560px;
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.metric {
  text-align: center;
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-dim);
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-number {
  color: var(--accent-alt);
  font-size: 0.85rem;
}

.section-lead {
  margin: -0.5rem 0 1.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 42em;
}

.mqtt-section-lead strong {
  color: var(--accent);
  font-weight: 600;
}

.about-prose {
  padding: 1.75rem 1.5rem;
  max-width: 42em;
}

.about-prose p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.glass {
  background: linear-gradient(
    145deg,
    rgba(10, 16, 24, 0.88),
    rgba(5, 8, 13, 0.75)
  );
  border: 1px solid var(--border);
  border-radius: 4px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.card {
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 0 28px rgba(129, 140, 248, 0.12);
}

.card-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.card h3 {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
  letter-spacing: 0.06em;
}

.card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.feature-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-key {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-alt);
}

.feature-val {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.section-contact .contact-panel {
  padding: 2rem;
  max-width: 560px;
}

.contact-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.contact-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  font-size: 0.9rem;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-key {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--accent-alt);
  text-transform: uppercase;
}

.contact-val {
  color: var(--text-muted);
  word-break: break-all;
}

a.contact-val {
  color: var(--accent);
  text-decoration: none;
}

a.contact-val:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-hint {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.ip-display {
  padding: 1rem 1.25rem;
  background: rgba(129, 140, 248, 0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 1rem;
}

.ip-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.ip-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-dim);
}

.contact-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.9;
}

.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent);
  background: rgba(129, 140, 248, 0.1);
  padding: 0.1em 0.35em;
  border-radius: 2px;
  border: 1px solid var(--border);
}

/* ===== 资料下载 ===== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.download-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.download-card:hover {
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 0 28px rgba(129, 140, 248, 0.12);
}

.download-card-top {
  flex: 1;
}

.download-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-alt);
  margin-bottom: 0.5rem;
}

.download-card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
}

.download-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.download-format {
  padding: 0.2em 0.5em;
  font-family: var(--font-mono);
  color: var(--accent);
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.download-size {
  opacity: 0.85;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.6rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-strong), #4f46e5);
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(79, 70, 229, 0.2);
  transition: transform 0.15s, box-shadow 0.2s;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
}

.download-btn:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.page-hero-downloads {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

.page-hero-downloads .page-title {
  margin-bottom: 1.25rem;
}

.page-hero-downloads .page-title .hero-brand {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  letter-spacing: 0.2em;
}

.page-hero-downloads .page-intro {
  margin: 0 auto 2rem;
  text-align: left;
  max-width: 42em;
}

.page-hero-downloads .download-grid {
  text-align: left;
}

.back-home {
  margin-top: 2.5rem;
}

/* ===== MQTT 控制台 ===== */
.mqtt-panel {
  padding: 1.75rem;
  max-width: 640px;
}

.mqtt-lead {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.mqtt-field {
  margin-bottom: 1rem;
}

.mqtt-field label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.mqtt-field input {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  background: rgba(5, 8, 13, 0.6);
  border: 1px solid var(--border);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mqtt-field input:focus {
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.14);
}

.mqtt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 1rem;
}

.mqtt-actions button {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  padding: 0.55rem 1rem;
  color: var(--accent);
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.12s;
}

.mqtt-actions button:hover {
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 0 16px rgba(129, 140, 248, 0.12);
  transform: translateY(-1px);
}

.mqtt-status {
  font-size: 0.88rem;
  margin: 0 0 0.75rem;
  min-height: 1.4em;
}

.mqtt-status.ok {
  color: #5fdf9a;
  text-shadow: 0 0 12px rgba(95, 223, 154, 0.35);
}

.mqtt-status.err {
  color: #ff6b8a;
  text-shadow: 0 0 12px rgba(255, 107, 138, 0.25);
}

.mqtt-devices-preview {
  margin: 1.25rem 0 1rem;
  padding: 1.25rem 1.35rem;
  max-width: 100%;
}

.mqtt-devices-preview-head {
  margin-bottom: 1rem;
}

.mqtt-devices-preview-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}

.mqtt-devices-preview-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.mqtt-devices-preview-hint strong {
  color: var(--accent);
  font-weight: 600;
}

.mqtt-devices-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
}

.mqtt-devices-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.mqtt-devices-table thead {
  background: rgba(129, 140, 248, 0.08);
}

.mqtt-devices-table th,
.mqtt-devices-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.mqtt-devices-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mqtt-devices-table tbody tr:last-child td {
  border-bottom: none;
}

.mqtt-dev-id {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-alt);
}

.mqtt-dev-status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.mqtt-dev-status-on {
  color: #5fdf9a;
  background: rgba(95, 223, 154, 0.12);
  border: 1px solid rgba(95, 223, 154, 0.35);
}

.mqtt-dev-status-off {
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--border);
}

.mqtt-devices-empty td {
  text-align: center;
  color: var(--text-muted);
  padding: 1.25rem 0.85rem;
}

.mqtt-log {
  margin: 0;
  padding: 1rem;
  min-height: 200px;
  max-height: 280px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: #9fefc4;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: 2px;
}

@media (max-width: 600px) {
  .nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .feature-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .contact-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .logo-cn {
    letter-spacing: 0.28em;
  }
}

/* ===== MQTT 控制台页（云厂商风格布局）===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.iot-console-page {
  --iot-sidebar-open-width: 220px;
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: #1d2129;
  background: #f0f2f5;
}

.iot-app {
  display: flex;
  min-height: 100vh;
  padding-bottom: 120px;
}

/* 侧栏外层：控制宽度动画，折叠时为 0；宽度与按钮 fixed left 共用同一数值 */
.iot-sidebar-outer {
  position: relative;
  flex-shrink: 0;
  width: var(--iot-sidebar-open-width);
  min-height: 100vh;
  transition: width 0.22s ease;
  overflow: visible;
}

.iot-sidebar-outer.is-collapsed {
  width: 0;
}

.iot-sidebar {
  width: 100%;
  min-height: 100vh;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0f1f3d 0%, #0c182e 100%);
  color: #c9d1e0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

/*
 * 折叠键：fixed + left 与侧栏右边界对齐（展开 220px / 折叠 0），
 * 垂直用 50vh，避免父级宽度为 0 时 absolute 参照变化导致跳动。
 */
.iot-sidebar-toggle {
  position: fixed;
  z-index: 30;
  left: var(--iot-sidebar-open-width);
  top: 50vh;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: none;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(180deg, #152a52 0%, #0f1f3d 100%);
  color: #c9d1e0;
  cursor: pointer;
  box-shadow: 2px 0 10px rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    left 0.22s ease,
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.iot-sidebar-outer.is-collapsed .iot-sidebar-toggle {
  left: 0;
}

.iot-sidebar-toggle:hover {
  color: #fff;
  background: rgba(0, 110, 255, 0.35);
  box-shadow: 2px 0 14px rgba(0, 110, 255, 0.25);
}

.iot-sidebar-toggle:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.iot-sidebar-toggle-icon {
  display: block;
  transition: transform 0.22s ease;
}

.iot-sidebar-outer.is-collapsed .iot-sidebar-toggle-icon {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .iot-sidebar-outer,
  .iot-sidebar-toggle,
  .iot-sidebar-toggle-icon {
    transition: none;
  }
}

.iot-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.iot-sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #006eff 0%, #00a3ff 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
}

.iot-sidebar-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #f1f5f9;
  letter-spacing: 0.02em;
}

.iot-sidebar-sub {
  font-size: 0.68rem;
  opacity: 0.65;
  margin-top: 0.15rem;
}

.iot-side-nav {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
  flex: 1;
}

.iot-side-section {
  padding: 0.65rem 1.25rem 0.35rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201, 209, 224, 0.45);
}

.iot-side-link {
  display: block;
  padding: 0.55rem 1.25rem;
  color: #a8b0c4;
  text-decoration: none;
  font-size: 0.88rem;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
}

.iot-side-link:hover {
  background: rgba(0, 110, 255, 0.12);
  color: #e8eef8;
}

.iot-side-link.is-active {
  background: rgba(0, 110, 255, 0.18);
  color: #fff;
  border-left-color: #006eff;
  font-weight: 600;
}

.iot-sidebar-foot {
  margin: 0;
  padding: 1rem;
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(201, 209, 224, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.iot-main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.iot-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.iot-breadcrumb {
  font-size: 0.82rem;
  color: #4e5969;
}

.iot-bc-sep {
  margin: 0 0.35rem;
  color: #c9cdd4;
}

.iot-topbar-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: #86909c;
}

.iot-user-chip {
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1d2129;
  background: #eef2ff;
  border-radius: 4px;
  border: 1px solid #c7d2fe;
}

.iot-region {
  padding: 0.2rem 0.5rem;
  background: #f7f8fa;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

.iot-link-home {
  color: #006eff;
  text-decoration: none;
}

.iot-link-home:hover {
  text-decoration: underline;
}

.iot-content {
  padding: 1.25rem 1.5rem 2rem;
  flex: 1;
}

.iot-page-head {
  margin-bottom: 1.25rem;
}

.iot-page-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1d2129;
  letter-spacing: 0.02em;
}

.iot-page-desc {
  margin: 0;
  font-size: 0.86rem;
  color: #86909c;
  max-width: 52em;
  line-height: 1.65;
}

.iot-sync-hint {
  margin: 0.85rem 0 0;
  padding: 0.75rem 1rem;
  max-width: 52em;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #4e5969;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
}

.iot-sync-hint strong {
  color: #c2410c;
}

.iot-sync-hint .iot-inline-code {
  color: #b45309;
  background: #fffbeb;
  border-color: #fde68a;
}

.iot-tip-warn {
  margin: 0.85rem 0 0;
  padding: 0.75rem 1rem;
  max-width: 52em;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
}

.iot-api-fail {
  margin: 0.85rem 0 0;
  padding: 0.75rem 1rem;
  max-width: 52em;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 6px;
}

.iot-inline-code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: #d97706;
  background: #fff7ed;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  border: 1px solid #ffedd5;
}

.iot-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.iot-stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem 1.15rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.iot-stat-card.iot-stat-accent {
  border-color: rgba(0, 110, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 110, 255, 0.08);
}

.iot-stat-label {
  font-size: 0.78rem;
  color: #86909c;
  margin-bottom: 0.35rem;
}

.iot-stat-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: #1d2129;
  letter-spacing: 0.04em;
}

.iot-stat-accent .iot-stat-value {
  color: #006eff;
}

.iot-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.iot-toolbar-left,
.iot-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.iot-search input {
  width: min(280px, 72vw);
  padding: 0.45rem 0.65rem;
  font-size: 0.86rem;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s;
}

.iot-search input:focus {
  border-color: #006eff;
}

.iot-select {
  padding: 0.45rem 0.6rem;
  font-size: 0.86rem;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
  color: #1d2129;
}

.iot-btn {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.iot-btn-primary {
  color: #fff;
  background: #006eff;
  border-color: #006eff;
  font-weight: 600;
}

.iot-btn-primary:hover {
  background: #0056d6;
  border-color: #0056d6;
  box-shadow: 0 2px 8px rgba(0, 110, 255, 0.35);
}

.iot-btn-ghost {
  color: #1d2129;
  background: #fff;
  border-color: #e5e7eb;
}

.iot-btn-ghost:hover {
  border-color: #006eff;
  color: #006eff;
}

.iot-table-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.iot-table-scroll {
  overflow-x: auto;
}

.iot-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.iot-table thead {
  background: #f7f8fa;
}

.iot-table th,
.iot-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.iot-table th {
  font-weight: 600;
  color: #4e5969;
  white-space: nowrap;
}

.iot-th-actions,
.iot-td-actions {
  text-align: right;
  white-space: nowrap;
  width: 6.5rem;
}

.iot-td-actions .iot-link-btn {
  margin-left: 0.35rem;
}

.iot-td-actions .iot-link-btn:first-child {
  margin-left: 0;
}

.iot-empty-row td {
  text-align: center;
  color: #86909c;
  padding: 2rem 1rem;
}

.iot-mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.iot-textarea-mono {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.45;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border-subtle, #e5e6eb);
  border-radius: 6px;
  resize: vertical;
  min-height: 4.5rem;
}

.iot-cell-clip {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iot-device-row {
  cursor: pointer;
}

.iot-device-row:hover {
  background: #fafafa;
}

.iot-device-row.is-expanded {
  background: #f0f7ff;
}

.iot-device-chevron {
  display: inline-block;
  width: 1.1rem;
  color: #86909c;
  font-size: 0.7rem;
  vertical-align: middle;
}

.iot-device-detail-row td.iot-device-detail-cell {
  padding: 0 1rem 1rem;
  background: #fafbfc;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

.iot-device-detail-panel,
.iot-device-detail-shell {
  max-width: 100%;
  padding: 0.75rem 0 0.25rem;
  border-top: 1px dashed #e5e6eb;
  margin-top: 0.25rem;
}

/* 腾讯云风格：手风琴（默认折叠，点击展开一项，再点收起） */
.iot-detail-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.iot-detail-acc-item {
  border-bottom: 1px solid #e5e6eb;
}

.iot-detail-acc-item:last-child {
  border-bottom: none;
}

.iot-detail-acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: #1d2129;
  text-align: left;
  background: #f7f8fa;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.iot-detail-acc-trigger:hover {
  background: #eef0f3;
}

.iot-detail-acc-trigger.is-open {
  color: #006eff;
  font-weight: 600;
  background: #f0f7ff;
}

.iot-detail-acc-label {
  flex: 1;
}

.iot-detail-acc-chev {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.5rem;
  border-right: 2px solid #86909c;
  border-bottom: 2px solid #86909c;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.iot-detail-acc-trigger.is-open .iot-detail-acc-chev {
  transform: rotate(-135deg);
  border-color: #006eff;
}

.iot-detail-acc-panel {
  padding: 0.65rem 0.75rem 0.85rem;
  background: #fff;
}

.iot-detail-acc-panel[hidden] {
  display: none !important;
}

.iot-detail-acc-body-inner {
  max-width: 100%;
}

/* 设备详情：横向 Tab（轮询/MQTT 重绘后仍保持当前 Tab） */
.iot-detail-tabs {
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.iot-detail-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid #e5e6eb;
  background: #f7f8fa;
}

.iot-detail-tab {
  flex: 1 1 auto;
  min-width: 4.5rem;
  padding: 0.48rem 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  color: #4e5969;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.iot-detail-tab:hover {
  color: #006eff;
  background: rgba(0, 110, 255, 0.06);
}

.iot-detail-tab.is-active {
  color: #006eff;
  font-weight: 600;
  background: #fff;
  border-bottom-color: #006eff;
}

.iot-detail-tab-panels {
  min-height: 3rem;
}

.iot-detail-tab-panel {
  display: none;
  padding: 0.65rem 0.75rem 0.85rem;
  background: #fff;
}

.iot-detail-tab-panel.is-active {
  display: block;
}

/* Topic 列表内二级 Tab + 表格 */
.iot-topic-list-inner {
  margin-top: 0.25rem;
}

.iot-topic-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.35rem;
  margin-bottom: 0.65rem;
  background: #f2f3f5;
  border-radius: 4px;
}

.iot-topic-subtab {
  padding: 0.3rem 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: #4e5969;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.iot-topic-subtab:hover {
  color: #006eff;
  background: rgba(255, 255, 255, 0.7);
}

.iot-topic-subtab.is-active {
  color: #1d2129;
  font-weight: 600;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.iot-topic-subpanels {
  min-height: 2rem;
}

.iot-topic-subpanel {
  display: none;
}

.iot-topic-subpanel.is-active {
  display: block;
}

.iot-topic-perm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  overflow: hidden;
}

.iot-topic-perm-table th,
.iot-topic-perm-table td {
  padding: 0.45rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

.iot-topic-perm-table th {
  font-weight: 600;
  color: #4e5969;
  background: #fafbfc;
}

.iot-topic-perm-table tr:last-child td {
  border-bottom: none;
}

.iot-topic-perm-table td.iot-mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  word-break: break-all;
}

.iot-cloud-log-wrap .iot-cloud-log-table {
  margin-top: 0.1rem;
}

.iot-cloud-log-wrap {
  max-height: 22rem;
  overflow: auto;
}

.iot-thingmodel-wrap {
  margin-top: 0.15rem;
}

.iot-thingmodel-hint {
  padding: 0.45rem 0.6rem;
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #1668a8;
  background: rgba(22, 104, 168, 0.08);
  border: 1px solid rgba(22, 104, 168, 0.2);
  border-radius: 4px;
}

.iot-thingmodel-saved {
  margin-bottom: 0.6rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  background: #fafbfc;
}

.iot-thingmodel-saved summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: #1d2129;
  /* 与上方「物模型历史数据」summary 一致：勿用 outside，否则三角会整体偏右 */
  list-style-position: inside;
}

.iot-thingmodel-saved summary:hover {
  color: #006eff;
}

.iot-thingmodel-json-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.45rem 0 0.35rem;
}

.iot-thingmodel-json-view {
  margin: 0.35rem 0 0;
  padding: 0.5rem 0.6rem;
  max-height: 18rem;
  overflow: auto;
  font-size: 0.72rem;
  line-height: 1.45;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  white-space: pre-wrap;
  word-break: break-all;
}

.iot-thingmodel-history {
  margin-bottom: 0.65rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  background: #fcfcfd;
}

.iot-thingmodel-history summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1d2129;
  list-style-position: inside;
}

.iot-thingmodel-history-inner {
  margin-top: 0.5rem;
}

.iot-thingmodel-history-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.45rem;
}

.iot-thingmodel-history-dt {
  font-size: 0.78rem;
  padding: 0.2rem 0.35rem;
  border: 1px solid #e5e6eb;
  border-radius: 4px;
}

.iot-thingmodel-history-sep {
  font-size: 0.75rem;
  color: #86909c;
}

.iot-thingmodel-history-status {
  font-size: 0.75rem;
  color: #4e5969;
  margin-bottom: 0.45rem;
}

.iot-thingmodel-history-chart-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.iot-thingmodel-history-chart-label {
  font-size: 0.75rem;
  color: #4e5969;
}

.iot-thingmodel-history-select {
  font-size: 0.78rem;
  min-width: 8rem;
  padding: 0.2rem 0.4rem;
}

.iot-thingmodel-history-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 220px;
  margin-bottom: 0.55rem;
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  background: #fafbfc;
}

.iot-thingmodel-history-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.35rem 0 0.35rem;
  color: #1d2129;
}

.iot-thingmodel-history-table-scroll {
  overflow-x: auto;
  max-height: 16rem;
  overflow-y: auto;
}

.iot-thingmodel-history-data-table {
  font-size: 0.72rem;
}

.iot-thingmodel-hist-btn {
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid #006eff;
  color: #006eff;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.iot-thingmodel-hist-btn:hover {
  background: rgba(0, 110, 255, 0.06);
}

.iot-thingmodel-parse-warn {
  padding: 0.45rem 0.6rem;
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #d4380d;
  background: rgba(212, 56, 13, 0.08);
  border: 1px solid rgba(212, 56, 13, 0.25);
  border-radius: 4px;
}

.iot-thingmodel-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.55rem;
}

.iot-thingmodel-sync-note {
  font-size: 0.72rem;
  color: #86909c;
}

.iot-thingmodel-table-scroll {
  overflow-x: auto;
  max-width: 100%;
}

.iot-topic-subpanel .iot-thingmodel-props-full {
  min-width: 36rem;
}

.iot-thingmodel-hist-cell {
  color: #86909c;
  font-size: 0.72rem;
}

.iot-thingmodel-hist-link {
  color: #006eff;
  cursor: default;
  text-decoration: none;
}

.iot-thingmodel-hist-link:hover {
  text-decoration: underline;
}

.iot-thingmodel-raw {
  margin-top: 0.65rem;
}

.iot-thingmodel-raw summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 500;
  color: #4e5969;
  margin-bottom: 0.35rem;
}

.iot-thingmodel-raw summary:hover {
  color: #006eff;
}

.iot-tc-block {
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  padding: 0.65rem 0.85rem 0.75rem;
  margin-bottom: 0.65rem;
}

.iot-tc-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.iot-tc-block-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1d2129;
  margin: 0 0 0.4rem;
}

.iot-tc-block-head .iot-tc-block-title {
  margin-bottom: 0;
}

.iot-tc-btn-regen {
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  color: #006eff;
  background: #fff;
  border: 1px solid rgba(0, 110, 255, 0.35);
  border-radius: 4px;
  cursor: pointer;
}

.iot-tc-btn-regen:hover {
  background: rgba(0, 110, 255, 0.06);
}

/* 设备信息 Tab：两列栅格，字段依次从左到右、自上而下填充 */
.iot-device-info-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 0.5rem;
  align-items: start;
}

@media (max-width: 720px) {
  .iot-device-info-fields {
    grid-template-columns: 1fr;
  }
}

.iot-device-info-fields .iot-tc-field-row {
  margin-bottom: 0;
}

.iot-device-info-fields .iot-tc-field-label {
  flex: 0 0 5.25rem;
  max-width: 42%;
  font-size: 0.76rem;
}

.iot-device-info-fields .iot-tc-field-value {
  font-size: 0.78rem;
}

.iot-tc-field-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
}

.iot-tc-field-row-stack {
  flex-direction: column;
  gap: 0.35rem;
}

.iot-tc-field-label {
  flex: 0 0 7.5rem;
  color: #86909c;
  line-height: 1.5;
}

.iot-tc-field-value {
  flex: 1;
  min-width: 0;
  line-height: 1.5;
  color: #1d2129;
}

.iot-tc-field-text {
  word-break: break-all;
}

.iot-tc-field-value .iot-tc-field-text.iot-mono {
  font-size: 0.76rem;
}

.iot-tc-status.is-online {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #00a870;
  background: rgba(0, 168, 112, 0.1);
  border-radius: 4px;
}

.iot-tc-status.is-offline {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #86909c;
  background: #f2f3f5;
  border-radius: 4px;
}

.iot-tc-tag {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  font-size: 0.75rem;
  color: #1d2129;
  background: #f2f3f5;
  border-radius: 4px;
}

.iot-tc-muted {
  color: #86909c !important;
}

.iot-tc-footnote {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #86909c;
}

.iot-tc-empty {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #86909c;
}

.iot-tc-payload-pre {
  margin: 0;
  padding: 0.5rem 0.6rem;
  max-height: 180px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  color: #1d2129;
  background: #f7f8fa;
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  white-space: pre-wrap;
  word-break: break-all;
}

.iot-tc-debug-lead {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #4e5969;
}

.iot-tc-go-dock {
  font-size: 0.82rem;
}

.iot-detail-section-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4e5969;
  margin: 0.65rem 0 0.4rem;
}

.iot-detail-section-title:first-child {
  margin-top: 0;
}

.iot-detail-copy-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
}

.iot-detail-label {
  flex: 0 0 9.5rem;
  color: #86909c;
  line-height: 1.5;
}

/* 行内排版：复制图标紧跟在文本末尾，不会被拉到整行最右侧 */
.iot-detail-value-wrap {
  flex: 1 1 0;
  min-width: 0;
  line-height: 1.5;
}

.iot-detail-value-wrap .iot-detail-value {
  display: inline;
  color: #1d2129;
  word-break: break-all;
}

.iot-detail-value-wrap code.iot-detail-value {
  display: inline;
  padding: 0;
  margin: 0;
  background: transparent;
  font-family: var(--font-mono);
}

.iot-detail-value.iot-mono {
  font-size: 0.78rem;
}

.iot-copy-icon-btn.iot-copy-btn {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 0.15rem;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #86909c;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.iot-copy-icon-btn.iot-copy-btn svg {
  display: block;
  pointer-events: none;
}

.iot-copy-icon-btn.iot-copy-btn:hover:not(:disabled) {
  color: #006eff;
  background: rgba(0, 110, 255, 0.08);
}

.iot-copy-icon-btn.iot-copy-btn:focus-visible {
  outline: 2px solid rgba(0, 110, 255, 0.45);
  outline-offset: 1px;
}

.iot-copy-icon-btn.iot-copy-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.iot-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.iot-badge-on {
  color: #00a870;
  background: rgba(0, 168, 112, 0.1);
}

.iot-badge-off {
  color: #86909c;
  background: #f2f3f5;
}

.iot-link-btn {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #006eff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.iot-link-btn:hover {
  text-decoration: underline;
}

.iot-mqtt-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
}

.iot-mqtt-dock-head {
  border-bottom: 1px solid #f0f0f0;
}

.iot-mqtt-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: #1d2129;
  background: #fafbfc;
  border: none;
  cursor: pointer;
  text-align: left;
}

.iot-mqtt-toggle:hover {
  background: #f5f6f8;
}

.iot-mqtt-toggle-label {
  flex: 1;
}

.iot-mqtt-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f2f3f5;
  color: #86909c;
}

.iot-mqtt-pill.is-ok {
  background: rgba(0, 168, 112, 0.12);
  color: #00a870;
}

.iot-mqtt-pill.is-err {
  background: rgba(245, 63, 63, 0.12);
  color: #f53f3f;
}

.iot-mqtt-chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid #86909c;
  border-bottom: 2px solid #86909c;
  transform: rotate(45deg);
  margin-bottom: 0.15rem;
}

.iot-mqtt-dock-body {
  padding: 1rem 1.25rem 1.15rem;
  max-height: 280px;
  overflow: auto;
}

.iot-mqtt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem 1rem;
  align-items: end;
  margin-bottom: 0.75rem;
}

.iot-field label {
  display: block;
  font-size: 0.72rem;
  color: #86909c;
  margin-bottom: 0.3rem;
}

.iot-field input {
  width: 100%;
  min-width: 0;
  padding: 0.45rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}

.iot-field input:focus {
  outline: none;
  border-color: #006eff;
}

.iot-field-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.1rem;
}

.iot-mqtt-log {
  margin: 0;
  padding: 0.65rem 0.75rem;
  min-height: 72px;
  max-height: 120px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  color: #1d2129;
  background: #f7f8fa;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}

.iot-mqtt-json-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.65rem;
  margin-bottom: 0.35rem;
}

.iot-mqtt-json-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4e5969;
}

.iot-mqtt-json-live {
  margin: 0;
  padding: 0.55rem 0.65rem;
  min-height: 100px;
  max-height: 220px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: #0d1b2a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  white-space: pre-wrap;
  word-break: break-all;
}

.iot-modal[hidden] {
  display: none;
}

.iot-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top))
    max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom))
    max(0.75rem, env(safe-area-inset-left));
  box-sizing: border-box;
}

.iot-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.iot-modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(85vh, 640px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  margin: auto;
}

.iot-modal-panel-wide {
  width: min(560px, 100%);
  max-height: min(90vh, 720px);
  overflow-y: auto;
}

.iot-ota-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.iot-ota-tab {
  padding: 0.5rem 1rem;
  margin-bottom: -1px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: default;
}

.iot-ota-tab.is-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.iot-ota-json {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  max-height: 240px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-all;
}

.iot-ota-batch-list {
  margin: 0.75rem 0 0;
  max-height: min(40vh, 280px);
  overflow-y: auto;
}

.iot-ota-dev-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.iot-ota-dev-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #334155;
  cursor: pointer;
}

.iot-btn-sm {
  padding: 0.25rem 0.55rem;
  font-size: 0.82rem;
}

.iot-modal-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.iot-modal .iot-field {
  margin-bottom: 0.85rem;
}

.iot-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-shrink: 0;
  padding-top: 0.75rem;
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-bottom: 0.15rem;
  background: #fff;
  box-shadow: 0 -10px 14px -8px rgba(15, 23, 42, 0.08);
}

.iot-modal-panel .iot-textarea-mono {
  max-height: min(28vh, 140px);
}

.iot-modal .iot-topic-hint {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #4e5969;
}

.iot-modal .iot-topic-hint .iot-inline-code {
  font-size: 0.75rem;
  word-break: break-all;
}

.iot-topic-stack {
  max-width: 380px;
  font-size: 0.72rem;
  line-height: 1.45;
}

.iot-topic-sec {
  display: block;
  margin-top: 0.35rem;
  margin-bottom: 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #1d2129;
}

.iot-topic-stack .iot-topic-sec:first-child {
  margin-top: 0;
}

.iot-topic-line {
  display: block;
  color: #4e5969;
  margin-bottom: 0.25rem;
}

.iot-topic-line:last-child {
  margin-bottom: 0;
}

/* 复制成功：底部居中轻提示，约 1 秒后淡出 */
.iot-copy-toast {
  position: fixed;
  bottom: 1.35rem;
  left: 50%;
  z-index: 10000;
  max-width: min(90vw, 20rem);
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #fff;
  text-align: center;
  background: rgba(29, 33, 41, 0.9);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0s linear 0.2s;
  pointer-events: none;
}

.iot-copy-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0s linear 0s;
}

.iot-copy-toast.is-out {
  opacity: 0;
  transform: translate(-50%, 4px);
}

@media (max-width: 900px) {
  .iot-app {
    flex-direction: column;
    padding-bottom: 200px;
  }

  .iot-sidebar-outer {
    width: 100% !important;
    min-height: 0;
  }

  .iot-sidebar-outer.is-collapsed {
    width: 100% !important;
  }

  .iot-sidebar-toggle {
    display: none;
  }

  .iot-sidebar {
    width: 100%;
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .iot-sidebar-brand {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .iot-side-nav {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    padding: 0.5rem 0.5rem 0.75rem;
  }

  .iot-side-section {
    width: 100%;
  }

  .iot-side-link {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 0.5rem 0.85rem;
  }

  .iot-side-link.is-active {
    border-left: none;
    border-bottom-color: #006eff;
  }

  .iot-sidebar-foot {
    width: 100%;
  }

  .iot-mqtt-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 门户 + 企业站融合（单页）===== */
main .section[id],
#top {
  scroll-margin-top: 5.5rem;
}

.about-tagline {
  margin-top: 1.25rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.95;
}

.section-merge-wide {
  max-width: 1180px;
}

.merge-svc-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .merge-svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .merge-svc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.merge-svc-card {
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 6px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.merge-svc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.merge-svc-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f8fafc;
  background: linear-gradient(135deg, var(--accent-strong) 0%, #8b5cf6 55%, #4f46e5 100%);
  border: 1px solid rgba(129, 140, 248, 0.35);
}

.merge-svc-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.merge-svc-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.merge-svc-desc {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.merge-svc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.merge-svc-list li {
  position: relative;
  padding-left: 0.85rem;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.merge-svc-list li:last-child {
  margin-bottom: 0;
}

.merge-svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.2);
}

.merge-process {
  margin-top: 2.5rem;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: 6px;
}

.merge-process-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.merge-process-head h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}

.merge-process-head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
}

.merge-process-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .merge-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .merge-process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.merge-process-card {
  padding: 1.1rem 1rem 1.1rem 1.1rem;
  border-radius: 6px;
  border: 1px solid rgba(129, 140, 248, 0.15);
  background: rgba(5, 8, 13, 0.45);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.merge-process-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.35);
}

.merge-process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-strong), #8b5cf6);
  margin-bottom: 0.65rem;
}

.merge-process-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.merge-process-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.merge-svc-more {
  text-align: center;
  margin-top: 1.75rem;
}

.merge-cases-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .merge-cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.merge-case-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(129, 140, 248, 0.2);
  background: linear-gradient(
    165deg,
    rgba(15, 23, 42, 0.95),
    rgba(8, 8, 15, 0.88)
  );
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.merge-case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(99, 102, 241, 0.15);
}

.merge-case-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #1a2744, #2d1f4a);
  overflow: hidden;
}

.merge-case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.merge-case-body {
  padding: 1.25rem 1.35rem 1.4rem;
}

.merge-case-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.merge-case-body > p {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.merge-case-cat {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.65rem;
}

.merge-case-cat--industrial {
  background: rgba(123, 63, 242, 0.35);
  color: #c7d2fe;
}

.merge-case-cat--iot {
  background: rgba(49, 70, 141, 0.65);
  color: #a8c4ff;
}

.merge-case-cat--medical {
  background: rgba(6, 182, 212, 0.2);
  color: #7ee8ff;
}

.merge-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.merge-case-tag {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #c6cadb;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.merge-case-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.merge-case-card:hover .merge-case-link {
  color: #a5b4fc;
}

.merge-cases-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.merge-cta {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 6px;
}

.merge-cta-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}

.merge-cta-lead {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

.btn-secondary {
  color: var(--text);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  font-weight: 600;
}

.btn-secondary:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim);
  transform: translateY(-2px);
}

.site-footer-links {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
}

.site-footer-links a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 0.35rem;
}

.site-footer-links a:hover {
  text-decoration: underline;
}

.contact-hint a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-hint a:hover {
  text-decoration: underline;
}

/* ===== 参考工程排版（沿用门户配色 / 背景 / Logo）===== */
.hero-brand--ref-long {
  letter-spacing: 0.06em;
  font-size: clamp(1.35rem, 4.2vw, 2.35rem);
  line-height: 1.35;
  max-width: 22em;
  margin-left: auto;
  margin-right: auto;
  display: inline-block;
}

.ref-page-hero {
  text-align: center;
  padding: 2.5rem 1.25rem 2rem;
  margin: 0 auto 0.5rem;
  max-width: 720px;
}

.ref-page-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.04em;
}

.ref-page-hero p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.ref-section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.ref-section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.ref-section-head .ref-h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.06em;
}

.ref-section-head .ref-sub {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.ref-band {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(8, 8, 15, 0.35) 100%
  );
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ref-portal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .ref-portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ref-portal-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ref-portal-card {
  padding: 1.25rem 1.1rem;
  border-radius: 6px;
  text-align: center;
}

.ref-portal-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.ref-portal-card p {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ref-portal-card .btn {
  width: 100%;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  font-size: 0.72rem;
}

.ref-values-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .ref-values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ref-value-card {
  padding: 1.5rem 1.25rem;
  border-radius: 6px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ref-value-card:hover {
  transform: translateY(-3px);
}

.ref-value-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: var(--accent);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.22),
    rgba(245, 158, 11, 0.1)
  );
  border: 1px solid var(--border);
}

.ref-value-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.ref-value-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.ref-about-hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 900px) {
  .ref-about-hero {
    grid-template-columns: 1fr 1.05fr;
  }

  .ref-about-hero.ref-about-hero--no-media {
    grid-template-columns: 1fr;
    max-width: 48rem;
  }
}

.ref-about-hero--no-media {
  grid-template-columns: 1fr;
  max-width: 48rem;
}

.ref-about-hero-text h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
}

.ref-about-slogan {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.ref-about-hero-media {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.ref-about-hero-media img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.ref-about-split {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 900px) {
  .ref-about-split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.ref-about-mvv h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.ref-about-mvv p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.ref-tiles-2x2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.ref-about-tile {
  padding: 1.1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(5, 8, 13, 0.5);
}

.ref-about-tile-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.65rem;
  color: var(--accent);
}

.ref-about-tile-icon svg {
  width: 100%;
  height: 100%;
}

.ref-about-tile h4 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.ref-about-tile p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ref-team-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ref-team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ref-team-card {
  padding: 1.35rem 1.1rem;
  border-radius: 6px;
  text-align: center;
  border: 1px solid var(--border);
  background: rgba(5, 8, 13, 0.45);
}

.ref-team-avatar {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  background: linear-gradient(135deg, var(--accent-strong), #8b5cf6);
}

.ref-team-card h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.ref-team-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.ref-timeline {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.ref-timeline-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(129, 140, 248, 0.15);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.ref-timeline-item strong {
  display: inline-block;
  min-width: 3.5rem;
  color: var(--accent-alt);
  font-weight: 800;
}

.ref-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.ref-badge {
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.5);
}

.ref-cta-bar {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: 6px;
  border: 1px solid rgba(129, 140, 248, 0.25);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.12),
    rgba(139, 92, 246, 0.08)
  );
}

.ref-cta-bar h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.ref-cta-bar p {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.ref-contact-layout {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 880px) {
  .ref-contact-layout {
    grid-template-columns: 1fr 1.05fr;
    gap: 2rem;
  }
}

.ref-contact-info {
  padding: 1.35rem 1.25rem;
  border-radius: 6px;
}

.ref-contact-info h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.ref-contact-line {
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.ref-contact-line strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.ref-contact-line a {
  color: var(--accent);
}

.ref-contact-form-wrap h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.ref-contact-form-wrap .ref-form-intro {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.ref-contact-form {
  padding: 1.25rem 1.15rem;
  border-radius: 6px;
}

.ref-contact-form .form-group {
  margin-bottom: 1rem;
}

.ref-contact-form .form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ref-contact-form .form-group input,
.ref-contact-form .form-group textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(5, 8, 13, 0.65);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.ref-contact-form .form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.ref-contact-form .form-group input:focus,
.ref-contact-form .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.ref-contact-form .btn-primary {
  width: 100%;
  margin-top: 0.25rem;
}

.form-status {
  margin-top: 0.85rem;
  padding: 0.75rem;
  border-radius: 4px;
  display: none;
  font-size: 0.85rem;
}

.form-status.is-success {
  display: block;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
}

.form-status.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.ref-footer-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto 1.25rem;
  text-align: left;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .ref-footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.ref-footer-grid h4 {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.ref-footer-grid a {
  display: block;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.ref-footer-grid a:hover {
  text-decoration: underline;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop .modal {
  position: relative;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(8, 8, 15, 0.98));
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 420px;
  width: 100%;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.modal-backdrop .modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.modal-backdrop .modal h3 {
  margin: 0 0 0.65rem;
  padding-right: 2rem;
  font-size: 1.1rem;
  color: var(--text);
}

.modal-backdrop .modal-section {
  margin-bottom: 1rem;
}

.modal-backdrop .modal-section h4 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.modal-backdrop .modal-section p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.page-cases .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.page-cases .filter-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(5, 8, 13, 0.5);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.page-cases .filter-btn:hover {
  color: var(--text);
  border-color: rgba(129, 140, 248, 0.45);
}

.page-cases .filter-btn.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.15);
}

.page-cases article.merge-case-card[data-case] {
  cursor: pointer;
  text-align: left;
}

.modal-backdrop .modal.modal--case {
  max-width: 640px;
}

.ref-module-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ref-module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ref-module-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ref-module-card {
  padding: 1.2rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid var(--border);
  background: rgba(5, 8, 13, 0.45);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ref-module-card:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.ref-module-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.ref-module-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ref-module-card .ref-module-arrow {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

.modal-backdrop .form-group {
  margin-bottom: 1rem;
}

.modal-backdrop .form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-backdrop .form-group input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(5, 8, 13, 0.65);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.modal-backdrop .form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.ref-download-groups .download-group {
  margin-bottom: 2.5rem;
}

.ref-download-groups .download-group h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.ref-download-groups .download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(129, 140, 248, 0.12);
}

.ref-download-groups .download-row h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--text);
}

.ref-download-groups .download-row p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ref-search-input {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1.75rem;
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(5, 8, 13, 0.65);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.ref-search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  color: #0f172a;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

/* ===== 首页改版（布局对齐参考稿；保留 canvas / scanlines / 深色底）===== */
body.page-index main.home-main {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 4.75rem;
  padding-bottom: 2rem;
}

body.page-index .site-header.site-header--home,
body.portal-ref .site-header.site-header--home {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr minmax(0, auto);
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 0.85rem 1.5rem;
}

body.page-index .logo--footer-brand,
body.portal-ref .logo--footer-brand {
  text-decoration: none;
  align-items: flex-start;
}

body.page-index .logo--footer-brand .logo-text,
body.portal-ref .logo--footer-brand .logo-text {
  gap: 0.15rem;
}

body.page-index .nav--home,
body.portal-ref .nav--home {
  justify-self: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem 1.35rem;
  max-width: 100%;
}

body.page-index .nav--home a,
body.portal-ref .nav--home a {
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

body.page-index .site-header-actions,
body.portal-ref .site-header-actions {
  justify-self: end;
}

body.page-index .btn-home-cta,
body.portal-ref .btn-home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #f8fafc;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.38);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

body.page-index .btn-home-cta:hover,
body.portal-ref .btn-home-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.5);
}

body.page-index .home-hero {
  text-align: center;
  padding: 2.5rem 1.25rem 3.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(480px, calc(100vh - 9rem));
}

body.page-index .home-hero-title {
  margin: 0;
  line-height: 1.22;
}

body.page-index .home-hero-line1 {
  display: block;
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
}

body.page-index .home-hero-line2 {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(100deg, #60a5fa 0%, #818cf8 45%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(96, 165, 250, 0.25));
}

body.page-index .home-hero-lead {
  margin: 1.25rem 0 0;
  max-width: 34em;
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.75;
}

body.page-index .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

body.page-index .btn-home-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.65rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: #f8fafc;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border: none;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

body.page-index .btn-home-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.48);
}

body.page-index .btn-home-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.65rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: #93c5fd;
  background: rgba(15, 23, 42, 0.35);
  border: 2px solid rgba(96, 165, 250, 0.55);
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

body.page-index .btn-home-outline:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  background: rgba(30, 58, 138, 0.25);
}

body.page-index .home-section {
  padding: 2.5rem 1.25rem 3rem;
}

body.page-index .home-section-head {
  text-align: center;
  margin-bottom: 2rem;
}

body.page-index .home-section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
}

body.page-index .home-section-sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

body.page-index .home-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

body.page-index .home-value-card {
  padding: 1.65rem 1.35rem;
  border-radius: 14px;
  text-align: left;
}

body.page-index .home-value-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: #eff6ff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

body.page-index .home-value-icon svg {
  width: 26px;
  height: 26px;
}

body.page-index .home-value-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

body.page-index .home-value-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

body.page-index .home-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

body.page-index .home-case-card {
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.page-index .home-case-card:hover {
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.15);
}

body.page-index .home-case-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

body.page-index .home-case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-index .home-case-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

body.page-index .home-case-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

body.page-index .home-case-body p {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}

body.page-index .home-case-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: #93c5fd;
  text-decoration: none;
}

body.page-index .home-case-link:hover {
  text-decoration: underline;
  color: #bfdbfe;
}

body.page-index .home-cases-more-wrap {
  text-align: center;
  margin-top: 2.25rem;
}

body.page-index .btn-home-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #93c5fd;
  background: rgba(15, 23, 42, 0.4);
  border: 2px solid rgba(96, 165, 250, 0.5);
  transition: transform 0.15s ease, border-color 0.2s ease;
}

body.page-index .btn-home-more:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
}

body.page-index .site-footer.site-footer--home,
body.portal-ref .site-footer.site-footer--home {
  text-align: left;
  padding: 2.75rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(5, 8, 13, 0.5));
}

body.page-index .home-footer-grid,
body.portal-ref .home-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 2rem 2.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

body.page-index .home-footer-brand .logo--footer-brand,
body.portal-ref .home-footer-brand .logo--footer-brand {
  margin-bottom: 1rem;
}

body.page-index .home-footer-desc,
body.portal-ref .home-footer-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 28em;
}

body.page-index .home-footer-heading,
body.portal-ref .home-footer-heading {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.08em;
}

body.page-index .home-footer-list,
body.page-index .home-footer-contact,
body.portal-ref .home-footer-list,
body.portal-ref .home-footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.page-index .home-footer-list li,
body.portal-ref .home-footer-list li {
  margin-bottom: 0.55rem;
}

body.page-index .home-footer-list a,
body.portal-ref .home-footer-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
}

body.page-index .home-footer-list a:hover,
body.portal-ref .home-footer-list a:hover {
  color: #93c5fd;
}

body.page-index .home-footer-contact li,
body.portal-ref .home-footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

body.page-index .home-footer-contact a,
body.portal-ref .home-footer-contact a {
  color: #93c5fd;
  text-decoration: none;
}

body.page-index .home-footer-contact a:hover,
body.portal-ref .home-footer-contact a:hover {
  text-decoration: underline;
}

body.page-index .home-footer-contact-icon,
body.portal-ref .home-footer-contact-icon {
  flex-shrink: 0;
  display: flex;
  color: #60a5fa;
  opacity: 0.9;
}

body.page-index .home-footer-divider,
body.portal-ref .home-footer-divider {
  max-width: 1120px;
  margin: 2rem auto 0;
  height: 1px;
  background: var(--border);
}

body.page-index .home-footer-copy,
body.portal-ref .home-footer-copy {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  body.page-index .home-value-grid,
  body.page-index .home-case-grid {
    grid-template-columns: 1fr;
  }

  body.page-index .home-footer-grid,
  body.portal-ref .home-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.page-index .site-header.site-header--home,
  body.portal-ref .site-header.site-header--home {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  body.page-index .nav--home,
  body.portal-ref .nav--home {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(129, 140, 248, 0.15);
    margin-top: 0.15rem;
    padding-top: 0.65rem;
  }

  body.page-index .site-header-actions,
  body.portal-ref .site-header-actions {
    grid-row: 1;
    grid-column: 2;
  }

  body.page-index .site-header--home > .logo,
  body.portal-ref .site-header--home > .logo {
    grid-row: 1;
    grid-column: 1;
  }
}

/* ===== 项目案例页（参考布局 + 深色背景）===== */
body.page-cases--ref main.cases-ref-main {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 4.75rem;
  padding-bottom: 2.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

body.page-cases--ref .cases-ref-hero {
  text-align: center;
  padding: 2rem 0 2.25rem;
}

body.page-cases--ref .cases-ref-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text);
}

body.page-cases--ref .cases-ref-lead {
  margin: 0 auto;
  max-width: 38em;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-muted);
}

body.page-cases--ref .cases-ref-board {
  padding-top: 0.5rem;
}

body.page-cases--ref .cases-ref-board .merge-cases-grid {
  gap: 1.5rem;
}

body.page-cases--ref .cases-ref-board .merge-case-card {
  border-radius: 14px;
  background: linear-gradient(
    165deg,
    rgba(22, 30, 46, 0.94),
    rgba(10, 14, 22, 0.9)
  );
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}

body.page-cases--ref .cases-ref-board .merge-case-card:hover {
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(96, 165, 250, 0.2);
}

body.page-cases--ref .cases-ref-board .merge-case-thumb {
  background: linear-gradient(145deg, #1a2744, #2d1f4a);
}

body.page-cases--ref .cases-ref-board .merge-case-cat--industrial,
body.page-cases--ref .cases-ref-board .merge-case-cat--iot,
body.page-cases--ref .cases-ref-board .merge-case-cat--medical {
  background: rgba(37, 99, 235, 0.22);
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.28);
}

body.page-cases--ref .cases-ref-board .merge-case-tag {
  background: rgba(30, 41, 59, 0.75);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
}

body.page-cases--ref .cases-ref-board .merge-case-link {
  color: #60a5fa;
  margin-top: 0.5rem;
}

body.page-cases--ref .cases-ref-board .merge-case-card:hover .merge-case-link {
  color: #93c5fd;
}

body.page-cases--ref .cases-ref-cta {
  margin-top: 2.75rem;
  padding: 2.35rem 1.5rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

body.page-cases--ref .cases-ref-cta h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
}

body.page-cases--ref .cases-ref-cta-lead {
  margin: 0 auto 1.35rem;
  max-width: 36em;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

body.page-cases--ref .cases-ref-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #f8fafc;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border: none;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

body.page-cases--ref .cases-ref-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(37, 99, 235, 0.52);
}

/* 门户统一内容区宽度（首页 / 案例页主容器除外） */
body.portal-ref > main:not(.home-main):not(.cases-ref-main) {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 4.75rem;
  padding-bottom: 2.5rem;
}

/* ===== 关于我们（参考稿结构 + 深色主题）===== */
body.page-about .about-ref-hero {
  text-align: center;
  padding: 0 0 2.25rem;
}

body.page-about .about-ref-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text);
}

body.page-about .about-ref-hero .about-ref-tagline {
  margin: 0 auto;
  max-width: 36em;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

body.page-about .about-ref-mvv-wrap {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 3rem;
}

@media (min-width: 900px) {
  body.page-about .about-ref-mvv-wrap {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

body.page-about .about-ref-mvv-text.glass {
  padding: 1.5rem 1.35rem;
  border-radius: 14px;
}

body.page-about .about-ref-mvv-text h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.06em;
}

body.page-about .about-ref-mvv-text p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-muted);
}

body.page-about .about-ref-mvv-text p:last-child {
  margin-bottom: 0;
}

body.page-about .about-ref-tiles-2x2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

body.page-about .about-ref-tile.glass {
  padding: 1.15rem 1.1rem;
  border-radius: 12px;
  text-align: left;
}

body.page-about .about-ref-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: #eff6ff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}

body.page-about .about-ref-tile-icon svg {
  width: 24px;
  height: 24px;
}

body.page-about .about-ref-tile h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

body.page-about .about-ref-tile p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

body.page-about .about-ref-section-head {
  text-align: center;
  margin-bottom: 2rem;
}

body.page-about .about-ref-section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
}

body.page-about .about-ref-section-head p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

body.page-about .about-ref-team-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  body.page-about .about-ref-team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

body.page-about .about-ref-team-card.glass {
  padding: 1.5rem 1.25rem;
  border-radius: 14px;
  text-align: center;
}

body.page-about .about-ref-team-photo {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: #f8fafc;
  background: linear-gradient(145deg, #3b4f7a, #1e293b);
  border: 2px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

body.page-about .about-ref-team-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

body.page-about .about-ref-team-role {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #93c5fd;
}

body.page-about .about-ref-team-card > p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  text-align: left;
}

body.page-about .about-ref-timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 0 0.5rem;
}

body.page-about .about-ref-tl-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.5), rgba(99, 102, 241, 0.35));
  border-radius: 2px;
}

body.page-about .about-ref-tl-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  gap: 0.5rem 0.75rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

body.page-about .about-ref-tl-row:last-child {
  margin-bottom: 0;
}

body.page-about .about-ref-tl-dot {
  grid-column: 2;
  width: 14px;
  height: 14px;
  margin: 0.35rem auto 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #6366f1);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  z-index: 1;
}

body.page-about .about-ref-tl-card.glass {
  padding: 1.1rem 1.15rem;
  border-radius: 12px;
  text-align: left;
}

body.page-about .about-ref-tl-row--left .about-ref-tl-card {
  grid-column: 1;
  justify-self: end;
  width: 100%;
  max-width: 300px;
}

body.page-about .about-ref-tl-row--right .about-ref-tl-card {
  grid-column: 3;
  justify-self: start;
  width: 100%;
  max-width: 300px;
}

body.page-about .about-ref-tl-spacer {
  min-height: 1px;
}

body.page-about .about-ref-tl-year {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: #60a5fa;
  margin-bottom: 0.35rem;
}

body.page-about .about-ref-tl-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

body.page-about .about-ref-tl-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 700px) {
  body.page-about .about-ref-tl-line {
    left: 10px;
  }

  body.page-about .about-ref-tl-row {
    grid-template-columns: 20px 1fr;
    gap: 0.75rem;
  }

  body.page-about .about-ref-tl-dot {
    grid-column: 1;
    margin: 0.5rem 0 0;
  }

  body.page-about .about-ref-tl-row--left .about-ref-tl-card,
  body.page-about .about-ref-tl-row--right .about-ref-tl-card {
    grid-column: 2;
  }
}

body.page-about .about-ref-bottom-cta {
  text-align: center;
  margin-top: 1rem;
}

body.page-about .about-ref-bottom-cta .btn {
  margin-top: 0.5rem;
}

