* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

header {
    background-color: #E8F1FF;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Logo styles */
.logo-icon {
    width: 200px;
    /* height: 40px; */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.logo-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-text {
    margin-left: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #0163B6;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
}

.language-switch {
    margin-right: 20px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
}

.buttons {
    display: flex;
    gap: 10px;
}

.btn-register, .btn-login {
    padding: 10px 25px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}
a:hover {
  text-decoration: underline; /* 显示下划线 */
  /* 可选：可以调整下划线的样式 */
  text-underline-offset: 2px; /* 下划线与文字的距离 */
  text-decoration-thickness: 2px; /* 下划线的粗细 */
}
.btn-register {
    background-color: #4078F6;
    color: white;
}

.btn-login {
    background-color: #4078F6;
    color: white;
}

/* 轮播图样式 */
.banner {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-container {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.carousel-slide:first-child {
    display: block;
}
.header-right{
    color: #fff;
    cursor: pointer;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.indicator.active {
    background-color: white;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .logo-icon {
        width: 150px;
    }
    
    .header-right {
        flex-direction: column;
    }
    
    .language-switch {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .btn-register, .btn-login {
        padding: 8px 20px;
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .logo-icon {
        width: 120px;
    }
    
    .buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-register, .btn-login {
        width: 100%;
    }
}

/* 导航栏样式 */
.nav {
    background-color: #164197;
    padding: 20px 0;
}
.nav .active{
    border-bottom: 3px solid #fff;
}
.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    list-style: none;
}

.nav-item a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 0px;
    /* border-radius: 4px; */
    transition: background-color 0.3s;
    /* wd */
    height: 100%;


}


/* 轮播图响应式调整 */
@media screen and (max-width: 768px) {
    .carousel-container {
        height: 300px;
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    .nav-item {
        margin: 5px 0;
    }
}

@media screen and (max-width: 480px) {
    .carousel-container {
        height: 200px;
    }

    
}

/* 轮播图响应式调整 */
@media screen and (max-width: 768px) {
    .carousel-container {
        height: 300px;
    }
}

/* 页脚样式 */
.footer {
    background-color: #164197;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: bold;
}

.footer-copyright {
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

/* 轮播图响应式调整 */
@media screen and (max-width: 480px) {
    .carousel-container {
        height: 200px;
    }

    .carousel-prev, .carousel-next {
        padding: 10px;
        font-size: 18px;
    }
}

/* 轮播图响应式调整 */
@media screen and (max-width: 768px) {
    .carousel-container {
        height: 300px;
    }
}

@media screen and (max-width: 480px) {
    .carousel-container {
        height: 200px;
    }

    .carousel-prev, .carousel-next {
        padding: 10px;
        font-size: 18px;
    }
}