/* 仅影响 id=pa-graph 这张图的工具条 */
#pa-graph .modebar-container {
    top: 30px !important;     /* 距内容区顶部 30px */
    left: 80px !important;    /* 距左 80px */
    right: auto !important;   /* 取消默认右侧定位 */
  }
  
  /* 保险起见：确保容器具备定位上下文（通常 Plotly 会自己加，这里兜底） */
  #pa-graph .js-plotly-plot,
  #pa-graph .plot-container {
    position: relative;
  }
  

  #pa-graph .modebar-container {
    position: fixed !important;
    top: 30px !important;
    left: 80px !important;
    right: auto !important;
    z-index: 1100;
  }

  /* 仅影响本页 id=pa-graph 的工具条 */
#pa-graph .modebar-container {
    position: absolute !important;  /* 相对于图容器定位 */
    top: 8px !important;            /* 距主图内容区上边 8px */
    right: 8px !important;          /* 锚定主图右上角，不再靠左 */
    left: auto !important;
    bottom: auto !important;
    z-index: 10;                    /* 保证在曲线之上，但不会盖住右侧表格 */
  }
  
  /* 兜底：确保容器有定位上下文（一般 Plotly 自带，这里加一层保险） */
  #pa-graph .js-plotly-plot,
  #pa-graph .plot-container {
    position: relative;
  }