/* ============================================================
   滚动条美化（步骤6专项）
   设计语言：与皮肤一致 —— 翡翠绿强调、深色侧栏、浅色内容区
   覆盖区域：全局 / 侧边栏菜单 / 内容区 / 弹窗 / 表格横向 / 下拉
   ============================================================ */

/* ---------- 全局基础滚动条（内容区等浅色背景） ---------- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track {
  background: #EEF1F4;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #CBD2D9, #B7BfC9);
  background: #C0C7CE;
  border-radius: 8px;
  border: 2px solid #EEF1F4; /* 滑块内缩，形成呼吸感 */
}
::-webkit-scrollbar-thumb:hover {
  background: #10B981;
  border-color: #D1FAE5;
}
::-webkit-scrollbar-thumb:active { background: #059669; }

/* 横向滚动条（表格）稍微扁一点 */
::-webkit-scrollbar:horizontal { height: 8px; }
::-webkit-scrollbar-corner { background: transparent; }

/* ---------- 深色侧边栏滚动条 ---------- */
.side-menu::-webkit-scrollbar { width: 6px; }
.side-menu::-webkit-scrollbar-track { background: rgba(255, 255, 255, .04); }
.side-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .18);
  border: none;
  border-radius: 6px;
}
.side-menu::-webkit-scrollbar-thumb:hover { background: rgba(16, 185, 129, .75); }

/* ---------- 弹窗内滚动区（留白更精致） ---------- */
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-thumb {
  background: #C9D0D8;
  border: 2px solid #FFFFFF;
  border-radius: 8px;
}
.modal-body::-webkit-scrollbar-thumb:hover { background: #10B981; }

/* ---------- 表格容器横向滚动 ---------- */
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb {
  background: #D3D9E0;
  border-radius: 8px;
  border: 2px solid #F7F9FB;
}
.table-wrap::-webkit-scrollbar-thumb:hover { background: #10B981; border-color: #ECFDF5; }

/* ---------- Firefox 兼容 ---------- */
* { scrollbar-width: thin; scrollbar-color: #C0C7CE #EEF1F4; }
.side-menu { scrollbar-color: rgba(255, 255, 255, .18) rgba(255, 255, 255, .04); }
.modal-body { scrollbar-color: #C9D0D8 #FFFFFF; }

/* ---------- 细滚动提示（内容区滚动时顶部渐隐层，增强滚动感知） ---------- */
.page-container { scrollbar-gutter: stable; }
