/* 科琦科技官网 · 软件推广主视觉（猎影） */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Sora:wght@500;600;700&display=swap');

:root {
  --kq-ink: #02122b;
  --kq-navy: #0a2748;
  --kq-deep: #04182f;
  --kq-teal: #1ec8b8;
  --kq-teal-dim: rgba(30, 200, 184, 0.35);
  --kq-amber: #f0b429;
  --kq-fog: #c5d4e8;
  --kq-mute: #8aa0bc;
  --kq-line: rgba(30, 200, 184, 0.22);
}

body.keqi-home {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f7fb;
  color: #1a2b3c;
}

body.keqi-home .brand-text { display: none; }
body.keqi-home.brand--text-only .brand-text,
body.keqi-home .brand.brand--text-only .brand-text { display: inline; }
body.keqi-home .brand-logo {
  max-height: 52px !important;
  max-width: min(280px, 52vw) !important;
}
body.keqi-home .topbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: #dbe4f0;
}
body.keqi-home .topnav a:not(.topnav-cta) {
  color: #243447;
}
body.keqi-home .topnav a:hover {
  color: #0a6e66;
}
body.keqi-home .topnav-cta--icon {
  background: #0a2748 !important;
  box-shadow: 0 2px 8px rgba(10, 39, 72, 0.28);
}
body.keqi-home .topnav-cta--icon:hover {
  background: #123a66 !important;
}

/* —— 全幅软件推广主视觉 —— */
.kq-hero {
  --hero-h: min(92vh, 720px);
  position: relative;
  min-height: var(--hero-h);
  height: var(--hero-h);
  overflow: hidden;
  color: #fff;
  background: var(--kq-ink);
  isolation: isolate;
}

.kq-hero__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* 大气背景：深蓝 + 斜向光带 + 网格 */
.kq-hero__atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 78% 42%, rgba(30, 200, 184, 0.18), transparent 58%),
    radial-gradient(ellipse 50% 40% at 18% 70%, rgba(14, 90, 160, 0.28), transparent 55%),
    linear-gradient(145deg, #020b1a 0%, #06203c 48%, #031526 100%);
}
.kq-hero__atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 200, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 200, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 75%);
  animation: kq-grid-drift 22s linear infinite;
  opacity: 0.7;
}
.kq-hero__atmosphere::after {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(30, 200, 184, 0.07) 50%,
    transparent 60%
  );
  animation: kq-sweep 7.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes kq-grid-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-48px, -48px, 0); }
}
@keyframes kq-sweep {
  0%, 100% { transform: translateX(-12%) skewX(-12deg); opacity: 0.35; }
  50% { transform: translateX(18%) skewX(-12deg); opacity: 0.85; }
}

/* 跟踪 HUD：扫描 + 波门锁定 */
.kq-hud {
  position: absolute;
  right: max(4%, calc((100vw - 1120px) / 2));
  top: 50%;
  width: min(46vw, 520px);
  aspect-ratio: 4 / 3;
  transform: translateY(-46%);
  z-index: 1;
  pointer-events: none;
}
.kq-hud__frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--kq-line);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(4, 24, 47, 0.35), rgba(2, 12, 28, 0.55));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}
.kq-hud__frame::before,
.kq-hud__frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--kq-teal);
  border-style: solid;
  opacity: 0.85;
}
.kq-hud__frame::before {
  top: 10px; left: 10px;
  border-width: 2px 0 0 2px;
}
.kq-hud__frame::after {
  bottom: 10px; right: 10px;
  border-width: 0 2px 2px 0;
}

.kq-hud__scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(30, 200, 184, 0.12),
    transparent
  );
  animation: kq-scan 3.6s ease-in-out infinite;
  z-index: 2;
}
@keyframes kq-scan {
  0% { top: -30%; }
  100% { top: 100%; }
}

