/* 为内容添加顶部边距，避免被导航栏遮挡 */

 
/* 关键样式：固定定位 + 置顶 */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: #fff !important;
    color: white !important;
    padding: 12px 0 10px !important;
    z-index: 1000 !important;
}

.nav-container {
    display: flex;
    background-color: #333;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-container a{
    color:#fff;
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
}

.wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}

.ym { text-align: center;margin: 0 0 25px 0;}
.ym a{ background: #fff;
	padding: 5px 30px 5px 30px;
    margin: 0 10px 0 10px;
}	 
	 
.page-banner-title a {color:#fff;}

.pagination a, .pagination span {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid #ddd;
}
.pagination a.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.tb-article .tb-product-top .post-info{text-align:left}

.view_contents2 ul li{margin: 5px 0 3px 20px; padding-left: 0px;list-style-type: circle;font-size: 16px; color:#222;}   

.tb-chunk h2{font-size: 32px; color:var(--tb--main);}   
.ct-desc2{font-size: 14px; color:#888;}   
.com-name2{font-size: 24px; line-height: 68px; color:#333;font-weight: bold;}   

.db li a{padding-right:15px;}   
body {
    padding-top: 66px;
}

/* Extra */

/* 为内容添加顶部边距，避免被导航栏遮挡 */

.ct-desc {
	margin-bottom: 2px;
    text-align: right;
	margin-right: 2px;
	font-size: 14px;
	word-break: keep-all;
	line-height: 1;
	font-weight: normal;
	color: var(--tb--main)
}

.ct-info {
	font-size: 18px;
	text-align: right;
	word-break: keep-all;
	font-weight: 600;
	line-height: 1;
	color: #202935;
}

.db li  a{padding: 0 15px 0 0;}

.logo {
  max-width: 200px;
}

.navbar2 {
  align-items: center;
  background: #fff;
  display: flex;
  flex-direction: row;
  font-family: sans-serif;
}

.push-left {
  margin-left: auto;
}

/* Menu */
.hamburger {
  border: none;
  cursor: pointer;
  display: none;
  outline: none;
  height: 30px;
  position: relative;
  width: 30px;
  z-index: 1000;
}

.nav-container {
    display: flex;
    background-color: #333;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-container a{
    color:#fff;
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
}

.view_contents2 ul li{margin: 5px 0 3px 20px; padding-left: 0px;list-style-type: circle;font-size: 16px; color:#222;}   

.tb-chunk h2{font-size: 32px; color:var(--tb--main);}   
.ct-desc2{font-size: 14px; color:#888;}   
.com-name2{font-size: 24px; line-height: 68px; color:#333;font-weight: bold;}   

.db li a{padding-right:15px;}   

.wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}

.tb-article .tb-product-top .post-info{text-align:left}
.tb-container {max-width:1293px;}@media (max-width:1341px) {.tb-container {margin: 0 24px;}.module-wraper .tb-container {margin: 0 48px;}}@media (max-width:1469px) and (min-width: 891px) {.tb-main-pad {padding: 0 88px;}.module-wraper .tb-main-pad {padding: 0 112px;}}@media (max-width: 640px){.tb-container {margin: 0px 15px 0px 15px ;}.module-wraper .tb-container {margin: 0px 15px;}}

@media screen and (max-width: 768px) {
  .hamburger {
    display: inline-block;
  }
}
.hamburger-line {
  background: #272727;
  height: 3px;
  position: absolute;
  left: 0;
  transition: all 0.2s ease-out;
  width: 100%;
}
.hamburger:hover .hamburger-line {
  background: #777;
}
.hamburger-line-top {
  top: 3px;
}
.menu-active .hamburger-line-top {
  top: 50%;
  transform: rotate(45deg) translatey(-50%);
}
.hamburger-line-middle {
  top: 50%;
  transform: translatey(-50%);
}
.menu-active .hamburger-line-middle {
  left: 50%;
  opacity: 0;
  width: 0;
}
.hamburger-line-bottom {
  bottom: 3px;
}
.menu-active .hamburger-line-bottom {
  bottom: 50%;
  transform: rotate(-45deg) translatey(50%);
}

/* 移动端菜单样式：置顶 */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: all 0.25s ease-in;
}
@media screen and (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    justify-content: flex-start;
    background-color: #eee;
    height: auto;
    max-height: calc(100vh - 30px);
    overflow-y: auto;
    opacity: 0;
    position: absolute;
    top: 30px;
    right: 0;
    bottom: auto;
    left: 0;
    transform: translatey(-100%);
    text-align: center;
    padding: 10px 0;
  }
  .menu-active .nav-menu {
    transform: translatey(0%);
    opacity: 1;
  }
}

.nav-menu .menu-item a {
  color: #333;
  display: block;
  line-height: 30px;
  margin: 0px 30px 0 0;    font-size: 16px;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-menu .menu-item a:hover { color: #EB4B19; }
@media screen and (max-width: 768px) {
  .nav-menu .menu-item a {
    font-size: 20px;
    margin: 8px;
  }
}

.sub-nav {
  display: none;
  position: absolute;
  background-color: #f6f6f6;
  padding: 0px 0px 20px 10px;
  list-style: none;
  width: 130px;
}

.sub-nav li{
  height:30px;
}

/* ========== 移动端子菜单：增加底部留白 ========== */
@media screen and (max-width: 768px) {
  .sub-nav {
    position: relative;
    width: 100%;
    display: none;
    background-color: rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    padding-bottom: 30px;   /* 底部留白，可根据需要调整（如20px、40px） */
  }
}
/* ========== 留白添加结束 ========== */

/* 移动端子菜单显示规则 */
@media (max-width: 768px) {
  .nav__link:hover + .sub-nav,
  .sub-nav:hover {
    display: block;
  }
}

/* 桌面端：修复主菜单与子菜单间隙导致子菜单消失的问题 */
@media (min-width: 769px) {
    .menu-item.dropdown {
        position: relative;
    }
    .menu-item.dropdown::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        height: 20px;
        bottom: -20px;
        background: transparent;
        pointer-events: auto;
        z-index: 1;
    }
    .sub-nav {
        z-index: 2;
    }
    .menu-item.dropdown:hover .sub-nav {
        display: block;
    }
}

/* 修复子菜单被内容遮挡 */
.sub-nav {
    z-index: 9999 !important;
}
@media (max-width: 768px) {
    .sub-nav {
        z-index: 9999 !important;
        background-color: #f6f6f6;
    }
}
.navbar,
.navbar2,
.nav-menu,
.menu-item.dropdown {
    overflow: visible !important;
}

@media screen and (max-width: 768px) {
  .none{
    display:none;
  }
  .tb-page-banner {
    margin-top: 2px;
  }
  .logo {
    height: 30px; padding: 5px 0 5px 0;
  }
}

@media (max-width: 640px) {
    body {
        padding-top: 40px;
    }
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background-color: #fff !important;
        color: white !important;
        padding: 1px 0 1px !important;
        z-index: 1000 !important;
    }
    .navbar2 {
        height: 40px;
        min-height: 40px;
        padding: 0px 10px 0px 10px;
        margin: 0px !important;
    }
    .navbar2 .logol {
        height: 30px;
        margin: 1px 0;
    }
    .hamburger {
        height: 30px;
        background: none !important;
        padding: 1px !important;
        margin: 1px !important;
    }
    .page-banner-desc {
        margin-top: 4px;
        font-size: 8px;
    }
}


/* 移动端子菜单底部留白 - 强制生效 */
@media (max-width: 768px) {
    .sub-nav {
        padding-bottom: 30px !important;   /* 增加底部留白，可调整大小 */
    }
}
