/* ============================================
   惠州市锐达科讯科技有限公司 官网样式
   ============================================ */
:root {
  --bg: #0b1220;
  --bg-alt: #0e1729;
  --card: #121e33;
  --card-hover: #16253f;
  --border: rgba(148, 178, 230, 0.12);
  --text: #e8eef8;
  --text-dim: #94a5c2;
  --primary: #2563eb;
  --accent: #38bdf8;
  --grad: linear-gradient(135deg, #38bdf8, #2563eb);
  --radius: 16px;
  --shadow: 0 18px 50px rgba(2, 8, 23, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.45);
}
.btn-ghost {
  background: rgba(148, 178, 230, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-lg { padding: 14px 34px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.35s ease;
}
.navbar.scrolled {
  padding: 10px 0;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text strong {
  display: block;
  font-size: 19px;
  letter-spacing: 2px;
  line-height: 1.2;
}
.logo-text span {
  display: block;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
}
.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-dim);
  transition: all 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(56, 189, 248, 0.1);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.glow-1 {
  width: 560px; height: 560px;
  background: #2563eb;
  top: -180px; right: -120px;
}
.glow-2 {
  width: 460px; height: 460px;
  background: #0ea5e9;
  bottom: -200px; left: -140px;
  opacity: 0.22;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 178, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 230, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(56, 189, 248, 0.06);
  font-size: 13.5px;
  color: var(--accent);
  margin-bottom: 26px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 1px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  margin: 24px 0 34px;
  max-width: 560px;
  color: var(--text-dim);
  font-size: 16.5px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.stat strong {
  font-size: 32px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat em {
  font-style: normal;
  font-size: 20px;
  color: var(--accent);
  font-weight: 700;
}
.stat span {
  display: block;
  color: var(--text-dim);
  font-size: 13.5px;
  margin-top: 2px;
}

/* Hero 可视化卡片 */
.hero-visual { display: flex; justify-content: center; }
.device-card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(160deg, rgba(22, 37, 63, 0.9), rgba(14, 23, 41, 0.9));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.radar {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08), transparent 70%);
  margin-bottom: 26px;
  overflow: hidden;
}
.radar-ring {
  position: absolute;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.r1 { width: 34%; height: 34%; }
.r2 { width: 64%; height: 64%; }
.r3 { width: 94%; height: 94%; }
.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(56, 189, 248, 0.4), transparent 22%);
  animation: sweep 3.4s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.8));
}
.radar-dot {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: blink 2.4s infinite;
}
.d1 { top: 25%; left: 68%; }
.d2 { top: 62%; left: 24%; animation-delay: 0.8s; }
.d3 { top: 74%; left: 62%; animation-delay: 1.5s; }
@keyframes blink {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}
.device-info { display: grid; gap: 12px; }
.device-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-radius: 10px;
  background: rgba(148, 178, 230, 0.05);
  border: 1px solid var(--border);
  font-size: 14px;
}
.device-row span { color: var(--text-dim); }
.device-row b { font-weight: 600; }
.device-row .online { color: #34d399; }

/* ---------- 通用 Section ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}
.section-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-head h2, .about-content h2, .contact-info h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: 1px;
}
.section-head p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 16px;
}

/* ---------- 产品中心 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: all 0.35s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  background: var(--card-hover);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow);
}
.product-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  margin-bottom: 22px;
}
.product-card h3 { font-size: 18px; margin-bottom: 12px; }
.product-card > p {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 18px;
}
.product-card ul li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 7px;
}
.product-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- 解决方案 ---------- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.solution-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 34px;
  overflow: hidden;
  transition: all 0.35s ease;
}
.solution-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.solution-num {
  position: absolute;
  top: 14px; right: 24px;
  font-size: 62px;
  font-weight: 800;
  color: rgba(56, 189, 248, 0.08);
  line-height: 1;
}
.solution-card h3 { font-size: 20px; margin-bottom: 12px; }
.solution-card p { color: var(--text-dim); font-size: 14.5px; max-width: 92%; }

/* ---------- 核心优势 ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.adv-card {
  text-align: center;
  padding: 38px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.35s ease;
}
.adv-card:hover {
  border-color: var(--border);
  background: var(--card);
  transform: translateY(-6px);
}
.adv-icon {
  width: 62px; height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.4);
}
.adv-card h3 { font-size: 17px; margin-bottom: 10px; }
.adv-card p { color: var(--text-dim); font-size: 14px; }

/* ---------- 关于我们 ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: center;
}
.about-content h2 { margin-bottom: 22px; }
.about-content p {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 15.5px;
}
.about-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.about-tags span {
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent);
  font-size: 13.5px;
  background: rgba(56, 189, 248, 0.06);
}
.about-card {
  display: grid;
  gap: 18px;
}
.about-metric {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  gap: 22px;
  transition: all 0.3s ease;
}
.about-metric:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateX(6px);
}
.about-metric strong {
  font-size: 26px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 62px;
}
.about-metric span { color: var(--text-dim); font-size: 14.5px; }

/* ---------- 合作流程 ---------- */
.process-grid {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.process-step {
  flex: 1;
  text-align: center;
  padding: 0 10px;
}
.process-dot {
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4);
}
.process-line {
  flex: 0.6;
  height: 2px;
  margin-top: 26px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.5), rgba(37, 99, 235, 0.2));
  border-radius: 2px;
}
.process-step h3 { font-size: 17px; margin-bottom: 8px; }
.process-step p { color: var(--text-dim); font-size: 13.5px; }

