/* 门户首页（首页画板，1920 画布按 1440 等比收敛）。 */
body { background: var(--p-bg); }

/* 内容限宽居中：对齐设计 demo 的 1240px 内容列（hero-copy/.scenes 均为
   max-width:1240 居中），宽屏左右留白、窄屏保留 24px 最小内边距。 */
body { --home-gutter: max(24px, calc((100% - 1240px) / 2)); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 348px;
  padding: 34px var(--home-gutter);
  display: flex;
  align-items: center;
  background: url("/assets/img/hero.webp?v=28164263fa") center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 98, 255, 0.10), rgba(255, 255, 255, 0.80));
}
.hero-copy {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 36px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--p-ink-hero);
  letter-spacing: 0.01em;
}
.hero p { font-size: 18px; color: var(--p-ink-sub); }
.hero-actions { display: flex; align-items: center; gap: 14px; }
.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid #2D76FF;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
  color: #1769FF;
  transition: background var(--dur);
}
.hero-btn-ghost:hover { background: #fff; }

/* ── 通用小节头 ── */
.cap-eyebrow { font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--p-eyebrow); }
.cap-head-copy { display: flex; flex-direction: column; gap: 4px; }
.cap-head-copy h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--p-ink); }

/* ── 场景卡 ── */
.cap { padding: 36px var(--home-gutter); background: #fff; }
.cap-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.cap-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.scene-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--dur), box-shadow var(--dur), border-color var(--dur);
}
.scene-card:hover {
  transform: translateY(-2px);
  border-color: #C6D6EE;
  box-shadow: 0 8px 20px rgba(20, 33, 58, 0.10);
}
.scene-visual { height: 150px; overflow: hidden; }
.scene-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}
.scene-card:hover .scene-visual img { transform: scale(1.03); }
.scene-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.scene-title-row { display: flex; align-items: center; gap: 8px; height: 26px; }
.scene-ic { display: inline-flex; }
.scene-title-row h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--p-ink); }
.scene-desc { font-size: 12px; line-height: 1.5; color: var(--p-body); }
.scene-tags { display: flex; align-items: center; gap: 6px; }

