/* 凌序科创 · DJI 航拍工作流专区（/dji） */

.dji-hub {
  --dji-radius: 26px;
  --dji-line: var(--line);
  --dji-strong-line: color-mix(in srgb, var(--accent) 28%, var(--line));
  --dji-soft: color-mix(in srgb, var(--accent) 6%, var(--surface));
  --dji-ink: #061726;
  display: grid;
  gap: 20px;
  max-width: 1180px;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 34px) 0 clamp(40px, 6vw, 70px);
}

/* Hero */

.dji-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 3.4vw, 48px);
  min-width: 0;
  padding: clamp(22px, 3.2vw, 44px);
  border: 1px solid var(--dji-line);
  border-radius: var(--dji-radius);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 55%),
    radial-gradient(80% 80% at 100% 100%, color-mix(in srgb, #3a8fd9 9%, transparent), transparent 60%),
    var(--surface);
  overflow: hidden;
}

.dji-hero-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.dji-hero .page-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 0;
  min-width: 0;
}

.dji-hero .page-intro > div {
  min-width: 0;
}

.dji-hero .page-intro .eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  letter-spacing: 0.24em;
}

.dji-hero .page-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.dji-hero .page-intro p {
  max-width: 34em;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.dji-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.dji-hero-actions .button {
  border-radius: 999px;
}

.dji-btn-primary {
  border-color: transparent;
  background: linear-gradient(115deg, #0b2c46, #1b5a8a);
  color: #eaf8ff;
  box-shadow: 0 12px 26px -16px #0b2c46;
}

.dji-btn-primary:hover {
  border-color: transparent;
  background: linear-gradient(115deg, #123c5e, #2a76ad);
  color: #fff;
}

.dji-link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 2px;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.dji-link-quiet:hover {
  border-bottom-color: currentColor;
  color: var(--accent);
}

.dji-hero-disclaimer {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--dji-line);
  border-left: 3px solid var(--accent);
  border-radius: 4px 14px 14px 4px;
  background: var(--dji-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.dji-hero-disclaimer strong {
  color: var(--text);
}

.dji-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--dji-line);
  list-style: none;
}

.dji-hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 0 14px;
  border-left: 1px solid var(--dji-line);
}

.dji-hero-facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.dji-hero-facts b {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.dji-hero-facts span {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

/* Hero visual */

.dji-hero-visual {
  position: relative;
  min-width: 0;
  border: 1px solid color-mix(in srgb, #3a8fd9 26%, #0a2438);
  border-radius: 22px;
  background: var(--dji-ink);
  box-shadow: 0 28px 60px -34px #061726, inset 0 1px 0 #ffffff1a;
  overflow: hidden;
}

.dji-hero-map {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 520 / 440;
}

.dji-visual-chips {
  position: absolute;
  right: 14px;
  bottom: 42px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  pointer-events: none;
}

.dji-visual-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid #7fbde34d;
  border-radius: 10px;
  background: #061726b8;
  backdrop-filter: blur(8px);
  color: #cfe9fb;
  font-size: 10.5px;
  line-height: 1.35;
}

.dji-visual-chip b {
  color: #eaf8ff;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.dji-visual-caption {
  position: absolute;
  right: 14px;
  bottom: 16px;
  left: 14px;
  color: #8fb9d6;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-align: right;
  text-transform: uppercase;
  pointer-events: none;
}

/* Sections */

.dji-section {
  min-width: 0;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--dji-line);
  border-radius: var(--dji-radius);
  background: var(--surface);
}

.dji-section-head {
  max-width: 46em;
  margin-bottom: clamp(18px, 2.2vw, 28px);
}

.dji-section-head .eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  letter-spacing: 0.22em;
}

.dji-section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(23px, 2.4vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.dji-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

/* Three-step workflow */

.dji-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dji-flow-step {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 22px 20px 20px;
  border: 1px solid var(--dji-line);
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, var(--surface)), var(--surface) 60%);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.dji-flow-step:hover {
  border-color: var(--dji-strong-line);
  transform: translateY(-2px);
}

.dji-step-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 12%, var(--soft));
  color: var(--accent);
}

.dji-step-icon svg {
  width: 20px;
  height: 20px;
}

.dji-step-index {
  color: var(--accent);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
}