/* ---------- 联系我们 ---------- */
.section-contact {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
    var(--bg-alt);
}
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px;
  box-shadow: var(--shadow);
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--text-dim); margin-bottom: 30px; }
.contact-list { display: grid; gap: 20px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-list svg { color: var(--accent); flex-shrink: 0; }
.contact-list span {
  display: block;
  font-size: 12.5px;
  color: var(--text-dim);
}
.contact-list b { font-size: 15.5px; font-weight: 600; }

.contact-form h3 { font-size: 20px; margin-bottom: 22px; }
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.6);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #5f7397; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.form-tip {
  margin-top: 12px;
  font-size: 13.5px;
  color: #34d399;
  text-align: center;
  min-height: 20px;
}

/* ---------- 页脚 ---------- */
.footer {
  background: #080e1a;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 48px;
}
.footer-brand p {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 14px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 15.5px;
  margin-bottom: 18px;
}
.footer-col a, .footer-addr {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 11px;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
@media (max-width: 1340px) {
  .footer-bottom .container { padding-right: 70px; }
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); transition: color 0.25s ease; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 28px; bottom: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.35s ease;
  z-index: 90;
}
.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top:hover { transform: translateY(-4px); }

/* ---------- 滚动入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero { min-height: auto; }
  .hero-visual { justify-content: flex-start; }
  .product-grid, .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 46px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-cta { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 76px 0; }
  .nav-links {
    position: fixed;
    top: 0; right: -280px;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    gap: 6px;
    padding: 90px 24px 24px;
    background: rgba(11, 18, 32, 0.97);
    backdrop-filter: blur(18px);
    border-left: 1px solid var(--border);
    transition: right 0.35s ease;
  }
  .nav-links.open { right: 0; }
  .nav-links a { padding: 12px 16px; font-size: 16px; }
  .menu-toggle { display: flex; margin-left: auto; z-index: 110; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding-top: 110px; }
  .hero-stats { gap: 26px; }
  .solution-grid { grid-template-columns: 1fr; }
  .process-grid { flex-direction: column; gap: 32px; align-items: center; }
  .process-line { display: none; }
  .process-step { max-width: 320px; }
  .contact-box { grid-template-columns: 1fr; padding: 34px 26px; gap: 40px; }
  .contact-form .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-bottom .container { justify-content: center; text-align: center; }
}

@media (max-width: 520px) {
  .product-grid, .adv-grid, .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
