/* ============================================================
   恒源信息 site_v3 设计系统 · 高端工业科技
   色彩：深灰蓝打底 / 电光蓝点睛 / 克制留白
   ============================================================ */
:root {
  --ink: #202124;          /* 主文字 · 近黑 */
  --ink-2: #3c4043;        /* 次级文字 */
  --slate: #5f6368;        /* 辅助文字 */
  --carbon: #202124;       /* 深色底 · 石墨黑 */
  --carbon-2: #292a2d;     /* 深色底 2 */
  --paper: #ffffff;
  --pale: #f1f3f4;         /* 浅灰底 · 冷白 */
  --line: #dadce0;
  --line-soft: #e8eaed;
  --accent: #0b57d0;       /* 强调色 · 克制品牌蓝 */
  --accent-deep: #0842a0;
  --accent-soft: #e8f0fe;
  --blue: #0b57d0;         /* 链接/交互 */
  /* 兼容旧变量名（指向新强调色，避免页面内联引用失效） */
  --green: #0b57d0;
  --green-deep: #0842a0;
  --green-soft: #e8f0fe;
  --radius: 16px;
  --shadow-card: 0 1px 2px rgba(60, 64, 67, .16), 0 2px 6px rgba(60, 64, 67, .08);
  --shadow-card-hover: 0 4px 12px rgba(60, 64, 67, .18), 0 1px 3px rgba(60, 64, 67, .12);
  --wrap: 1240px;
  --pad-x: clamp(20px, 4.5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "MiSans", "HarmonyOS Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #f8f9fa;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

.container { width: min(var(--wrap), calc(100% - var(--pad-x) * 2)); margin-inline: auto; }

/* ---------- 通用文字 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-size: 14px; font-weight: 700;
  letter-spacing: .1em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.dark .eyebrow { color: #6ea0ff; }
.dark .eyebrow::before { background: #6ea0ff; }
/* hero 系区块（图片/深色背景）上的 eyebrow：白字 + 引导线，保证对比度 */
.hero .eyebrow, .p-hero .eyebrow, .p4-hero .eyebrow, .h-hero .eyebrow, .page-hero .eyebrow { color: #fff; }
.p-hero .eyebrow::before, .p4-hero .eyebrow::before, .h-hero .eyebrow::before, .page-hero .eyebrow::before { background: #8ab4f8; }
/* 首页 hero 引导线与下方板块标题横线同色（品牌蓝） */
.hero .eyebrow::before { background: var(--accent); }

.section-head { max-width: 720px; }
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600; line-height: 1.32; letter-spacing: .01em;
}
.section-head .lead { margin-top: 14px; color: var(--slate); font-size: 15px; line-height: 1.9; }
.dark .section-head .lead { color: #a9b6c3; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 150px; padding: 12px 25px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid transparent; border-radius: 999px;
  transition: all .22s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 3px 8px rgba(11,87,208,.28); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: #fff; color: var(--ink); }
.btn-outline { border-color: #d0d6e0; color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn .arr { transition: transform .22s; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- 顶栏 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: 72px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.brand-text b { font-size: 21px; font-weight: 800; letter-spacing: .05em; color: var(--ink); font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif; }
.brand-text i { font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--ink-2); letter-spacing: .18em; margin-top: 1px; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav .nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 15px;
  color: var(--ink-2); font-size: 14px; font-weight: 500; transition: color .2s;
}
.main-nav .nav-link::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .22s;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--accent); }
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { transform: scaleX(1); }
.nav-link .caret { font-size: 10px; opacity: .55; transform: translateY(-1px); transition: transform .22s; }
.nav-drop:hover .nav-link .caret { transform: translateY(-1px) rotate(180deg); }

/* 产品中心下拉面板 */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-panel {
  position: absolute; top: calc(100% + 6px); left: -10px; z-index: 60;
  display: flex; gap: 44px; padding: 24px 28px 26px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 8px 24px rgba(60,64,67,.16);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.nav-drop-panel::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-drop:hover .nav-drop-panel, .nav-drop:focus-within .nav-drop-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.drop-group { display: flex; flex-direction: column; min-width: 224px; }
.drop-group + .drop-group { border-left: 1px solid var(--line-soft); padding-left: 40px; margin-left: -4px; }
.drop-title {
  padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line-soft);
  color: var(--slate); font-size: 12px; font-weight: 700; letter-spacing: .12em;
}
.nav-drop-panel a {
  display: block; padding: 9px 10px; margin: 1px -10px;
  border-radius: 6px; color: var(--ink-2); font-size: 14px; white-space: nowrap;
  transition: background .16s, color .16s;
}
.nav-drop-panel a:hover { background: var(--accent-soft); color: var(--accent-deep); }
.header-cta {
  margin-left: 10px; padding: 10px 22px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
  border-radius: 999px; transition: background .22s;
}
.header-cta:hover { background: var(--accent-deep); }
.menu-toggle { display: none; }

/* 移动端导航 */
@media (max-width: 980px) {
  .main-nav, .header-cta { display: none; }
  .brand-mark { height: 30px; }
  .brand-text b { font-size: 17px; }
  .brand-text i { font-size: 10px; letter-spacing: .12em; }
  .menu-toggle {
    display: block; margin-left: auto;
    width: 44px; height: 44px; border: 1px solid var(--line);
    background: #fff; border-radius: 12px;
    font-size: 20px; color: var(--ink);
  }
  .mobile-nav {
    display: none; position: fixed; top: 72px; left: 0; right: 0; z-index: 49;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .mobile-nav.open { display: block; }
  .mobile-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); font-size: 15px; }
  .mobile-nav a:last-child { border-bottom: 0; }
  .mobile-nav .m-group-title {
    padding: 16px 4px 6px; margin: 0; border-bottom: 0;
    color: var(--slate); font-size: 12px; font-weight: 700; letter-spacing: .14em;
  }
  .mobile-nav a.m-sub { padding-left: 18px; font-size: 14px; color: var(--ink-2); }
  .mobile-nav .header-cta { display: inline-flex; margin-top: 14px; }
}
@media (min-width: 981px) { .mobile-nav { display: none !important; } }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--carbon); color: #93a1af; font-size: 13px; }
.footer-main {
  display: grid; grid-template-columns: 1.15fr .78fr 1.3fr 1.25fr; gap: 36px;
  padding: 44px 0 36px;
}
.footer-brand .fbrand-lockup { display: flex; align-items: center; gap: 11px; }
.footer-brand .fbrand-lockup img { height: 34px; width: auto; }
.footer-brand .fbrand-lockup .brand-text b { color: #fff; }
.footer-brand .fbrand-lockup .brand-text i { color: #93a1af; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 18px; letter-spacing: .06em; }
.footer-col li { margin-bottom: 11px; line-height: 1.55; }
.footer-col a { transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-contact { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.1); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 28px;
  padding: 20px 0 26px; border-top: 1px solid rgba(255,255,255,.1);
  color: #67737f; font-size: 12px;
}
.footer-records { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; }
.record-link { display: inline-flex; align-items: center; gap: 5px; color: inherit; transition: color .2s ease; }
.record-link:focus-visible { outline: 2px solid #8ab4f8; outline-offset: 3px; border-radius: 2px; }
.record-separator { color: #53606d; }
.record-icon { width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 980px) {
  .footer-main { grid-template-columns: 1.1fr 1fr; gap: 34px 44px; }
  .footer-contact { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 30px; }
  .footer-bottom { padding: 16px 0 20px; }
  .footer-records { gap: 6px 9px; }
}

/* ---------- 深浅分节 ---------- */
.dark { background: var(--carbon-2); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.tint { background: var(--pale); }

/* ---------- 数据大字 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.stat { background: var(--carbon-2); padding: 34px 30px; }
.stat b { display: block; font-size: clamp(34px, 3.6vw, 52px); font-weight: 700; line-height: 1.05; color: #fff; letter-spacing: -.01em; }
.stat b span { font-size: .42em; font-weight: 600; color: #6ea0ff; margin-left: 4px; }
.stat p { margin-top: 10px; color: #a9b6c3; font-size: 13px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } }

/* ---------- 卡片 ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.card .card-body { padding: 26px 28px 28px; }
.card h3 { font-size: 19px; line-height: 1.5; }
.card p { margin-top: 10px; color: var(--slate); font-size: 14px; line-height: 1.85; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--accent); font-size: 14px; font-weight: 600; }
.card .more:hover { text-decoration: underline; }

/* ---------- 表格 ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.spec-table th { width: 220px; color: var(--slate); font-weight: 600; background: var(--pale); }
.spec-table td { color: var(--ink-2); }

/* ---------- 页面 hero（内页通用） ---------- */
.page-hero {
  position: relative; padding: 168px 0 72px;
  color: #fff; overflow: hidden;
  background: var(--carbon);
}
.page-hero .bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .38;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,19,25,.92) 0%, rgba(13,19,25,.55) 55%, rgba(13,19,25,.25) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; line-height: 1.25; }
.page-hero .crumb { margin-bottom: 18px; color: #9fb0bf; font-size: 13px; }
.page-hero .crumb a:hover { color: #fff; }
.page-hero .lead { margin-top: 16px; max-width: 640px; color: #c6d0da; font-size: 15px; line-height: 1.9; }

/* ---------- 面包屑辅助 ---------- */
.crumb a { color: #9fb0bf; }


/* ---------- 滚动渐入 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* 顶栏滚动阴影 */
.site-header.scrolled { box-shadow: 0 2px 8px rgba(60,64,67,.14); }

/* Reuse the existing certificate frame texture for the UAV operator certificate. */
.cert-item img.uav-certificate-framed,
.certificate-preview img.uav-certificate-framed {
  border: 9px solid transparent;
  border-image-source: url("../images/optimized/pg1720-test-report.dc91528b0fec.webp");
  border-image-slice: 40 34 36 36;
  border-image-repeat: stretch;
  background: #fff;
}