.kq-hud__target {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--kq-amber) 45%, transparent 70%);
  box-shadow: 0 0 18px rgba(240, 180, 41, 0.65);
  z-index: 3;
  animation: kq-target-path 8s ease-in-out infinite;
}
@keyframes kq-target-path {
  0%   { left: 22%; top: 58%; }
  25%  { left: 58%; top: 28%; }
  50%  { left: 70%; top: 62%; }
  75%  { left: 38%; top: 36%; }
  100% { left: 22%; top: 58%; }
}

.kq-hud__gate {
  position: absolute;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border: 1.5px solid var(--kq-teal);
  box-shadow: 0 0 0 1px rgba(30, 200, 184, 0.25), 0 0 24px rgba(30, 200, 184, 0.25);
  z-index: 4;
  animation: kq-target-path 8s ease-in-out infinite, kq-gate-pulse 2.2s ease-in-out infinite;
}
.kq-hud__gate::before,
.kq-hud__gate::after {
  content: "";
  position: absolute;
  background: var(--kq-teal);
}
.kq-hud__gate::before {
  left: 50%; top: -1px; bottom: -1px; width: 1px; transform: translateX(-50%);
  opacity: 0.55;
}
.kq-hud__gate::after {
  top: 50%; left: -1px; right: -1px; height: 1px; transform: translateY(-50%);
  opacity: 0.55;
}
@keyframes kq-gate-pulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.06); opacity: 1; }
}

.kq-hud__readout {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 5;
  font-family: Sora, ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--kq-teal);
  text-shadow: 0 0 12px rgba(30, 200, 184, 0.35);
  line-height: 1.55;
}
.kq-hud__readout strong {
  color: #e8fff9;
  font-weight: 600;
}

