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

/*elementor表单*/
.elementor-form input:focus,
.elementor-form select:focus,
.elementor-form textarea:focus {
  border: none;      /* 去掉边框 */
  outline: none;     /* 去掉默认的 outline 高亮 */
  box-shadow: none;  /* Elementor/主题有时会加 box-shadow */
}

/*@media (max-width:1366px){*/
/*.elementor-field-group .elementor-field{*/
/*    font-size: 16px!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: 14px!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;*/
/*}*/
/*}*/




/* --- 标题系列 --- */
.s95 h2 {
  font-size: clamp(30px, calc(30px + 65 * ((100vw - 375px) / (2560 - 375))), 95px) !important;
}

.s80 h2 {
  font-size: clamp(30px, calc(30px + 50 * ((100vw - 375px) / (2560 - 375))), 80px) !important;
}

.s65 h2 {
  font-size: clamp(24px, calc(24px + 41 * ((100vw - 375px) / (2560 - 375))), 65px) !important;
}

.s50 h2 {
  font-size: clamp(22px, calc(22px + 28 * ((100vw - 375px) / (2560 - 375))), 50px) !important;
}

.s40 h2 {
  font-size: clamp(20px, calc(20px + 20 * ((100vw - 375px) / (2560 - 375))), 40px) !important;
}

.s32 h2 {
  font-size: clamp(18px, calc(18px + 14 * ((100vw - 375px) / (2560 - 375))), 32px) !important;
}

.s30 h2 {
  font-size: clamp(16px, calc(16px + 14 * ((100vw - 375px) / (2560 - 375))), 30px) !important;
}

/* --- 正文系列 --- */
.s24 p,.s24 li,.s24 span {
  font-size: clamp(16px, calc(16px + 8 * ((100vw - 375px) / (2560 - 375))), 24px) !important;
}

.s20 p,.s20 li,.s24 span {
  font-size: clamp(14px, calc(14px + 6 * ((100vw - 375px) / (2560 - 375))), 20px) !important;
}

.s18 p,.s18 li,.s18 span {
  font-size: clamp(13px, calc(12px + 6 * ((100vw - 375px) / (2560 - 375))), 18px) !important;
}

.elementor-icon-wrapper {
    margin-bottom: -8px;
}

/*前台banner大图动画*/
.bgdh::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit; 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1);
  animation: zoomInOut 12s infinite alternate ease-in-out;
  will-change: transform;
}

.bgdh::before{
    z-index: 1;
}

/* 保证内容层正常显示在上方 */
.bgdh {
  position: relative;
  z-index: 0;
  overflow:hidden;
}

/* 动画关键帧 */
@keyframes zoomInOut {
  0% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}


/*商品菜单*/
.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 {
    font-size: 18px!important;
    line-height: 1.3em;
    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: 800px!important;
    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 .submenu .menu-item  a {
    font-size: 16px!important;
}

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

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

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

.vertical-product-menu .submenu .menu-item  a {
    font-size: 14px!important;
}

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

}
