:root {
  --black: #06070b;
  --black-soft: #0b0f17;
  --qimei-blue: #6f9fd3;
  --qimei-blue-dark: #355f8e;
  --qimei-blue-deep: #1d385c;
  --text: rgba(255, 255, 255, 0.94);
  --text-muted: rgba(255, 255, 255, 0.66);
  --text-soft: rgba(255, 255, 255, 0.46);
  --line: rgba(111, 159, 211, 0.2);
  --panel: rgba(29, 56, 92, 0.38);
  --panel-strong: rgba(29, 56, 92, 0.62);
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --button-height: clamp(42px, 3vw, 46px);
  --button-padding-x: clamp(14px, 1.7vw, 18px);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC",
    "Hiragino Sans GB", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(29, 56, 92, 0.94), rgba(6, 7, 11, 0.98) 760px),
    var(--qimei-blue-deep);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(6, 7, 11, 0.76);
  border-bottom: 1px solid rgba(111, 159, 211, 0.14);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, var(--qimei-blue-deep), var(--qimei-blue-dark));
  border: 1px solid rgba(111, 159, 211, 0.48);
  border-radius: var(--radius);
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
  font-weight: 700;
}

.brand-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-text small {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 8px 12px;
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(111, 159, 211, 0.12);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(29, 56, 92, 0.46);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--qimei-blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(560px, 1.14fr);
  gap: clamp(28px, 4vw, 60px);
  min-height: calc(100vh - 72px);
  padding: clamp(70px, 9vw, 118px) clamp(18px, 6vw, 84px) clamp(44px, 7vw, 88px);
  align-items: center;
  background:
    radial-gradient(circle at 72% 20%, rgba(111, 159, 211, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(29, 56, 92, 0.98), rgba(6, 7, 11, 0.88) 68%);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--qimei-blue);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11em;
  margin: 0;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--text-muted);
  font-size: clamp(17px, 1.7vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--button-height);
  padding: 0 var(--button-padding-x);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.button-primary {
  color: #fff;
  background: var(--qimei-blue-dark);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--qimei-blue);
  color: var(--black);
}

.button-secondary {
  color: var(--text);
  background: rgba(6, 7, 11, 0.3);
  border-color: var(--line);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(111, 159, 211, 0.54);
  background: rgba(29, 56, 92, 0.52);
}

.hero-panel {
  overflow: hidden;
  border: 1px solid rgba(111, 159, 211, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(29, 56, 92, 0.74), rgba(6, 7, 11, 0.58)),
    var(--black-soft);
  box-shadow: var(--shadow);
}

.panel-topbar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(111, 159, 211, 0.18);
  background: rgba(6, 7, 11, 0.36);
}

.panel-topbar span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff5c60;
  border: 1px solid #f43b46;
}

.panel-topbar span:nth-child(2) {
  background: #fac800;
  border-color: #f9c101;
}

.panel-topbar span:nth-child(3) {
  background: #35c759;
  border-color: #22c458;
}

.panel-body {
  padding: clamp(22px, 4vw, 34px);
}

