/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */
/*elmeentmenu导航*/
.elementor-nav-menu--layout-horizontal .elementor-nav-menu {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap!important;
}

.elementor-nav-menu::-webkit-scrollbar{
 width: 0;
 height: 0;
}


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


/*//视频弹窗*/
/* 每行固定三个视频 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
}

@media (max-width: 991px) {
.video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    }
}

@media (max-width: 600px) {
.video-grid {
    grid-template-columns: 1fr;
    }
}

.video-item {
    text-align: center;
    cursor: pointer;
}

.video-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.video-thumb img {
    width: 100%;
    aspect-ratio: 1/0.7;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.video-item:hover img {
    transform: scale(1.05);
}

/* 播放图标改为图片 */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background-image: url('https://simple.pgywebtest.xyz/wp-content/uploads/2025/11/videobutton.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
    transition: opacity .3s ease;
}

.video-item:hover .play-icon {
    opacity: 1;
}

.video-title {
    font-size: clamp(20px, calc(12px + 28 * ((100vw - 375px) / (2560 - 375))), 30px) !important;
    font-weight: 400;
    line-height: 1.3em;
    padding: 20px;
    transition: all 0.3s ease;
    color: #222;
}

.video-item:hover .video-title {
    color: #00A2E9;
}

.video-pagination {
    margin-top: 120px;
    text-align: center;
}

.video-pagination ul {
    display: inline-flex;
    list-style: none;
    gap: 20px;
    padding: 0;
}

.video-pagination li a,
.video-pagination li span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px; /* 固定宽高为圆形 */
    height: 60px;
    border-radius: 50%; /* 圆形 */
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 22px;
}

.video-pagination li a:hover {
    background: #00A2E9;
    color: #fff;
}

.video-pagination li .current {
    background: #00A2E9;
    color: #fff;
}

/* 弹窗 */
.video-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.video-popup-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: #0000000;
    border-radius: 10px;
}

.video-frame iframe,
.video-frame video {
    width: 100%;
    aspect-ratio: 16/9;
}

.video-close {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 10px;
    /*border-radius: 50px;*/
    font-size: 30px;
    line-height: 0.5em;
    color: #fff;
    background-color: #00A2E9;
    cursor: pointer;
    z-index: 999;
}

@media(max-width:768px){
.video-pagination {
    margin-top: 30px;
}

.video-pagination li a,
.video-pagination li span {
    width: 40px; /* 固定宽高为圆形 */
    height: 40px;
    font-size: 16px;
}

.video-pagination ul {
    gap: 8px;
}
}


