/* ============================================================
   安全飞行告知书 · 地图中央浮层（#fnt）
   —— 触发：右翼受理意见「《安全飞行告知书》」（document 'apvr:notice'）
   —— 玻璃配方与两侧面板逐项同源：rgba(13,18,26,0.62) + blur(10px) saturate(132%)
      + 1px 白描边 + 顶缘冷光发丝 + 浮起阴影；滚动时底色加深到 0.80（.is-active），
      与 #apvd-panel / #apvr-panel 的滚动激活口径一致
   —— 位面：上下缘直接复用 --ac-top / --ac-bottom（与两侧面板同一条水平基准线），
      横向居中于左右面板之间的地图可用区，读作「浮在这块地图上的一层」，
      而不是盖在整屏上的另一种体系
   —— 内容：长文，正文区自绘 3px 细指示条（原生滚动条隐去），
      与面板右缘的手绘指示条同一观感
   ============================================================ */

/* —— 遮罩层：轻压一层夜景，够聚焦但不切断「玻璃后仍是地图」的读法 ——
   —— #fwr（气象评估报告）共用这一套骨架：同一处位面、同一张玻璃卡，
      只换正文；它自己那部分样式在 flight-weather-report.css —— */
#fnt,
#fwr {
  position: absolute; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  padding:
    var(--ac-top)
    calc(var(--apvr-right) + var(--ac-w) + 26px)
    var(--ac-bottom)
    calc(var(--ac-left) + var(--apvd-w) + 26px);
  opacity: 0; pointer-events: none;
  transition: opacity 220ms ease;
}
#fnt::before,
#fwr::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(4, 8, 13, 0.24);
}
#fnt.open,
#fwr.open { opacity: 1; pointer-events: auto; }
/* 极窄屏：左右面板已吃掉大半宽度，浮层回到对称内边距（本身在最上层，允许轻搭面板） */
@media (max-width: 1400px) {
  #fnt,
  #fwr {
    padding:
      var(--ac-top)
      20px
      var(--ac-bottom)
      20px;
  }
}

/* —— 浮层主体：与右翼面板同一套玻璃、同一档圆角 —— */
.fnt-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 680px; max-height: 100%;
  display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(38% 24% at 100% 0%, rgba(150, 200, 245, 0.18) 0%, rgba(120, 170, 220, 0.04) 46%, rgba(120, 170, 220, 0) 74%),
    radial-gradient(32% 20% at 0% 100%, rgba(184, 158, 255, 0.12) 0%, rgba(148, 118, 238, 0.03) 46%, rgba(148, 118, 238, 0) 72%),
    rgba(13, 18, 26, 0.62);
  -webkit-backdrop-filter: blur(10px) saturate(132%); backdrop-filter: blur(10px) saturate(132%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46), var(--shadow-float), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0; transform: translateY(10px) scale(0.986);
  transition: opacity 220ms ease, transform 300ms cubic-bezier(0.22, 0.61, 0.36, 1), background-color 320ms ease;
}
#fnt.open .fnt-card,
#fwr.open .fnt-card { opacity: 1; transform: none; }
@media (min-width: 2048px) { .fnt-card { max-width: 780px; border-radius: 14px; } }

/* 顶缘一道冷光收边（与面板同款，不抢内容） */
.fnt-card::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 1px; pointer-events: none; z-index: 3;
  background: linear-gradient(90deg, transparent 0%, rgba(150, 200, 245, 0.38) 50%, transparent 100%);
}
/* 滚动激活：只压底色，不动背景里的极光渐变（与面板同一处理） */
.fnt-card.is-active { background-color: rgba(13, 18, 26, 0.80); }

