/* 全局重置 */
/* 定义思源黑体粗体 */
@font-face {
  font-family: "Noto Sans SC";
  src: url("../../fonts/NotoSansSC-DemiLight.otf") format("otf");
  font-weight: 600; /* 绑定粗体字重 */
  font-style: normal;
  font-display: swap; /* 避免文字闪烁 */
}
*{margin:0;padding:0;box-sizing:border-box;font-family:"Noto Sans SC",-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
a{text-decoration:none;color:inherit}
ul{list-style:none}

/* ========== 视差滚动：内容覆盖Banner ========== */
.yl-banner-spacer{
    height:100vh;
    position:relative;
    z-index:0;
}

/* 头部核心样式 - 自适应 */
.yl-header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:clamp(60px, 8vh, 80px);
    z-index:9999;
    background:transparent;
    transition:all .3s ease;
}
.yl-header.scrolled,.yl-header:hover{
    background:rgba(255,255,255,.98);
}
.header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:100%;
    padding:0 4vw;
    position:relative;
    width:100%;
}
.logo{
    display:block;
    height:clamp(35px, 5vh, 45px);
    width:clamp(140px, 15vw, 180px);
    position:relative;
    z-index:10;
    flex-shrink:0;
}
.logo img{
    position:absolute;
    top:0;
    left:0;
    height:100%;
    width:100%;
    object-fit:contain;
    transition:opacity .3s ease;
}

/* ========== 修复：导航栏高度继承 ========== */
.nav-wrapper{
    display:flex;
    justify-content:flex-end;
    flex:1;
    margin-left:clamp(10px, 2vw, 20px);
    padding-right:clamp(100px, 12vw, 200px);
    height:100%; /* 关键修复：确保撑满头部高度 */
}
.nav-menu{
    display:flex;
    align-items:center;
    height:100%;
}
.nav-item{
    position:static;
    height:100%;          /* 继承 .nav-menu 的 100% 高度 */
    display:flex;
    align-items:center;
    margin:0 clamp(2px, 0.5vw, 5px);
}
.nav-link{
    display:flex;
    align-items:center;
    height:100%;          /* 继承 .nav-item 的 100% 高度 */
    padding:0 clamp(16px, 2.5vw, 30px);
    font-size:clamp(14px, 1.2vw, 18px);
    color:#fff;
    transition:color .3s ease;
    white-space:nowrap;
    position:relative;
}
	.yl-header.scrolled .nav-link,.yl-header:hover .nav-link{
    color:#333;
}
/* 修复：hover及当前页面高亮为青色 */
.nav-wrapper .nav-menu .nav-item:hover .nav-link,
.nav-wrapper .nav-menu .nav-item .nav-link.active {
    color:#00a79d;
}
/* 当前页面下划线固定显示 */
.nav-wrapper .nav-menu .nav-item .nav-link.active::after,
.nav-wrapper .nav-menu .nav-item.active .nav-link::after {
    width:60%;
}

/* ========== 下划线定位 ========== */
.nav-link::after{
    content:'';
    position:absolute;
    bottom:0;
    left:50%;            /* 居中定位 */
    transform:translateX(-50%);
    width:0;
    height:1px;
    background:#00a79d;
    transition:width .3s ease;
}
.nav-item:hover .nav-link::after{
    width:60%;
}

