* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    color: #333;
    background-color: #f8f9fa;
}

.header {
    width: 100%;
    background-color: #1a5fb4;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.header .header-container .main-bar {
    height: 80px;
    background-color: #1a5fb4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.header .header-container .main-bar .logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.header .header-container .main-bar .logo-section:hover {
    cursor: pointer;
}

.header .header-container .main-bar .logo-section .logo {
    width: 250px;
    height: auto;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #1a5fb4;
    font-size: 22px;
    font-weight: bold;
}

.header .header-container .main-bar .logo-section .logo img {
    width: 70%;
    height: auto;
}

.header .header-container .main-bar .search-section {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
    position: relative;
}

.header .header-container .main-bar .search-section .search-container {
    position: relative;
    width: 100%;
}

.header .header-container .main-bar .search-section .search-container .search-input {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 21px;
    padding: 0 50px 0 20px;
    font-size: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .header-container .main-bar .search-section .search-container .search-input:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.header .header-container .main-bar .search-section .search-container .search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a5fb4;
    font-size: 16px;
    cursor: pointer;
}

.header .header-container .main-bar .language-switcher {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.2s;
    position: relative;
    min-width: 120px;
    z-index: 1002;
}

.header .header-container .main-bar .language-switcher:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header .language-switcher .current-language {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.header .language-switcher .current-language .language-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.header .language-switcher .current-language i.fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s;
}

.header .language-switcher .language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border-radius: 4px;
    list-style: none;
    padding: 8px 0;
    min-width: 120px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1003;
}

.header .language-switcher:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 旋转下拉箭头 */
.header .language-switcher:hover .current-language i.fa-chevron-down {
    transform: rotate(180deg);
}

/* 下拉菜单项样式 */
.header .language-dropdown li {
    padding: 0;
    margin: 0;
}

.header .language-dropdown .language-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    transition: background-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.header .language-dropdown .language-item:hover {
    background-color: rgba(26, 95, 180, 0.5);
    color: #fff;
}


/* 导航栏样式 */
.header .nav-bar {
    height: 50px;
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .boxShadow {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .nav-bar .nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.header .nav-bar .nav-container .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    gap: 40px;
    width: 100%;
    height: 100%;
}


.header .nav-bar .nav-container .nav-links li {
    height: 100%;
    display: flex;
    align-items: center;
    margin: 0 20px;
    position: relative;
}

.header .nav-bar .nav-container .nav-links li a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 15px 0;
    position: relative;
    transition: color 0.2s;
    height: 100%;
    display: flex;
    align-items: center;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle i.fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 10px 0;
    margin-top: 1px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.header .nav-bar .nav-container .nav-links .dropdown .dropdown-menu {
    z-index: 1005;
}

.header .header-container .main-bar .language-switcher .language-dropdown {
    z-index: 1006;
}

.header .header-container .main-bar .language-switcher .flag-icon{
    width: 25px;
    height: auto;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0 !important;
    height: auto !important;
}

.dropdown-menu li a {
    padding: 12px 20px !important;
    font-size: 16px !important;
    width: 100%;
    justify-content: flex-start;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: #f0f7ff;
    color: #1a5fb4 !important;
}

.dropdown-menu li a::after {
    display: none !important;
}

.header .nav-bar .nav-container .nav-links li a:hover {
    color: #1a5fb4;
}

.header .nav-bar .nav-container .nav-links li a.active {
    color: #1a5fb4;
}

.header .nav-bar .nav-container .nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: #1a5fb4;
    left: 0;
    bottom: 0;
    transition: width 0.3s;
}

.header .nav-bar .nav-container .nav-links li a:hover::after,
.header .nav-bar .nav-container .nav-links li a.active::after {
    width: 100%;
}



.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    opacity: 0;
    visibility: hidden;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1a5fb4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;
    outline: none;
    border: none;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top:hover {
    background-color: #3498db;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top i {
    font-size: 20px;
}

.visually-hidden{
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}