/* 软件界面轮播（控制台截图） */
.kq-soft-panel {
  position: absolute;
  right: max(2%, calc((100vw - 1120px) / 2 - 8px));
  bottom: 8%;
  width: min(42vw, 460px);
  z-index: 2;
  border-radius: 8px 8px 4px 4px;
  overflow: hidden;
  border: 1px solid rgba(197, 212, 232, 0.18);
  background: #071526;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(30, 200, 184, 0.08);
  transform: perspective(900px) rotateY(-6deg) rotateX(3deg);
  transform-origin: right bottom;
}
.kq-soft-panel__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #0d223a, #09182c);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: Sora, sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kq-mute);
}
.kq-soft-panel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35506c;
}
.kq-soft-panel__dot:nth-child(1) { background: #e36b6b; }
.kq-soft-panel__dot:nth-child(2) { background: #e0b35a; }
.kq-soft-panel__dot:nth-child(3) { background: #4fb87a; }
.kq-soft-panel__slides {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020b16;
}
.kq-soft-panel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.kq-soft-panel__slide.is-active { opacity: 1; }
.kq-soft-panel__slide a { display: block; width: 100%; height: 100%; }
.kq-soft-panel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* 首页「软件定制」下拉：每提交一份就多一行预览 */
.kq-soft-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.kq-soft-nav__caret {
  border: 0;
  background: transparent;
  color: #243447;
  font-size: 12px;
  line-height: 1;
  padding: 4px 2px;
  cursor: pointer;
}
.kq-soft-nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 40;
  width: 320px;
  max-height: 70vh;
  overflow: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid #d5e0ec;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}
.kq-soft-nav__menu[hidden] { display: none !important; }
.kq-soft-nav.is-open .kq-soft-nav__menu { display: block; }
.kq-soft-nav__item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  color: #1e293b;
  text-decoration: none;
}
.kq-soft-nav__item:hover { background: #f3f7fb; }
.kq-soft-nav__item img {
  width: 96px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  background: #0b1c30;
  flex: 0 0 auto;
}
.kq-soft-nav__item strong { display: block; font-size: 14px; }
.kq-soft-nav__item span { display: block; margin-top: 2px; color: #64748b; font-size: 12px; line-height: 1.4; }
.kq-soft-nav__empty { margin: 8px; color: #64748b; font-size: 13px; }
@media (max-width: 860px) {
  .kq-soft-nav { display: flex; width: 100%; }
  .kq-soft-nav__menu { position: static; width: 100%; box-shadow: none; }
}

/* 文案层 */
.kq-hero__copy {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 只在左侧留页面边距。左右都加时，宽屏下边距会把 560px 文字框挤成一字一行 */
  width: min(560px, calc(100% - 48px));
  max-width: 560px;
  margin-left: max(24px, calc((100vw - 1080px) / 2));
  padding: 40px 0 56px;
  pointer-events: none;
  writing-mode: horizontal-tb;
}
.kq-hero__copy a,
.kq-hero__copy .kq-cta {
  pointer-events: auto;
}
.kq-brand-mark {
  font-family: Sora, "Noto Sans SC", sans-serif;
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 18px;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.kq-brand-mark span {
  display: inline-block;
  color: var(--kq-teal);
}
.kq-hero__eyebrow {
  margin: 0 0 10px;
  font-family: Sora, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kq-teal);
}
.kq-hero__title {
  margin: 0 0 14px;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.kq-hero__sub {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--kq-fog);
  max-width: 28em;
}
.kq-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
}
.kq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.kq-btn:hover { transform: translateY(-1px); }
.kq-btn--primary {
  background: var(--kq-teal);
  color: #04221f !important;
  border: 1px solid transparent;
}
.kq-btn--primary:hover { background: #2fddd0; color: #021614 !important; }
.kq-btn--ghost {
  background: transparent;
  color: #e8f2ff !important;
  border: 1px solid rgba(197, 212, 232, 0.35);
}
.kq-btn--ghost:hover {
  border-color: var(--kq-teal);
  color: #fff !important;
}

/* 能力条：非卡片，一行职责说明 */
.kq-capabilities {
  padding: 56px max(24px, calc((100vw - 1080px) / 2));
  background:
    linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
}
.kq-capabilities__head {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #132536;
}
.kq-capabilities__lead {
  margin: 0 0 28px;
  color: #5a7088;
  font-size: 15px;
  max-width: 36em;
}
.kq-cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #d5e0ec;
}
.kq-cap-list li {
  padding: 22px 20px 22px 0;
  border-bottom: 1px solid #d5e0ec;
  border-right: 1px solid #d5e0ec;
}
.kq-cap-list li:nth-child(5n) { border-right: none; padding-right: 0; }
.kq-cap-list a { color: #0a4f86; text-decoration: none; }
.kq-cap-list a:hover { text-decoration: underline; }
.kq-cap-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: #0a2748;
}
.kq-cap-list span {
  font-size: 13px;
  color: #5f738a;
  line-height: 1.55;
}
.kq-cap-list em {
  font-style: normal;
  font-family: Sora, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #1a9e92;
  display: block;
  margin-bottom: 8px;
}

body.keqi-home .footer-brand { font-weight: 600; }

@media (max-width: 960px) {
  .kq-hero {
    --hero-h: auto;
    height: auto;
    min-height: 0;
  }
  .kq-hero__copy {
    width: auto;
    max-width: none;
    margin-left: 0;
    padding: 36px 20px 28px;
  }
  .kq-hud {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: min(92%, 420px);
    margin: 0 auto 8px;
  }
  .kq-soft-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(92%, 420px);
    margin: 0 auto 28px;
    transform: none;
  }
  .kq-hero__stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12px;
  }
  .kq-hero__atmosphere {
    position: absolute;
  }
  .kq-cap-list {
    grid-template-columns: 1fr 1fr;
  }
  .kq-cap-list li:nth-child(5n) { border-right: 1px solid #d5e0ec; padding-right: 20px; }
  .kq-cap-list li:nth-child(2n) { border-right: none; padding-right: 0; }
}

@media (max-width: 560px) {
  .kq-cap-list { grid-template-columns: 1fr; }
  .kq-cap-list li {
    border-right: none !important;
    padding-right: 0;
  }
  .kq-brand-mark { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .kq-hero__atmosphere::before,
  .kq-hero__atmosphere::after,
  .kq-hud__scanline,
  .kq-hud__target,
  .kq-hud__gate {
    animation: none !important;
  }
  .kq-hud__target,
  .kq-hud__gate {
    left: 48%;
    top: 42%;
  }
}
