﻿:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --ink: #182024;
  --muted: #667279;
  --line: #dfe5e8;
  --accent: #176b87;
  --accent-strong: #0f4d63;
  --accent-soft: #e3f2f5;
  --gold: #b47a12;
  --gold-strong: #8f5f00;
  --gold-soft: #fff7e6;
  --gold-line: #e4bd72;
  --warm: #b45c2d;
  --warm-soft: #f9ece4;
  --green: #2f7d57;
  --green-soft: #e7f3ed;
  --shadow: 0 18px 48px rgba(24, 32, 36, 0.08);
  --shadow-strong: 0 24px 70px rgba(15, 77, 99, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    radial-gradient(circle at 16% 10%, rgba(23, 107, 135, 0.11), transparent 32%),
    radial-gradient(circle at 84% 0%, rgba(47, 125, 87, 0.1), transparent 28%),
    linear-gradient(180deg, #f8fbfc 0%, var(--bg) 42%, #eef4f6 100%);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 107, 135, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 107, 135, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 76%);
}

button,
textarea {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1720px, calc(100% - 32px));
  min-height: 72px;
  margin: 10px auto 0;
  padding: 10px 12px 10px 14px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(223, 229, 232, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(24, 32, 36, 0.08);
  backdrop-filter: blur(18px);
  animation: shellIn 460ms var(--ease) both;
}

.nav-brand,
.nav-tabs,
.nav-more {
  position: relative;
  z-index: 1;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.nav-logo-wrap {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: transparent;
}

.nav-logo {
  width: 62px;
  height: 62px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.nav-brand-text {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 15px;
  color: #233238;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease), box-shadow 160ms ease;
}

.nav-tab:hover {
  color: var(--gold-strong);
  background: rgba(180, 122, 18, 0.08);
  transform: translateY(-1px);
}

.nav-tab.is-active {
  color: var(--gold-strong);
  border-color: var(--gold-line);
  background: linear-gradient(180deg, #fffdf7 0%, var(--gold-soft) 100%);
  box-shadow: inset 0 -2px 0 rgba(180, 122, 18, 0.2), 0 8px 20px rgba(143, 95, 0, 0.08);
}

.nav-tab-soon {
  cursor: default;
  color: #697780;
  background: #f2f6f7;
  border-color: transparent;
}

.nav-tab-soon:hover {
  color: #697780;
  background: #f2f6f7;
  transform: none;
}

button.nav-tab-soon:disabled {
  border: 0;
  opacity: 1;
  font: inherit;
}

.business-page {
  min-height: 100vh;
  margin: 0;
  background: #f7f9fa;
}

.business-contact {
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.business-contact img {
  display: block;
  width: min(520px, 100%);
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(23, 31, 36, 0.16);
}

.nav-more {
  justify-self: end;
}

.nav-more summary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(180, 122, 18, 0.24);
  border-radius: 12px;
  padding: 0 16px 0 18px;
  color: #233238;
  background: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 12px 24px rgba(24, 32, 36, 0.06);
  transition: transform 160ms var(--ease), box-shadow 160ms ease, border-color 160ms ease;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more summary:hover {
  transform: translateY(-1px);
  border-color: var(--gold-line);
  box-shadow: 0 16px 30px rgba(143, 95, 0, 0.12);
}

.nav-more[open] summary {
  border-color: var(--gold-line);
  background: #fffaf0;
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 144px;
  padding: 8px;
  border: 1px solid rgba(180, 122, 18, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 52px rgba(24, 32, 36, 0.14);
  backdrop-filter: blur(16px);
}

.nav-more-menu a {
  min-height: 38px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  padding: 0 12px;
  color: #233238;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.nav-more-menu a:hover {
  color: var(--gold-strong);
  background: var(--gold-soft);
}

.fixed-contact-card {
  width: 100%;
  padding: 10px;
  display: grid;
  gap: 10px;
  color: var(--ink);
  border: 1px solid rgba(223, 229, 232, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 42px rgba(24, 32, 36, 0.08);
}

.fixed-contact-copy {
  display: grid;
  gap: 4px;
  text-align: center;
}

.fixed-contact-copy strong {
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 900;
}

.fixed-contact-copy span {
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 900;
}

.fixed-contact-card img {
  width: calc(100% + 8px);
  margin: 0 -4px;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: #fff;
}

.app-shell {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 28px;
  animation: shellIn 520ms var(--ease) both;
}

.query-panel,
.section-block,
.sidebar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, box-shadow 220ms ease, transform 220ms var(--ease);
}

.query-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-color: rgba(23, 107, 135, 0.16);
  box-shadow: var(--shadow-strong);
}

.query-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(23, 107, 135, 0.09), transparent 24%),
    linear-gradient(300deg, rgba(47, 125, 87, 0.08), transparent 30%);
}

.query-panel > * {
  position: relative;
}

.brand-row,
.section-title,
.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-logo {
  width: 118px;
  height: 118px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 22px rgba(15, 77, 99, 0.12));
  animation: chipFloat 4.8s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  line-height: 1.25;
}

.hero-metrics,
.library-count,
.section-title span {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(23, 107, 135, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.72);
  color: #365158;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-metrics span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(47, 125, 87, 0.12);
}

.prompt-label {
  display: block;
  margin-top: 22px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  padding: 15px 16px;
  outline: none;
  color: var(--ink);
  background: #fbfcfc;
  line-height: 1.6;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.14);
}

.control-row {
  justify-content: flex-start;
  margin-top: 14px;
}

.gpt-progress {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid #d5e3e7;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f8fbfc;
  animation: liftIn 220ms var(--ease) both;
}

.gpt-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 12%, rgba(255, 255, 255, 0.78) 34%, transparent 58%);
  transform: translateX(-100%);
  animation: shimmer 1.5s linear infinite;
}

