/* ===== XXX 无人机官网 - 全局样式 ===== */
:root {
  --bg: #05070A;
  --bg-soft: #0B0F14;
  --cyan: #00E5FF;
  --cyan-dim: rgba(0,229,255,.14);
  --cyan-line: rgba(0,229,255,.28);
  --silver: #C7D0D9;
  --orange: #FF6B35;
  --text: #F5F7FA;
  --sub: #8A94A6;
  --line: rgba(255,255,255,.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-cyan: 0 0 24px rgba(0,229,255,.18);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Source Han Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; outline: none; }

/* ===== 滚动进度条 ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, transparent, var(--cyan));
  box-shadow: 0 0 8px var(--cyan);
  z-index: 9999; transition: width .1s linear;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 72px; transition: all .3s ease;
  background: transparent;
}
.site-header.scrolled {
  height: 64px;
  background: rgba(5,7,10,.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 32px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 24px; font-weight: 800; letter-spacing: 2px;
  color: var(--text); font-family: 'Space Grotesk', monospace;
  display: flex; align-items: center; gap: 8px;
}
.logo::before {
  content: ''; width: 10px; height: 10px; 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:.4} }
.nav-menu { display: flex; gap: 36px; }
.nav-menu a {
  font-size: 15px; color: var(--silver); position: relative;
  padding: 6px 0; transition: color .3s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--cyan); }
.nav-menu a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--cyan); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 16px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--cyan), #00b8d4);
  color: #001a1f; padding: 10px 24px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px; transition: all .3s;
  box-shadow: 0 0 20px rgba(0,229,255,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(0,229,255,.45); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--cyan-line); color: var(--cyan);
  padding: 10px 24px; border-radius: var(--radius-pill);
  font-weight: 500; font-size: 14px; transition: all .3s;
}
.btn-ghost:hover { background: var(--cyan-dim); }
.fav-badge {
  position: relative; color: var(--silver); font-size: 14px; cursor: pointer;
}
.fav-badge:hover { color: var(--cyan); }
.fav-count {
  position: absolute; top: -8px; right: -12px; background: var(--orange);
  color: #fff; font-size: 11px; border-radius: 50%; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.burger {
  display: none; width: 42px; height: 42px; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
}
.burger span {
  width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: all .3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; background: rgba(5,7,10,.95);
  backdrop-filter: blur(24px); z-index: 999;
  display: none; flex-direction: column; padding: 96px 32px 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 22px; color: var(--text); padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--bg-soft); border-top: 1px solid var(--line);
  padding: 64px 32px 32px; margin-top: 80px;
}
.footer-top {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--sub); font-size: 14px; max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); display: flex; align-items: center;
  justify-content: center; color: var(--sub); transition: all .3s;
}
.footer-social a:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-3px); }
.footer-col h4 { font-size: 14px; color: var(--text); margin-bottom: 18px; }
.footer-col a {
  display: block; color: var(--sub); font-size: 13px; padding: 6px 0;
  transition: all .3s;
}
.footer-col a:hover { color: var(--cyan); transform: translateX(4px); }
.footer-bottom {
  max-width: 1400px; margin: 48px auto 0; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom span { color: var(--sub); font-size: 13px; }
.fb-links { display: flex; gap: 24px; }
.fb-links a { color: var(--sub); font-size: 13px; cursor: pointer; }
.fb-links a:hover { color: var(--cyan); }

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed; right: 24px; bottom: 32px; z-index: 900;
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(11,15,20,.8); backdrop-filter: blur(12px);
  border: 1px solid var(--cyan-line); color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .3s;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--cyan-dim); box-shadow: var(--shadow-cyan); }

/* ===== Toast ===== */
.toast-container {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  z-index: 10000; display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.toast {
  background: rgba(11,15,20,.95); backdrop-filter: blur(16px);
  border: 1px solid var(--cyan-line); border-radius: 12px;
  padding: 12px 22px; color: var(--text); font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .3s ease; box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.toast.success { border-color: var(--cyan); color: var(--cyan); }
.toast.error { border-color: var(--orange); color: var(--orange); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-12px); } }

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
  backdrop-filter: blur(24px); border: 1px solid var(--cyan-line);
  border-radius: 20px; padding: 32px; max-width: 560px; width: 100%;
  position: relative; animation: modalIn .3s ease; max-height: 85vh; overflow-y: auto;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  border-radius: 8px; color: var(--sub); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--cyan-dim); color: var(--cyan); }
.modal h3 { font-size: 22px; margin-bottom: 16px; }
.modal p { color: var(--sub); font-size: 14px; line-height: 1.7; }

/* ===== 通用容器 ===== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; }
.section-title {
  font-size: clamp(26px, 3.4vw, 46px); font-weight: 700;
  text-align: center; margin-bottom: 16px;
}
.section-title .grad {
  background: linear-gradient(135deg, var(--text), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub { text-align: center; color: var(--sub); font-size: 16px; max-width: 640px; margin: 0 auto 56px; }

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 100px 32px 0; max-width: 1400px; margin: 0 auto;
  font-size: 13px; color: var(--sub);
}
.breadcrumb a { color: var(--sub); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .sep { margin: 0 8px; }
.breadcrumb .current { color: var(--cyan); }

/* ===== 页面头部 ===== */
.page-hero {
  padding: 40px 32px 60px; max-width: 1400px; margin: 0 auto; text-align: center;
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 56px); font-weight: 700; margin-bottom: 16px;
}
.page-hero h1 .grad {
  background: linear-gradient(135deg, var(--text), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.page-hero p { color: var(--sub); font-size: 17px; max-width: 640px; margin: 0 auto; }

/* ===== 卡片通用 ===== */
.card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all .45s;
}
.card:hover { border-color: var(--cyan-line); transform: translateY(-6px); box-shadow: var(--shadow-cyan); }

/* ===== 标签 ===== */
.tag {
  display: inline-flex; align-items: center; padding: 4px 12px;
  border-radius: var(--radius-pill); font-size: 12px; font-weight: 500;
}
.tag.cyan { background: var(--cyan-dim); color: var(--cyan); border: 1px solid var(--cyan-line); }
.tag.orange { background: rgba(255,107,53,.12); color: var(--orange); border: 1px solid rgba(255,107,53,.3); }

/* ===== 表单 ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; color: var(--silver); margin-bottom: 8px; font-weight: 500; }
.form-control {
  width: 100%; padding: 14px 16px; background: rgba(255,255,255,.03);
  border: 1px solid var(--line); border-radius: 12px; color: var(--text);
  font-size: 14px; transition: border-color .3s;
}
.form-control:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-dim); }
.form-control::placeholder { color: var(--sub); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ===== 分页 ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination button {
  min-width: 40px; height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--silver); font-size: 14px;
  transition: all .3s;
}
.pagination button:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); }
.pagination button.active { background: var(--cyan); color: #001a1f; border-color: var(--cyan); }
.pagination button:disabled { opacity: .35; cursor: not-allowed; }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 80px 20px; color: var(--sub); }
.empty-state .icon { font-size: 48px; margin-bottom: 16px; opacity: .4; }

/* ===== 入场动画 ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== 响应式 ===== */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .site-header { height: 64px; }
  .site-header.scrolled { height: 56px; }
  .nav-menu, .nav-actions .btn-primary, .fav-badge { display: none; }
  .burger { display: flex; }
  .section { padding: 84px 0; }
  .nav-inner { padding: 0 20px; }
}
@media (max-width: 620px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}
