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

.elementor-sticky--effects {
  background-color: #fff!important; 
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.elementor-sticky--effects a{
  color: #000!important;
}


/*面包屑字体*/
.ct-breadcrumbs {
    font-size: clamp(14px, calc(10px + 14 * ((100vw - 375px) / (2560 - 375))), 24px) !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;
}

.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: 1920px) {
.video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    }
    
    .play-icon {
    width: 100px;
    height: 100px;
    }
}

@media (max-width: 1366px) {
.video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    }
    
.play-icon {
    width: 80px;
    height: 80px;
    }
}

@media(max-width:768px){
.video-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    }
    
.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;
}
}
