:root {
  --ink: #14212f;
  --muted: #657386;
  --line: #dce5ed;
  --panel: #ffffff;
  --soft: #f4f8fb;
  --blue: #1768ac;
  --teal: #0c9a9a;
  --green: #4f8f42;
  --amber: #b7791f;
  --red: #bf3c30;
  --shadow: 0 20px 50px rgba(38, 70, 83, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #eaf1f6;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.mobile-tel-link {
  display: none !important;
}

.app-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}

.side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: #102333;
  color: white;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  background: white;
  object-fit: contain;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.side-nav nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  text-align: left;
  padding: 0 14px;
}

.nav-item:hover,
.nav-item.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #7bd6cc;
}

.service-card {
  position: absolute;
  right: 18px;
  bottom: 24px;
  left: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.service-card span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.service-card strong {
  display: block;
  margin: 6px 0;
  font-size: 24px;
  line-height: 1.2;
}

.service-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

.main {
  padding: 24px;
  overflow: visible;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto 20px;
}

.eyebrow,
.tag {
  margin: 0 0 8px;
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
}

.brand-tag {
  margin-bottom: 10px;
  color: #0b7f39;
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 26px;
}

h2 {
  margin-bottom: 16px;
  font-size: 42px;
  line-height: 1.13;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.top-actions,
.hero-actions,
.section-title,
.lead-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-btn,
.ghost-btn,
.light-btn,
.text-btn,
.filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 16px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.primary-btn {
  color: white;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(23, 104, 172, 0.22);
}

.primary-btn:hover,
.ghost-btn:hover,
.light-btn:hover,
.filter:hover {
  transform: translateY(-1px);
}

.primary-btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.ghost-btn,
.filter {
  color: var(--ink);
  border-color: var(--line);
  background: white;
}

.light-btn {
  color: #0f3f5d;
  background: #dff1f0;
}

.text-btn {
  min-height: auto;
  border: 0;
  color: var(--blue);
  background: transparent;
  padding: 0;
}

.full {
  width: 100%;
}

.view {
  display: none;
  max-width: 1220px;
  margin: 0 auto;
}

.view.active {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 26px;
  align-items: stretch;
  min-height: 420px;
  padding: 36px;
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, #d8e8f2, #edf7f3 58%, #eef1f6);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy {
  align-self: center;
}

.hero-copy p:not(.tag) {
  max-width: 670px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.instrument-panel {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 340px;
  padding: 20px;
  border: 1px solid rgba(18, 67, 89, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(235, 246, 244, 0.88)),
    #eef5f8;
}

.chrom-card {
  overflow: hidden;
  border-radius: 8px;
  background: #102333;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(120, 220, 210, 0.06);
}

.chromatogram {
  display: block;
  width: 100%;
  height: 172px;
  padding: 8px 8px 6px;
}

.chrom-grid,
.chrom-axis,
.chrom-line,
.chrom-fill {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.chrom-grid {
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 1;
}

.chrom-axis {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1.5;
}

.chrom-fill {
  fill: rgba(118, 224, 214, 0.16);
}

.chrom-line {
  stroke: #76e0d6;
  stroke-width: 3;
  filter: drop-shadow(0 0 7px rgba(118, 224, 214, 0.48));
  stroke-dasharray: 620;
  animation: drawPeak 3.6s ease-in-out infinite;
}

.chrom-dot {
  fill: #ffffff;
  stroke: #76e0d6;
  stroke-width: 2;
  animation: pulseDot 2.4s ease-in-out infinite;
}

.dot-b {
  animation-delay: 0.3s;
}

.dot-c {
  animation-delay: 0.6s;
}

@keyframes drawPeak {
  0% {
    stroke-dashoffset: 620;
    opacity: 0.45;
  }
  42%,
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.28);
  }
}

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

.instrument-chip {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 62px;
  padding: 9px 12px;
  border: 1px solid #b9d9d5;
  border-radius: 999px;
  background: white;
  box-shadow: 0 8px 22px rgba(32, 80, 90, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.instrument-chip:hover {
  transform: translateY(-2px);
  border-color: #0c9a9a;
  box-shadow: 0 14px 30px rgba(32, 80, 90, 0.14);
}

.instrument-chip span {
  color: #123747;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.device-sketch {
  width: 44px;
  height: 34px;
  stroke: #147a5a;
  stroke-width: 3;
  fill: #f5fbf9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.device-sketch path,
.device-sketch circle,
.device-sketch ellipse,
.device-sketch rect {
  vector-effect: non-scaling-stroke;
}

.metric-grid,
.quick-grid,
.solution-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.card-lite,
.standard-result-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 30px rgba(51, 70, 86, 0.06);
}

.standard-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  padding: 14px;
  margin-top: 14px;
}

.standard-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  outline: none;
}

.standard-search-result {
  margin-top: 14px;
}

.standard-list-grid {
  grid-template-columns: 1fr;
}

.standard-list-grid .standard-result-card {
  width: 100%;
}

.standard-result-card {
  padding: 18px;
}

.standard-result-card h3 {
  margin-bottom: 8px;
}

.standard-result-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.standard-result-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e1ebef;
  border-radius: 8px;
  background: #f8fbfc;
}

.standard-actions {
  display: grid;
  grid-template-columns: repeat(2, 96px);
  gap: 8px;
}

.standard-actions .primary-btn,
.standard-actions .ghost-btn {
  width: 96px;
  justify-content: center;
}

.link-btn {
  text-decoration: none;
}

.online-lookup-card {
  margin-top: 14px;
}

.standard-viewer-page {
  display: grid;
  gap: 14px;
}

.standard-viewer-card {
  display: grid;
  gap: 14px;
}

.standard-file-frame {
  width: 100%;
  min-height: 720px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.standard-file-image {
  width: min(100%, 920px);
  max-height: 760px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.standard-open-btn {
  width: fit-content;
}

.standard-result-item p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.metric,
.scenario-card,
.solution-card,
.fault-card,
.product-card,
.contact-card,
.result-card,
.lead-card,
.chat-panel,
.lead-form,
.result-panel,
.lead-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(51, 70, 86, 0.06);
}

.metric,
.scenario-card,
.solution-card,
.fault-card,
.product-card,
.contact-card,
.result-card,
.lead-card {
  padding: 18px;
}

.metric span,
.scenario-card span,
.solution-card span,
.product-card span,
.contact-card span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.contact-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 30px rgba(51, 70, 86, 0.06);
}

.contact-card strong {
  font-size: 23px;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.wechat-card {
  align-content: start;
}

.wechat-qr {
  width: min(100%, 180px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 58%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.wechat-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.submit-contact-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.submit-contact-body {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.submit-contact-body .wechat-qr {
  width: 120px;
}

.metric strong {
  display: block;
  margin: 8px 0;
  font-size: 24px;
}

.metric p,
.scenario-card p,
.solution-card p,
.fault-card p,
.product-card p,
.lead-card p,
.section-title p,
.chat-head p {
  color: var(--muted);
  line-height: 1.62;
}

.section-title {
  justify-content: space-between;
  margin-top: 28px;
}

.scenario-card,
.solution-card,
.fault-card,
.product-card {
  display: grid;
  gap: 12px;
}

.fault-card {
  align-content: start;
}

.fault-card span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.fault-card h3 {
  margin: 0;
}

.product-summary-card {
  cursor: pointer;
  align-content: start;
}

.product-summary-card:hover {
  border-color: #0c9a9a;
  box-shadow: 0 16px 36px rgba(51, 70, 86, 0.12);
  transform: translateY(-2px);
}

.product-summary-card h3 {
  margin: 0;
}

#methodGrid.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.method-summary-card {
  min-width: 0;
}

.method-summary-card .product-media {
  max-width: none;
  aspect-ratio: 1 / 1;
}

.method-summary-card .product-media img {
  object-fit: contain;
}

.product-detail-page {
  display: grid;
  gap: 14px;
}

.product-detail-card {
  max-width: 880px;
}

.product-detail-card .product-media,
.product-detail-card .product-detail-gallery,
.product-detail-card .product-detail-media {
  max-width: 800px;
}

.product-detail-card h3 {
  font-size: 28px;
}

.detail-back {
  width: max-content;
}

.product-media {
  display: grid;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dce8ec;
  border-radius: 8px;
  background: #edf5f6;
  color: var(--muted);
  font-weight: 700;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
}

.product-detail-media {
  display: grid;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dce8ec;
  border-radius: 8px;
  background: #edf5f6;
  color: var(--muted);
  font-weight: 700;
}

.product-detail-gallery {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 800px;
}

.product-detail-gallery.media-placeholder {
  min-height: 120px;
  place-items: center;
  border: 1px solid #dce8ec;
  border-radius: 8px;
  background: #edf5f6;
  color: var(--muted);
  font-weight: 700;
}

.product-detail-gallery .product-detail-media {
  max-width: none;
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
}

.product-video {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0f172a;
}

.academy-filters {
  margin-top: 14px;
}

.academy-card {
  align-content: start;
}

.academy-video,
.academy-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
}

.academy-video {
  display: block;
}

.academy-cover {
  display: grid;
  place-items: center;
  background: #edf5f6;
}

.academy-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
}

.academy-animation {
  position: relative;
  background:
    linear-gradient(135deg, rgba(12, 154, 154, 0.12), rgba(23, 104, 172, 0.16)),
    #f7fbfc;
}

.academy-animation::before {
  content: "";
  width: 70%;
  height: 46%;
  border: 2px solid rgba(23, 104, 172, 0.45);
  border-radius: 999px;
}

.academy-animation span {
  position: absolute;
  bottom: 30%;
  width: 10px;
  border-radius: 999px 999px 0 0;
  background: #0c9a9a;
}

.academy-animation span:nth-child(1) {
  left: 36%;
  height: 34%;
}

.academy-animation span:nth-child(2) {
  left: 48%;
  height: 52%;
  background: #1768ac;
}

.academy-animation span:nth-child(3) {
  left: 60%;
  height: 24%;
}

.academy-points {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.download-only-card {
  gap: 0;
}

.product-highlight {
  border-color: #0c9a9a;
  box-shadow: 0 0 0 4px rgba(12, 154, 154, 0.16), 0 18px 42px rgba(51, 70, 86, 0.12);
}

.media-placeholder {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(236, 246, 244, 0.9)),
    #edf5f6;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.three-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-title {
  margin-top: 16px;
}

.consumable-filter-panel {
  display: grid;
  gap: 12px;
}

.consumable-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.consumable-filter-grid label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.consumable-filter-grid select {
  min-height: 40px;
}

.consumable-category-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(178, 205, 216, 0.75);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 34px rgba(25, 70, 90, 0.08);
  cursor: pointer;
}

.consumable-category-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.consumable-agent-card {
  grid-column: 1 / -1;
}

.consumable-agent-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.consumable-agent-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid #e1ebef;
  border-radius: 8px;
  background: #f8fbfc;
}

