/* 
  深圳新翼通科技有限公司官网样式
  修改颜色建议从 :root 变量开始。
*/

:root {
  --bg: #050816;
  --bg-2: #0b1020;
  --primary: #38bdf8;
  --secondary: #22d3ee;
  --accent: #a78bfa;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --card: rgba(15, 23, 42, 0.72);
  --card-strong: rgba(15, 23, 42, 0.92);
  --border: rgba(148, 163, 184, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.14), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(167, 139, 250, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 48%, #050816);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 104px 0;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-heading h2,
.service-copy h2,
.safety-card h2,
.contact-info h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p,
.service-copy p,
.safety-card p,
.contact-info p {
  color: var(--muted);
}

/* 顶部导航 */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  z-index: 1000;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(5, 8, 22, 0.82);
  backdrop-filter: blur(18px);
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.navbar {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #03111f;
  font-weight: 900;
  background:
    linear-gradient(135deg, var(--primary), var(--secondary) 50%, var(--accent));
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.logo-text small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-menu a {
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 60px);
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 74%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.hero-content h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.075em;
}

.hero-desc {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #03111f;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.18);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--border);
  background: rgba(15, 23, 42, 0.65);
}

.btn-secondary:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  color: var(--muted);
  font-size: 13px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
}

.hero-visual {
  min-height: 520px;
  display: grid;
  place-items: center;
  position: relative;
}

.radar {
  position: relative;
  width: min(520px, 88vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.12), transparent 38%);
  box-shadow:
    inset 0 0 80px rgba(56, 189, 248, 0.12),
    0 0 90px rgba(34, 211, 238, 0.08);
}

.radar-ring {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 50%;
}

.ring-2 {
  inset: 27%;
}

.ring-3 {
  inset: 42%;
}

.radar-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48%;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), transparent);
  transform-origin: left center;
  animation: radarSweep 5.5s linear infinite;
}

.drone-shape {
  position: absolute;
  inset: 50%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%) rotate(-12deg);
  filter: drop-shadow(0 0 24px rgba(34, 211, 238, 0.28));
}

.arm {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform-origin: center;
}

.arm-x {
  transform: translate(-50%, -50%) rotate(35deg);
}

.arm-y {
  transform: translate(-50%, -50%) rotate(-35deg);
}

.body-core {
  position: absolute;
  inset: 50%;
  width: 54px;
  height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.92), rgba(167, 139, 250, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.rotor {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(34, 211, 238, 0.76);
  border-radius: 50%;
  background: rgba(5, 8, 22, 0.7);
  animation: rotorPulse 2.6s ease-in-out infinite;
}

.rotor::after {
  content: "";
  position: absolute;
  inset: 13px 5px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.42);
}

.rotor-1 {
  left: 4px;
  top: 36px;
}

.rotor-2 {
  right: 4px;
  top: 36px;
}

.rotor-3 {
  left: 4px;
  bottom: 36px;
}

.rotor-4 {
  right: 4px;
  bottom: 36px;
}

.flight-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.85);
}

.dot-1 {
  left: 20%;
  top: 28%;
  animation: floatDot 4s ease-in-out infinite;
}

.dot-2 {
  right: 22%;
  top: 34%;
  animation: floatDot 5s ease-in-out infinite reverse;
}

.dot-3 {
  right: 34%;
  bottom: 18%;
  animation: floatDot 4.6s ease-in-out infinite;
}

/* 数据卡片 */
.stats-section {
  margin-top: -52px;
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card,
.product-card,
.scene-card,
.service-panel,
.safety-card,
.contact-form {
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.stat-card {
  min-height: 138px;
  padding: 26px;
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.42);
}

.stat-card strong {
  display: block;
  color: var(--primary);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

/* 产品卡片 */
.product-grid,
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  position: relative;
  min-height: 280px;
  padding: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.09);
  filter: blur(4px);
}

.product-card:hover {
  transform: translateY(-7px);
  border-color: rgba(56, 189, 248, 0.46);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 18px;
  color: var(--primary);
  font-size: 26px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.product-card h3,
.scene-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.product-card p,
.scene-card p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--secondary);
  font-weight: 800;
}

.text-link:hover {
  color: var(--primary);
}

/* 服务 */
.service-section {
  background:
    linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.34), transparent);
}

.service-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.service-copy p + p {
  margin-top: 14px;
}

.service-panel {
  padding: 30px;
  border-radius: var(--radius-lg);
}

.service-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 16px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.36);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.service-list span {
  flex: 0 0 auto;
  width: 36px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.11);
}

/* 应用场景 */
.scene-card {
  min-height: 178px;
  padding: 28px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.52));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.scene-card:hover {
  transform: translateY(-5px);
  border-color: rgba(167, 139, 250, 0.42);
}

/* 安全合规 */
.safety-section {
  padding-top: 70px;
}

.safety-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
  padding: 44px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(8, 13, 30, 0.82));
}

.safety-points {
  display: grid;
  gap: 14px;
}

.safety-points p {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}

.safety-points p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.62);
}

/* 联系 */
.contact-section {
  padding-top: 70px;
}

.contact-info {
  align-self: start;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
}

.contact-list strong {
  color: var(--text);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  border-radius: var(--radius-lg);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.45);
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(56, 189, 248, 0.68);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.11);
}

.contact-form textarea {
  resize: vertical;
}

.form-message {
  min-height: 24px;
  color: var(--secondary);
  font-weight: 700;
}

/* 页脚 */
.site-footer {
  padding: 56px 0 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.36);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 38px;
}

.footer-logo {
  margin-bottom: 18px;
}

.site-footer p {
  color: var(--muted);
}

.site-footer h3 {
  margin-bottom: 14px;
  font-size: 16px;
}

.site-footer a:not(.logo) {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
}

.site-footer a:not(.logo):hover {
  color: var(--primary);
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 14px;
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: 16px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.84);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 滚动出现动画 */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 动画 */
@keyframes radarSweep {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes rotorPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes floatDot {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(12px, -14px, 0);
  }
}

/* 平板 */
@media (max-width: 980px) {
  .hero-inner,
  .service-layout,
  .contact-layout,
  .safety-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--header-height) + 44px);
  }

  .hero-visual {
    min-height: 420px;
  }

  .stats-grid,
  .product-grid,
  .scene-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* 手机 */
@media (max-width: 720px) {
  :root {
    --header-height: 68px;
  }

  .container {
    width: min(100% - 28px, 1160px);
  }

  .section {
    padding: 76px 0;
  }

  .logo-text {
    font-size: 14px;
  }

  .logo-text small {
    font-size: 11px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    left: 14px;
    right: 14px;
    top: calc(var(--header-height) + 10px);
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(5, 8, 22, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu a {
    display: block;
    padding: 12px 10px;
    border-radius: 12px;
  }

  .nav-menu a:hover {
    background: rgba(56, 189, 248, 0.08);
  }

  .hero-content h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 330px;
  }

  .radar {
    width: min(340px, 90vw);
  }

  .drone-shape {
    width: 150px;
    height: 150px;
  }

  .arm {
    width: 142px;
  }

  .rotor {
    width: 40px;
    height: 40px;
  }

  .rotor-1,
  .rotor-2 {
    top: 28px;
  }

  .rotor-3,
  .rotor-4 {
    bottom: 28px;
  }

  .stats-section {
    margin-top: 0;
  }

  .stats-grid,
  .product-grid,
  .scene-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .safety-card {
    padding: 28px;
    border-radius: 24px;
  }

  .contact-form {
    padding: 22px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