/* 二级导航 - 自适应 */
.dropdown-level2{
    position:fixed;
    top:clamp(60px, 8vh, 80px);
    left:0;
    width:100%;
    background:rgba(255,255,255,1);
    box-shadow:0 3px 10px rgba(0,0,0,.1);
    opacity:0;
    visibility:hidden;
    transition:all 0.5s ease;
    padding:clamp(20px, 3vh, 30px) 4vw;
    z-index:9998;
}
.nav-item:hover .dropdown-level2{
    opacity:1;
    visibility:visible;
}
.dropdown-inner{
    max-width:min(1600px, 95vw);
    width:100%;
    margin:0 auto;
    display:flex;
    justify-content:center;
    gap:clamp(40px, 4vw, 80px);  /* 适中：避免栏目少太空旷，栏目多太拥挤 */
    align-items:flex-start;
    padding:0 clamp(10px, 2vw, 20px);
}
.dropdown-left{
    width:clamp(200px, 22vw, 280px);
    flex-shrink:0;
}
.dropdown-left-title{
    font-size:clamp(16px, 1.5vw, 18px);
    font-weight:600;
    margin-bottom:12px;
    padding-bottom:8px;
    color:#333;
}
.dropdown-left img{
    width:100%;
    height:clamp(160px, 20vh, 200px);
    object-fit:cover;
    border-radius:4px;
}
.dropdown-right{
    display:flex;
    gap:clamp(20px, 2vw, 40px);  /* 减小：给栏目组留出更多横向空间 */
    flex-wrap:nowrap;            /* 恢复：栏目再多也不换行 */
    justify-content:flex-start;  /* 内容从左排列，溢出时向右扩展，不会覆盖左侧图片 */
}
.level2-group{
    min-width:clamp(60px, 6vw, 100px);  /* 减小：栏目多时允许适度压缩 */
}
.level2-item{
    margin-bottom:6px;
    font-size:clamp(16px, 1.6vw, 18px);
    color:#000;
    font-weight:600;
}
.level2-item a{
    color:#000;
    transition:color .2s;
}
.level2-item a:hover{
    color:#00a79d;
}
.level2-intro{
    font-size:13px;
    color:#999;
    line-height:1.5;
    margin-bottom:12px;
    padding-bottom:12px;
    white-space:nowrap;
    border-bottom:1px solid #e8e8e8;
}
.level3-group{
    display:flex;
    flex-direction:column;
    gap:16px;
    padding-top:8px;
    max-height:320px;
    overflow-y:auto;
    padding-right:8px;
}
.level3-item{
    font-size:clamp(14px, 1.1vw, 16px);
    color:#666;
}
.level3-item a{
    color:#666;
    transition:color .2s;
}
.level3-item a:hover{
    color:#00a79d;
}
.product-list-group{
    display:flex;
    flex-direction:column;
    gap:16px;
    padding-top:8px;
    max-height:320px;
    overflow-y:auto;
    padding-right:8px;
}
.product-list-item{
    font-size:clamp(13px, 1.1vw, 15px);
    color:#666;
    line-height:1.5;
}
.product-list-item a{
    color:#666;
    transition:color .2s;
}
.product-list-item a:hover{
    color:#00a79d;
}

/* 自定义滚动条 */
.level3-group::-webkit-scrollbar,
.product-list-group::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
.level3-group::-webkit-scrollbar-track,
.product-list-group::-webkit-scrollbar-track {
    background: transparent;
}
.level3-group::-webkit-scrollbar-thumb,
.product-list-group::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 2px;
}
.level3-group:hover::-webkit-scrollbar-thumb,
.product-list-group:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 167, 157, 0.3);
}
.level3-group::-webkit-scrollbar-thumb:hover,
.product-list-group::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 167, 157, 0.6);
}
.level3-group,
.product-list-group {
    scrollbar-width: none;
}
.level3-group:hover,
.product-list-group:hover {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 167, 157, 0.3) transparent;
}

/* 语言切换按钮 - 自适应 */
.lang-switch{
    position:absolute;
    right:0;
    top:0;
    width:clamp(80px, 8vw, 100px);
    height:100%;
    background:#00a79d;
    cursor:pointer;
    z-index:10000;
    display:flex !important;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    transition:background .3s;
}
.lang-switch:hover{
    background:#00a79d;
}
.lang-switch .globe-icon{
    width:clamp(22px, 2.5vw, 28px);
    height:clamp(22px, 2.5vw, 28px);
    fill:#fff;
}
.lang-switch .lang-text{
    color:#fff;
    font-size:clamp(10px, 0.9vw, 12px);
    letter-spacing:1px;
    font-weight:500;
}
.lang-dropdown{
    position:absolute;
    top:100%;
    right:0;
    width:100%;
    background:#fff;
    box-shadow:0 4px 12px rgba(0,0,0,.15);
    opacity:0;
    visibility:hidden;
    transition:all .3s ease;
    z-index:10001;
    overflow:hidden;
}
.lang-switch:hover .lang-dropdown{
    opacity:1;
    visibility:visible;
}
.lang-dropdown-item{
    display:block;
    padding:12px 0;
    text-align:center;
    font-size:clamp(12px, 1.1vw, 14px);
    color:#333;
    border-bottom:1px solid #f0f0f0;
    transition:all .2s;
    cursor:pointer;
}
.lang-dropdown-item:last-child{
    border-bottom:none;
}
.lang-dropdown-item:hover{
    background:#00a79d;
    color:#fff;
}
.lang-dropdown-item.active{
    background:#00a79d;
    color:#fff;
}

/* ==================== 轮播样式 - 自适应（视差滚动：fixed定位） ==================== */
.yl-banner{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    background:#888;
    overflow:hidden;
    z-index:2;
}
/* 轮播图文字 - 从右往左滑入 */
.slide-text-wrap{
    position:absolute;
    top:50%;
    left:8vw;
    transform:translateY(-50%);
    z-index:5;
    max-width:600px;
    pointer-events:none;
}
.slide-text{
    font-weight:600;
    color:#ffffff !important;          /* 强制白色 */
    text-shadow:0 2px 12px rgba(0,0,0,0.9);  /* 加深阴影，白字更清晰 */
    line-height:1.4;
    opacity:0;
    transform:translateX(120px);
    transition:all 1s cubic-bezier(0.22, 1, 0.36, 1);
    letter-spacing:2px;
    white-space: normal;
}

