
* {
    padding: 0;
    margin: 0;
}

header {
    background-color: black; 
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

h1 {
    color: rgb(228, 228, 219);
    position: absolute;
    left: 120px;
    top: 0;
    line-height: 80px;
    background-image: url(images/logo图);
    background-repeat: no-repeat;
    background-position: center;
    width: 210px;
}

header ul {
    position: absolute;
    right: 5vw;
    top: 0;
    line-height: 80px;
}

header li {
    display: inline;
    margin-right: 4vw;
    position: relative;
}

header a {
    color: rgb(221, 227, 232);
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

header a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* 二级菜单样式 */
#dis {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.95);
    border: 1px solid #333;
    border-top: none;
    min-width: 200px;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

#dis > li {
    display: block;
    margin: 0;
    position: relative;
    border-bottom: 1px solid #333;
}

#dis > li:last-child {
    border-bottom: none;
}

#dis > li > a {
    display: block;
    padding: 12px 20px;
    color: rgb(221, 227, 232);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

#dis > li > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-left: 3px solid #007bff;
    text-decoration: none;
    padding-left: 25px;
}

/* 三级菜单样式 - 关键部分 */
.third-level {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    border: 1px solid #333;
    min-width: 180px;
    padding: 10px 0;
    margin-left: 0;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.third-level li {
    display: block;
    margin: 0;
    border-bottom: 1px solid #333;
}

.third-level li:last-child {
    border-bottom: none;
}

.third-level li a {
    display: block;
    padding: 10px 20px;
    color: rgb(200, 200, 200);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    white-space: nowrap;
}

.third-level li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-left: 2px solid #28a745;
    padding-left: 25px;
    text-decoration: none;
}

/* 菜单箭头指示 */
#dis > li > a::after {
    content: "›";
    float: right;
    margin-left: 10px;
    color: #666;
    font-weight: bold;
}

/* 关键：纯CSS悬停效果 */
header li:hover #dis {
    display: block;
}

#dis li:hover .third-level {
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .third-level {
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid #333;
        margin-left: 20px;
        background-color: rgba(0, 0, 0, 0.8);
    }
}
/* 语言切换器样式 - 新增 */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
}

.lang-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background-color: #4a6ee0;
    color: white;
}

.lang-btn:hover:not(.active) {
    background-color: #f0f0f0;
}

/* 语言内容样式 - 新增 */
.lang-zh, .lang-en {
    transition: opacity 0.3s ease;
}

.lang-en {
    display: none;
    opacity: 0;
}
        
.news{
    background-color: rgb(100, 43, 234);
    color: rgb(248, 249, 249);
    height: 95vh;
    background-image: url("images/总.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}
.news h2{
    font-size: 60px;
    margin-top: 60px;
}
.news p{
    color: rgb(231, 234, 225);
    font-size: 18xp;
    margin: 25px 0;
    
}
.news a{
    color: aliceblue;
    text-decoration: none;
    border: 1px solid #0d1210;
    padding: 10px 20px;
    border-radius: 5px;
}
.slogan
{ background-color:antiquewhite;
     color: rgb(48, 47, 55);
 height: 250px;
 display: flex;
justify-content:center ;
 align-items: center;
 font-size: 20px;
line-height: 1.8em; }
footer{
    background-color: rgb(16, 16, 18);
    color: aliceblue;
    height: 60px;
    display: flex;
    justify-content:center ;
    align-items: center;
    font-size: 14px;
    
}
.shop{
    display: flex;
}
.shop img{
    width: 50%;
}
.info{
    width: 50%;
    background-color: aliceblue;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.info h2{
    font-size: 40px;
    margin-bottom: 30px;
}
.info p {
    text-align: center;
    line-height: 2em;
}
.product{
    display: flex;
    background-color: antiquewhite;
    justify-content: center;
    padding: 100px 180px 80px;   
    gap: 50px;
}
.product div{
    width: 300px;
    text-align: left;
}
.product img{
    width: 100%;
    border-radius: 10px;
}
.product h3{
    font-size: 20px;
    margin: 20px 0;
    text-align: center;
}
.menu{
    display: none;
}
.newsletter{
    background-color: antiquewhite;
    color: rgb(229, 239, 239);
    height: 95vh;
    background-image: url("images/总.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.newsletter input ,.newsletter button{
    padding: 8px;
    border-radius: 5px;
}

/* 网页大小设计 */
@media screen and (max-width:768px) {
    header ul{
        display: none;
    }
    header h1{
        left: 50%;
       transform: translateX(-50%);

    }
    .news h2{
        font-size: 40px;
    }
    .menu{
        display: block;
        background-color: transparent;
        color: rgb(240, 243, 245);
        font-size: 35px;
        position: absolute;
        top: 15px;
        left: 20px;
        border: none ;
        cursor: pointer;

    }
    .shop{
        flex-direction: column;
    }
    .shop img{
        width: 100%;
        padding: 40px 0;
    }
    .info h2{
        font-size: 30px;

    }
    .product{
        flex-direction: column;
        padding: 60px 0;
    }
    .product div{
        margin-bottom: 30px;
    }
}