/* 只針對 current-language-menu-item 下的第一個 a 的第一個 span */
li.current-language-menu-item > a > span:first-child[data-no-translation] {
    display: inline-block;
	  width: 22px!important;
    height: 22px;
    background-image: url('https://superlaty.com/wp-content/uploads/2025/02/language_24dp_000000_FILL0_wght400_GRAD0_opsz24.png'); /* 使用你提供的圖片 */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}


/* 隱藏原本的 img */
li.current-language-menu-item > a > span:first-child[data-no-translation] img.trp-flag-image {
    visibility: hidden;
    width: 0;
    height: 0;
    position: absolute;
}

li.current-language-menu-item > a > span:first-child[data-no-translation] span.trp-ls-language-name {
    visibility: hidden;
    width: 0;
    height: 0;
    position: absolute;
}

.wp-block-table-of-contents {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px 20px;
  background-color: #f9f9f9;
  max-width: 600px;
  font-family: "Segoe UI", "Noto Sans", sans-serif;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.wp-block-table-of-contents ol {
  counter-reset: toc-counter;
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.wp-block-table-of-contents li {
  counter-increment: toc-counter;
  padding: 8px 0;
  border-bottom: 1px dashed #e0e0e0;
  font-size: 16px;
  color: #333;
}

.wp-block-table-of-contents li:last-child {
  border-bottom: none;
}

.wp-block-table-of-contents li::before {
  content: counters(toc-counter, ".") ". ";
  color: #aaa;
  font-weight: 500;
  margin-right: 6px;
}

.wp-block-table-of-contents a {
  color: #333;
  font-weight: 600;         /* 粗體 */
  text-decoration: underline; /* 底線 */
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}

.wp-block-table-of-contents a:hover {
  opacity: 0.7;
}

/* 美化子層級 */
.wp-block-table-of-contents li > ol {
  margin-top: 6px;
  margin-left: 24px;
  counter-reset: toc-counter;
}

.wp-block-table-of-contents li > ol > li {
  font-size: 14px;
  border: none;
  padding: 4px 0;
}