.console-lines {
  display: grid;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 18px;
  color: var(--text-muted);
  border: 1px solid rgba(111, 159, 211, 0.18);
  border-radius: var(--radius);
  background: rgba(6, 7, 11, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.55;
  -webkit-overflow-scrolling: touch;
}

.console-lines > span {
  display: grid;
  grid-template-columns: 38ch max-content;
  column-gap: 18px;
  min-width: max-content;
  white-space: nowrap;
  word-break: normal;
}

.console-lines .cmd-main {
  display: block;
  white-space: nowrap;
}

.console-lines b {
  color: var(--text-soft);
  font-weight: 700;
}

.console-lines i {
  color: var(--qimei-blue);
  font-style: normal;
  font-weight: 400;
}

.console-lines em {
  color: rgb(255, 255, 255);
  font-style: normal;
  font-weight: 400;
}

.console-lines strong {
  color: rgba(111, 159, 211, 0.86);
  font-weight: 400;
}

.console-lines code {
  color: var(--qimei-blue);
  font-family: inherit;
}

.console-lines small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.console-lines small b {
  font-weight: 700;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.panel-grid article {
  display: grid;
  align-content: start;
  height: clamp(122px, 10.8vw, 136px);
  padding: 18px;
  border: 1px solid rgba(111, 159, 211, 0.16);
  border-radius: var(--radius);
  background: rgba(29, 56, 92, 0.36);
}

.panel-grid small,
.product-index,
.contact-card dt {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.panel-grid strong {
  display: block;
  margin-top: clamp(10px, 1.5vw, 20px);
  font-size: 20px;
  line-height: 1.35;
}

.section {
  padding: clamp(66px, 8vw, 110px) clamp(18px, 6vw, 84px);
  background: var(--black);
  scroll-margin-top: 72px;
}

.page-hero {
  padding: clamp(76px, 11vw, 142px) clamp(18px, 6vw, 84px) clamp(62px, 8vw, 104px);
  background:
    radial-gradient(circle at 82% 12%, rgba(111, 159, 211, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(29, 56, 92, 0.98), rgba(6, 7, 11, 0.9) 72%);
  border-bottom: 1px solid rgba(111, 159, 211, 0.14);
}

.page-hero h1 {
  max-width: 12em;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: clamp(17px, 1.8vw, 20px);
}

.link-section {
  background:
    linear-gradient(180deg, rgba(6, 7, 11, 0.98), rgba(29, 56, 92, 0.32)),
    var(--black);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 16px;
}

.link-card,
.value-grid article,
.scope-grid article {
  border: 1px solid rgba(111, 159, 211, 0.18);
  border-radius: var(--radius);
  background: rgba(29, 56, 92, 0.28);
}

.link-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  min-height: clamp(230px, 17vw, 260px);
  padding: 24px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(111, 159, 211, 0.42);
  background: rgba(29, 56, 92, 0.42);
  outline: none;
}

.link-card span,
.value-grid span,
.scope-grid span {
  color: var(--qimei-blue);
  font-size: 13px;
  font-weight: 900;
}

.link-card strong {
  margin-top: clamp(42px, 4.6vw, 58px);
  font-size: 24px;
  line-height: 1.2;
}

.link-card p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

.intro-strip {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  border-top: 1px solid rgba(111, 159, 211, 0.14);
  border-bottom: 1px solid rgba(111, 159, 211, 0.14);
  background: linear-gradient(180deg, rgba(6, 7, 11, 0.98), rgba(29, 56, 92, 0.5));
}

.intro-content {
  max-width: 960px;
}

.intro-content p {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 18px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(6, 7, 11, 0.98), rgba(29, 56, 92, 0.26)),
    var(--black);
}

.content-stack {
  max-width: 1040px;
}

.content-stack p {
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 18px;
}

.content-stack .button {
  margin-top: 28px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(30px, 4vw, 46px);
}

.product-section {
  overflow: hidden;
  padding-right: 0;
  padding-left: 0;
  border-bottom: 1px solid rgba(111, 159, 211, 0.14);
}

.product-carousel {
  --product-gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px clamp(18px, 6vw, 84px) 0;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.product-carousel::-webkit-scrollbar {
  display: none;
}

.product-track {
  display: flex;
  width: max-content;
  min-width: max-content;
}

.product-set {
  display: flex;
  flex: 0 0 auto;
  gap: var(--product-gap);
  padding-right: var(--product-gap);
}

@media (prefers-reduced-motion: reduce) {
  .customer-map::before,
  .customer-map::after {
    animation: none;
  }
}

.product-card {
  width: clamp(300px, 23vw, 392px);
  flex: 0 0 auto;
  min-height: 320px;
  padding: 24px;
  border: 1px solid rgba(111, 159, 211, 0.18);
  border-radius: var(--radius);
  color: inherit;
  cursor: pointer;
  background: rgba(29, 56, 92, 0.28);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.product-card:hover,
.product-card:focus-visible,
.product-card.is-active {
  transform: translateY(-4px);
  border-color: rgba(111, 159, 211, 0.42);
  background: rgba(29, 56, 92, 0.42);
  outline: none;
}

.product-card.is-active {
  border-color: rgba(111, 159, 211, 0.72);
  background:
    linear-gradient(180deg, rgba(111, 159, 211, 0.16), rgba(29, 56, 92, 0.34)),
    rgba(29, 56, 92, 0.36);
  box-shadow: inset 0 0 0 1px rgba(111, 159, 211, 0.18);
}

.product-index {
  margin-bottom: 52px;
  color: var(--qimei-blue);
}

.product-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.product-card p {
  margin: 0;
  color: var(--text-muted);
}

.product-carousel .product-card {
  min-height: 280px;
}

.product-detail-divider {
  height: 2px;
  margin: clamp(38px, 5vw, 62px) clamp(18px, 6vw, 84px) 0;
  background: linear-gradient(90deg, transparent, rgba(111, 159, 211, 0.72), transparent);
}

.product-detail-area {
  padding: clamp(30px, 4vw, 54px) clamp(18px, 6vw, 84px) 0;
  scroll-margin-top: 96px;
}

.product-detail-area.is-loading {
  opacity: 0.72;
}

.product-detail-status {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.product-detail[hidden] {
  display: none;
}

.project-detail-left,
.project-detail-right {
  display: grid;
  gap: 18px;
}

.project-detail-left {
  grid-template-rows: auto auto auto;
}

.project-detail-right {
  grid-template-rows: auto auto auto;
}

.project-title-block,
.project-partner-block,
.project-intro-block,
.project-tech-block,
.project-media-block {
  border: 1px solid rgba(111, 159, 211, 0.22);
  border-radius: var(--radius);
  background: rgba(6, 7, 11, 0.18);
}

.project-title-block,
.project-partner-block {
  display: grid;
  align-content: center;
  min-height: 82px;
  padding: 20px 24px;
}

.product-detail-type,
.project-partner-block span,
.project-media-block > span {
  display: block;
  margin-bottom: 12px;
  color: var(--qimei-blue);
  font-size: 13px;
  font-weight: 900;
}

.product-detail h2 {
  max-width: 14em;
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.14;
}

.project-partner-block strong {
  margin-top: 0;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
}

.project-intro-block {
  display: grid;
  align-content: start;
  padding: 20px 24px;
}

.project-intro-block h3,
.project-tech-block h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
}

.project-intro-block p {
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: clamp(17px, 1.4vw, 19px);
}

.project-intro-block li {
  color: var(--text-muted);
  font-size: 16px;
}

.project-intro-block ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 1.15em;
}

.project-tech-block {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 24px;
}

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-tech-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--text-muted);
  border: 1px solid rgba(111, 159, 211, 0.18);
  border-radius: var(--radius);
  background: rgba(29, 56, 92, 0.22);
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.project-tech-list span:hover,
.project-tech-list span:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(111, 159, 211, 0.42);
  background: rgba(29, 56, 92, 0.42);
  outline: none;
}

.project-tech-list img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.project-media-block {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
  padding: 48px 20px 20px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(29, 56, 92, 0.34), rgba(6, 7, 11, 0.24)),
    rgba(6, 7, 11, 0.18);
}

