.slider {
    width: 100%;
    height: auto;
    max-height: 80vh;
}

.slides {
    width: 500%;
    height: auto;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.toubu {
    text-align: center;
    font-size: 30px;
    font-family: '宋体';
}

@keyframes rainbow {
    to {
        background-position: 200% center;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.daohang {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
}

/* 移除重复的 body 样式，并设置外边距为 10 像素 */
body {
    margin: 20px;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.w1200 {
    width: 100%;
    max-width: 100%; /* 修正 max-width 语法错误并设置为 100% 以实现满屏 */
    margin: 0 auto;
    padding: 0 15px;
    background-color: aliceblue;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style-type: none;
    justify-content: center;
}

.nav-links li a {
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #34495e;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 0.375rem;
}

.dropdown-content a {
    color: white;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #2c3e50;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.menu-icon {
    display: none;
    cursor: pointer;
}

@media (max-width : 1306px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2c3e50;
        padding: 1rem;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-icon {
        display: block;
    }
}


.slider{
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slides{
    width: 500%;
    height: 500px;
    display: flex;
}

.slides input{
    display: none;
}

.slide{
    width: 20%;
    transition: 2s;
}

.slide img{
    width: 100%;
    height: 500px;
}

/*css for manual slide navigation*/

.navigation-manual{
    position: absolute;
    width: 100%;
    margin-top: -40px;
    display: flex;
    justify-content: center;
}

.manual-btn{
    border: 2px solid #40D3DC;
    padding: 5px;
    border-radius: 10px;
    cursor: pointer;
    transition: 1s;
}

.manual-btn:not(:last-child){
    margin-right: 40px;
}

.manual-btn:hover{
    background: #40D3DC;
}

#radio1:checked ~ .first{
    margin-left: 0;
}

#radio2:checked ~ .first{
    margin-left: -20%;
}

#radio3:checked ~ .first{
    margin-left: -40%;
}

#radio4:checked ~ .first{
    margin-left: -60%;
}

/* 更新自动导航样式 */
#radio4:checked ~ .navigation-auto .auto-btn4{
    background: #40D3DC;
}

/*css for automatic navigation*/

.navigation-auto{
    position: absolute;
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 460px;
}

.navigation-auto div{
    border: 2px solid #40D3DC;
    padding: 5px;
    border-radius: 10px;
    transition: 1s;
}

.navigation-auto div:not(:last-child){
    margin-right: 40px;
}

#radio1:checked ~ .navigation-auto .auto-btn1{
    background: #40D3DC;
}

#radio2:checked ~ .navigation-auto .auto-btn2{
    background: #40D3DC;
}

#radio3:checked ~ .navigation-auto .auto-btn3{
    background: #40D3DC;
}

/* 隐藏手动导航按钮 */
.navigation-manual {
    display: none;
}

/* 隐藏自动导航按钮 */
.navigation-auto {
    display: none;
}


/* 让登录和注册部分靠右 */
.nav-links .login-register {
    margin-left: auto;
}

/* 给登录和注册链接添加一些间距 */
.nav-links .login-register a {
    margin-left: 15px;
}

/* 鼠标悬停效果 */
.nav-links .login-register a:hover {
    color: #ff0000; /* 可以根据需要修改颜色 */
}


.ad-video-container {
    display: flex;
    margin-top: 20px;
}

.ad-text {
    flex: 1;
    padding: 20px;
}

.video-container {
    flex: 1;
    padding: 20px;
}
.new-slides {
    width: 300%; /* 因为有 3 张图片 */
    height: 100%;
    display: flex;
}

.new-slide {
    width: 33.33%;
    transition: 2s;
}

.new-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例并覆盖容器 */
}

/* 新添加的手动导航样式 */
.new-navigation-manual {
    position: absolute;
    width: 100%;
    margin-top: -40px;
    display: flex;
    justify-content: center;
}

.new-manual-btn {
    border: 2px solid #40D3DC;
    padding: 5px;
    border-radius: 10px;
    cursor: pointer;
    transition: 1s;
}

.new-manual-btn:not(:last-child) {
    margin-right: 40px;
}

.new-manual-btn:hover {
    background: #40D3DC;
}

#new-radio1:checked ~ .first {
    margin-left: 0;
}

#new-radio2:checked ~ .first {
    margin-left: -33.33%;
}

#new-radio3:checked ~ .first {
    margin-left: -66.66%;
}

/* 新添加的自动导航样式 */
.new-navigation-auto {
    position: absolute;
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: calc(300px - 40px); /* 根据轮播图高度调整 */
}

.new-navigation-auto div {
    border: 2px solid #40D3DC;
    padding: 5px;
    border-radius: 10px;
    transition: 1s;
}

.new-navigation-auto div:not(:last-child) {
    margin-right: 40px;
}

#new-radio1:checked ~ .new-navigation-auto .new-auto-btn1 {
    background: #40D3DC;
}

#new-radio2:checked ~ .new-navigation-auto .new-auto-btn2 {
    background: #40D3DC;
}

#new-radio3:checked ~ .new-navigation-auto .new-auto-btn3 {
    background: #40D3DC;
}

.new-p a {
    text-decoration: none;
}

.new-p a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        padding: 10px;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
    }
    
    .new-box {
        flex-direction: column;
        padding: 10px;
    }
    
    .new-slider,
    .new-p {
        width: 100%;
        height: auto;
    }
}
.new-box>wenzi {
    
}

.dibu {
    background-color: #e0e0e0b9;
}

.dibu .tu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    padding: 15px 0;
    margin-left: auto;
    width: fit-content;
}

.dibu img {
    width: 120px;
    height: auto;
    border-radius: 8px;
}

.dibu p {
    font-size: 18px;
    color: #000000;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.zu {
    margin-top: -100px;  /* 上移50像素 */
    padding: 10px 0 15px; /* 顶部10px 底部15px */
    transform: translateY(-20px); /* 垂直方向位移 */
}

.ic {
        text-align: center;
        background-color: #4d4d4da0;
}

.ic a {
    text-decoration: none;
    color: #000000;
    transition: color 0.3s ease;
}

.ic a:hover {
    text-decoration: none !important;
}


#full-screen-element {
    margin: 10px;
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    box-sizing: border-box;
}

.tp {
    height: auto;
    width: 100%;
}

.gy {
	text-align: center;
	font-size: 20px;
}
