/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

a {
    text-decoration: none; /* 移除下划线 */
    color: #fff; /* 设置文字颜色为白色 */
    display: block; /* 确保链接占据整个容器宽度 */
}

/* 容器样式 - 控制内容宽度并居中 */
.container {
    width: 1200px;
    margin: 0 auto;
}

/* 第一行：顶部栏样式 - 高度80px */
.top-bar {

    height: 80px;
    width: 100%;
    background: #0DACA7;
    border: 1px solid #0DACA7;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    color: white;
}

.top-left {
    display: flex;
    align-items: center;
}

.logo {
    width: 103px;
    height: 33px;
    /*background-color: red;*/
    margin-right: 10px;
}

.app-desc {
    font-size: 16px;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 搜索框和按钮组合 */
.search-container {
    position: relative;
    width: 350px;
}

.search-input {
    width: 100%;
    padding: 10px 80px 10px 18px;
    border: none;
    border-radius: 25px;
    outline: none;
    font-size: 15px;
}

.search-btn {
    position: absolute;
    margin-right: 6px;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #0DACA7;
    color: white;
    border: none;
    padding: 6px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #00897b;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background-color: #eee;
    border-radius: 50%;
}

.user-avatar img {
    width: 27px;
    height: 27px;
    margin-top: 4px;
    margin-left: 4px;
}

/* 语言选择器样式 - 固定宽度并优化下拉样式 */
.language-selector {
    position: relative;
    display: inline-block;
}

/* 固定宽度，确保能显示4个汉字 */
.language-select-wrapper {
    display: flex;
    align-items: center;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 6px 30px 6px 12px;
    border-radius: 4px;
    gap: 8px;
    width: 136px; /* 固定宽度，足够显示4个汉字 */
}

.lang-icon {
    width: 18px;
    height: 18px;
    /*background-color: red;*/
    flex-shrink: 0;
}

.lang-icon img {
    height: 18px;
    width: 18px;
}

.selected-lang {
    flex-grow: 1;
    text-align: center; /* 文字居中 */
}

.language-select {
    /* 隐藏原生select但保留功能 */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    width: 100%;
    z-index: 2;
    cursor: pointer;
}

/* 自定义下拉箭头 */
.language-selector::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid white;
    pointer-events: none;
    z-index: 1;
}

/* 下拉选项样式优化 */
.language-select option {
    background-color: white;
    color: black;
    padding: 6px 0;
    width: 120px; /* 与主体相同的固定宽度 */
    text-align: center; /* 文字居中 */
}

/* 鼠标划过选项时的颜色与顶部主体颜色一致 */
.language-select option:checked,
.language-select option:hover {
    background-color: #00bfa5;
    color: white;
}

/* 第二行：导航栏样式 */
.nav-bar {
    background-color: white;
    border-bottom: 1px solid #e5e5e5;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    box-shadow: 0px 1px 4px 0px rgba(59,61,61,0.2);

}

.nav-content {
    display: flex;
    height: 100%;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 15px;
}

.nav-item {
    position: relative;
}

.nav-item a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    padding: 6px 20px;
    font-size: 15px;
    transition: all 0.3s;
}

.nav-item.active a {
    color: white;
    border-radius: 20px;
    background-color: #0DACA7;
}

.nav-icon {
    width: 16px;
    height: 16px;
    /*background-color: red;*/
    margin-right: 8px;
}


.nav-icon img {
    width: 16px;
    height: 16px;

}

.nav-item:not(.active) a:hover {
    color: #00bfa5;
}


/* 底部整体样式 */
.footer {
    background-color: #0DACA7;
    padding: 20px 0;
    color: white;
    height: 400px;
    font-size: 14px;
    margin-top: 20px;
}

/* 内容容器，宽度 1200px 并居中 */
.footer-container {
    width: 1200px;
    margin: 0 auto;
}

/* 第一行 logo 样式 */
.footer-logo {
    width: 125px;
    height: 40px;
    margin-top: 20px;
    /*background-color: red;*/
    margin-bottom: 15px;
}

/* 第二行副导航样式 */
.footer-nav {
    display: flex;
    margin: 20px 0px;
    margin-left: -15px;
}

.footer-nav-item {
    text-decoration: none;
    color: white;
    padding: 0 15px;
}

.footer-nav-item:not(:first-child) {
    border-left: 1px solid white;
}

/* 第三行文字样式，支持自动换行 */
.footer-text {
    margin-bottom: 5px;
    line-height: 1.6;
    word-break: break-word;
}

/* 第四、五行联系方式样式 */
.footer-contact {
    margin-bottom: 5px;
}

/* 第六、七行友情链接样式 */
.footer-friend-link {
    display: flex;
    flex-wrap: wrap;
}

.friend-link-item {
    text-decoration: none;
    color: white;
    margin-right: 15px;
    margin-bottom: 5px;
    white-space: nowrap; /* 确保友情链接不换行 */
}