.dji-flow-step h3 {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.dji-flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.8;
}

.dji-step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0;
  padding: 10px 0 0;
  list-style: none;
}

.dji-step-tags li {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.dji-inline-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* Device compatibility */

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

.dji-device-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 18px 16px;
  border: 1px solid var(--dji-line);
  border-radius: 16px;
  background: var(--surface);
}

.dji-device-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 11%, var(--soft));
  color: var(--accent);
}

.dji-device-icon svg {
  width: 19px;
  height: 19px;
}

.dji-device-card h3 {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.dji-device-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11.8px;
  line-height: 1.7;
}

.dji-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: auto 0 0;
  padding: 8px 0 0;
  list-style: none;
}

.dji-tags li {
  padding: 2px 7px;
  border: 1px solid var(--dji-line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Boundary callouts */

.dji-boundary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-top: 14px;
  padding: 18px;
  border: 1px dashed color-mix(in srgb, #e09a3e 46%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, #e09a3e 6%, var(--surface));
}

.dji-boundary-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: color-mix(in srgb, #e09a3e 16%, var(--surface));
  color: #b8731c;
}

[data-theme="dark"] .dji-boundary-icon {
  color: #f0b365;
}

.dji-boundary-icon svg {
  width: 19px;
  height: 19px;
}

.dji-boundary h3 {
  margin: 0 0 6px;
  font-size: 14.5px;
}

.dji-boundary p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.dji-boundary strong {
  color: var(--text);
}

.dji-boundary code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--soft);
  color: var(--text);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11.5px;
}

/* Color profiles */

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

.dji-color-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 0 18px 18px;
  border: 1px solid var(--dji-line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}

.dji-color-swatch {
  display: block;
  height: 54px;
  margin: 0 -18px 6px;
  border-bottom: 1px solid #ffffff1f;
  background: linear-gradient(120deg, var(--c1, #23323e), var(--c2, #5d7f99) 55%, var(--c3, #c4dbe9));
}

.dji-color-log {
  --c1: #23323e;
  --c2: #5d7f99;
  --c3: #c4dbe9;
}

.dji-color-logm {
  --c1: #243a33;
  --c2: #5f8f79;
  --c3: #c6e3d2;
}

.dji-color-hlg {
  --c1: #3a2b26;
  --c2: #9c7a58;
  --c3: #f4dcc0;
}

.dji-color-tenbit {
  --c1: #221f3d;
  --c2: #5c5a9e;
  --c3: #cfd2f5;
}

.dji-color-card h3 {
  margin: 0;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.dji-color-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

/* Telemetry + spatial split */

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

.dji-panel {
  min-width: 0;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--dji-line);
  border-radius: var(--dji-radius);
  background: var(--surface);
}

.dji-panel .dji-section-head {
  margin-bottom: 14px;
}

.dji-panel .dji-section-head h2 {
  font-size: clamp(20px, 1.9vw, 25px);
}

.dji-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.dji-panel-spatial {
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface) 65%);
}

.dji-check-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.dji-check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.dji-check-list li::before {
  position: absolute;
  top: 0.42em;
  left: 2px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  content: "";
}

.dji-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.dji-text-link:hover {
  border-bottom-color: currentColor;
}

.dji-spatial-tags {
  margin-top: 14px;
  padding-top: 0;
}

/* FAQ */

.dji-faq {
  display: grid;
  gap: 10px;
}