.project-media-block > span {
  position: absolute;
  top: 18px;
  left: 22px;
}

.project-image-block {
  min-height: clamp(260px, 30vw, 420px);
  place-items: stretch;
}

.project-image-block:has(.project-image-gallery) {
  align-content: start;
  min-height: auto;
}

.project-video-block:has(.project-video-gallery) {
  align-content: start;
  min-height: auto;
}

.product-detail[data-product-detail="04"] .project-video-block,
.product-detail[data-product-detail="05"] .project-video-block {
  display: none !important;
}

.project-image-gallery,
.project-video-gallery {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  align-self: start;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 0;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.project-image-gallery::-webkit-scrollbar,
.project-video-gallery::-webkit-scrollbar {
  display: none;
}

.project-gallery-scrollbar {
  position: relative;
  align-self: start;
  justify-self: stretch;
  width: 100%;
  height: 18px;
  margin-top: 14px;
  border-radius: 999px;
  cursor: pointer;
  touch-action: none;
}

.project-gallery-scrollbar::before {
  position: absolute;
  top: 5px;
  right: 0;
  left: 0;
  height: 8px;
  border-radius: inherit;
  background: rgba(111, 159, 211, 0.14);
  content: "";
}

.project-gallery-scrollbar:focus-visible {
  outline: 3px solid rgba(111, 159, 211, 0.46);
  outline-offset: 4px;
}

.project-gallery-scrollbar .project-gallery-scrollbar-thumb {
  position: absolute;
  top: 3px;
  left: 0;
  display: block;
  width: 100%;
  height: 12px;
  margin: 0;
  border: 2px solid rgba(6, 7, 11, 0.88);
  border-radius: inherit;
  background: rgba(111, 159, 211, 0.7);
  box-shadow: 0 0 18px rgba(111, 159, 211, 0.18);
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
}

.project-gallery-scrollbar:hover .project-gallery-scrollbar-thumb,
.project-gallery-scrollbar.is-dragging .project-gallery-scrollbar-thumb {
  background: rgba(111, 159, 211, 0.92);
  box-shadow: 0 0 22px rgba(111, 159, 211, 0.28);
}

.project-gallery-scrollbar.is-disabled {
  cursor: default;
}

.project-gallery-scrollbar.is-disabled .project-gallery-scrollbar-thumb {
  opacity: 0.45;
}

.project-gallery-item {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: transparent;
  scroll-snap-align: start;
}

.project-gallery-item.is-landscape {
  flex-basis: calc((100% - 18px) / 2);
  aspect-ratio: 3104 / 1850;
}

.project-gallery-item.is-portrait {
  flex-basis: calc((100% - 36px) / 3);
  aspect-ratio: 9 / 16;
}

.project-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  cursor: zoom-in;
  object-fit: contain;
}

.project-gallery-item img:focus-visible {
  outline: 3px solid rgba(111, 159, 211, 0.46);
  outline-offset: 3px;
}

.project-gallery-item.is-portrait img {
  object-fit: cover;
}