/* 给每一行也加上白色，防止继承被覆盖 */
.slide-line-1,
.slide-line-2,
.slide-line-3{
    color:#ffffff;
}
.slide-line{
    margin-bottom:8px;
}
.slide-line-1{
    font-size:clamp(28px, 4.5vw, 56px);
    font-weight:800;
    letter-spacing:3px;
}
.slide-line-2{
    font-size:clamp(20px, 3vw, 40px);
    font-weight:600;
    opacity:0.95;
}
.slide-line-3{
    font-size:clamp(14px, 1.8vw, 22px);
    font-weight:400;
    opacity:0.85;
    letter-spacing:1px;
}
.slide.active .slide-text{
    opacity:1;
    transform:translateX(0);
}
/* 文字下方装饰线 */
.slide{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;


    opacity:0;
    visibility:hidden;
    transition:opacity 1s ease-in-out;
    z-index:1;
}
.slide.active{
    opacity:1;
    visibility:visible;
    z-index:2;
}
.slide img,.slide video{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* 轮播底部小圆点 - 自适应 */
.banner-dots{
    position:absolute;
    bottom:clamp(20px, 4vh, 40px);
    left:50%;
    transform:translateX(-50%);
    z-index:10;
    display:flex;
    gap:clamp(8px, 1.2vw, 12px);
    align-items:center;
}

.banner-dot{
    width:clamp(10px, 1.2vw, 12px);
    height:clamp(10px, 1.2vw, 12px);
    border-radius:50%;
    background:rgba(255,255,255,.4);
    border:2px solid transparent;
    cursor:pointer;
    transition:all .3s ease;
}
.banner-dot:hover{

    background:rgba(255,255,255,.7);
}
.banner-dot.active{
    background:#00a79d;
    border-color:#fff;
    transform:scale(1.2);
}

/* 左右箭头 - 自适应 */
.banner-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:10;
    width:clamp(40px, 4vw, 50px);
    height:clamp(40px, 4vw, 50px);
    background:rgba(255,255,255,.2);
    border:1px solid rgba(255,255,255,.3);
    border-radius:50%;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:clamp(16px, 1.8vw, 20px);
    transition:all .3s;
}
.banner-arrow:hover{
    background:#00a79d;
    border-color:#00a79d;
}
.banner-arrow.prev{
    left:clamp(15px, 3vw, 30px);
}
.banner-arrow.next{
    right:clamp(15px, 3vw, 30px);
}

/* 滚动提示 - 底部中央 */
.scroll-hint{
	z-index: 100;
    pointer-events: auto;
    position:absolute;
    bottom:clamp(60px, 8vh, 90px);
    left:50%;
    transform:translateX(-50%);
    z-index:10;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    cursor:pointer;
    animation:scrollHintFloat 2s ease-in-out infinite;
}
.scroll-hint-text{
    font-size:clamp(18px, 1.2vw, 14px);
    color:#fff;
    letter-spacing:2px;
    text-shadow:0 1px 4px rgba(0,0,0,0.5);
    white-space:nowrap;
}
.scroll-hint-icon{
    width:clamp(20px, 2vw, 26px);
    height:clamp(32px, 3.5vw, 40px);
}
.scroll-hint-icon svg{
    width:100%;
    height:100%;
    display:block;
}
.scroll-hint-icon .wheel{
    animation:scrollWheel 1.5s ease-in-out infinite;
    transform-origin:center;
}
@keyframes scrollHintFloat{
    0%,100%{transform:translateX(-50%) translateY(0)}
    50%{transform:translateX(-50%) translateY(8px)}
}
@keyframes scrollWheel{
    0%{transform:translateY(0); opacity:1}
    80%{transform:translateY(6px); opacity:0.3}
    100%{transform:translateY(0); opacity:1}
}

/* ==================== 移动端响应式 ==================== */
@media(max-width:1024px){
    .nav-wrapper{
        padding-right:clamp(80px, 10vw, 100px);
    }
    .dropdown-inner{
        flex-direction:column;
        align-items:center;
    }
    .dropdown-left{
        width:100%;
        max-width:300px;
        margin-bottom:20px;
    }
    .dropdown-right{
        width:100%;
        justify-content:center;
        flex-wrap:wrap;
    }
}

