@font-face {
    font-family: 'Liberation Sans';
    src: url('/font/LiberationSans-Regular.ttf') format('truetype'),
         url('/font/LiberationSans-Bold.ttf') format('truetype');              
    font-weight: normal;
    font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
     
    font-family: 'Liberation Sans';
}
html{
    background-color: #e0e0e0;
}
/* 主容器 */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    height: auto;
    position: relative;
    background: white;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

/* 导航栏 */
.main-nav {
    background: white;
    padding: 20px 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.233);
}
/* 一级整体 */
.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 20px;
}
/* 一级item */
.nav-item {
    padding: 0 25px;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}
/* 被激活后（单击） + 鼠标悬停在上面 下方红线效果*/
.nav-item.active::after,
.nav-item:hover::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: red;
}
/* ---------可delete 看情况---------------------- */
/* 设置一级导航栏字体加粗 及颜色处理*/
nav ul li div{
    font-weight:600;
    color: #454545;
}
/* --------------顶部五个一级icon优化------------------------- */
/* icon容器样式 给icon设置灰色背景色，此优化可以删除，看情况--------*/
.nav-logo {
    padding: 10px;
    display: inline-block;
    background: #f5f5f7;
    border-radius: 8px;
}
/* 考虑到采用彩色logo，为了避免准备黑白彩色两种logo图片，此处
采用filter对图片进行灰度过滤 */
/* 核心样式 */
.logo-img {
    width:  40px;
    height: 40px;
    transition: filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* 默认灰度效果 */
    filter: grayscale(100%);
    /* 增强灰度效果（可选） */
    mix-blend-mode: multiply;
    opacity: 0.8;
}
/* 当鼠标悬停在图标上面的时候取消灰度过滤，，， */
/* 悬停效果 */
/* 添加激活状态 */
.nav-item.active .logo-img,
.logo-img:hover {
    filter: none;
    opacity: 1;
}
/* 浏览器的兼容性优化 */
@supports (-webkit-filter: grayscale(100%)) {
    .logo-img {
        -webkit-filter: grayscale(100%);
    }
    .logo-img:hover {
        -webkit-filter: none;
    }
}




/* ------------------------------------------------------------------------- */
/* 子导航面板 一整个包括关闭按钮*/
.subnav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    /* background: #f5f5f7 !important;   */
    background: #f5f5f7 !important;  
    padding: 30px 20px; 
    
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 100;
    border-top: 2px solid #ddd;
  
}

/* 子导航内容，不包括关闭按钮 */
.subnav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* grid-template-columns: repeat(4, 1fr); */
    gap: 20px;
}

/* 其他子导航调整 */
#home.subnav-panel,
#threeW.subnav-panel,
#coatings.subnav-panel,
#sustainability.subnav-panel {
    padding: 20px 20px;/* 间距在这里*/
    min-width: fit-content;
    /* -------对这几个宽度重新设计，fit content 即可，不需要太宽--------- */
    width: max-content;
}
/* -----------以下对每个二级菜单的左侧边距进行优化---------------------------- */
#home.subnav-panel{
    left: 20% ;
    /* 不需要可delete，home暂时不加二级菜单 */
}
#threeW.subnav-panel{
    left: 30.5%;
    /* left: 34.5%; */
    padding-bottom:12px;
}
#coatings.subnav-panel{
    /* left: 56.5%; */
    /* left: 49.5%; */
    left: 38%;

    padding-bottom:12px;
}
#sustainability.subnav-panel {
    /* left: 68%; */
    left: 64.6%;
    padding-bottom:12px;
}
/* ------------------------------------- */
/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.subnav-group ul {
    list-style: none;
}
/* 主标题下的小标题 */
.subnav-group li {
    margin-bottom: 10px;
    color: #666;
    cursor: pointer;
}
/* 主标题下的小标题下的超链接 */
.subnav-group li a{
    text-decoration: none;
    /* color: #666; */
    color: #4d4c4c;
    /* font-size: 13px; */

    transition: all 1s ease-out;
}
.subnav-group li a:hover{
    text-decoration:underline;
    
}
/* 六个润滑油的主标题  h3润滑油特有*/
.subnav-group h3 {
    color: #333;
    margin-bottom: 15px;
}
/* 子导航组 设置右 边框线，最后一个子导航组除外
同服务于润滑油，只有润滑油是6column，其他都是单列，所以都不需要右边框线
*/
.subnav-group {
    border-right: 1px solid #ddd;
    padding-right: 20px;
    /* min-height: 200px; */
    /* -------------------------------------------------------------- */
}
/* --------自定义-----间距----------------- */
#threeW .subnav-group{
    padding-left: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#coatings .subnav-group{
    padding-left: 15px;
}
#sustainability .subnav-group{
    padding-left: 15px;
}
/* ------------------------------ */
.subnav-group:last-child {
    border-right: none;
}