.project-video-item {
  position: relative;
  display: block;
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(6, 7, 11, 0.26);
  scroll-snap-align: start;
  aspect-ratio: 16 / 9;
}

.project-video-item video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: rgba(6, 7, 11, 0.7);
  object-fit: contain;
}

.project-video-item video:focus-visible {
  outline: 3px solid rgba(111, 159, 211, 0.46);
  outline-offset: 3px;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(6, 7, 11, 0.88);
  backdrop-filter: blur(14px);
}

.project-lightbox.is-open {
  display: grid;
}

.project-lightbox img {
  display: block;
  max-width: min(94vw, 1440px);
  max-height: 88vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: var(--shadow);
}

.project-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--text);
  border: 1px solid rgba(111, 159, 211, 0.28);
  border-radius: var(--radius);
  background: rgba(6, 7, 11, 0.72);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.project-lightbox-close:hover,
.project-lightbox-close:focus-visible {
  border-color: rgba(111, 159, 211, 0.58);
  background: rgba(29, 56, 92, 0.72);
  outline: none;
}

body.has-lightbox {
  overflow: hidden;
}

.project-media-placeholder,
.project-media-block strong {
  margin: 0;
  max-width: 72%;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.2;
}

.tech-section {
  background:
    linear-gradient(180deg, rgba(6, 7, 11, 0.98), rgba(29, 56, 92, 0.34)),
    var(--black);
}

.tech-section .section-heading {
  max-width: 1080px;
}

.tech-section .section-heading p:not(.eyebrow) {
  max-width: 1040px;
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 18px;
}

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

.tech-card {
  display: grid;
  min-height: 152px;
  padding: 16px 10px;
  place-items: center;
  border: 1px solid rgba(111, 159, 211, 0.18);
  border-radius: var(--radius);
  background: rgba(6, 7, 11, 0.58);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: rgba(111, 159, 211, 0.42);
  background: rgba(29, 56, 92, 0.42);
}

.tech-mark {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: var(--text);
  border: 1px solid rgba(111, 159, 211, 0.24);
  border-radius: var(--radius);
  background: rgba(29, 56, 92, 0.52);
}

.tech-mark img {
  display: block;
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.tech-card strong {
  max-width: 100%;
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.value-section {
  background: var(--black);
}

.info-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  background: var(--black);
  border-bottom: 1px solid rgba(111, 159, 211, 0.14);
}

.info-left {
  min-width: 0;
}

.info-right {
  display: grid;
  align-content: start;
  min-width: 0;
}

.info-gallery-label {
  display: block;
  margin: 0 0 14px;
  color: var(--qimei-blue);
  font-size: 13px;
  font-weight: 800;
}

.info-desc {
  max-width: 100%;
  margin: 0 0 clamp(28px, 4vw, 44px);
  overflow: hidden;
}

.info-desc p {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
}

.info-desc p + p {
  margin-top: 16px;
}

.info-avatar {
  float: left;
  width: clamp(120px, 28%, 180px);
  margin: 4px 28px 16px 0;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.info-list {
  margin: 0;
  padding: 0;
}

.info-list-item {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 40px);
  padding: 16px 0;
  border-top: 1px solid rgba(111, 159, 211, 0.12);
}

.info-list-item:last-child {
  border-bottom: 1px solid rgba(111, 159, 211, 0.12);
}

.info-list-item dt {
  flex: 0 0 80px;
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.06em;
}

.info-list-item dd {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.office-image-gallery {
  padding: 0;
}

.office-gallery-item {
  flex-basis: 100%;
  aspect-ratio: 3 / 2;
}

.office-gallery-item img {
  object-fit: cover;
}

.info-right .project-gallery-scrollbar {
  margin-top: 14px;
  width: 100%;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.info-grid article {
  min-height: 150px;
  padding: 24px;
  border: 1px solid rgba(111, 159, 211, 0.18);
  border-radius: var(--radius);
  background: rgba(29, 56, 92, 0.28);
}

.info-grid span {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.info-grid strong {
  display: block;
  margin-top: 36px;
  font-size: 21px;
  line-height: 1.35;
}

.value-grid,
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.value-grid article {
  min-height: 250px;
  padding: 24px;
}

.value-grid strong {
  display: block;
  margin-top: 52px;
  font-size: 23px;
}

.value-grid p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

.principle-section {
  background:
    linear-gradient(180deg, rgba(6, 7, 11, 0.98), rgba(29, 56, 92, 0.26)),
    var(--black);
}

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

.scope-grid article {
  min-height: 310px;
  padding: 28px;
}

.scope-grid h2 {
  max-width: 12em;
  margin-top: 56px;
  font-size: clamp(26px, 3vw, 40px);
}

.scope-grid p {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 17px;
}

.customer-section {
  padding-top: 0;
  background:
    linear-gradient(180deg, rgba(6, 7, 11, 0.98), rgba(29, 56, 92, 0.18)),
    var(--black);
}

.customer-map {
  --axis-color: rgba(111, 159, 211, 0.34);
  --map-pad-x: clamp(104px, 7vw, 132px);
  --map-pad-y: clamp(66px, 5.2vw, 86px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(190px, 1fr));
  gap: 42px 76px;
  min-height: clamp(520px, 50vw, 640px);
  padding: var(--map-pad-y) var(--map-pad-x);
  overflow: hidden;
  border: 1px solid rgba(111, 159, 211, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 50%, rgba(111, 159, 211, 0.12), transparent 30%),
    rgba(6, 7, 11, 0.3);
}

.customer-map::before,
.customer-map::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.customer-map::before {
  top: var(--map-pad-y);
  bottom: var(--map-pad-y);
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--axis-color), transparent);
  box-shadow: 0 0 24px rgba(111, 159, 211, 0.28);
  animation: axisGlow 4.8s ease-in-out infinite;
}

.customer-map::after {
  top: 50%;
  right: var(--map-pad-x);
  left: var(--map-pad-x);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--axis-color), transparent);
  box-shadow: 0 0 24px rgba(111, 159, 211, 0.28);
  animation: axisGlow 4.8s ease-in-out infinite 1.2s;
}

