/* ============================================================
   任丘市国新通讯器材有限公司 RQGX — 企业官网样式
   深蓝色 · 现代科技风
   ============================================================ */

:root {
  --navy-950: #050D1F;
  --navy-900: #071230;
  --navy-800: #0A1F44;
  --navy-700: #0F2D63;
  --navy-600: #16386F;
  --navy-500: #1E4A8F;
  --blue: #2E7CF6;
  --blue-bright: #3D8BFF;
  --cyan: #38C8FF;
  --text-main: #EAF1FB;
  --text-sub: #A7BBD8;
  --text-dim: #7A90B3;
  --line: rgba(120, 160, 220, 0.18);
  --card-bg: rgba(15, 45, 99, 0.35);
  --card-bg-hover: rgba(30, 74, 143, 0.45);
  --accent-grad: linear-gradient(120deg, #2E7CF6 0%, #38C8FF 100%);
  --radius: 14px;
  --maxw: 1200px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--navy-900);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- 双语切换 ---------- */
body.lang-en .zh { display: none !important; }
body:not(.lang-en) .en { display: none !important; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(7, 18, 48, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 6px 30px rgba(0, 0, 0, 0.45); }

.nav-wrap {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: #fff;
  box-shadow: 0 0 18px rgba(56, 200, 255, 0.35);
}
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: 0.5px; }
.brand-name .sub { display: block; font-size: 10.5px; font-weight: 400; color: var(--text-dim); letter-spacing: 2px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px;
  color: var(--text-sub); transition: all 0.25s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(46, 124, 246, 0.18); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  border: 1px solid var(--line); background: transparent; color: var(--text-sub);
  padding: 7px 16px; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
  transition: all 0.25s; font-family: inherit;
}
.lang-switch:hover { color: #fff; border-color: var(--cyan); box-shadow: 0 0 12px rgba(56, 200, 255, 0.25); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 8px; right: 8px; height: 2px; border-radius: 2px;
  background: var(--text-main); transition: all 0.3s;
}
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- 通用页面头部（内页 hero） ---------- */
.page-hero {
  padding: calc(var(--header-h) + 80px) 0 70px;
  background:
    radial-gradient(ellipse 60% 50% at 80% -10%, rgba(46, 124, 246, 0.28), transparent),
    radial-gradient(ellipse 50% 60% at 10% 110%, rgba(56, 200, 255, 0.12), transparent),
    var(--navy-900);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120,160,220,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,220,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}
.breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--cyan); }
.page-hero h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; letter-spacing: 1px; }
.page-hero .lead { color: var(--text-sub); margin-top: 14px; max-width: 760px; font-size: 16px; }

/* ---------- 首页 Hero ---------- */
.home-hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background:
    radial-gradient(ellipse 55% 45% at 75% 20%, rgba(46, 124, 246, 0.30), transparent),
    radial-gradient(ellipse 45% 40% at 15% 85%, rgba(56, 200, 255, 0.14), transparent),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  position: relative; overflow: hidden;
}
.home-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120,160,220,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,220,0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%);
}
.home-hero .container { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(56, 200, 255, 0.4); border-radius: 999px;
  padding: 6px 16px; font-size: 13px; color: var(--cyan);
  background: rgba(56, 200, 255, 0.08); margin-bottom: 26px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.home-hero h1 {
  font-size: clamp(34px, 6vw, 62px); font-weight: 800;
  line-height: 1.25; letter-spacing: 1px; max-width: 820px;
}
.home-hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home-hero .sub {
  margin-top: 22px; font-size: clamp(15px, 2vw, 19px);
  color: var(--text-sub); max-width: 680px;
}
.hero-cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 32px; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; font-family: inherit; transition: all 0.3s;
}
.btn-primary {
  background: var(--accent-grad); color: #fff;
  box-shadow: 0 8px 24px rgba(46, 124, 246, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(56, 200, 255, 0.5); }
.btn-ghost {
  background: transparent; color: var(--text-main);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

/* Hero 波浪装饰 */
.hero-wave { position: absolute; bottom: -2px; left: 0; width: 100%; z-index: 1; opacity: 0.55; }

/* ---------- 数据统计条 ---------- */
.stats-band {
  background: var(--navy-800);
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 36px 20px; text-align: center;
  border-right: 1px solid var(--line);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: clamp(30px, 4vw, 44px); font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--text-sub); font-size: 14px; margin-top: 6px; }

/* ---------- 通用 Section ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--navy-800); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 3px;
  color: var(--cyan); text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: 1px; }
.section-head .divider {
  width: 56px; height: 4px; border-radius: 4px;
  background: var(--accent-grad); margin: 18px auto 18px;
}
.section-head p { color: var(--text-sub); font-size: 15.5px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: all 0.35s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent-grad);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
}
.card:hover { background: var(--card-bg-hover); transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4); border-color: rgba(56, 200, 255, 0.35); }
.card:hover::after { transform: scaleX(1); }

.card .icon {
  width: 58px; height: 58px; border-radius: 14px;
  background: rgba(46, 124, 246, 0.15);
  border: 1px solid rgba(56, 200, 255, 0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px;
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-sub); font-size: 14.5px; }
.card .more {
  display: inline-block; margin-top: 18px; font-size: 13.5px;
  color: var(--cyan); font-weight: 600;
}
.card .more:hover { text-decoration: underline; }

/* ---------- 产品卡片（含图片占位区） ---------- */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all 0.35s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(56, 200, 255, 0.4); box-shadow: 0 18px 44px rgba(0,0,0,0.4); }
.product-thumb {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(46, 124, 246, 0.35), transparent),
    linear-gradient(135deg, var(--navy-700), var(--navy-600));
  display: flex; align-items: center; justify-content: center;
  font-size: 46px; position: relative;
}
.product-thumb .tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(7, 18, 48, 0.75); border: 1px solid var(--line);
  color: var(--cyan); font-size: 12px; padding: 3px 12px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.product-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 18px; margin-bottom: 8px; }