/* —— 标题行：蓝白渐变竖条 + 蓝白渐变字（与 .apvr-head 同款，字号上一档） —— */
.fnt-head {
  position: relative; z-index: 2;
  flex: none; display: flex; align-items: center; gap: 9px;
  padding: 14px 14px 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.fnt-bar {
  width: 3px; height: 15px; border-radius: 2px; flex-shrink: 0;
  background: linear-gradient(180deg, #C4DCF6 0%, #6FA3D0 100%);
  box-shadow: 0 0 8px rgba(111, 163, 208, 0.7);
}
.fnt-title {
  flex: 1; min-width: 0; margin: 0;
  font-size: 15px; font-weight: 700; letter-spacing: 2.4px; white-space: nowrap;
  background: linear-gradient(180deg, #FFFFFF 0%, #EAF4FF 34%, #BED9F0 70%, #8FB8DE 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #FFFFFF;
  filter: drop-shadow(0 0 8px rgba(130, 185, 230, 0.42));
}
@media (min-width: 2048px) { .fnt-title { font-size: 17px; } }

/* 关闭：与面板里的圆钮/方钮同一档描边与悬停反馈 */
.fnt-x {
  flex: none; width: 26px; height: 26px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 7px;
  color: rgba(205, 224, 240, 0.72); outline: 0;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}
.fnt-x svg { width: 12px; height: 12px; }
.fnt-x:hover { color: #EAF3FB; background: rgba(255, 255, 255, 0.09); border-color: rgba(150, 200, 245, 0.40); }
.fnt-x:focus-visible { border-color: rgba(150, 200, 245, 0.55); box-shadow: 0 0 0 3px rgba(110, 165, 220, 0.20); }

/* —— 正文区：独占滚动，指示条走右缘 —— */
.fnt-scroll { position: relative; flex: 1; min-height: 0; display: flex; }
.fnt-body {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  padding: 16px 18px 18px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.fnt-body::-webkit-scrollbar { width: 0; height: 0; display: none; }
.fnt-scrollbar {
  position: absolute; right: 7px; top: 14px; bottom: 14px; width: 3px; z-index: 2;
  opacity: 0.34; pointer-events: none;
  transition: opacity 240ms ease;
}
.fnt-scrollbar[hidden] { display: none; }
.fnt-scrollbar i {
  display: block; height: 0; border-radius: 999px;
  background: linear-gradient(180deg, rgba(118, 156, 194, 0.50) 0%, rgba(70, 104, 140, 0.24) 100%);
  box-shadow: 0 0 5px rgba(78, 118, 158, 0.26);
}
.fnt-card.is-scrolling .fnt-scrollbar { opacity: 1; }

/* —— 文案层级：引言 / 分节 / 条目 / 确认声明，四级只靠字号·字重·明度拉开 —— */
.fnt-lead {
  margin: 0 0 18px;
  font-size: 12.8px; line-height: 1.95; letter-spacing: 0.25px;
  color: rgba(216, 231, 244, 0.82);
}
.fnt-sec { margin: 0 0 16px; }
.fnt-sec:last-of-type { margin-bottom: 0; }
.fnt-sec h3 {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 9px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.8px;
  color: #E8F2FB;
  text-shadow: 0 0 12px rgba(120, 175, 230, 0.22);
}
.fnt-sec h3::before {
  content: ""; flex: none;
  width: 2px; height: 11px; border-radius: 2px;
  background: linear-gradient(180deg, #C4DCF6 0%, #6FA3D0 100%);
  box-shadow: 0 0 7px rgba(111, 163, 208, 0.6);
}
.fnt-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.fnt-list li {
  position: relative; padding-left: 13px;
  font-size: 12.8px; line-height: 1.9; letter-spacing: 0.2px;
  color: rgba(203, 220, 236, 0.78);
}
.fnt-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.82em;
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(150, 200, 245, 0.62);
  box-shadow: 0 0 6px rgba(120, 175, 230, 0.55);
}

/* 确认声明：全文唯一的「承诺」段，收进一个浅底框里落地 */
.fnt-sign { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.fnt-sign h3 { margin-bottom: 10px; }
.fnt-sign p {
  margin: 0; padding: 12px 14px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 2px solid rgba(150, 200, 245, 0.45);
  font-size: 12.8px; line-height: 1.95; letter-spacing: 0.2px;
  color: rgba(227, 238, 249, 0.90);
}

/* —— 出口只有一个：右上角 ×（不再设底部动作位），正文自行读到底 —— */

/* —— 2K：字号与内边距整体上一档（与面板的 2K 档位同节奏） —— */
@media (min-width: 2048px) {
  .fnt-head { padding: 16px 16px 14px 18px; }
  .fnt-bar { height: 16px; }
  .fnt-x { width: 28px; height: 28px; }
  .fnt-body { padding: 19px 22px 22px; }
  .fnt-lead, .fnt-list li, .fnt-sign p { font-size: 14px; }
  .fnt-sec h3 { font-size: 14.5px; }
  .fnt-list { gap: 9px; }
  .fnt-sec { margin-bottom: 19px; }
}

/* 矮屏：先收纵向留白，别把正文挤没 */
@media (max-height: 820px) {
  .fnt-head { padding: 11px 12px 10px 14px; }
  .fnt-body { padding: 13px 16px 14px; }
  .fnt-lead { margin-bottom: 14px; }
  .fnt-sec { margin-bottom: 13px; }
  .fnt-sign { margin-top: 15px; padding-top: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  #fnt, #fwr, .fnt-card { transition: none; }
}