.customer-map-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(111, 159, 211, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 159, 211, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 72%);
  pointer-events: none;
}

.customer-axis {
  position: absolute;
  z-index: 4;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  pointer-events: none;
}

.customer-axis span {
  padding: 2px 6px;
  background: rgba(6, 7, 11, 0.72);
  border-radius: 4px;
  white-space: nowrap;
}

.customer-axis-x {
  top: 50%;
  right: 22px;
  left: 22px;
  transform: translateY(-50%);
}

.customer-axis-y {
  top: 22px;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
}

.customer-axis-x span,
.customer-axis-y span {
  position: absolute;
}

.customer-axis-x span:first-child {
  left: 0;
  transform: translateY(-50%);
}

.customer-axis-x span:last-child {
  right: 0;
  transform: translateY(-50%);
}

.customer-axis-y span:first-child {
  top: 0;
  transform: translateX(-50%);
}

.customer-axis-y span:last-child {
  bottom: 0;
  transform: translateX(-50%);
}

.customer-cell {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  grid-template-rows: auto auto auto;
  min-height: 0;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid rgba(111, 159, 211, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(29, 56, 92, 0.34), rgba(6, 7, 11, 0.2)),
    rgba(29, 56, 92, 0.18);
  backdrop-filter: blur(10px);
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.customer-cell:hover {
  transform: translateY(-4px);
  border-color: rgba(111, 159, 211, 0.42);
  background:
    linear-gradient(180deg, rgba(29, 56, 92, 0.54), rgba(6, 7, 11, 0.26)),
    rgba(29, 56, 92, 0.2);
}

.customer-map:has(.customer-cell:hover) .customer-cell:not(:hover) {
  opacity: 0.58;
}

.customer-cell span {
  color: var(--qimei-blue);
  font-size: 13px;
  font-weight: 900;
}

.customer-cell h3 {
  margin: clamp(22px, 2.6vw, 38px) 0 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.15;
}

.customer-cell p {
  max-width: 32em;
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.customer-team {
  grid-column: 1;
  grid-row: 1;
}

.customer-enterprise {
  grid-column: 2;
  grid-row: 1;
}

.customer-personal {
  grid-column: 1;
  grid-row: 2;
}

.customer-organization {
  grid-column: 2;
  grid-row: 2;
}

@keyframes axisGlow {
  0%,
  100% {
    opacity: 0.58;
  }

  50% {
    opacity: 1;
  }
}

.workflow-section {
  background:
    linear-gradient(180deg, rgba(29, 56, 92, 0.3), rgba(6, 7, 11, 0.96)),
    var(--black);
}

.workflow,
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(111, 159, 211, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
}

.workflow:has(div:nth-child(4)),
.principle-grid:has(article:nth-child(4)) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow div,
.principle-grid article {
  min-height: 210px;
  padding: 28px;
  background: rgba(6, 7, 11, 0.24);
}

.workflow div + div,
.principle-grid article + article {
  border-left: 1px solid rgba(111, 159, 211, 0.18);
}

.workflow span,
.principle-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--qimei-blue);
  font-size: 13px;
  font-weight: 900;
}

.workflow strong,
.principle-grid strong {
  display: block;
  font-size: 22px;
}

.workflow p,
.principle-grid p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  background: var(--qimei-blue-deep);
}