@media(max-width:768px){
    .yl-header{height:60px}
    .header-inner{padding:0 15px}
    .logo{height:35px;width:140px;position:absolute;left:50%;transform:translateX(-50%)}
    .nav-wrapper{display:none}
    .lang-switch{display:none !important}
    .dropdown-level2{top:60px}
    .mobile-menu-btn{display:flex;left:15px;right:auto}
    .mobile-right-icons{display:flex !important}
    .yl-banner{height:50vh}
    .yl-banner-spacer{height:50vh}
    .scroll-hint{bottom:50px}
    .banner-arrow{width:40px;height:40px;font-size:16px}
    .banner-arrow.prev{left:15px}
    .banner-arrow.next{right:15px}
    .banner-dots{bottom:20px;gap:8px}
    .banner-dot{width:10px;height:10px}
    /* 轮播图文字响应式适配 */
    .slide-text-wrap{left:5vw;max-width:90vw}
    .slide-line-1{font-size:clamp(18px, 5vw, 28px);letter-spacing:1px}
    .slide-line-2{font-size:clamp(14px, 3.5vw, 20px)}
    .slide-line-3{font-size:clamp(12px, 2.5vw, 14px);letter-spacing:0.5px}
    .slide-text{transform:translateX(60px)}
    .slide.active .slide-text{transform:translateX(0)}
}

/* ========== 移动端右侧图标组 ========== */
.mobile-right-icons{
    display:none;
    position:absolute;
    right:15px;
    top:50%;
    transform:translateY(-50%);
    align-items:center;
    gap:18px;
    z-index:10002;
}
.mobile-right-icons svg{
    width:22px;
    height:22px;
    fill:#fff;
    cursor:pointer;
}
.yl-header.scrolled .mobile-right-icons svg{fill:#00a79d}
/* 移动端语言下拉 */
.mobile-lang-dropdown{
    display:none;
    position:absolute;
    top:100%;
    right:0;
    width:120px;
    background:#fff;
    box-shadow:0 4px 12px rgba(0,0,0,.15);
    z-index:10003;
    border-radius:4px;
    overflow:hidden;
    margin-top:8px;
}
.mobile-lang-dropdown.active{display:block}
.mobile-lang-item{
    display:block;
    padding:12px 0;
    text-align:center;
    font-size:14px;
    color:#333;
    border-bottom:1px solid #f0f0f0;
    transition:all .2s;
    cursor:pointer;
}
.mobile-lang-item:last-child{border-bottom:none}
.mobile-lang-item:hover,.mobile-lang-item.active{background:#00a79d;color:#fff}

/* ========== 移动端全屏菜单 ========== */
.mobile-nav-panel{
    display:none;
    position:fixed;
    top:60px;
    left:0;
    width:100%;
    height:calc(100% - 60px);
    background:#fff;
    z-index:9990;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
}
.mobile-nav-panel.active{display:block}
.mobile-nav-close{
    position:absolute;
    top:-50px;
    left:15px;
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    color:#333;
    cursor:pointer;
    z-index:9991;
}
.mobile-nav-list{padding:0}
.mobile-nav-item{border-bottom:1px solid #f0f0f0}
.mobile-nav-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 20px;
    font-size:16px;
    color:#333;
    background:#fff;
}
.mobile-nav-arrow{
    width:20px;
    height:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:transform .3s;
    font-size:16px;
    color:#999;
}
.mobile-nav-arrow.open{transform:rotate(90deg)}
.mobile-nav-sub{
    display:none;
    background:#f8f8f8;
    padding:0;
}
.mobile-nav-sub.active{display:block}
.mobile-nav-sub a{
    display:block;
    padding:12px 20px 12px 36px;
    font-size:14px;
    color:#666;
   
}
.mobile-nav-sub a:last-child{border-bottom:none}

/* 三级栏目导航 */
.mobile-sub-item{border-bottom:none}
.mobile-sub-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 20px 12px 36px;
    background:#f8f8f8;
    border-bottom:1px solid #eee;
}
.mobile-sub-item:last-child .mobile-sub-header{border-bottom:none}
.mobile-sub-link{
    display:block;
    font-size:14px;
    color:#666;
    flex:1;
    text-decoration:none;
    border-bottom:none;
    padding:0;
}
.mobile-nav-level3{
    background:#f0f0f0;
    display:none;
}
.mobile-nav-level3.active{display:block}
.mobile-nav-level3 a{
    padding:10px 20px 10px 52px;
    font-size:13px;
    color:#888;
    border-bottom:1px solid #e5e5e5;
}
.mobile-nav-level3 a:last-child{border-bottom:none}

/* 汉堡菜单按钮（移动端显示） */
.mobile-menu-btn{
    display:none;
    position:absolute;
    left:15px;
    top:50%;
    transform:translateY(-50%);
    width:24px;
    height:18px;
    cursor:pointer;
    z-index:10002;
    flex-direction:column;
    justify-content:space-between;
}
.mobile-menu-btn span{
    display:block;
    width:100%;
    height:1px;
    background:#fff;
    transition:all .3s;
}
.yl-header.scrolled .mobile-menu-btn span{background:#333}
.mobile-menu-btn span:nth-child(2){width:70%;margin-right:auto}

@media(max-width:768px){
    .mobile-menu-btn{
        display:flex;
    }
}