@media (min-width: 1001px) {
  .kira-sidebar .post-toc-widget,
  .post-toc-floating {
    margin: 12px 20px 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(101, 153, 179, 0.16);
    border-radius: 13px;
    box-shadow: 0 0 1rem rgba(161, 177, 204, 0.32);
    overflow: hidden;
    pointer-events: auto;
    white-space: normal;
  }

  .post-toc-floating {
    position: fixed;
    left: 18px;
    top: 82px;
    width: 220px;
    z-index: 12;
  }

  .post-toc-toggle {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(101, 153, 179, 0.12);
    background: rgba(101, 153, 179, 0.11);
    color: #485868;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font: 600 13px/1.2 "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
    padding: 10px 14px;
    text-align: left;
  }

  .post-toc-toggle::after {
    content: "-";
    color: #6599b3;
    font-size: 18px;
    line-height: 1;
  }

  .post-toc-widget.is-collapsed .post-toc-toggle {
    border-bottom: 0;
  }

  .post-toc-widget.is-collapsed .post-toc-toggle::after {
    content: "+";
  }

  .post-toc-widget.is-collapsed .post-toc-body {
    display: none;
  }

  .post-toc-title {
    color: #606266;
    font: 700 13px/1.4 "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
    padding: 14px 16px 8px;
  }

  .post-toc-list {
    max-height: calc(100vh - 310px);
    overflow: auto;
    padding: 0 0 12px;
  }

  .post-toc-link {
    border-left: 3px solid transparent;
    box-sizing: border-box;
    color: #777;
    display: block;
    font: 500 12px/1.45 "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
    padding: 7px 14px 7px 16px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .post-toc-link:hover,
  .post-toc-link.is-active {
    background: rgba(101, 153, 179, 0.1);
    border-left-color: #6599b3;
    color: #485868;
  }

  .post-toc-h1 {
    color: #444;
    font-weight: 700;
  }

  .post-toc-h2 {
    padding-left: 18px;
  }

  .post-toc-h3 {
    color: #888;
    font-size: 11px;
    padding-left: 30px;
  }

  article h1,
  article h2,
  article h3 {
    scroll-margin-top: 28px;
  }
}

@media (max-width: 1000px) {
  .post-toc-widget,
  .post-toc-floating {
    display: none !important;
  }
}