.contact-copy p:not(.eyebrow) {
  max-width: 520px;
  color: var(--text-muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: 18px;
}

.contact-card,
.message-card {
  margin: 0;
  border: 1px solid rgba(111, 159, 211, 0.2);
  border-radius: var(--radius);
  background: rgba(6, 7, 11, 0.28);
  box-shadow: var(--shadow);
}

.contact-card {
  display: grid;
  gap: 0;
  padding: 28px;
}

.contact-card div {
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(111, 159, 211, 0.14);
}

.contact-card div + div {
  padding-top: 18px;
}

.contact-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-card dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.contact-card dd a {
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.contact-card dd a:hover,
.contact-card dd a:focus-visible {
  color: var(--qimei-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: none;
}

.contact-qr-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
}

.contact-qr-item {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  margin: 0;
  min-width: 0;
}

.contact-qr-item figcaption {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.contact-qr-item img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 1;
  padding: 4px;
  border: 1px solid rgba(111, 159, 211, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
}

.message-card {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.message-card label {
  display: grid;
  gap: 8px;
}

.message-card label span {
  font-weight: 800;
}

.message-card input,
.message-card textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  border: 1px solid rgba(111, 159, 211, 0.22);
  border-radius: var(--radius);
  background: rgba(6, 7, 11, 0.3);
}

.message-card input::placeholder,
.message-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.44);
}

.message-card input:focus,
.message-card textarea:focus {
  border-color: var(--qimei-blue);
  background: rgba(6, 7, 11, 0.46);
  outline: 3px solid rgba(111, 159, 211, 0.16);
}

.message-card textarea {
  min-height: 128px;
  max-height: 220px;
  resize: none;
  overflow-y: auto;
}

.message-card .button {
  align-self: start;
  margin-top: 7px;
  width: fit-content;
}

.form-note {
  min-height: 20px;
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 6vw, 84px);
  color: var(--text-muted);
  background: var(--black);
  border-top: 1px solid rgba(111, 159, 211, 0.14);
}

.site-footer a {
  color: var(--qimei-blue);
  font-weight: 800;
}

.site-footer .beian-icon {
  vertical-align: middle;
  margin-right: 4px;
}

@media (max-width: 1080px) {
  .hero,
  .intro-strip,
  .split-section,
  .product-detail,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .link-grid,
  .info-grid,
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-map {
    min-height: 560px;
  }

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

@media (max-width: 820px) {
  .contact-layout,
  .scope-grid,
  .workflow,
  .principle-grid,
  .info-section {
    grid-template-columns: 1fr;
  }

  .project-detail-left,
  .project-detail-right {
    grid-template-rows: none;
  }

  .workflow:has(div:nth-child(4)),
  .principle-grid:has(article:nth-child(4)) {
    grid-template-columns: 1fr;
  }

  .workflow div + div,
  .principle-grid article + article {
    border-top: 1px solid rgba(111, 159, 211, 0.18);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
  }

  .brand-text small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 16px;
    background: rgba(6, 7, 11, 0.98);
    border-bottom: 1px solid rgba(111, 159, 211, 0.18);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 8px;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .hero-panel {
    min-width: 0;
  }

  .panel-grid,
  .link-grid,
  .info-grid,
  .value-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .customer-map {
    --map-pad-x: 36px;
    --map-pad-y: 46px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(176px, 1fr));
    gap: 38px 24px;
    min-height: 720px;
    padding: var(--map-pad-y) var(--map-pad-x);
  }

  .customer-map::before {
    top: var(--map-pad-y);
    bottom: var(--map-pad-y);
  }

  .customer-map::after {
    right: var(--map-pad-x);
    left: var(--map-pad-x);
  }

  .customer-axis-x {
    right: 10px;
    left: 10px;
  }

  .customer-axis span {
    padding: 1px 4px;
    font-size: 11px;
  }

  .customer-cell {
    padding: 16px;
  }

  .customer-cell h3 {
    margin-top: 14px;
    font-size: 18px;
  }

  .customer-cell p {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.45;
  }

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

  .contact-qr-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    min-height: auto;
  }

  .product-detail-area {
    padding-top: 24px;
  }

  .product-detail h2 {
    max-width: 100%;
  }

  .project-title-block,
  .project-partner-block,
  .project-tech-block {
    padding: 20px;
  }

  .project-intro-block {
    padding: 20px;
  }

  .project-media-block {
    min-height: 220px;
  }

  .project-image-block {
    min-height: 260px;
  }

  .project-image-block:has(.project-image-gallery) {
    min-height: auto;
  }

  .project-media-placeholder,
  .project-media-block strong {
    max-width: 82%;
  }

  .product-index {
    margin-bottom: 34px;
  }
}

@media (max-width: 420px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text span {
    max-width: 190px;
    font-size: 14px;
  }

  .hero-actions,
  .button,
  .message-card .button {
    width: 100%;
  }
}