.progress-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.progress-copy strong {
  color: var(--accent-strong);
  font-size: 13px;
}

.progress-track {
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: #e5ecef;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--green));
  transition: width 180ms ease;
  box-shadow: 0 0 18px rgba(47, 125, 87, 0.28);
}

button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 700;
  transform: translateY(0);
  transition: transform 160ms var(--ease), box-shadow 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(24, 32, 36, 0.12);
}

button:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--accent), #0f8296);
  box-shadow: 0 14px 26px rgba(23, 107, 135, 0.18);
}

.primary-btn:hover {
  background: var(--accent-strong);
}

.export-btn {
  color: white;
  background: var(--green);
}

.download-btn {
  color: white;
  background: #6b5b95;
}

.export-btn:hover {
  background: #246343;
}

.download-btn:hover:not(:disabled) {
  background: #554777;
}

.ghost-btn {
  color: var(--accent);
  background: var(--accent-soft);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.quick-grid button {
  min-height: 54px;
  padding: 8px 12px;
  color: #28353a;
  background: #f1f5f6;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}

.quick-grid button:hover {
  border-color: rgba(23, 107, 135, 0.2);
  background: #ffffff;
}

.result-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.sidebar {
  padding: 16px;
  display: grid;
  gap: 12px;
  position: sticky;
  top: 18px;
  animation: liftIn 500ms var(--ease) 80ms both;
}

.stat-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfc;
}

.stat-box::after {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--green));
}

.stat-value {
  display: block;
  color: var(--accent);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.need-panel {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.need-panel h2 {
  margin-bottom: 10px;
}

.tag-list,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 700;
  animation: popIn 260ms var(--ease) both;
}

.content-stack {
  display: grid;
  gap: 18px;
}

.section-block {
  padding: 18px;
  animation: liftIn 520ms var(--ease) both;
}

.section-block:nth-child(2) {
  animation-delay: 60ms;
}

.section-block:nth-child(3) {
  animation-delay: 100ms;
}

.section-block:nth-child(4) {
  animation-delay: 140ms;
}

.section-block:nth-child(5) {
  animation-delay: 180ms;
}

.section-title {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.device-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.device-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  padding: 0 13px;
  outline: none;
  color: var(--ink);
  background: #fbfcfc;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.device-search input:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.14);
}

.device-search span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.confirm-selection-btn {
  min-height: 42px;
  color: white;
  background: var(--accent);
}

.confirm-selection-btn:hover:not(:disabled) {
  background: var(--accent-strong);
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.device-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  min-height: 228px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: cardIn 360ms var(--ease) both;
  transition: transform 180ms var(--ease), box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.device-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(23, 107, 135, 0.75), rgba(47, 125, 87, 0.72), transparent);
  opacity: 0;
  transform: translateX(-30%);
  transition: opacity 180ms ease, transform 260ms var(--ease);
}

