/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

.py-30 {
    padding-top: 7rem;
    padding-bottom: 7rem;
}

@media (max-width:1366px){
.elementor-field-group .elementor-field{
    font-size: 12px!important;
}

.elementor-field-textual.elementor-size-lg,.elementor-form .elementor-button.elementor-size-lg {
    min-height: 45px!important;
}

.elementor-53 .elementor-element.elementor-element-906d3ab .elementor-button{
    padding: 16px 16px 16px 16px!important;
}
}

@media (max-width:768px){
.elementor-field-group .elementor-field{
    font-size: 12px!important;
}

.elementor-field-textual.elementor-size-lg,.elementor-form .elementor-button.elementor-size-lg {
    min-height: 40px!important;
}

.elementor-53 .elementor-element.elementor-element-906d3ab .elementor-button{
    padding: 12px 12px 12px 12px!important;
}
}



/*商品菜单*/
.vertical-product-menu {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 16px;
}

.vertical-product-menu > .menu-item > .menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0e0e0;
    padding: 15px 20px;
    margin-bottom: 10px;
    color: #7a7a7a;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.vertical-product-menu .menu-item-header .menu-title-wrapper a {
    color: #666666;
    line-height: 1.3em;
    font-weight: 500;
    text-decoration: none;

}

.vertical-product-menu > .menu-item.current > .menu-item-header{
    background-color: #fff;
}

.vertical-product-menu > .menu-item.current > .menu-item-header > .menu-title-wrapper a {
    color: #1F46C4;
    font-weight: 600;
}

.vertical-product-menu > .menu-item > .menu-item-header:hover {
    background-color: #fff;
    color: #1F46C4;
    transform: translateX(5px);
}

.vertical-product-menu > .menu-item > .menu-item-header:hover a {
    color: #1F46C4;
}

.vertical-product-menu > .menu-item > .menu-item-header:hover .menu-toggle {
    color: #1F46C4;
}

.vertical-product-menu .submenu .menu-item-header {
    padding: 0px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 8px;
    transition: background-color 0.3s ease, padding-left 0.3s ease;
    cursor: pointer;
}

.vertical-product-menu .submenu .menu-item.current .menu-item-header {
    background-color: #fff;
}

.vertical-product-menu .submenu .menu-item.current a {
    color: #1F46C4;
    font-weight: 700;
}

.vertical-product-menu .submenu .menu-item  a {
    color: #7a7a7a;
    font-weight: 500;
}

.vertical-product-menu .menu-icon-left {
    vertical-align: middle;
}

.menu-title-wrapper a {
    display: flex;
    align-items: center;
    gap: 5px; 
}
.menu-title-wrapper img {
    display: block; 
    width: 16px;
    height: 16px;
}


.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #7a7a7a;
    transition: transform 0.3s ease, color 0.3s ease;
    border-radius: 6px;
}

.menu-toggle:hover {
    color: #1F46C4;
}

.menu-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.menu-toggle.open .menu-icon {
    transform: rotate(90deg);
}

.menu-toggle.no-submenu {
    cursor: default;
}

.submenu {
    list-style: none;
    margin-left: 20px;
    margin-bottom: 8px;
    padding-left: 10px;
    border-left: 3px solid #ddd;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, margin-top 0.3s ease;
}

.submenu.open {
    max-height: 500px;
    margin-top: 10px;
}

.submenu .menu-item-header:hover {
    background-color: #fff;
}

.vertical-product-menu .submenu .menu-item-header {
    display: block;
    position: relative;
}

.vertical-product-menu .submenu .menu-item-header a {
    display: block;
    width: 100%;
    padding: 12px 20px;
}

@media (max-width:2560px) {
.vertical-product-menu .menu-item-header .menu-title-wrapper a {
    font-size: 24px;
}

.vertical-product-menu > .menu-item > .menu-item-header{
    padding: 20px 30px;
}

.menu-title-wrapper img {
    width: 30px!important;
    height: 30px!important;
}
}

@media (max-width:1920px) {
.vertical-product-menu .menu-item-header .menu-title-wrapper a {
    font-size: 18px;
}

.vertical-product-menu > .menu-item > .menu-item-header{
    padding: 15px 20px;
}

.menu-title-wrapper img {
    width: 20px!important;
    height: 20px!important;
}
}

/*分类水平菜单*/
.cat-horizontal {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: left;
  flex-wrap: wrap;
}
.cat-horizontal a {
  font-size: 18px;
  text-decoration: none;
  color: #6E6E73;
  font-weight: 400;
  padding: 12px 30px;
  border-radius: 6px;
  transition: all 0.3s ease;
  background-color: #fff;
}
.cat-horizontal a:hover {
  background-color: #0071E3;
  color: #fff;
}

.cat-horizontal li{
  margin-bottom: 10px;    
}
.cat-horizontal li.active a {
  background-color: #0071E3;
  color: #fff;
  font-weight: 400;
}

@media(max-width:768px){
.cat-horizontal{
   gap: 10px; 
}

.cat-horizontal a {
   font-size: 16px; 
   padding: 10px 20px;
}
}

/*AJAX样式*/
#resource-ajax-search {
    margin-bottom: 20px;
}
#resource-category-select, #resource-search-input {
    padding: 6px 10px;
    margin-right: 10px;
}
.resource-search-list {
    list-style: none;
    padding-left: 0;
}
.resource-search-list li {
    margin-bottom: 5px;
}
.resource-search-list li a {
    text-decoration: none;
    color: #0073aa;
}
.resource-search-list li a:hover {
    text-decoration: underline;
}


/* 弹窗样式 */
.resource-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 一行三个 */
  gap: 30px;
}

.resource-video-item {
  text-align: center;
}

.resource-video-thumb {
  position: relative;
  padding-top: 56.25%; /* 16:9 比例 */
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}


/* ========== 播放按钮（三角形 CSS） ========== */
.resource-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.resource-video-play::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 24px solid #000; /* 三角形颜色 */
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
}

.resource-video-play:hover {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ========== 视频标题 ========== */
.resource-video-title {
    margin-top: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

/* ========== 弹窗样式 ========== */
.resource-video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.resource-video-modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.resource-video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
}

.resource-video-wrapper iframe,
.resource-video-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ========== 弹窗关闭按钮 ========== */
.resource-video-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
}

.resource-video-close:hover {
    color: #ff5555;
}


.resource-pagination {
    text-align: center;
    margin-top: 40px;
}
.resource-pagination a,
.resource-pagination span {
    display: inline-block;
    margin: 0 6px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}
.resource-pagination .current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}
.resource-pagination a:hover {
    background-color: #0073aa;
    color: #fff;
}