/* featured-mocks.css — 精选区五面板交互 mock 样式
 * 驱动约定：面板 data-stage="0|1|2"（三段）+ --p(0..1)。
 * stage0=初始，stage1=中段（关键元素浮起/点亮），stage2=收尾（结果呈现）。 */

.feat-stage { min-height: 380px; display: flex; align-items: center; justify-content: center; }

/* ============ 证照管理 ============ */
[data-mock="license"] { position: relative; }
.fm-wall {
  position: absolute; inset: 0; display: flex; gap: 14px;
  overflow: hidden; opacity: .5; filter: saturate(.55);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 78%);
          mask-image: radial-gradient(ellipse at center, #000 40%, transparent 78%);
}
.fm-wall-col { flex: 1; display: flex; flex-direction: column; gap: 12px; animation: fmWallUp 26s linear infinite; }
.fm-wall-col.rev { animation-name: fmWallDown; }
@keyframes fmWallUp   { to { transform: translateY(-50%); } }
@keyframes fmWallDown { from { transform: translateY(-50%); } to { transform: none; } }

.fm-cert {
  background: #fff; border-radius: 10px; padding: 10px 12px;
  box-shadow: 0 2px 10px rgba(1,63,106,.07);
}
.fm-cert i {
  font-style: normal; font-size: 9.5px; color: #013F6A; opacity: .6;
  letter-spacing: .05em; display: block;
}
.fm-cert b { display: block; font-size: 11.5px; margin-top: 3px; line-height: 1.35; }
.fm-cert span { display: block; font-size: 9.5px; color: rgba(0,0,0,.4); margin-top: 3px; }