/* ── 空域合规查询 ── */
.airspace {
  padding: 48px var(--home-gutter);
  background: #F4F8FE;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.airspace-copy { max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.airspace-copy h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #101828; }
.airspace-desc { font-size: 13px; line-height: 1.6; color: #71829B; }
.airspace-feats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 6px;
  padding: 0;
  list-style: none;
}
.airspace-feats li { display: flex; align-items: center; gap: 9px; }
.af-ic {
  flex: none;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #1769FF;
}
.af-ic .ic { display: inline-flex; }
.af-copy { display: flex; flex-direction: column; gap: 2px; }
.af-copy b { font-size: 13px; font-weight: 600; color: #28486F; }
.af-copy small { font-size: 12px; color: #7B8EA7; }
.airspace-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.airspace-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border-radius: 6px;
  background: #1769FF;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: filter var(--dur);
}
.airspace-btn:hover { filter: brightness(1.08); }
.airspace-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid #3C7BFF;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #1769FF;
  transition: background var(--dur);
}
.airspace-btn-ghost:hover { background: #F2F7FF; }

/* 地图预览：底图 + 设计稿区域多边形覆盖（坐标按 780x280 换算为百分比） */
.airspace-map {
  position: relative;
  flex: 1 1 auto;
  max-width: 780px;
  aspect-ratio: 780 / 280;
  border: 1px solid #D5E3DA;
  border-radius: 10px;
  overflow: hidden;
  background: url("/assets/img/map-preview.webp?v=28164263fa") center / cover no-repeat;
  box-shadow: 0 12px 26px rgba(28, 95, 138, 0.15);
}
.airspace-map .zone { position: absolute; }
.zone-flyable { left: 39.5%; top: 48%; width: 39.7%; height: 48.2%; }
.zone-flyable-2 { left: 50%; top: 6.6%; width: 16.7%; height: 37.5%; }
.zone-nofly { left: 36.8%; top: 40.2%; width: 20.5%; height: 42.9%; }
.zone-temp { left: 23%; top: 42%; width: 11%; height: 19.3%; }
.map-search {
  position: absolute;
  left: 2.8%; top: 6.4%;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 6px 0 10px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(11, 39, 64, 0.15);
  font-size: 12px;
  color: #9BAABD;
}
.map-search .ic { display: inline-flex; color: #8AA0B8; }
.map-search-btn {
  padding: 5px 10px;
  border-radius: 4px;
  background: #1769FF;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.map-legend {
  position: absolute;
  left: 2.8%; top: 23.2%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  color: #5C718B;
}
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend i { width: 8px; height: 8px; border-radius: 50%; }
.map-legend i.dot-soft { border: 1px solid #B9CCF2; }
.map-info {
  position: absolute;
  left: 79.7%; top: 14.3%;
  width: 150px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 11px;
  color: #6E819A;
}
.map-info b { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: #28486F; }
.map-info a { font-size: 12px; font-weight: 600; color: #1769FF; }
.map-info a:hover { text-decoration: underline; }

/* ── 即将开放能力 ── */
.upcoming { padding: 36px var(--home-gutter); background: #fff; }
.upcoming-head { text-align: center; margin-bottom: 24px; }
.upcoming-head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #101828; }
.upcoming-head p { margin-top: 6px; font-size: 13px; color: #0062FF; }
.upcoming-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.upcoming-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 120px;
  padding: 24px 26px;
  border: 1px solid #E9EFF7;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #F4F8FF);
  overflow: hidden;
}
.upcoming-card .wave { position: absolute; right: -14px; top: -20px; width: 45%; height: auto; pointer-events: none; }
.upcoming-card .wave-2 { right: 0; top: -18px; }
.upcoming-card .wave-3 { right: 6%; top: -10px; }
.upcoming-copy { position: relative; display: flex; flex-direction: column; gap: 12px; }
.upcoming-copy h3 { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: #1F2937; }
.upcoming-hl {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 6px;
  background: #EAF3FF;
  font-size: 13px;
  color: #2672E8;
}
.upcoming-ic { position: relative; flex: none; color: #1769FF; display: inline-flex; }

/* ── 信任带（深色） ── */
.trust {
  padding: 44px var(--home-gutter);
  background:
    linear-gradient(120deg, #0D1522, #182638 52%, #111A27),
    #101824;
  color: #F2F5F8;
}
.trust-intro { text-align: center; margin-bottom: 30px; }
.trust-intro h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: #F7F9FC; }
.trust-intro p { margin-top: 8px; font-size: 14px; font-weight: 600; color: #9DB6D1; }
.trust-row {
  display: flex;
  justify-content: center;
  gap: 90px;
}
.trust-signal { display: flex; align-items: center; gap: 12px; }
.trust-signal div { display: flex; flex-direction: column; gap: 2px; }
.trust-signal b { font-size: 16px; font-weight: 500; color: #F2F5F8; }
.trust-signal small { font-size: 13px; color: #AAB9C9; }
.trust-ic {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(216, 225, 234, 0.11);
  border: 1px solid rgba(216, 225, 234, 0.18);
  color: #E4EBF2;
}
.trust-ic .ic { display: inline-flex; }

@media (max-width: 1320px) {
  .hero { padding: 30px 48px; min-height: 300px; }
  .cap, .airspace, .upcoming, .trust { padding-left: 40px; padding-right: 40px; }
  .hero h1 { font-size: 34px; }
  .cap-row { grid-template-columns: repeat(3, 1fr); }
  .airspace { flex-direction: column; align-items: stretch; }
  .airspace-copy { max-width: none; }
  .airspace-map { max-width: none; }
  .trust-row { gap: 40px; flex-wrap: wrap; }
}
