/* ================================
   Utilities
================================ */

.btntoTop.active {
  display: none;
}

.grecaptcha-badge {
  visibility: hidden;
}

/* ================================
   Calendar
================================ */

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

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

#wp-calendar td {
  background-color: #fff;
}

/* ================================
   Typography - Content Only
================================ */

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

.entry-content h3 {
  font-size: 22px;
  margin: 0.6em 0 1.6em;
  line-height: 1.0;
}

.entry-content p {
  margin: 0 0 0.5em;
  line-height: 1.5;
}

.entry-content ul,
.entry-content ol {
  padding-left: 30px;
  margin: 0 0 0.2em;
}

.entry-content li {
  margin: 0.5em 0;
  padding: 0;
  line-height: 1.4;
}

.entry-content ul li p,
.entry-content ol li p {
  margin: 0;
  line-height: 1.6;
}

.entry-content p + h3,
.entry-content li + h3,
.entry-content ol + h3,
.entry-content h3 + ul {
  margin-top: 1em;
  margin-bottom: 1em;
}

/* ================================
   Buttons
   避免污染全站 WordPress 按钮颜色
================================ */

.wp-block-button__link {
  border-radius: 0;
  font-size: 12px;
  padding: 16px 40px;
}

/* 仅用于订阅按钮，如需要蓝色按钮，给外层区块加 class: subscribe-button */
.subscribe-button .wp-block-button__link {
  background: #0d4779;
  color: #fff;
}

/* ================================
   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;
}

.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;
}

/* ================================
   Mobile Tag Tabs
================================ */

.tab-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

  .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;
  }

  .hamburger-toggle:checked ~ .tag-links {
    display: flex;
  }

  .hamburger-btn {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
  }

  .hamburger-toggle {
    display: none;
  }
}

@media (min-width: 992px) {
  .hamburger-btn,
  .hamburger-toggle {
    display: none;
  }

  .tag-links {
    display: flex !important;
    flex-wrap: wrap;
    position: static;
    border: none;
    background: none;
  }
}

/* ================================
   Editor Font Fix
================================ */

.editor-styles-wrapper {
  font-family: Poppins, sans-serif !important;
}

/* ================================
   Breadcrumb
================================ */

.breadcrumb {
  padding: 10px 0 10px 10%;
  font-size: 15px;
  background: #f9f9f9;
  border-bottom: 1px solid #ddd;
}

.breadcrumb a {
  text-decoration: none;
  color: #0073e6;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ================================
   Left Sidebar Sticky
================================ */

.gspb_row__col--4.sidebar-left {
  position: sticky !important;
  top: 50px !important;
  align-self: flex-start !important;
  flex-shrink: 0 !important;
  z-index: 50 !important;
}

@media screen and (max-width: 768px) {
  .gspb_row__col--4.sidebar-left {
    position: static !important;
    top: auto !important;
  }
}

/* ================================
   Product Image Hover Shadow
================================ */

.wp-block-woocommerce-product-category img,
.wp-block-woocommerce-product-collection img,
.wp-block-woocommerce-handpicked-products img,
.wp-block-woocommerce-all-products img {
  transition: all 0.3s ease !important;
}

.wp-block-woocommerce-product-category li:hover img,
.wp-block-woocommerce-product-collection li:hover img,
.wp-block-woocommerce-handpicked-products li:hover img,
.wp-block-woocommerce-all-products li:hover img {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

/* ================================
   Footer
================================ */

footer .container {
  max-width: 1400px;
}

/* ================================
   Mega Menu
================================ */

@media (min-width: 992px) {
  #navbar-collapse-1 {
    position: relative;
    overflow: visible;
  }

  #navbar-collapse-1 .mtc-products-menu {
    position: static !important;
  }

  #navbar-collapse-1 .mtc-products-menu > ul.dropdown-menu {
    display: none !important;
  }

  #navbar-collapse-1 .mtc-products-menu .mtc-mega-dropdown {
    display: block;
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    width: 1200px;
    max-width: calc(100vw - 60px);
    background: #fff;
    z-index: 99999;
    box-shadow: 0 18px 45px rgba(0,0,0,.15);
    border-top: 3px solid #f5b400;
    padding: 0;

    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    pointer-events: none;
  }

  #navbar-collapse-1 .mtc-products-menu .mtc-mega-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -25px;
    height: 25px;
    background: transparent;
  }

  #navbar-collapse-1 .mtc-products-menu:hover .mtc-mega-dropdown,
#navbar-collapse-1 .mtc-products-menu:focus-within .mtc-mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
}

@media (max-width: 991px) {
  .mtc-mega-dropdown {
    display: none !important;
  }
}

.mtc-mega-dropdown .gspb_text a {
  color: #555555 !important;
  text-decoration: none !important;
}

.mtc-mega-dropdown .gspb_text a:hover {
  color: #0C59DF !important;
}

.mtc-mega-dropdown .gspb_text a:hover::after {
  content: " ›";
  color: #0C59DF;
}




body.search-results #primary {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

body.search-results #main,
body.search-results .site-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

body.search-results .page-header {
  grid-column: 1 / -1;
}

body.search-results article {
  background: #fff;
  border: 1px solid #e5e9ef;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

body.search-results article:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.1);
}

body.search-results article h2,
body.search-results article .entry-title {
  font-size: 18px;
  line-height: 1.35;
  margin: 15px 0 10px;
}

body.search-results article h2 a,
body.search-results article .entry-title a {
  color: #0056b3;
  text-decoration: none;
  font-weight: 700;
}

body.search-results .entry-summary,
body.search-results .entry-content {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

body.search-results .post-thumbnail img,
body.search-results article img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #fff;
}

@media (max-width: 991px) {
  body.search-results #main,
  body.search-results .site-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  body.search-results #main,
  body.search-results .site-main {
    grid-template-columns: 1fr;
  }
}

.style2 .searchpage {
    margin-top: 0px !important;
}



/* 首页所有 WordPress H3 标题恢复 */
body.home h3.wp-block-heading {
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: #222 !important;
}