.fm-lz-stage { position: relative; z-index: 2; width: min(300px, 86%); }
.fm-lz-hero {
  display: block; background: #fff; border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 18px 48px rgba(1,63,106,.18);
  transform: translateY(24px) scale(.94); transition: all .6s cubic-bezier(.22,.8,.3,1);
}
[data-stage="1"] .fm-lz-hero,
[data-stage="2"] .fm-lz-hero { transform: translateY(0) scale(1); }
.fm-lz-hero b { font-size: 15px; }
.fm-lz-date { float: right; font-size: 11px; color: rgba(0,0,0,.45); margin-top: 2px; }
.fm-lz-bar {
  display: block; margin-top: 12px; height: 5px; border-radius: 3px;
  background: rgba(0,0,0,.08); overflow: hidden;
}
.fm-lz-bar i {
  display: block; height: 100%; border-radius: inherit;
  width: calc(8% + (100% - 8%) * var(--p, 0));
  background: linear-gradient(90deg, #34c759, #ffcc00 62%, #ff3b30);
}
.fm-lz-days {
  font-style: normal; display: inline-block; margin-top: 12px;
  font-size: 12px; font-weight: 700; color: #34c759;
  transition: color .3s ease;
}
[data-stage="1"] .fm-lz-days { color: #ff9500; }
[data-stage="2"] .fm-lz-days { color: #ff3b30; }

.fm-toast {
  position: absolute; right: -8%; bottom: -46px;
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 10px 18px;
  box-shadow: 0 14px 36px rgba(1,63,106,.16);
  font-size: 12.5px; font-weight: 600;
  opacity: 0; transform: translateY(14px); transition: all .5s ease .25s;
}
.fm-toast i {
  width: 20px; height: 20px; border-radius: 50%;
  background: #34c759; flex: none;
  /* 微信绿点 */
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.5);
}
[data-stage="2"] .fm-toast { opacity: 1; transform: none; }

/* ============ 企业内容生产 ============ */
.fm-bz { position: relative; width: min(520px, 100%); aspect-ratio: 16/10.5; }
.fm-bub {
  position: absolute; left: 4%; top: 12%;
  background: #fff; border-radius: 999px; padding: 7px 14px;
  font-size: 12px; font-weight: 600; box-shadow: 0 6px 18px rgba(1,63,106,.1);
  animation: fmBubIn 2.6s ease infinite; animation-delay: var(--d, 0);
}
.fm-bub:nth-child(2) { top: 42%; left: 0%; }
.fm-bub:nth-child(3) { top: 70%; left: 8%; }
@keyframes fmBubIn {
  0% { opacity: 0; transform: translateX(-16px); }
  18%, 70% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateX(60px) scale(.85); }
}

.fm-bz-core {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 108px; height: 108px; border-radius: 26px;
  background: linear-gradient(135deg, #013F6A, #005a94);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 44px rgba(1,63,106,.32);
}
.fm-bz-core b { color: #C0D8F2; font-size: 14px; letter-spacing: .04em; }
.fm-gear {
  position: absolute; inset: -7px; border-radius: 30px;
  border: 2px dashed rgba(192,216,242,.5);
  animation: fmSpin 9s linear infinite;
}
@keyframes fmSpin { to { transform: rotate(360deg); } }

.fm-bz-out { position: absolute; right: 0; top: 0; bottom: 0; width: 52%; }
.fm-art {
  position: absolute; right: 6%; width: 150px;
  background: #fff; border-radius: 12px; padding: 12px;
  box-shadow: 0 12px 30px rgba(1,63,106,.13);
  animation: fmArtOut 5.2s cubic-bezier(.45,.05,.35,1) infinite;
}
.fm-art u {
  display: block; height: 7px; border-radius: 4px; background: rgba(1,63,106,.16);
  margin-bottom: 7px;
}
.fm-art u:first-child { width: 72%; height: 9px; background: rgba(1,63,106,.3); }
.fm-art em {
  font-style: normal; position: absolute; right: 10px; bottom: 8px;
  font-size: 9.5px; font-weight: 700; color: #013F6A; opacity: .65;
}
.fm-art:nth-child(1) { bottom: 66%; animation-delay: 0s; }
.fm-art:nth-child(2) { bottom: 36%; animation-delay: 1.3s; }
.fm-art-xhs { animation-delay: 2.6s; }
.fm-art-wx  { animation-delay: 3.9s; bottom: 6%; }
@keyframes fmArtOut {
  0% { opacity: 0; transform: translateX(46px) scale(.9); }
  22%, 82% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateX(-30px) scale(.92); }
}

/* ============ 员工360 ============ */
.fm-carer { position: relative; width: min(430px, 100%); aspect-ratio: 200/190; }
.fm-radar { width: 74%; margin: 0 auto; display: block; }
.fm-radar-grid {
  fill: rgba(192,216,242,.18); stroke: rgba(1,63,106,.25); stroke-width: 1;
  stroke-dasharray: 4 3;
}
.fm-radar-fill {
  fill: rgba(127,180,232,.4); stroke: #013F6A; stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 620; stroke-dashoffset: 620;
  transition: stroke-dashoffset 1.4s ease;
}
[data-stage="1"] .fm-radar-fill, [data-stage="2"] .fm-radar-fill { stroke-dashoffset: 0; }

.fm-ev {
  position: absolute; background: #fff; border-radius: 12px;
  padding: 9px 14px; box-shadow: 0 12px 28px rgba(1,63,106,.14);
  opacity: 0; transition: all .55s cubic-bezier(.22,.8,.3,1);
}
.fm-ev b { display: block; font-size: 11.5px; color: #013F6A; }
.fm-ev span { display: block; font-size: 11px; color: rgba(0,0,0,.55); margin-top: 2px; }
.fm-ev-a { left: 0; top: 4%;  transform: translate(-14px, 8px); }
.fm-ev-b { right: 0; top: 38%; transform: translate(14px, 8px); transition-delay: .15s; }
.fm-ev-c { left: 6%; bottom: 0; transform: translate(-10px, 12px); transition-delay: .3s; }
[data-stage="1"] .fm-ev, [data-stage="2"] .fm-ev { opacity: 1; transform: translate(0, 0); }

/* ============ 护理生活记录 ============ */
[data-mock="shjb"] { perspective: 1100px; }
.fm-phone {
  width: min(280px, 84%); background: #fff; border-radius: 28px;
  padding: 18px 14px; box-shadow: 0 26px 64px rgba(1,63,106,.2);
  transform: rotateX(6deg) translateY(10px);
  transition: transform .8s cubic-bezier(.22,.8,.3,1);
}
[data-stage="1"] .fm-phone, [data-stage="2"] .fm-phone { transform: rotateX(0) translateY(0); }
.fm-phone-top {
  text-align: center; font-size: 11px; font-weight: 700; color: rgba(0,0,0,.4);
  letter-spacing: .06em; margin-bottom: 12px;
}
.fm-card {
  background: #f6f8fa; border-radius: 12px; padding: 11px 13px; margin-bottom: 9px;
  font-size: 12.5px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.fm-card > span { font-size: 10.5px; color: rgba(0,0,0,.42); font-weight: 500; }
.fm-special {
  position: relative; display: block;
  background: linear-gradient(135deg, #fff, #fdf1e8);
  border: 1px solid rgba(224,94,18,.25);
  transform: translateZ(0); transition: all .7s cubic-bezier(.22,.8,.3,1) .2s;
  box-shadow: 0 4px 14px rgba(1,63,106,.06);
}
[data-stage="1"] .fm-special, [data-stage="2"] .fm-special {
  transform: translateZ(56px) scale(1.06);
  box-shadow: 0 26px 54px rgba(224,94,18,.22);
}
.fm-special mark {
  float: right; background: #e05e12; color: #fff; border-radius: 5px;
  font-size: 9.5px; padding: 2px 7px; font-weight: 700;
}
.fm-special b { font-size: 13px; }
.fm-special > span { display: block; font-size: 11px; color: rgba(0,0,0,.5); margin-top: 5px; font-weight: 500; }
.fm-tags { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.fm-tags i {
  font-style: normal; font-size: 9.5px; color: #b04a0a;
  background: rgba(224,94,18,.1); border-radius: 6px; padding: 3px 8px;
}

/* ============ 川舟知识底座 ============ */
.fm-mm { position: relative; width: min(480px, 100%); aspect-ratio: 320/220; }
.fm-net { width: 100%; height: 100%; display: block; }
.fm-net circle { fill: #fff; stroke: #013F6A; stroke-width: 2; }
.fm-net circle.fm-hubc { fill: #013F6A; }
.fm-link {
  stroke: rgba(1,63,106,.4); stroke-width: 1.6;
  stroke-dasharray: 160; stroke-dashoffset: 160;
  transition: stroke-dashoffset 1.1s ease;
}
.fm-link:nth-of-type(2) { transition-delay: .2s; }
.fm-link:nth-of-type(3) { transition-delay: .4s; }
.fm-link:nth-of-type(4) { transition-delay: .6s; }
[data-stage="1"] .fm-link, [data-stage="2"] .fm-link { stroke-dashoffset: 0; }
[data-stage="2"] .fm-hubc { fill: #0071e3; }

.fm-qa {
  position: absolute; left: 50%; bottom: -6%;
  transform: translateX(-50%) translateY(16px);
  width: max-content; max-width: 96%;
  background: #fff; border-radius: 14px; padding: 13px 18px;
  box-shadow: 0 16px 40px rgba(1,63,106,.16);
  opacity: 0; transition: all .55s ease .3s;
}
[data-stage="2"] .fm-qa { opacity: 1; transform: translateX(-50%) translateY(0); }
.fm-qa b { font-size: 13px; display: block; }
.fm-qa span { font-size: 11px; color: rgba(0,0,0,.5); display: block; margin-top: 4px; }
.fm-qa u { color: #0071e3; text-decoration-color: rgba(0,113,227,.4); }

@media (max-width: 900px) {
  .feat-stage { min-height: 300px; }
  .fm-toast { right: 2%; }
}
@media (prefers-reduced-motion: reduce) {
  .fm-bub, .fm-gear, .fm-art { animation: none; }
  .fm-wall-col { animation-play-state: paused; }
}
