*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins',sans-serif;
    text-decoration: none;
    list-style: none;
    }
    
    .navbar{
        height:80px;
        width:100%;
       
        background:rgb(105, 14, 105);
        backdrop-filter: blur(10px);
        display:flex;
        justify-content: space-around;
        align-items:center;

            position: relative;
        z-index: 1000;   /* 保证导航和下拉菜单在最顶层 */
    }
    
    
    .navbar a{
        font-size: 18px;
        color:white;
    
        font-weight: 500;
        margin: 0 20px;
        border-bottom:3px solid transparent;
        transition:0.3s ease;
    
    }
    .navbar a:hover,
    .navbar a.active{
        color:orangered;
        border-bottom:3px solid orangered
    }
    
    
    
    label.logo{
        color:white;
        font-size: 35px;
        line-height: 180px;
        padding:0 100px;
        font-weight: bold;
    }
    
    label.logo:hover{
        color:orangered;
        text-shadow:0 0 25px orangered,
                    0 0 50px orangered; 
                    transform:scale(1.1);
    }
    span{
        color:orangered;
    }
    
    
    
    .navbar ul{
        float:right;
        margin-right: 20px;
    }
    .navbar ul li{
        display:inline-block;
        line-height: 80px;
        margin:0 5px;
    }
    .navbar ul li a{
        color:white;
        font-size: 17px;
        padding:7px 13px;
        border-radius:3px;
        text-transform:uppercase
    }
    

/* 关键：让下拉菜单相对于 RESEARCH 定位 */
.navbar ul li {
    position: relative;
}

/* 下拉菜单容器（默认隐藏） */
.navbar ul li ul {
    display: none;
    position: absolute;
    top: 80px;          /* 与 navbar 高度一致 */
    left: 0;
    background: rgb(105, 14, 105);
    min-width: 140px;
    padding: 0;
    margin: 0;
    float: none;        /* 防止继承 float */
    z-index: 999;
}

/* 下拉菜单每一项 */
.navbar ul li ul li {
    display: block;
    line-height: 45px;
    margin: 0;
}



/* 悬停 RESEARCH 显示下拉菜单 */
.navbar ul li:hover > ul {
    display: block;
}

/* 下拉菜单 hover 效果（可选） */
.navbar ul li ul li a:hover {
    background: #444;
}


/* 下拉菜单链接：单行 + 省略号 */
.navbar ul li ul li a {
    display: block;
    max-width: 300px;          /* 可按需要调整 */
    white-space: nowrap;       /* 不换行 */
    overflow: hidden;          /* 隐藏超出部分 */
    text-overflow: ellipsis;   /* 显示省略号 */
}












    
    .checkbtn{
        font-size: 30px;
        color:white;
        float:right;
        line-height: 80px;
        margin-right: 40px;
        cursor:pointer;
        display:none;
    }
    #check{
        display:none;
    }
    @media (max-width: 952px){
        label.logo{
            font-size: 20px;
            padding: left 50px;
        }
        .navbar ul li a{
            font: size 16px;
        }
    }
    @media (max-width:1058px){
        .checkbtn{
            display: block;
        }
        label.logo{
            font-size: 22px;
        }
        ul{
            position: fixed;
            width:100%;
            height: 100vh;
            background: rgb(105, 14, 105);
            top:80px;
            left:-100%;
            text-align: center;
            transition: all .5s;
    
        }
        .navbar ul li{
            display:block;
            margin:50px 0;
            line-height: 30px;;
        }
        .navbar ul li a{
            font-size:20px;
        }
        a:hover,a.active{
            background:none;
            color:#0082e6;
        }
        #check:checked ~ ul{
            left:0;
        }
    
    }
    
    
    
    
    
    
    .contact{
        padding: 10px 28px;
        background-color:white;
        color:black;
        border:2px solid transparent;
        border-radius:8px;
        font-size: 16px;
        letter-spacing: 1px;
    }
    .contact:hover{
        background-color:orangered;
        box-shadow: 0 0 25px orangered;
        color:white;
    }
    .home{
        width:100%;
        min-height:100vh;
        background:rgb(241,241,241);
        display: flex;
        align-items:center;
        gap:7em;
        padding:30px 12% 0;


    }
    .home-content{
  
            max-width: 800px;   /* ← 修正语法 */
     /*flex-shrink: 0;     ← 防止被压缩 */
    }
    .home-content h3{
        font-size:42px;
    }
    .home-content h1{
        font-size:62ps;
        line-height:1.2;
    }
    .home-content p{
        font-size:18px;
        margin:25px 0 30px;
    }
    .btn-box{
        width:345px;
        display:flex;
        gap:2em;
    }
    .btn-1{
        padding: 15px 28px;
        background-color: black;
        color: white;
        border: 2px solid transparent;
        border-radius: 8px;
        font-size:18px;
        letter-spacing: 1px;
        font-weight: 600;
        transition: 0.3s ease;
        cursor:pointer;
    }
    .btn-1:hover{
        background-color: white;
        color:black;
        border:2px solid black;
    }
    .btn-2{
        padding:15px 28px;
        background-color: orangered;
        color:white;
        border: 2px solid black;
        border-radius: 8px;
        font-size:18px;
        letter-spacing:1px;
        font-weight:600;
        transition:0.3s ease;
        cursor:pointer;
    }
    .btn-2:hover{
        background-color: white;
        color:orangered;
    }
    /* 【新增】 */