/* 反垃圾蜜罐字段：对真人隐藏（移出视口、不可聚焦、不参与无障碍树），机器人会填写 */
.form-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── 官网智能客服（自有 UI + FastAPI 流式代理） ── */
.qimei-chatbot {
  --chat-primary: #1c64f2;
  --chat-cyan: #11a9dd;
  --chat-ink: #667086;
  --chat-soft: #9aa6ba;
  --chat-surface: #eef6ff;
  --chat-surface-alt: #e8f6ff;
  position: fixed;
  right: 24px;
  bottom: 42px;
  z-index: 90;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC",
    "Hiragino Sans GB", Arial, sans-serif;
}

.qimei-chatbot-window {
  position: fixed;
  top: 90px;
  right: 40px;
  bottom: 126px;
  display: flex;
  width: min(26rem, calc(100vw - 32px));
  overflow: hidden;
  color: var(--chat-ink);
  background: var(--chat-surface);
  border: 1px solid rgba(72, 151, 255, 0.62);
  border-radius: 18px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22);
  flex-direction: column;
}

.qimei-chatbot-window[hidden] {
  display: none;
}

.qimei-chatbot.is-expanded .qimei-chatbot-window {
  width: min(56rem, calc(100vw - 96px));
}

.qimei-chatbot-header {
  display: flex;
  min-height: 40px;
  padding: 7px 14px 7px 16px;
  color: #fff;
  background: linear-gradient(120deg, #2864f4 0%, #18aee0 100%);
  align-items: center;
  justify-content: space-between;
}

.qimei-chatbot-header h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
}

.qimei-chatbot-expand,
.qimei-chatbot-bubble,
.qimei-chatbot-send {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.qimei-chatbot-expand {
  width: 28px;
  height: 28px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  opacity: 0.9;
  transition:
    background 180ms ease,
    opacity 180ms ease;
}

.qimei-chatbot-expand:hover,
.qimei-chatbot-expand:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  outline: none;
  opacity: 1;
}

.qimei-chatbot-expand svg,
.qimei-chatbot-bubble svg,
.qimei-chatbot-send svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qimei-chatbot-expand svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.qimei-chatbot-body {
  display: flex;
  min-height: 0;
  padding: 14px 16px 16px;
  background:
    linear-gradient(135deg, rgba(235, 240, 255, 0.92), rgba(231, 249, 255, 0.95)),
    var(--chat-surface-alt);
  flex: 1;
  flex-direction: column;
}

.qimei-chatbot-messages {
  display: flex;
  min-height: 0;
  padding: 0 8px 34px;
  overflow-y: auto;
  flex: 1;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 112, 134, 0.32) transparent;
}

.qimei-chatbot-messages::-webkit-scrollbar {
  width: 8px;
}

.qimei-chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(102, 112, 134, 0.32);
  border-radius: 999px;
}