.device-card:hover {
  border-color: rgba(23, 107, 135, 0.28);
  box-shadow: 0 18px 36px rgba(24, 32, 36, 0.11);
  transform: translateY(-3px);
}

.device-card:hover::before,
.device-card.is-selected::before {
  opacity: 1;
  transform: translateX(0);
}

.device-card.is-selected {
  border-color: rgba(23, 107, 135, 0.45);
  background: #f7fcfd;
  box-shadow: 0 16px 34px rgba(23, 107, 135, 0.11);
}

.device-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.device-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
  min-width: 0;
  cursor: pointer;
}

.device-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.device-check strong {
  display: block;
  font-size: 17px;
  line-height: 1.28;
}

.device-check small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.score-pill {
  flex: 0 0 auto;
  height: 28px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--warm);
  background: var(--warm-soft);
  font-size: 12px;
  font-weight: 800;
  transition: background-color 180ms ease, color 180ms ease;
}

.device-card.is-selected .score-pill {
  color: var(--accent-strong);
  background: var(--green-soft);
}

.device-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.meta-row {
  display: grid;
  gap: 6px;
  margin-top: auto;
  color: #354248;
  font-size: 13px;
}

.meta-row strong {
  color: var(--ink);
}

.architecture {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.system-diagram {
  margin-top: 16px;
}

.system-diagram-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 190px) minmax(180px, 1fr);
  gap: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #f8fbfc;
  animation: liftIn 420ms var(--ease) both;
}

.system-side {
  display: grid;
  gap: 16px;
}

.system-node {
  position: relative;
  min-height: 56px;
  display: grid;
  place-items: center;
  border: 2px solid #8fa0a7;
  border-radius: 4px;
  padding: 10px;
  background: #ffffff;
  color: #243238;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  box-shadow: 0 10px 20px rgba(24, 32, 36, 0.06);
  animation: popIn 340ms var(--ease) both;
}

.system-node::after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  width: 36px;
  height: 2px;
  background: #59676d;
  transform-origin: center;
  animation: lineGrow 520ms var(--ease) both;
}

.system-node::before {
  content: "";
  position: absolute;
  top: calc(50% - 5px);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.system-node-input::after {
  right: -38px;
}

.system-node-input::before {
  right: -43px;
  border-left: 8px solid #59676d;
}

.system-node-output::after {
  left: -38px;
}

.system-node-output::before {
  left: -8px;
  border-left: 8px solid #59676d;
}

.system-controller {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 2px solid #6f858d;
  border-radius: 4px;
  padding: 18px;
  background: #ffffff;
  color: var(--ink);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(23, 107, 135, 0.08), 0 16px 36px rgba(24, 32, 36, 0.08);
  animation: pulseController 3.4s ease-in-out infinite;
}

.system-controller span {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.system-controller small {
  max-width: 120px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.architecture-diagram {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #f8fbfc;
  animation: liftIn 420ms var(--ease) both;
}

.diagram-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 18px;
  align-items: stretch;
}

.diagram-grid::before,
.diagram-grid::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: calc(50% - 1px);
  height: 2px;
  background: #bfd2d9;
  z-index: 0;
  transform-origin: center;
  animation: lineGrow 700ms var(--ease) both;
}

.diagram-grid::after {
  left: calc(50% - 1px);
  right: auto;
  top: 18%;
  bottom: 18%;
  width: 2px;
  height: auto;
}

.diagram-column,
.controller-node {
  position: relative;
  z-index: 1;
  border: 1px solid #cddbe0;
  border-radius: 8px;
  background: #ffffff;
  transition: transform 180ms var(--ease), box-shadow 180ms ease;
}

.diagram-column:hover,
.controller-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(24, 32, 36, 0.1);
}

.diagram-column {
  min-height: 150px;
  padding: 13px;
}

.diagram-column h3 {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 15px;
  line-height: 1.25;
}

.diagram-items {
  display: grid;
  gap: 8px;
}

