/* 首页右侧悬浮入口 · 无尘阁 98 Tab（Z-Blog 主题 yd0819） */

/* 竖排入口：挂在 #side-bubbles 容器末尾，与现有气泡共处一列 */
/* 几何参数与其他窄条（20px 宽 / 图标 12px / 竖排文字 9~10px）逐项对齐，
   只保留 Win98 灰底 + 明暗立体边框作为风格差异 */
#side-bubbles #w98-tab{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  width:20px !important;
  min-width:20px !important;
  max-width:20px !important;
  padding:5px 1px;
  margin:0 !important;
  background:#c0c0c0;
  color:#101010;
  text-align:center;
  text-decoration:none;
  font-family:Tahoma,'MS Sans Serif','Microsoft YaHei',sans-serif;
  border:2px solid;
  border-color:#fff #404040 #404040 #fff;
  border-radius:6px 0 0 6px;
  box-shadow:-2px 2px 6px rgba(0,0,0,.18);
  cursor:pointer;
  transition:background .16s ease,transform .3s cubic-bezier(.2,.8,.24,1);
  -webkit-tap-highlight-color:transparent;
  outline:none;
}
#side-bubbles #w98-tab:hover,
#side-bubbles #w98-tab:focus-visible{background:#d4d0c8;text-decoration:none;transform:translateX(-5px)}
#side-bubbles #w98-tab:active{transform:translateX(-2px)}
#side-bubbles #w98-tab[aria-expanded="true"]{
  background:#b0b0b0;
  border-color:#404040 #fff #fff #404040;
  box-shadow:inset 1px 1px #808080;
}
#w98-tab .w98t-ico{
  display:flex;align-items:center;justify-content:center;
  width:12px !important;height:12px !important;flex:0 0 12px;
  margin:0 auto 3px auto !important;
  background:linear-gradient(180deg,#000080,#1084d0);
  border:1px solid;border-color:#fff #404040 #404040 #fff;
  color:#fff;font-size:8px;line-height:1;font-weight:700;
}
/* 原文案 "WIN 98" 6 字会把窄条撑高一截，隐藏后用短标签保持与其他按钮等高 */
#w98-tab .w98t-txt{font-size:0;margin:0;padding:0;white-space:nowrap}
#w98-tab .w98t-txt::after{
  content:'WIN';
  display:block;
  writing-mode:vertical-rl;
  text-orientation:upright;
  letter-spacing:.5px;
  font-size:9px;
  font-weight:700;
  line-height:1.05;
  color:#101010;
  text-shadow:1px 1px 0 #fff;
}

/* 右侧滑出面板 */
#w98-shade{
  position:fixed;inset:0;z-index:2147483000;
  background:rgba(0,18,28,.34);
  opacity:0;pointer-events:none;
  transition:opacity .26s ease;
}
#w98-shade.on{opacity:1;pointer-events:auto}

#w98-panel{
  position:fixed;right:0;top:0;z-index:2147483001;
  width:min(1120px,94vw);height:100vh;
  display:flex;flex-direction:column;
  background:#c0c0c0;
  border-left:2px solid #fff;
  box-shadow:-8px 0 28px rgba(0,0,0,.38);
  transform:translateX(105%);
  transition:transform .3s cubic-bezier(.2,.8,.2,1);
  font-family:Tahoma,'MS Sans Serif','Microsoft YaHei',sans-serif;
}
#w98-panel.on{transform:translateX(0)}
#w98-panel.full{width:100vw}
#w98-panel .w98p-title{
  flex:0 0 32px;height:32px;
  display:flex;align-items:center;gap:8px;padding:0 5px 0 9px;
  background:linear-gradient(90deg,#000080,#1084d0);
  color:#fff;font-size:13px;font-weight:700;
}
#w98-panel .w98p-title .w98p-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#w98-panel .w98p-title a{
  color:#fff;font-size:11px;font-weight:400;text-decoration:none;
  border:1px solid rgba(255,255,255,.65);padding:2px 7px;white-space:nowrap;
}
#w98-panel .w98p-title a:hover{background:rgba(255,255,255,.18);text-decoration:none}
#w98-panel .w98p-btns{display:flex;gap:2px}
#w98-panel .w98p-btns button{
  width:19px;height:18px;padding:0;line-height:14px;text-align:center;
  font:700 12px Tahoma,sans-serif;color:#000;cursor:pointer;
  background:#c0c0c0;
  border:2px solid;border-color:#fff #404040 #404040 #fff;
  box-shadow:inset 1px 1px #dfdfdf;
}
#w98-panel .w98p-btns button:active{border-color:#404040 #fff #fff #404040;box-shadow:none}
#w98-panel iframe{flex:1;width:100%;border:0;background:#008080;display:block}

@media (max-width:768px){
  #w98-panel{width:100vw}
  #side-bubbles #w98-tab{width:20px !important;min-width:20px !important;max-width:20px !important}
  #w98-panel .w98p-title a{display:none}
}
@media (prefers-reduced-motion:reduce){
  #w98-panel,#w98-shade{transition:none}
}
