a{
    text-decoration: none;
    /*color: white;*/
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    padding: 10px 20px;
    width: 100%;
    height: 8vh;
    position: relative;
}

.logo-text-container {
    display: flex;
    align-items: center;
    margin-left: 2%;
}

.logo {
    width: 120px; /* 可以调整大小 */
    height: auto;
}

.menu ul {
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1; /* 确保菜单在中间居中 */
    justify-content: center; /* 居中对齐菜单项 */
}


.menu li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
}
.right-section {
    display: flex;
    align-items: center;
    gap: 20px; /* 调整搜索框与登录按钮之间的间距 */
    position: relative; /* 为子元素提供相对定位的上下文 */
    margin-right: 2%;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px;
    border: 1px solid #ccc;
    display: none;
    position: absolute; /* 绝对定位使搜索框脱离文档流 */
    right: 100%; /* 将搜索框放置在按钮的左侧 */
    top: 50%; /* 垂直居中 */
    transform: translateY(-50%); /* 完成垂直居中 */
    margin-top: 0; /* 移除顶部边距 */
    z-index: 1000; /* 确保搜索框在其他元素之上 */
    min-width: 200px; /* 设置最小宽度以确保输入框有足够的空间 */
}

.search-button {
    color: white;
    border: none;
    cursor: pointer;
    background: transparent; /* 透明背景 */
    margin-left: 1%;
     width: 25px;
    height: 25px;

}
.search-button img{
    width: 25px; /* 可以调整大小 */
    height: auto;
}
.contact-buttonn{
    /*border: 1px solid red;*/
    width: 210px;
    display: flex;
    justify-content: space-around;

}
.contact-buttonn .btnn {
    color: white;
    border-radius: 15px;
    padding: 5px 20px;
    text-decoration: none;
    cursor: pointer;
    border: 3px solid white;
}
.contact-buttonn .aa:hover {
    color: #1d4ed8 !important;
}
.logoo{
    width: 50px; /* 可以调整大小 */
    height: 40px;
    border-radius: 10px;
}
/* ========== 下拉菜单容器 ========== */
.dropdown {
    position: relative;
    display: inline-block;
}

/* ========== 主按钮样式 ========== */
.dropdown .dropbtn {
    text-decoration: none;
    color: white;
    font-size: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

/* ========== 箭头样式（向下三角形） ========== */
.arrow-down {
    margin-left: 5px;
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white; /* 默认白色箭头 */
    transition: transform 0.3s ease, border-top-color 0.3s ease; /* 平滑过渡 */
}

/* ========== 悬停时：箭头旋转 + 颜色变化 ========== */
.dropdown:hover .arrow-down {
    transform: rotate(180deg); /* 旋转180度，箭头朝上 */

}


/* ========== 下拉内容容器（默认隐藏） ========== */
.dropdown-content {
    display: none;
    position: absolute;
    top: 110%; /* 紧贴在按钮下方 */
    left: 0;
    background-color: #ffffff;
    min-width: 150px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 8px 0;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

/* ========== 悬停时显示下拉内容 ========== */
.dropdown:hover .dropdown-content {
    display: block;
}

/* ========== 下拉菜单项 ========== */
.dropdown-content a {
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 16px;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

/* ========== 菜单项悬停效果 ========== */
.dropdown-content a:hover {
    background-color: #f0f7ff;
    color: #1d4ed8;
}

/* ========== 可选：添加展开动画 ========== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0);
}