/* 思维体检 · 版本更新公告弹窗（本期视觉）
 * 结构类名由 app-whatsnew.js 生成，保持不变；每期发布可整包重做本文件以换视觉。
 * 本期基调：克制纸感「公告信函」——深墨卡头 + 金色细线 + 衬线大标题，与体检报告风同源。 */

.wn-layer {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(23, 35, 45, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.wn-layer.show { opacity: 1; visibility: visible; }

.wn-card {
  position: relative;
  width: min(524px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(23, 35, 45, .42);
  transform: translateY(18px) scale(.96);
  transition: transform .34s cubic-bezier(.22, .9, .24, 1);
}
.wn-layer.show .wn-card { transform: translateY(0) scale(1); }

.wn-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .15s ease;
}
.wn-close:hover { background: rgba(255, 255, 255, .32); transform: rotate(90deg); }

/* ---------- 卡头：深墨底 + 顶部金线 + 白描图形（每期可重做） ---------- */
.wn-hero {
  position: relative;
  height: 158px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wn-hero[data-tone="rust"],
.wn-hero[data-tone="green"] {
  background: linear-gradient(165deg, #153D39 0%, #0E2B28 48%, #07201D 100%);
}
/* 顶部细光弧（浅绿，不再是硬金线） */
.wn-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(140, 200, 190, .45) 30%, rgba(196, 232, 222, .95) 50%, rgba(140, 200, 190, .45) 70%, transparent);
}
/* 流动柔光（灵动感核心）：两团慢速漂移的光晕，绿调为主、一点暖色透出 */
.wn-hero::after {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(30% 42% at 22% 28%, rgba(130, 205, 195, .26), transparent 70%),
    radial-gradient(26% 36% at 76% 20%, rgba(95, 175, 165, .20), transparent 70%),
    radial-gradient(32% 44% at 52% 88%, rgba(205, 165, 95, .10), transparent 72%);
  filter: blur(6px);
  animation: wnFlow 13s ease-in-out infinite alternate;
}
@keyframes wnFlow {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.07); }
}
.wn-art {
  position: relative;
  z-index: 1;
  height: 100%;
  width: auto;
  max-width: 74%;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .32));
}
.wn-badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: #E9F4F1;
  background: rgba(31, 107, 103, .82);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 3px 11px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .22);
}
/* 雷达扫掠 + 节点脉冲（图形内动画） */
.wn-sweep { transform-origin: 110px 75px; transform-box: view-box; animation: wnSpin 7s linear infinite; }
@keyframes wnSpin { to { transform: rotate(360deg); } }
.wn-pulse { transform-origin: center; transform-box: fill-box; animation: wnPulse 2.6s ease-out infinite; }
@keyframes wnPulse {
  0%   { transform: scale(.5); opacity: .95; }
  70%  { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* ---------- 卡体 ---------- */
.wn-body { padding: 22px 26px 24px; }
.wn-kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.wn-title { font-family: var(--serif); font-size: 23px; line-height: 1.3; font-weight: 700; margin: 6px 0 8px; }
.wn-summary { font-size: 13.5px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 18px; }

.wn-features { list-style: none; display: flex; flex-direction: column; }
.wn-feat {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 12px 2px;
  border-top: 1px solid var(--rule);
  opacity: 0;
}
.wn-feat:last-child { border-bottom: 1px solid var(--rule); }
.wn-layer.show .wn-feat { animation: wnFadeUp .5s cubic-bezier(.22, .9, .3, 1) forwards; }
.wn-layer.show .wn-feat:nth-child(1) { animation-delay: .12s; }
.wn-layer.show .wn-feat:nth-child(2) { animation-delay: .22s; }
.wn-layer.show .wn-feat:nth-child(3) { animation-delay: .32s; }
.wn-layer.show .wn-feat:nth-child(4) { animation-delay: .42s; }
@keyframes wnFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wn-ico {
  flex: none;
  width: 38px; height: 38px;
  margin-top: 1px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 3px 8px rgba(23, 35, 45, .16);
}
.wn-ico svg { width: 20px; height: 20px; }
.wn-feat[data-tone="rust"]  .wn-ico { background: var(--accent); }
.wn-feat[data-tone="green"] .wn-ico { background: var(--green); }
.wn-feat[data-tone="gold"]  .wn-ico { background: var(--gold); }
.wn-feat b { display: block; font-size: 14.5px; line-height: 1.35; }
.wn-feat p { font-size: 12.5px; color: var(--faint); line-height: 1.6; margin-top: 3px; }

.wn-actions { margin-top: 22px; display: flex; align-items: center; gap: 10px; }
.wn-primary {
  flex: 1;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--paper);
  background: var(--green);
  border: 1px solid var(--green);
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.wn-primary:hover { background: var(--green-deep); border-color: var(--green-deep); }
.wn-primary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--green-soft); }
.wn-primary:active { transform: translateY(1px); }
.wn-ghost {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--rule-dark);
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.wn-ghost:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 560px) {
  .wn-card { border-radius: 14px; }
  .wn-hero { height: 134px; }
  .wn-body { padding: 18px 18px 20px; }
  .wn-title { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .wn-layer, .wn-card, .wn-close, .wn-primary, .wn-ghost { transition: none; }
  .wn-sweep, .wn-pulse { animation: none; }
  .wn-layer.show .wn-feat { animation: none; opacity: 1; }
}