.product-body p { color: var(--text-sub); font-size: 14px; flex: 1; }
.product-body .spec { margin-top: 14px; font-size: 12.5px; color: var(--text-dim); border-top: 1px dashed var(--line); padding-top: 12px; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 32px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(180deg, var(--blue), var(--cyan)); opacity: 0.5;
}
.tl-item { position: relative; padding: 0 0 36px 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -32px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--navy-900); border: 3px solid var(--cyan);
  box-shadow: 0 0 12px rgba(56, 200, 255, 0.5);
}
.tl-year { font-size: 22px; font-weight: 800; color: var(--cyan); }
.tl-item h3 { font-size: 17px; margin: 6px 0; }
.tl-item p { color: var(--text-sub); font-size: 14.5px; }

/* ---------- 业务流程步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 24px; position: relative;
  transition: all 0.3s;
}
.step:hover { transform: translateY(-5px); border-color: rgba(56,200,255,0.4); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 40px; font-weight: 800; opacity: 0.22;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 8px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-sub); font-size: 14px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.data th {
  background: var(--navy-700); text-align: left; padding: 14px 18px;
  font-weight: 700; color: #fff; white-space: nowrap;
}
table.data td { padding: 13px 18px; border-top: 1px solid var(--line); color: var(--text-sub); }
table.data tr:hover td { background: rgba(46, 124, 246, 0.08); color: var(--text-main); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; }
.contact-info-card {
  background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
}
.contact-line { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.contact-line:last-child { border-bottom: none; }
.contact-line .ico {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  background: rgba(46, 124, 246, 0.15); border: 1px solid rgba(56,200,255,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.contact-line .label { font-size: 12.5px; color: var(--text-dim); letter-spacing: 1px; }
.contact-line .value { font-size: 15.5px; font-weight: 600; margin-top: 2px; }

.form-card {
  background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; color: var(--text-sub); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: rgba(7, 18, 48, 0.6); border: 1px solid var(--line);
  color: var(--text-main); font-size: 14.5px; font-family: inherit;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 200, 255, 0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* 地图占位 */
.map-placeholder {
  height: 320px; border-radius: var(--radius);
  border: 1px dashed rgba(56, 200, 255, 0.35);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(46,124,246,0.15), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(120,160,220,0.08) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(120,160,220,0.08) 39px 40px),
    var(--navy-800);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-dim); gap: 8px;
}
.map-placeholder .pin { font-size: 40px; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 60% 90% at 50% 120%, rgba(56, 200, 255, 0.22), transparent),
    linear-gradient(120deg, var(--navy-700), var(--navy-600));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 70px 0; text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
.cta-band p { color: var(--text-sub); margin: 14px 0 30px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-950); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-grid h4 { font-size: 15px; font-weight: 700; margin-bottom: 18px; color: #fff; }
.footer-grid p, .footer-grid li { color: var(--text-dim); font-size: 14px; }
.footer-grid li { padding: 5px 0; }
.footer-grid a:hover { color: var(--cyan); }
.footer-brand .brand-name { margin: 14px 0 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--text-dim);
}

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  width: 46px; height: 46px; border-radius: 12px; border: none;
  background: var(--accent-grad); color: #fff; font-size: 19px;
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all 0.3s; box-shadow: 0 8px 22px rgba(46,124,246,0.45);
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- 滚动动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(7, 18, 48, 0.97); backdrop-filter: blur(16px);
    flex-direction: column; align-items: stretch; padding: 18px 24px 26px; gap: 4px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform 0.35s ease;
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 12px 14px; font-size: 16px; }
  .nav-toggle { display: block; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .steps, .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name .sub { display: none; }
}

/* ============================================================
   浮动 WhatsApp 按钮（全站，海外客户沟通入口）
   ============================================================ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.6);
}
@media (max-width: 620px) {
  .wa-float { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .wa-float svg { width: 26px; height: 26px; }
}

/* 联系页 WhatsApp 可点击链接 */
.contact-line .value a { color: var(--cyan); text-decoration: none; }
.contact-line .value a:hover { text-decoration: underline; }
