@charset "utf-8";

/* Header 独立样式 - 不受其他 CSS 影响 */

/* 重置样式 */
.site-header,
.site-header *,
.site-header *:before,
.site-header *:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 主容器 */
.site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 9999;
    width: 100%;
    min-width: 1360px;
    min-height: 100px;
    padding: 30px 0 0;
    transition: all 0.3s ease;
    background-color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.site-header__container {
    width: 1360px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.site-header__container::after {
    content: "";
    display: table;
    clear: both;
}

/* Logo 区域 */
.site-header__logo {
    width: 180px;
    height: 39px;
    flex-shrink: 0;
}

.site-header__logo-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.site-header__logo-img {
    position: absolute;
    left: 0;
    top: 0;
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.site-header__logo-link:hover .site-header__logo-img {
    opacity: 0.8;
}

/* 导航菜单区域 */
.site-header__nav {
    flex: 1;
    margin-left: 60px;
    margin-top: 7px;
}

.site-header__nav-list {
    list-style: none;
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.site-header__nav-item {
    position: relative;
    padding: 0 20px 34px;
    list-style: none;
}

.site-header__nav-link {
    color: #333333;
    font-size: 14px;
    font-weight: bold;
    line-height: 14px;
    padding: 7px 0;
    border-bottom: 1px solid transparent;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.site-header__nav-item:hover > .site-header__nav-link,
.site-header__nav-item.active > .site-header__nav-link {
    color: #D2A36C;
    border-bottom-color: #D2A36C;
}

/* 右侧工具栏 */
.site-header__toolbar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 7px;
}

/* 语言切换 */
.site-header__lang {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 14px;
}

.site-header__lang-link {
    font-size: 14px;
    font-weight: bold;
    color: #333333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-header__lang-link:hover,
.site-header__lang-link.active {
    color: #D2A36C;
    text-decoration: underline;
}

.site-header__lang-separator {
    font-size: 14px;
    font-weight: bold;
    color: #333333;
}

/* 搜索按钮 */
.site-header__search {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.site-header__search-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.site-header__search-icon {
    position: absolute;
    left: 0;
    top: 0;
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.site-header__search-link:hover .site-header__search-icon {
    transform: scale(1.1);
}

/* 下拉菜单通用样式 */
.site-header__dropdown {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    background: rgba(15, 36, 78, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: 0;
    padding: 30px;
    min-width: 220px;
    z-index: 1000;
    display: none;
    list-style: none;
}

/* 向上的三角形箭头 */
.site-header__dropdown::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 20px solid rgba(15, 36, 78, 0.9);
}

.site-header__nav-item:hover .site-header__dropdown {
    display: block;
}

/* 两层菜单样式 - 单列展示 */
.site-header__dropdown--two-level {
    display: none;
    padding: 30px;
    min-width: 180px;
}

.site-header__nav-item:hover .site-header__dropdown--two-level {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.site-header__dropdown--two-level > li {
    list-style: none;
}

.site-header__dropdown--two-level > li:last-child {
    border-bottom: none;
}

.site-header__dropdown--two-level > li > a {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    padding: 15px 0;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: none;
}

.site-header__dropdown--two-level > li > a:hover,
.site-header__dropdown--two-level > li.active > a {
    color: #D2A36C;
}

/* 三层菜单样式 - 上下布局展示所有菜单 */
.site-header__dropdown--three-level {
    display: none;
    padding: 0;
    min-width: 300px;
}

.site-header__nav-item:hover .site-header__dropdown--three-level {
    display: block;
}

/* 二级菜单分组（上部） */
.site-header__submenu-top {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 900px;
    gap: 40px;
}

.site-header__submenu-group {
    list-style: none;
    flex: 1;
    padding: 0 40px 20px;
}

/* 二级菜单标题 */
.site-header__submenu-group > .site-header__submenu-title {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: bold;
    line-height: 20px;
    padding: 20px 0;
    margin: 0px 30px 14px 30px;
    display: block;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: none;
    border-bottom: 1px solid #D2A36C;
}

.site-header__submenu-group > .site-header__submenu-title:hover,
.site-header__submenu-group > .site-header__submenu-title.active-parent {
    color: #D2A36C;
}

/* 三级菜单列表 */
.site-header__submenu-panel {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0;
    margin: 0;
}

.site-header__submenu-panel > li {
    list-style: none;
}

.site-header__submenu-panel > li:last-child {
    border-bottom: none;
}

.site-header__submenu-panel > li > a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    padding: 12px 30px;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: none;
}

.site-header__submenu-panel > li > a:hover,
.site-header__submenu-panel > li.active > a {
    color: #D2A36C;
}

/* 最后一个分组底部无边框 */
.site-header__submenu-group:last-child .site-header__submenu-panel > li:last-child {
    border-bottom: none;
}


/* 滚动时的样式调整 */
.site-header--scrolled {
    padding: 30px 0 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.site-header--scrolled .site-header__nav-item {
    /* padding-bottom: 20px; */
}

/* 动画效果 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.site-header__nav-item:hover .site-header__dropdown {
    animation: slideDown 0.3s ease;
}

/* 清除浮动 */
.site-header__clearfix::after {
    content: "";
    display: table;
    clear: both;
}

