header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 26px 0;
    background: transparent;
    transition: background-color 0.3s ease;
}

/* 滚动时的样式 */
header.scrolled {
    background: #f8f3ec;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mainHead {
    width: 1400px;
    margin: 0 auto;
    display: flex;
    color: #000000;

}

header .mainHead .logoImg {
    width: 153px;
    height: 48px;
    object-fit: cover;
    margin-right: 60px;
}

.mainHead .menus .line {
    color: #666666;
    margin-top: -6px;
}

.mainHead li {
    position: relative;
    margin: 0 14px;
}

.mainHead li a {
    text-align: center;
    color: #000000;
    font-size: 21px;
    font-family: 'XuandongKaishu', Arial, sans-serif;
}

.mainHead li a .lineWrap {
    display: flex;
    justify-content: center;
    margin-top: 9px;
}

.mainHead li a .lineWrap .menuLine {
    background: transparent;
    width: 27px;
    height: 4px;
    border-radius: 2px;
}

.mainHead li a.active .lineWrap .menuLine {
    background: #9E5B20;
}

.mainHead li a:hover {
    color: #9E5B20;
}

.mainHead li a.active {
    color: #9E5B20;
}

.mainHead li:hover .childMenuList {
    display: block;
}

.mainHead li .childMenuList {
    display: none;
    position: absolute;
    flex-direction: column;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 128px;
    flex-shrink: 0;
    width: fit-content;
    border-radius: 8px;
    box-shadow: 0px 10px 12px 0px rgba(0, 0, 0, 0.25);
    background: #fff;
    backdrop-filter: blur(50px);
    box-sizing: border-box;
    z-index: 1;
    border: none;
    padding: 10px 0;
}

.mainHead li .childMenuList li {
    padding: 8px 8px 8px 16px;
    margin: 0;
    text-align: center;
}

.mainHead li .childMenuList li:hover {
    background: #FCF4ED;
}

.mainHead li .childMenuList li a {
    font-size: 20px;
}

.mainHead .menus {
    display: flex;
    align-items: center;
}

.headerI8n {
    position: absolute;
    right: 40px;
    top: 24px;
    display: flex;
    align-items: center;
}

.headerI8n .wzaBtn {
    background: #9E5B20;
    border-radius: 16px;
    border: 2px solid rgba(197, 122, 79, 0.5);
    padding: 5px 12px;
    margin-right: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.headerI8n .wzaBtn .wzaBtnImg {
    width: 16px;
    height: 16px;
    object-fit: cover;
}

.headerI8n .wzaBtn span {
    font-family: AlibabaPuHuiTi_3_65_Medium;
    font-size: 16px;
    color: #FFFFFF;
}

/* 无障碍模式样式 */
.accessibility-mode {
    font-size: 18px !important;
    line-height: 1.8 !important;
}

.accessibility-mode h1,
.accessibility-mode h2,
.accessibility-mode h3,
.accessibility-mode h4,
.accessibility-mode h5,
.accessibility-mode h6 {
    font-size: 1.5em !important;
    font-weight: bold !important;
}

.accessibility-mode a {
    text-decoration: underline !important;
    color: #0066cc !important;
}

.accessibility-mode button,
.accessibility-mode .btn {
    border: 2px solid #000 !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
}

/* 语言下拉选择器样式 */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-trigger {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #d4a574;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    justify-content: space-between;
}

.language-trigger:hover {
    background: #f8f3ec;
}

.current-language {
    font-size: 14px;
    color: #333;
    font-family: 'AlibabaPuHuiTi-3-55-Regular', Arial, sans-serif;
}

.dropdown-arrow {
    font-size: 10px;
    color: #d4a574;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.language-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d4a574;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.language-dropdown.active .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-menu li {
    margin: 0;
    padding: 0;
}

.language-option {
    display: block;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-family: 'AlibabaPuHuiTi-3-55-Regular', Arial, sans-serif;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: #f8f3ec;
    color: #d4a574;
}

.language-option.active {
    background: #f8f3ec;
    color: #d4a574;
}

/* 响应式处理 */
@media (max-width: 1600px) {
    .headerI8n {
        right: 20px;
        top: 22px;
        transform: scale(0.8);
    }
}

@media screen and (max-width: 1400px) {
    .mainHead {
        transform: scale(0.75);
    }

}

/* 确保header在所有设备上都能正确显示 */
@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }

    .mainHead {
        width: 100%;
        padding: 0 20px;
        transform: scale(0.9);
    }

    .mainHead .logoImg {
        margin-right: 20px;
    }

    .language-trigger {
        padding: 6px 10px;
        min-width: 70px;
    }

    .current-language {
        font-size: 12px;
    }

    .dropdown-arrow {
        font-size: 8px;
    }

    .language-option {
        padding: 8px 10px;
        font-size: 12px;
    }
}

.headerI8n .i8nImg {
    width: 24px;
    height: 24px;
    display: block;
    cursor: pointer;
    object-fit: cover;
}
/* 隐藏全局滚动条 - Webkit浏览器 */
::-webkit-scrollbar {
    display: none;
}

/* 隐藏全局滚动条 - Firefox和IE */
html {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