/* 润滑剂专用样式六列布局 */
.lubricants-columns {
    display: grid;
    grid-template-columns: 1.5fr 1.6fr 1.5fr 1.5fr 1.6fr 1.3fr; 
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content {
    min-height: 500px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
/* 页脚样式 */
footer {
    background: #262626;
    color: #b3b3b6;
    padding: 30px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.footer-logo {
    width: 60px;
    height: 60px;
}
.footer-logo img{
    width: 60px;
    height: 60px;
    filter: invert(100%) brightness(200%);
}

@media (max-width: 1200px) {
    .lubricants-columns {
        grid-template-columns: repeat(3, 1fr) !important;
    }
 }
 
    .hero-text h1 {
        font-size: 4rem;
        margin-bottom: 20px;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }

    .content-section {
        max-width: 1200px;
        margin: 0 auto 80px;
        /* 上 左右 下 */
        padding: 0 20px;
    }

    .content-block {
        display: flex;
        align-items: center;
        gap: 40px;
        margin-bottom: 60px;
    }

    .content-block:nth-child(even) {
        flex-direction: row-reverse;
    }

    .content-image {
        flex: 1;
        height: 400px;
        background-size: cover;
        background-position: center;
        border-radius: 8px;
    }

    .content-text {
        flex: 1;
    }

    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    @media (max-width: 768px) {
        .brand-logo{
            display: none;
        }
        .hero-text h1 {
            font-size: 2.5rem;
        }
        
        .content-block {
            flex-direction: column;
        }
        
        .content-block:nth-child(even) {
            flex-direction: column;
        }
        
        .content-image {
            width: 100%;
            height: 300px;
        }
        
    }
.brand-logo {
    margin: 0 auto;
    display: inline-block;
    position: absolute;
    margin-left: 50px;
    width: 80px;
    background-color: #454545;
    height: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  
}
.company-logo {
    width: 65px;
    height: 80px;
    margin-left: 50px;
    transition: opacity 0.3s;
}
.company-logo:hover {
    opacity: 0.8;
}
@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.slide-up {
    animation: slideUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/*---------------------------------------  */
.content-section {
    gap: 60px;
    background-color: #f4f4f4;
}

.content-block {
    gap: 30px;
    background-color: #fff;
    padding: 20px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}
.content-image {
    width: 40%;
    height: 300px;
    background-position: center;
    background-size: cover;
    border-radius: 12px;
    position: relative;
    transition: transform 0.3s ease;
}
.content-image2{
    float: left;
    width: 40%;
    height: 300px;
    border-radius: 10%;
    margin-right: 20px;
}

.content-image:hover {
    transform: scale(1.05);
}

.content-text {
    padding: 20px;
}

.content-text h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.content-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

@media (max-width: 768px) {
    .content-block {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .content-image, .content-text {
        width: 100%;
    }
}
/* ------------------1-----------1---------------------------1-------------------------1----------------------- */
 /* 联系信息模块 */
 .footer-content {
    gap:0px;
}
.contact-container{
    width: 140px;

}
.contact-module {
    position: relative; 
    /* flex: 1;
    min-width: 250px;  */
    width: 140px;
    text-align: center;
}

.contact-toggle {
    width: 140px;
    display: inline-block;
    cursor: pointer;
    color: #b9b9b9;
    font-weight: 600;
    padding: 0.5rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
    text-decoration: none;
}

.contact-toggle:hover {
    background: rgba(0, 102, 204, 0.1);
    color: #0066cc;
}

.contact-details {
    display: none;
    position: absolute;
    bottom: 120%;
    left: 100%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 250px;
    z-index: 100;
}

.contact-item {
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.contact-item a {
    color: #444;
    margin-left: 0.5rem;
    text-decoration: none;
    transition: color 0.3s;
    text-align: left;
}

.contact-item a:hover {
    color: #004b96;
    text-decoration: underline;
}

.contact-toggle.active + .contact-details {
    display: block;
}




