/* ==========================================================
   智能无人机 · 全站共用样式（深色商务主题）
   无外部依赖，纯原生 CSS
   ========================================================== */

:root {
  --bg: #0d1117;
  --bg-soft: #131a23;
  --card: #1a2230;
  --card-2: #212b3a;
  --border: #2c3646;
  --text: #e7edf3;
  --muted: #98a6b5;
  --accent: #2ea6ff;
  --accent-2: #17c964;
  --warn: #f5a623;
  --danger: #ff5c5c;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --container: 1200px;
  --nav-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #6ec2ff; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-title { font-size: 30px; font-weight: 700; margin-bottom: 12px; }
.section-sub { color: var(--muted); max-width: 720px; margin-bottom: 40px; }
.center { text-align: center; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-flex; align-items: center; justify-content: center;
  color: #04121f; font-weight: 800;
}
.nav-menu { display: flex; gap: 6px; }
.nav-menu a {
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 15px;
}
.nav-menu a:hover { color: var(--text); background: var(--card); }
.nav-menu a.active { color: #fff; background: var(--card-2); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px; height: 42px;
  cursor: pointer;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 18px 0;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--border); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ---------- 页头横幅（内页） ---------- */
.page-hero {
  background: linear-gradient(135deg, #14202e 0%, #0d1117 60%);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.page-hero h1 { font-size: 34px; margin-bottom: 10px; }
.page-hero p { color: var(--muted); max-width: 680px; }

/* ---------- 首页轮播 ---------- */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.carousel-track { display: flex; transition: transform .5s ease; }
.carousel-slide {
  min-width: 100%;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  background: linear-gradient(135deg, #16283c 0%, #0d1117 70%);
}
.carousel-slide:nth-child(2) { background: linear-gradient(135deg, #14302a 0%, #0d1117 70%); }
.carousel-slide:nth-child(3) { background: linear-gradient(135deg, #2a2140 0%, #0d1117 70%); }
.carousel-slide h2 { font-size: 38px; margin-bottom: 16px; max-width: 640px; }
.carousel-slide p { color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .2s;
}
.btn-primary { background: var(--accent); color: #04121f; font-weight: 600; }
.btn-primary:hover { background: #55b8ff; color: #04121f; }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.carousel-dots {
  position: absolute;
  left: 0; right: 0; bottom: 20px;
  display: flex; justify-content: center; gap: 10px;
}
.carousel-dots button {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  padding: 0;
}
.carousel-dots button.active { background: var(--accent); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--card-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.card-link { margin-top: 16px; font-size: 14px; }

/* 产品卡片 */
.product-card .thumb {
  height: 170px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--card-2), #0e151d);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  margin-bottom: 18px;
}
.product-card .price { color: var(--accent-2); font-weight: 700; margin-top: 10px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.spec-table { width: 100%; border-collapse: collapse; background: var(--card); }
.spec-table th, .spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14.5px;
}
.spec-table th { background: var(--card-2); color: var(--text); width: 32%; }
.spec-table tr:last-child td { border-bottom: none; }

/* ---------- 新闻列表 ---------- */
.news-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.news-item .news-date {
  flex: 0 0 92px;
  color: var(--muted);
  font-size: 14px;
}
.news-item h3 { font-size: 18px; margin-bottom: 8px; }
.news-item h3 a { color: var(--text); }
.news-item h3 a:hover { color: var(--accent); }
.news-item p { color: var(--muted); font-size: 14.5px; }
.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 10px;
  margin-right: 8px;
}

/* 新闻详情 */
.article-meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.article-body p { margin-bottom: 18px; color: #cfd9e3; }
.article-body h2 { font-size: 22px; margin: 28px 0 14px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-symbol {
  flex: 0 0 26px; height: 26px;
  border-radius: 8px;
  background: var(--card-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--accent);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a-inner { padding: 0 24px 22px; color: var(--muted); font-size: 14.5px; }
.faq-item.open .faq-a { max-height: 320px; }

/* ---------- 评价 ---------- */
.quote-card blockquote { color: #cfd9e3; font-size: 15px; margin-bottom: 16px; }
.quote-card .who { color: var(--muted); font-size: 14px; }
.quote-card .who strong { color: var(--text); }
.stars { color: var(--warn); margin-bottom: 10px; }

/* ---------- 表单 ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; color: var(--muted); }
.form-field input,
.form-field textarea {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 166, 255, .18);
}
.form-field .error-msg {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
}
.form-field.invalid input,
.form-field.invalid textarea { border-color: var(--danger); }
.form-note { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.modal-mask.show { display: flex; }
.modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow);
}
.modal-box .modal-icon { font-size: 40px; margin-bottom: 14px; }
.modal-box h3 { font-size: 20px; margin-bottom: 10px; }
.modal-box p { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-grid h4 { font-size: 16px; margin-bottom: 16px; }
.footer-grid p, .footer-grid li { color: var(--muted); font-size: 14px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-grid ul li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    gap: 4px;
    display: none;
  }
  .nav-menu.show { display: flex; }
  .carousel-slide { padding: 40px 28px; min-height: 340px; }
  .carousel-slide h2 { font-size: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .news-item { flex-direction: column; gap: 6px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
}