.diagram-items span {
  display: block;
  border-radius: 8px;
  padding: 8px 10px;
  color: #243238;
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.diagram-items .muted-node {
  color: var(--muted);
  background: #eef2f3;
}

.controller-node {
  grid-column: 2 / 4;
  min-height: 96px;
  padding: 16px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

.controller-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.controller-subtitle {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.arch-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  align-items: stretch;
  animation: liftIn 360ms var(--ease) both;
}

.arch-label {
  border-radius: 8px;
  padding: 13px;
  color: white;
  background: var(--accent);
  font-weight: 800;
}

.arch-body {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fbfcfc;
  line-height: 1.55;
}

.solution-report {
  margin-top: 16px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.report-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: #fbfcfc;
  animation: liftIn 420ms var(--ease) both;
}

.report-card h3 {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 16px;
  line-height: 1.25;
}

.report-wide {
  grid-column: 1 / -1;
}

.report-list,
.flow-list {
  margin: 0;
  padding-left: 20px;
  color: #344349;
  line-height: 1.65;
}

.report-list li,
.flow-list li {
  margin: 8px 0;
}

.function-table {
  display: grid;
  gap: 10px;
}

.function-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.function-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.function-row strong,
.function-row span {
  display: block;
}

.function-row strong {
  line-height: 1.35;
}

.function-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.function-row p {
  margin: 0;
  color: #344349;
  line-height: 1.6;
}

.resource-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.resource-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfc;
  transition: transform 160ms var(--ease), border-color 160ms ease, background-color 160ms ease;
}

.resource-item:hover {
  transform: translateX(3px);
  border-color: rgba(23, 107, 135, 0.24);
  background: #ffffff;
}

.resource-type {
  color: var(--green);
  font-weight: 800;
}

.resource-path {
  display: inline-block;
  margin-top: 4px;
  color: #344349;
  overflow-wrap: anywhere;
  line-height: 1.45;
  text-decoration: none;
}

.resource-path:hover {
  color: var(--accent);
  text-decoration: underline;
}

.empty-state {
  min-height: 112px;
  place-items: center;
  color: var(--muted);
  background: #fbfcfc;
  border: 1px dashed #c9d4d9;
  border-radius: 8px;
  padding: 18px;
  line-height: 1.6;
  animation: liftIn 260ms var(--ease) both;
}

.is-generating .query-panel {
  border-color: rgba(47, 125, 87, 0.28);
}

.is-generating .primary-btn {
  position: relative;
  overflow: hidden;
}

.is-generating .primary-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.1s linear infinite;
}

@keyframes shellIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes chipFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes lineGrow {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes pulseController {
  0%,
  100% {
    border-color: #6f858d;
  }
  50% {
    border-color: rgba(23, 107, 135, 0.85);
  }
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1060px) {
  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-tabs {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .quick-grid,
  .device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .need-panel {
    grid-column: 1 / -1;
  }

  .fixed-contact-card {
    grid-column: 1 / -1;
    width: min(420px, 100%);
    max-width: none;
  }
}

@media (max-width: 680px) {
  .site-nav {
    width: min(100% - 20px, 1720px);
    margin-top: 8px;
    grid-template-columns: 1fr;
    gap: 10px;
    border-radius: 14px;
  }

  .nav-brand-text {
    font-size: 20px;
  }

  .nav-tabs {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-tab {
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
  }

  .nav-more {
    justify-self: start;
  }

  .nav-more summary {
    min-height: 42px;
    padding: 0 14px;
    font-size: 15px;
  }

  .app-shell {
    width: min(100% - 24px, 1440px);
    padding: 14px 0;
  }

  .brand-row,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .hero-metrics {
    justify-content: flex-start;
  }

  .quick-grid,
  .device-grid,
  .device-search,
  .sidebar,
  .system-diagram-card,
  .diagram-grid,
  .arch-row,
  .report-grid,
  .function-row,
  .resource-item {
    grid-template-columns: 1fr;
  }

  .diagram-grid {
    grid-template-rows: none;
  }

  .diagram-grid::before,
  .diagram-grid::after {
    display: none;
  }

  .system-diagram-card {
    gap: 18px;
    padding: 18px;
  }

  .system-controller {
    min-height: 140px;
    order: -1;
  }

  .system-node::before,
  .system-node::after {
    display: none;
  }

  .controller-node {
    grid-column: auto;
    order: -1;
  }

  .library-count,
  .section-title span {
    white-space: normal;
  }
}

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