.dji-faq-item {
  border: 1px solid var(--dji-line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.dji-faq-item[open] {
  border-color: var(--dji-strong-line);
}

.dji-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.dji-faq-item summary::-webkit-details-marker {
  display: none;
}

.dji-faq-item summary::after {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--dji-line);
  border-radius: 50%;
  color: var(--accent);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 14px;
  line-height: 1;
  content: "+";
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.dji-faq-item[open] summary::after {
  border-color: var(--dji-strong-line);
  transform: rotate(45deg);
}

.dji-faq-item summary:hover {
  color: var(--accent);
}

.dji-faq-body {
  padding: 0 20px 18px;
}

.dji-faq-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

/* CTA band */

.dji-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 40px);
  min-width: 0;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid #1b405c;
  border-radius: var(--dji-radius);
  background:
    radial-gradient(120% 140% at 12% 0%, #1b5a8a33, transparent 55%),
    linear-gradient(118deg, #061726, #0b2c46 58%, #12466b);
  color: #eaf8ff;
  overflow: hidden;
}

.dji-cta-copy {
  max-width: 34em;
  min-width: 0;
}

.dji-cta-copy .eyebrow {
  margin-bottom: 8px;
  color: #8fd8ff;
  letter-spacing: 0.22em;
}

.dji-cta-copy h2 {
  margin: 0 0 8px;
  color: #f4fbff;
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -0.03em;
}

.dji-cta-copy p {
  margin: 0;
  color: #a9c8dd;
  font-size: 13px;
  line-height: 1.75;
}

.dji-cta-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.dji-cta-actions .button {
  border-radius: 999px;
}

.dji-cta-actions .button:not(.secondary) {
  border-color: #eaf8ff;
  background: #eaf8ff;
  color: #061726;
}

.dji-cta-actions .button:not(.secondary):hover {
  border-color: #fff;
  background: #fff;
  color: #061726;
}

.dji-cta-actions .button.secondary {
  border-color: #2f6383;
  background: #0c2d47;
  color: #dbeefb;
}

.dji-cta-actions .button.secondary:hover {
  border-color: #4d8db5;
  background: #12466b;
  color: #fff;
}

.dji-text-link-light {
  margin-top: 0;
  color: #8fd8ff;
}

.dji-text-link-light:hover {
  color: #eaf8ff;
}

/* Legal note */

.dji-legal-note {
  margin: 2px 0 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Responsive */

@media (max-width: 1100px) {
  .dji-device-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .dji-hero {
    grid-template-columns: 1fr;
  }

  .dji-hero-visual {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  .dji-flow {
    grid-template-columns: 1fr;
  }

  .dji-flow-step p {
    max-width: 52em;
  }

  .dji-split {
    grid-template-columns: 1fr;
  }

  .dji-cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .dji-cta-actions {
    flex: initial;
  }
}

@media (max-width: 760px) {
  .dji-hub {
    gap: 14px;
    padding-top: 16px;
  }

  .dji-hero {
    gap: 18px;
    padding: 18px 16px 20px;
    border-radius: 20px;
  }

  .dji-hero .page-intro {
    gap: 20px;
  }

  .dji-hero .page-intro h1 {
    font-size: clamp(34px, 10.5vw, 44px);
  }

  .dji-hero .page-intro p {
    font-size: 13.5px;
  }

  .dji-hero-actions {
    gap: 8px;
  }

  .dji-hero-actions .button {
    padding: 10px 18px;
  }

  .dji-link-quiet {
    width: 100%;
    margin-left: 0;
  }

  .dji-hero-facts {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 14px;
  }

  .dji-hero-facts li {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    padding: 0;
    border-left: 0;
  }

  .dji-hero-facts b {
    flex: none;
    font-size: 12.5px;
  }

  .dji-hero-visual {
    border-radius: 18px;
  }

  .dji-visual-chips {
    right: 10px;
    bottom: 36px;
    left: 10px;
    gap: 5px;
  }

  .dji-visual-chip {
    padding: 5px 8px;
    font-size: 9.5px;
  }

  .dji-visual-chip b {
    font-size: 10.5px;
  }

  .dji-visual-caption {
    right: 10px;
    bottom: 12px;
    left: 10px;
    font-size: 8.5px;
  }

  .dji-section {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .dji-section-head h2 {
    font-size: 22px;
  }

  .dji-section-head p {
    font-size: 13px;
  }

  .dji-device-grid,
  .dji-color-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dji-boundary {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .dji-boundary-icon {
    width: 32px;
    height: 32px;
  }

  .dji-faq-item summary {
    padding: 14px 16px;
    font-size: 13px;
  }

  .dji-faq-body {
    padding: 0 16px 16px;
  }

  .dji-cta-band {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .dji-cta-actions {
    width: 100%;
  }

  .dji-cta-actions .button {
    flex: 1 1 auto;
  }

  .dji-legal-note {
    font-size: 10.5px;
  }
}

@media (max-width: 520px) {
  .dji-color-swatch {
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dji-flow-step,
  .dji-faq-item summary::after {
    transition: none;
  }
}