.qimei-chat-message {
  max-width: 100%;
  color: var(--chat-ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.qimei-chat-message + .qimei-chat-message {
  margin-top: 14px;
}

.qimei-chat-message-user {
  max-width: 86%;
  padding: 10px 14px;
  color: #fff;
  background: var(--chat-primary);
  border-radius: 14px 14px 4px 14px;
  align-self: flex-end;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

.qimei-chat-message-assistant:not(:first-child) {
  max-width: 92%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 14px 14px 14px 4px;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.62;
}

.qimei-chat-message-assistant:first-child {
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.62;
}

.qimei-chat-message-assistant p,
.qimei-chat-message-assistant ul,
.qimei-chat-message-assistant h3,
.qimei-chat-message-assistant h4,
.qimei-chat-message-assistant h5 {
  margin: 0;
}

.qimei-chat-message-assistant p + p,
.qimei-chat-message-assistant p + ul,
.qimei-chat-message-assistant ul + p,
.qimei-chat-message-assistant .qimei-chat-table-wrap + p,
.qimei-chat-message-assistant p + .qimei-chat-table-wrap {
  margin-top: 10px;
}

.qimei-chat-message-assistant h3,
.qimei-chat-message-assistant h4,
.qimei-chat-message-assistant h5 {
  margin-top: 14px;
  margin-bottom: 8px;
  color: #536176;
  font-size: 16px;
  line-height: 1.35;
}

.qimei-chat-message-assistant h3:first-child,
.qimei-chat-message-assistant h4:first-child,
.qimei-chat-message-assistant h5:first-child {
  margin-top: 0;
}

.qimei-chat-message-assistant ul {
  padding-left: 1.2em;
}

.qimei-chat-message-assistant li + li {
  margin-top: 5px;
}

.qimei-chat-message-assistant a {
  color: #1c64f2;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.qimei-chat-message-assistant code {
  padding: 1px 5px;
  color: #3f4d62;
  background: rgba(28, 100, 242, 0.08);
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.qimei-chat-message-assistant hr {
  height: 1px;
  margin: 12px 0;
  background: rgba(102, 112, 134, 0.18);
  border: 0;
}

.qimei-chat-message-assistant img {
  display: block;
  width: min(100%, 320px);
  max-width: 100%;
  max-height: 240px;
  height: auto;
  margin: 10px auto;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(102, 112, 134, 0.14);
  border-radius: 8px;
}

.qimei-chatbot.is-expanded .qimei-chat-message-assistant img {
  width: min(100%, 420px);
  max-height: 280px;
}

.qimei-chat-table-wrap {
  max-width: 100%;
  margin-top: 10px;
  overflow-x: auto;
  border: 1px solid rgba(102, 112, 134, 0.18);
  border-radius: 8px;
}

.qimei-chat-message-assistant table {
  width: 100%;
  min-width: 360px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.qimei-chat-message-assistant th,
.qimei-chat-message-assistant td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(102, 112, 134, 0.14);
  text-align: left;
  vertical-align: top;
}

.qimei-chat-message-assistant th {
  color: #4e5b70;
  background: rgba(28, 100, 242, 0.08);
  font-weight: 800;
}

.qimei-chat-message-assistant tr:last-child td {
  border-bottom: 0;
}

.qimei-chatbot.is-sending .qimei-chat-message-assistant:last-child:empty::after {
  color: var(--chat-soft);
  content: "正在输入...";
}

.qimei-chatbot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 7px;
  min-height: 52px;
  padding: 6px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(42, 73, 112, 0.13);
  align-items: center;
}

.qimei-chatbot-form input {
  width: 100%;
  min-width: 0;
  height: 40px;
  color: #4f5a70;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 15px;
  font-weight: 650;
}

.qimei-chatbot-form input::placeholder {
  color: #98a4ba;
  opacity: 1;
}

.qimei-chatbot-send {
  width: 40px;
  height: 40px;
  color: #fff;
  background: #2463f2;
  border-radius: 11px;
  transition:
    background 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.qimei-chatbot-send:hover,
.qimei-chatbot-send:focus-visible {
  background: #164ed4;
  outline: none;
}

.qimei-chatbot-send:active {
  transform: translateY(1px);
}

.qimei-chatbot-send:disabled {
  cursor: wait;
  opacity: 0.68;
}

.qimei-chatbot-bubble {
  width: 64px;
  height: 64px;
  color: #fff;
  background: var(--chat-primary);
  border-radius: 50%;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.qimei-chatbot-bubble:hover,
.qimei-chatbot-bubble:focus-visible {
  background: #164ed4;
  outline: none;
  transform: translateY(-1px);
}

.qimei-chatbot-close-icon {
  display: none;
}

.qimei-chatbot.is-open .qimei-chatbot-open-icon {
  display: none;
}

.qimei-chatbot.is-open .qimei-chatbot-close-icon {
  display: block;
}

@media (max-width: 720px) {
  .qimei-chatbot {
    right: 10px;
    bottom: 34px;
  }

  .qimei-chatbot-window,
  .qimei-chatbot.is-expanded .qimei-chatbot-window {
    top: 84px;
    right: 12px;
    bottom: 106px;
    width: calc(100vw - 24px);
  }

  .qimei-chatbot-header {
    min-height: 38px;
    padding: 6px 12px 6px 14px;
  }

  .qimei-chatbot-header h2 {
    font-size: 13px;
  }

  .qimei-chatbot-expand {
    width: 26px;
    height: 26px;
    border-radius: 6px;
  }

  .qimei-chatbot-body {
    padding: 12px 10px;
  }

  .qimei-chatbot-messages {
    padding: 0 6px 14px;
  }

  .qimei-chat-message {
    font-size: 14px;
    line-height: 1.56;
  }

  .qimei-chat-message-assistant:not(:first-child),
  .qimei-chat-message-assistant:first-child,
  .qimei-chat-message-user {
    font-size: 14px;
  }

  .qimei-chatbot-form {
    grid-template-columns: minmax(0, 1fr) 34px;
    min-height: 46px;
    padding: 6px;
    border-radius: 12px;
  }

  .qimei-chatbot-form input {
    height: 34px;
    font-size: 13px;
  }

  .qimei-chatbot-send {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .qimei-chatbot-bubble {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 420px) {
  .qimei-chatbot-window,
  .qimei-chatbot.is-expanded .qimei-chatbot-window {
    right: 10px;
    width: calc(100vw - 20px);
  }

  .qimei-chatbot-form {
    gap: 5px;
  }

  .qimei-chatbot-form input::placeholder {
    font-size: 12px;
  }
}
