@import url(./base.css);

/******************header*******************/
/*body:not(:has(.index-home)) {padding-top: calc(100*var(--vw))}*/
/*body{padding-top: calc(100*var(--vw))}*/
.inner-page .header-top{}
/*body:not(:has(.index-home)){padding-top: calc(100 * var(--vw));}*/
.header .logo{transition: .3s all;}
.header-top{height: calc(65 * var(--vw));color: #fff;background:var(--color-primary);padding: calc(15 * var(--vw)) 0}
.header{position: sticky; /* 优先用 sticky 代替 fixed */top: 0px;height: calc(100*var(--vw));width: 100%;z-index: 999;color: #fff;backdrop-filter: blur(0px); /* 毛玻璃效果（可选） */transition: all 0.5s ease;box-shadow: 0 2px 10px rgba(0, 0, 0, 0); /* 初始无阴影 */}
.header.scrolled{background:var(--color-primary); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 下滑后显示阴影 */}
.header .talkus {background:var(--color-primary);}
.header .talkus:hover{color:var(--color-primary);background:#fff;}
#app:not(.index-home) .header {background:var(--color-primary);); /* 下滑后显示阴影 */}
header{height: 100%;display:flex;}
header .logo{font-size: 24px; font-weight: bold;z-index: 999;}
header .menu{align-self: stretch;font-size: 16px;text-transform: capitalize;z-index: 998;}
header .other,header .searchbox{z-index: 998;}
header .menu ul.menu-0{display: flex;align-items: center;gap:calc(18 * var(--vw));height: 100%;}
header .menu ul.menu-0>li.active{color: var(--color-primary);}
header .menu ul.menu-0>li:hover .dropdown-menu-1{background-color:#fff ;visibility: visible;transform: translate(0%,0px);opacity: 1;     color: #000;}
header .menu ul.menu-0>li{padding: 0 1vw;display: flex;align-items: center;height: 100%;position: relative;}
.header.scrolled .talkus:hover{background:#fff;color:var(--color-primary);}

@media screen and (max-width: 1550px) {
    header .menu{font-size: 12px;}
    header .menu ul.menu-0>li{padding:0 4px}
}

/* 下拉菜单美化 - 居中并对齐 */
header .menu ul.dropdown-menu-1 {
    flex-direction: column;
    visibility: hidden;
    position: absolute;
    opacity: 0;
    top: 100%;
    left: 50%; /* 居中关键：相对于父元素居中 */
    transform: translateX(-50%) translateY(10px); /* 水平居中 + 初始偏移 */
    width: auto; /* 自动宽度，适应内容 */
    min-width: 180px; /* 最小宽度，避免太窄 */
    transition: all 0.3s ease-out;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);

    z-index: 999;
    text-align: center; /* 文本居中 */
}

/* 悬停时显示下拉菜单 */
header .menu ul.menu-0 > li:hover .dropdown-menu-1 {
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* 水平居中 + 无偏移 */
    opacity: 1;
}

/* 下拉菜单项样式 */
header .menu ul.dropdown-menu-1 > li {
    width: 100%;
    text-align: center; /* 确保文本居中 */
    padding: 8px 20px; /* 增加左右 padding */
    transition: all 0.2s ease;
    white-space: nowrap; /* 防止换行 */
}

/* 下拉菜单项悬停效果 */
header .menu ul.dropdown-menu-1 > li:hover {
    background-color: var(--color-secondary);
    color: white;
}

/* 二级下拉菜单（如果有） */
header .menu ul.dropdown-menu-2 {
    position: absolute;
    left: 100%;
    top: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center; /* 文本居中 */
    color:#333;
}

/* 二级菜单显示效果 */
header .menu li.dropdown-submenu:hover .dropdown-menu-2 {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}
header .menu ul.dropdown-menu-2 li{padding:5px 0}
header .menu ul.dropdown-menu-2 li:hover{background-color: var(--color-secondary);color: white;}
/* 当前激活菜单项样式 */
header .menu ul.menu-0 > li{color:#000}
header .menu ul.menu-0 > li >a:hover{color:#000}
header .menu ul.menu-0 > li.active {color:#000;}
/*header .menu ul.menu-0 > li.active{border-bottom: 4px solid var(--color-primary)}*/

/******************banner*******************/
.banner .pic{width: 100%;overflow: hidden;height: 100%}
.banner .pic img{transition: all 0.5s ease-in-out;object-fit: cover;height: 100vh;object-fit: cover}
.banner .swiper-slide-active img {animation: scaleImg 15s ease forwards;}
.banner .swiper-slide-active .pic .wenzi {transform: translateY(0);opacity: 1;transition: all 1s linear;}
.banner img{width: 100%;}
.banner{position: relative;}
.warp{max-width:100%;width:calc(1361*var(--vw));margin: 0 auto;}

/*index*/
@keyframes loops {
    from {
        transform:translateX(0%);
    }
    to {
        transform:translateX(-100%);
    }
}
/****************首页**********************/

/******************产品列表页面*******************/


/******************侧边栏*******************/
.leftsearch .form-control,
.leftsearch .input-group-text {  border-radius: 1.5rem; background-color: #fff}
.leftsearch  #search-keyword{  display: block; width: 100%;padding: 0.375rem 0.75rem;font-size: 14px;font-weight: 400;line-height: 1.5;color:#333;background-color: #fff;background-clip: padding-box;border: 1px solid  #999;border-right: none;-webkit-appearance: none;-moz-appearance: none;appearance: none;border-radius: 0.375rem;transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;border-top-right-radius: 0;border-bottom-right-radius: 0;}
.leftsearch .input-group-text{display: flex;align-items: center;padding: 0.375rem 0.75rem;font-size: 1rem;font-weight: 400;line-height: 1.5;color: #333;text-align: center;white-space: nowrap;background-color: #eee;border: 1px solid #999;border-radius: 0.375rem;border-top-left-radius: 0;border-bottom-left-radius: 0;}

.leftborder{border: 1px solid var(--cprimary);}
.leftsidetitle{position: relative;}
.leftsidetitle .title{ position: relative; z-index: 2; line-height: 3.25rem;font-size: 1rem;}
.leftsidetitle .title span{ display: inline-block; margin:0 0;font-size:1rem; font-family: var(--titlefamily); font-weight: 600;}
.leftsidecategorylist ul li{position: relative;border-bottom: 1px solid var(--cprimary);}
.leftsidecategorylist ul li a{ padding: 0.5rem 1rem; line-height: 2rem; display: block;}
.leftsidecategorylist ul li a i{ float: right;line-height: 2rem; }
.leftsidenewslist ul li a{ padding: 0.25rem 1rem; line-height: 2rem; display: block;}
.leftsidekeywordslist ul li{ margin: 0.25rem 0;}
.leftsidekeywordslist ul li a{display: block;text-align: center;font-size: 14px;color:var(--lightWords);line-height: 2rem;border: 1px dashed var(--cprimary);}
.leftsidekeywordslist ul li a:hover {color:var(--hongse); border-color: var(--hongse);}
.leftsidecontactlist{ line-height: 2rem;}

.menuTree ul{}
.menuTree li{line-height:3rem;color:var(--lvse); display:block;position:relative;}
.menuTree li:after{ position:absolute;content: "";display: block;height:1px;width:100%;border-bottom: 1px dashed var(--footerwords);left: 0; top: 2.9375rem;}
.menuTree li a{font-size: 16px;line-height:3rem;height:3rem;overflow:hidden; position:relative;color:var(--color-grey );white-space:nowrap;text-overflow:ellipsis;word-break:break-all;border-bottom:1px dashed #cecccc;padding:0 0.25rem;}
.menuTree li a::before{ display: inline-block;content: ""; height: 1rem; width: 1rem; border: 1px solid var(--color-grey ); margin-right: 0.75rem;}
.menuTree ul li a.active::before{ background-color: var(--color-text );}
.menuTree ul ul a{font-size: 12px;color: #666}
.menuTree li i{    user-select: none; display:block; float:right; color:var(--color-grey ); font-size:24px; width: 20px; height: 45px; line-height: 45px; text-align: center; font-style: normal; position: absolute; top: 0; right: -3px; cursor: pointer;}
.menuTree li.parent>i.parent::after{content: "+"; display: block;}
.menuTree li.parent.expanded>i.parent::after{content: "-"; display: block;}
.menuTree ul li ul li a{line-height:3rem;height:3rem;overflow:hidden;color:var(--color-grey );white-space:nowrap;text-overflow:ellipsis;word-break: break-all; display:block;padding:0 0.25rem 0 2rem;}
.menuTree ul li ul li a:hover,.menuTree ul li a.active{color:var(--color-grey );/*text-decoration:underline;*/}
.menuTree ul li ul li ul li a{padding:0 0.25rem 0 3rem;}
.menuTree ul li ul li ul li ul li a{padding:0 0.25rem 0 3rem;}

/******************关于我们页面*******************/



/******************产品详情页面*******************/
.productImageSwiper .swiper-slide a{cursor: zoom-in}
.show-product .thumbnailSwiper{margin-top: 20px}
.show-product .thumbnailSwiper .swiper-slide{cursor: pointer}
.show-product .thumbnailSwiper .swiper-slide-thumb-active{border: 2px solid var(--color-primary)}

/* 容器整体布局 */

/* 主图 Swiper */

/**新闻列表**/

/**新闻详情**/

/** weihzi.html **/
.weihzhibg li { position: relative;}
.weihzhibg li::after{position: absolute;content: '';width: 100%; height: 2px;background:var(--color-primary);left: 0%;bottom: -21px; visibility: hidden;}
.weihzhibg li.active::after{visibility: visible;}
.weihzhibg li a{display: block;line-height: 1;}
.weihzhibg li:not(:last-of-type)::before{content: "";position: absolute;top: 50%;right: -.5vw;width: 2px;height: 13px;background-color: #ddd;z-index: -1;transform: translateY(-50%);}
.mb .active{color:var(--color-primary)}
/*****************list-image.html*******************/

@media screen and (max-width: 768px) {
    .warp{width: 95%!important;min-width: auto;margin: 0 auto;min-width: 0px!important;}
    body{--swiper-navigation-size: 14px;--swiper-theme-color: #fff;}
    #app{padding-top: 0px;}
    body{padding-bottom:64px}
    .xymob-head{position: relative}
    .xymob-head-box .xymob-logo img{height:45px;width: auto}
    .banner .pic img{height: 30vh}
}