.consumable-agent-item img,
.consumable-agent-item .media-placeholder {
  width: 120px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: contain;
  background: white;
}

.consumable-price {
  margin: 8px 0 10px;
  color: #123747;
  font-weight: 700;
}

.method-card,
.download-card {
  align-content: start;
}

.appointment-form {
  max-width: 820px;
}

.info-block {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #e1ebef;
  border-radius: 8px;
  background: #f8fbfc;
}

.info-block b {
  color: #123747;
  font-size: 13px;
}

.info-block p {
  margin: 0;
}

.info-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.download-list {
  display: grid;
  gap: 8px;
}

.download-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #e1ebef;
}

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

.download-row span {
  color: #14212f;
  font-weight: 700;
  line-height: 1.45;
}

.download-empty {
  color: var(--muted);
  font-size: 13px;
}

.pill,
.grade {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: #e8f4f4;
  color: #096969;
  font-size: 12px;
  font-weight: 700;
}

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

.chat-panel,
.lead-form,
.result-panel,
.lead-board {
  padding: 18px;
}

.chat-panel.plan-focus {
  border-color: rgba(23, 104, 172, 0.55);
  box-shadow: 0 0 0 4px rgba(23, 104, 172, 0.12), var(--shadow);
}

.chat-panel {
  display: flex;
  flex-direction: column;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.status-dot {
  align-self: start;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.chat-stream {
  display: grid;
  align-content: start;
  gap: 12px;
  flex: 1;
  min-height: 520px;
  padding-top: 16px;
}

.chat-download-bar {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.chat-download-bar .full + .full {
  margin-top: 10px;
}

.confirm-note {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 800;
}

.confirm-note textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.7;
}

.confirm-note textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 140, 110, 0.12);
}

