/* UI-01 样件层 · 右栏索引条单活降噪（learn 右栏）
   口径：仅 ≥901px 桌面形态生效；≤900 不命中（小屏右栏归手机壳层，本样件不接管）。
   做法：附加层——不动 build 本体 CSS/JS；工具卡默认收起为约 40px 索引条，
   同一时间最多展开 1 项（互斥只限工具组；左树不在右栏、不参与；速览卡浮层不计）。
   视觉随全壳推行现状：平纸色 #FAFAF7、无白底无阴影、1px 细线（--line）分隔。 */
@media (min-width:901px){

  /* —— 索引条 —— */
  .ui01-strip{
    display:flex;align-items:center;gap:8px;width:100%;height:40px;flex:none;
    margin:0 0 -16px;padding:0 2px;
    background:transparent;border:none;border-bottom:1px solid var(--line);
    font-family:inherit;cursor:pointer;text-align:left;color:var(--blue-deep);
  }
  .ui01-strip:hover{background:var(--tint)}
  .ui01-strip .ui01-ic{color:var(--blue);display:flex;flex:none}
  .ui01-strip .ui01-ic svg{width:20px;height:20px}
  .ui01-strip .ui01-t{font-size:15px;font-weight:900;letter-spacing:.2px;white-space:nowrap}
  .ui01-strip .ui01-badge{
    margin-left:auto;flex:none;font-size:12px;font-weight:400;color:var(--ink-soft);
    background:var(--tint);border-radius:999px;padding:1px 8px;white-space:nowrap;
  }
  .ui01-strip .ui01-chev{color:var(--ink-soft);display:flex;flex:none;transition:transform .25s ease}
  .ui01-strip .ui01-chev svg{width:16px;height:16px}
  .ui01-strip.ui01-open .ui01-chev{transform:rotate(180deg)}
  /* 加生词时徽章静默闪烁（不弹 Toast）：砖红浅底一轮脉冲后回落 */
  .ui01-strip .ui01-badge.ui01-flash{animation:ui01flash .9s ease-out}
  @keyframes ui01flash{
    0%{background:#F3D9D2;color:var(--red-dark)}
    100%{background:var(--tint);color:var(--ink-soft)}
  }

  /* —— 收起态：卡本体隐藏，只留索引条 —— */
  .rail .rcard.ui01-off{display:none}

  /* —— 展开/收起过渡（打磨批 2026-11-18：原 display 硬切改平滑） ——
     JS 在切换时给卡加 .ui01-anim 并驱动显式 height/opacity；动画结束清类与内联样式，
     端态与原口径逐字一致（收起终点仍 display:none、展开终点仍自然高）。
     参数：height .28s cubic-bezier(.22,1,.36,1)（与 gloss rise 同曲线族）＋ opacity .28s ease-out。 */
  .rail .rcard.ui01-anim{
    overflow:hidden;flex:none;box-sizing:border-box;min-height:0;
    transition:height .28s cubic-bezier(.22,1,.36,1),
      padding-top .28s cubic-bezier(.22,1,.36,1),
      padding-bottom .28s cubic-bezier(.22,1,.36,1),
      margin-bottom .28s cubic-bezier(.22,1,.36,1);
  }

  /* —— 推行批新增（2026-11-19）：标题单份 ——
     本层登记过的卡（.ui01-card）卡内 h3 隐藏，索引条为唯一标题行；
     徽章镜像 h3 .r 原文（#dictFrom／#bookCount／#mistakeCount），信息不丢。 */
  .rail .rcard.ui01-card > h3{display:none}

  /* —— 推行批新增：徽章闪烁口径对齐推行简报（0.3s 暖琥珀底纹跳变、无 Toast），
     以同选择器后置规则覆盖样件 .9s 砖红脉冲；样件原规则保留未改。 —— */
  .ui01-strip .ui01-badge.ui01-flash{animation:ui01flashRollout .3s ease-out}
  @keyframes ui01flashRollout{
    0%{background:#F6C453;color:#5B4300}
    100%{background:var(--tint);color:var(--ink-soft)}
  }
}
