.btntoTop.active {
display: none;
}

/* Adjust calendar styles to highlight current day 5455791-ZD TM */

#wp-calendar tbody tr #today {
    background-color: #dfcde5;
}

#wp-calendar td {
    margin: 0;
    padding: 3px;
    background-color: #fff;
    text-align: center;
}

#wp-calendar thead tr th {
    margin: 0;
    padding: 3px;
    text-align: center;
}

/* Subscribe button | 5932441-zd KS-P */
.wp-block-button__link {
background: #0d4779;
border-radius: 0px;
font-size: 12px;
padding: 16px 40px;
}

.grecaptcha-badge { visibility: hidden; }

h2 {
  font-size: 18px;
  margin: 1em 0 0.3em;
  line-height: 1.3;
}

h3 {
  font-size: 16px;
  margin: 0.6em 0 1.6em;
  line-height: 1;
}

p, ul, ol {
  margin: 0 0 0.5em;
  line-height: 1.5;
}

li {
  margin: 1em 0 0.1em;
}

p + h3,
li + h3,
ol + h3
h3 + ul {
    margin-top: 1em; /* H3 与列表间距 */
    margin-bottom: 1em; /* 列表底部间距 */
    padding-left: 1.2em; /* 缩进，可调整 */
}

ul, ol { padding-left: 30px; /* 控制左侧缩进大小，可根据需要调整 */ margin: 0 0 0.2em; /* 避免额外左边距 */ }

ul li, ol li {
	padding: -16px 0 0;
    margin: 0.5em 0 0.5em;   
	line-height: 1.4;/* 列表项之间间距紧凑 */
}

ul li p {
    margin: 0;  /* 防止段落自带上下间距 */
    line-height: 1.6; /* 行高统一，可调 */
}

/* ===== Rank Math TOC 基础命中（标题 + 列表）===== */
.wp-block-rank-math-toc-block.mtc-toc :is(h2,h3,h4,h5,h6,.rank-math-toc-title){
  font-size: var(--toc-title, 20px) !important;
}

.wp-block-rank-math-toc-block.mtc-toc nav a{
  font-size: var(--toc-base, 16px) !important;
  line-height: 1.6;
}

/* 子级缩进的字号稍微小一点（可选） */
.wp-block-rank-math-toc-block.mtc-toc nav ul ul a{ font-size: calc(var(--toc-base,16px) - 1px) !important; }
.wp-block-rank-math-toc-block.mtc-toc nav ul ul ul a{ font-size: calc(var(--toc-base,16px) - 2px) !important; }

/* ===== 预设尺寸：只需改区块里类名，不用再进额外CSS ===== */
.wp-block-rank-math-toc-block.toc-xs{ --toc-title: 16px; --toc-base: 13px; }
.wp-block-rank-math-toc-block.toc-sm{ --toc-title: 18px; --toc-base: 14px; }
.wp-block-rank-math-toc-block.toc-md{ --toc-title: 22px; --toc-base: 15px; } /* 默认示例 */
.wp-block-rank-math-toc-block.toc-lg{ --toc-title: 22px; --toc-base: 18px; }
.wp-block-rank-math-toc-block.toc-xl{ --toc-title: 24px; --toc-base: 20px; }

/* 若主题样式很“强势”，再加一条更高优先级的备选（可选） */
body .entry-content .wp-block-rank-math-toc-block.mtc-toc nav a{ font-size: var(--toc-base,16px) !important; }

/* WooCommerce 产品页面包屑标题样式优化 */
.product_title.entry-title {
    font-size: 15px;
    font-weight: 200;
    color: #333333;
    margin-bottom: 20px;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.product_title.entry-title a {
    color: #0073aa;
    text-decoration: none;
    position: relative;
    padding-right: 5px;
    white-space: nowrap;
}

.product_title.entry-title a::after {
    content: "»";
    color: #999999;
    margin-left: 5px;
    font-weight: normal;
}

.product_title.entry-title a:last-child::after {
    content: "";
}

.product_title.entry-title a:hover {
    color: #005177;
    text-decoration: underline;
}

/* 调整WooCommerce页面标题和内容之间的空白 */
.woocommerce-page .site-main,
.woocommerce-page .content-area {
    margin-top: -130px !important;  /* 如果有默认外边距，可以重置 */
    padding-top: 0 !important; /* 如果有默认内边距，可以重置 */
}

/* 面包屑整体样式 */
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a,
.woocommerce-breadcrumb span {
    font-size: 15px !important;   /* 强制字体大小 */
    color: #888888;               /* 未选中灰色 */
}

/* 当前分类（最后一个面包屑）的颜色，兼容多种情况 */
.woocommerce-breadcrumb .breadcrumb_last,
.woocommerce-breadcrumb .current {
    color: #007bff !important;    /* 蓝色 */
}

/* 鼠标划过 Shop 或其他链接时颜色 */
.woocommerce-breadcrumb a:hover {
    color: #007bff !important;
}

/* 默认PC端样式 */
.tab-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 991px) {
  .tab-container {
    position: relative;
  }

  /* 隐藏原始标签列表，只有toggle打开才显示 */
  .tab-container .tag-links {
    display: none;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  /* 选中checkbox时显示 */
  .hamburger-toggle:checked ~ .tag-links {
    display: flex;
  }

  /* 汉堡按钮样式 */
  .hamburger-btn {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
  }

  /* 隐藏checkbox本体 */
  .hamburger-toggle {
    display: none;
  }
}

/* 桌面端显示原始tag，隐藏汉堡按钮 */
@media (min-width: 992px) {
  .hamburger-btn,
  .hamburger-toggle {
    display: none;
  }
  .tag-links {
    display: flex !important;
    flex-wrap: wrap;
    position: static;
    border: none;
    background: none;
  }
}