.bubble {
  max-width: 96%;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  line-height: 1.8;
  white-space: pre-wrap;
}

.bubble.bot {
  border-top-left-radius: 2px;
}

.bubble.user {
  justify-self: end;
  border-top-right-radius: 2px;
  color: white;
  background: var(--blue);
}

.agent-answer {
  display: grid;
  gap: 10px;
}

.method-agent-result {
  grid-column: 1 / -1;
  max-width: 760px;
  align-content: start;
}

.method-agent-result h3 {
  margin: 0;
}

.method-agent-result .agent-answer {
  overflow-x: auto;
}

.method-agent-result .config-table {
  min-width: 620px;
}

.agent-summary,
.agent-next {
  margin: 0;
}

.config-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.config-table th,
.config-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.config-table th {
  width: 128px;
  color: var(--ink);
  background: #eef8f7;
  font-weight: 800;
}

.config-table td {
  color: var(--muted);
}

.lead-form {
  display: grid;
  gap: 14px;
}

.lead-form label,
.lead-form fieldset {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(12, 154, 154, 0.12);
}

.form-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

fieldset label {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  font-weight: 400 !important;
}

fieldset input {
  width: auto !important;
}

.upload-box {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 2px dashed #0c9a9a;
  border-radius: 8px;
  background: #f2fbfa;
}