.img-box{
    position: relative;
    width: 620px;
    height: auto;
    overflow: hidden;
  flex-shrink: 0;  /*    ⭐关键：禁止 flex 压缩 */
    position: relative;
}

    .img-box img{

    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    object-fit: cover;   /* 关键 */
}


    

/* 【新增】 */
.slider img{
    width: 550px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* 当前显示图片 */
.slider img.active{
    opacity: 1;
    position: relative;
}

/* 【新增】 */
.img-box .nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    color: white;
    background: rgba(0,0,0,0.4);
    padding: 6px 12px;
    cursor: pointer;
    user-select: none;
    position: relative;
}



/* ===== 新增：左右切换按钮 ===== */
.img-box .prev{
    left: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    font-size: 28px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s ease;
}


.img-box .next{
    right: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    font-size: 28px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s ease;
}
.img-box .prev:hover,
.img-box .next:hover{
    background: rgba(255,69,0,0.8);
}


.img-box img.active{
    opacity: 1;
    position: relative;
}




    
    ::-webkit-scrollbar{
        width:15px;
    }
    ::-webkit-scrollbar-thumb{
        background-color: orangered;
    }
    ::-webkit-scrollbar-track{
        background-color:rgba(0,0,0,0.6);
        width:50px;
    }
    
    .about{
        display:flex;
        justify-content: center;
        align-items:center;
        padding:12% 8%;
        gap:10em;
        background:black;
    }
    .about-img img{
        position:relative;
        width:300px;
        border-radius:50%;
    }
    .about-content h2{
        text-align:left;
        color:white;
        font-size:42px;
    }
    .about-content h3{
        font-size:62px;
        color:white;
    }
    .about-content p{
        color:white;
        font-size:20px;
        margin:2em 0 3em;
    }
    
    .contact-form h2{
        text-align: center;
        margin-top: 3em;
        margin-bottom: 1em;
    
    }
    .contact-form form{
        max-width: 50em;
        margin: 1rem auto;
        text-align: center;
        margin-bottom: 3em;
    }
    .contact-form form .input-box{
        display: flex;
        justify-content: cneter;
        flex-wrap: wrap;
    }
    .contact-form form .input-box input,
    .contact-form form textarea{
        width:100%;
        padding: 1.5em;
        font-size: 18px;
        color:black;
        background: rgb(241,241,241);
        border-radius: .8rem;
        margin:1rem 0;
        resize:none;
    }
    
    .footer{
        position:relative;
        bottom:0;
        width:100%;
        padding:40px 0;
        background-color: black;
    }
    .footer .social{
        text-align:center;
        padding-bottom: 25px;
        color:white;
    }
    footer .social a{
        font-size:24px;
        color: white;
        border: 2px solid orangered;
        width:40px;
        height:40px;
        line-height: 38px;
        display: inline-block;
        text-align: center;
        border-radius: 50%;
        margin: 0 8px;
        box-shadow: inset 0 0 10px orangered, 0 0 10px orangered;
        transition: 0.3s ease;
    }
.footer ul{
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;

    display: flex;              /* ⭐关键 */
    justify-content: center;    /* 水平居中 */
    flex-wrap: nowrap;          /* 不换行 */
    list-style: none;           /* 去掉小圆点 */
}
.footer ul li{
    margin: 0 15px;             /* 每个菜单之间的距离 */
}




.footer ul li a{
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
    white-space: nowrap;        /* ⭐防止文字内部换行 */
}



    .footer ul li a:hover{
        display: inline-block;
        padding: 0 15px;
    }
    .footer .copyright{
        margin-top: 15px;
        text-align: center;
        font-size: 12px;
        color: white;
    }
    