.upload-box span {
  color: var(--ink);
  font-weight: 800;
}

.upload-box strong {
  color: var(--teal);
  font-size: 16px;
}

.upload-box em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.7;
}

.upload-box input[type="file"] {
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.compact-upload {
  min-height: 118px;
}

.compact-upload input[type="file"] {
  width: 100%;
}

.hidden {
  display: none;
}

.result-panel {
  margin-top: 18px;
}

.result-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.result-card h4,
.lead-card h4 {
  margin: 0 0 8px;
}

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

.result-card ul {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.lead-board {
  margin-top: 14px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.admin-priority-panel {
  padding: 14px;
  border: 2px solid #0c9a9a;
  border-radius: 10px;
  background: #f4fbfa;
}

.admin-agent-form {
  margin-top: 14px;
  border: 2px solid #6d5dfc;
  background: #f8f7ff;
}

.admin-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-product-panel {
  padding: 14px;
  border: 2px solid #1768ac;
  border-radius: 10px;
  background: #f6fbff;
}

.admin-products {
  margin-top: 0;
}

.admin-section-title {
  margin-top: 0;
}

.admin-form-head {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 8px;
  background: #ecf8f6;
  border: 1px solid #bde4df;
}

.admin-form-head h3,
.admin-form-head p {
  margin: 0;
}

.admin-form-head p {
  color: var(--muted);
  line-height: 1.7;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-product-list {
  display: grid;
  gap: 12px;
}

.admin-product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-row-actions {
  display: flex;
  gap: 8px;
}

.admin-product-card h4 {
  margin: 0 0 6px;
}

.admin-product-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.filter.active {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

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

.lead-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
}

.lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.grade.a {
  color: white;
  background: var(--red);
}

.grade.b {
  color: white;
  background: var(--amber);
}

.grade.c {
  color: white;
  background: var(--green);
}

.empty {
  padding: 38px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    height: auto;
    padding: 14px;
  }

  .brand {
    margin-bottom: 0;
  }

  .side-nav nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-item {
    flex: 0 0 auto;
    justify-content: center;
    padding: 0 8px;
  }

  .service-card {
    display: none;
  }

  .hero,
  .advisor-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .advisor-layout .lead-form {
    order: 1;
  }

  .advisor-layout .chat-panel {
    order: 2;
  }

  .quick-grid,
  .solution-grid,
  .product-grid,
  .contact-panel,
  .consumable-filter-grid,
  .result-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 680px) {
  .main {
    padding: 12px;
  }

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

  .top-actions,
  .hero-actions {
    width: 100%;
  }

  .top-actions button,
  .hero-actions button {
    flex: 1;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 31px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 0.95fr) minmax(148px, 1.05fr);
    gap: 10px;
    align-items: center;
    padding: 14px;
  }

  .hero-copy {
    align-self: center;
  }

  .hero-copy .tag {
    margin-bottom: 6px;
  }

  .hero-copy h2 {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.15;
  }

  .hero-copy p:not(.tag) {
    font-size: 12px;
    line-height: 1.55;
  }

  .instrument-panel {
    min-height: 0;
    padding: 10px;
    gap: 8px;
  }

  .chromatogram {
    height: 104px;
    padding: 5px;
  }

  .instrument-orbits {
    gap: 7px;
  }

  .instrument-chip {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 5px;
    min-height: 42px;
    padding: 6px 8px;
  }

  .instrument-chip span {
    font-size: 11px;
    line-height: 1.15;
  }

  .device-sketch {
    width: 28px;
    height: 22px;
    stroke-width: 2.6;
  }

  .side-nav {
    position: sticky;
    top: 0;
    z-index: 80;
    display: grid;
    grid-template-rows: 52px 112px;
    grid-template-columns: 1fr;
    gap: 7px;
    height: 190px;
    min-height: 190px;
    padding: 13px 10px;
    overflow: hidden;
    border-bottom: 1px solid rgba(123, 214, 204, 0.22);
    background:
      radial-gradient(circle at 12% 0%, rgba(123, 214, 204, 0.16), transparent 34%),
      linear-gradient(180deg, rgba(16, 35, 51, 0.98), rgba(11, 29, 43, 0.96));
    box-shadow: 0 14px 28px rgba(12, 31, 46, 0.18);
    backdrop-filter: blur(14px);
  }

  .brand {
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .brand strong {
    font-size: 17px;
    line-height: 1;
  }

  .brand span {
    max-width: 170px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .side-nav nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(2, 49px);
    grid-auto-rows: 49px;
    gap: 6px;
    overflow: hidden;
    padding: 0;
  }

  .nav-item[data-view="home"] {
    position: absolute;
    top: 15px;
    right: 10px;
    width: calc((100% - 20px - 24px) / 5);
    min-height: 49px;
    flex-direction: column;
    gap: 1px;
    padding: 4px 2px;
    border-color: rgba(123, 214, 204, 0.2);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .nav-item {
    min-width: 0;
    min-height: 49px;
    flex-direction: column;
    gap: 1px;
    padding: 4px 2px;
    border: 1px solid rgba(123, 214, 204, 0.08);
    border-radius: 999px;
    color: rgba(236, 248, 247, 0.78);
    font-size: 10px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .nav-item:hover,
  .nav-item.active {
    border-color: rgba(123, 214, 204, 0.34);
    color: #ffffff;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07)),
      rgba(36, 61, 78, 0.7);
    box-shadow: 0 8px 18px rgba(3, 17, 28, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .nav-icon {
    width: 16px;
    height: 16px;
    font-size: 12px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .hero-actions .primary-btn {
    grid-column: auto;
    min-height: 38px;
    font-size: 13px;
  }

  .hero-actions .light-btn,
  .hero-actions .ghost-btn {
    width: 100%;
    min-height: 36px;
    font-size: 12px;
  }

  .mobile-tel-link {
    display: inline-flex !important;
  }

  .consumable-filter-grid,
  .result-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .quick-grid,
  .contact-panel,
  .solution-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #methodGrid.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .consumable-category-card {
    aspect-ratio: 4 / 3;
  }

  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .metric {
    min-height: 118px;
    padding: 10px 8px;
  }

  .metric span {
    font-size: 11px;
  }

  .metric strong {
    margin: 6px 0;
    font-size: 16px;
    line-height: 1.2;
  }

  .metric p {
    font-size: 11px;
    line-height: 1.45;
  }

  .scenario-card,
  .contact-card,
  .solution-card,
  .product-card {
    gap: 7px;
    min-height: 128px;
    padding: 10px;
  }

  .scenario-card span,
  .contact-card span,
  .solution-card span,
  .product-card span {
    font-size: 11px;
  }

  .scenario-card h3,
  .contact-card strong,
  .solution-card h3,
  .product-card h3 {
    font-size: 16px;
    line-height: 1.22;
  }

  .scenario-card p,
  .contact-card p,
  .solution-card p,
  .product-card p {
    font-size: 11px;
    line-height: 1.45;
  }

  .contact-card .primary-btn,
  .contact-card .ghost-btn {
    min-height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }

  .wechat-card .wechat-qr {
    width: min(100%, 94px);
  }

  .wechat-actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .standard-search,
  .standard-result-item,
  .submit-contact-body,
  .download-row {
    grid-template-columns: 1fr;
  }

  .chat-stream {
    min-height: 360px;
  }

  .bubble {
    max-width: 100%;
  }

  .lead-card {
    grid-template-columns: 1fr;
  }
}

@media (hover: none), (pointer: coarse) {
  .side-nav {
    position: sticky !important;
    top: 0 !important;
    height: 190px !important;
    min-height: 190px !important;
    z-index: 80;
  }
}
