/* ========================================
   Header 公共样式
   根据 Figma 设计稿 (19_2) 精确实现
   ======================================== */

/* Header 容器 - 使用固定1920px宽度，由zoom统一缩放 */
.header {
    width: 1920px;
    max-width: 1920px;
    min-width: 1920px;
    height: 110px;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    background: white;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid black;
    
    /* 使用flexbox布局，避免固定像素定位 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 向下滚动时隐藏Header */
.header.hide {
    transform: translate(-50%, -100%);
}

/* 滚动到顶部时显示Header */
.header.show {
    transform: translateY(0);
}

/* Logo - 使用flexbox，不再绝对定位 */
.header-logo {
    width: 120px;
    height: 88px;
    flex-shrink: 0; /* 不缩小 */
}

.header-logo img {
    width: 120px;
    height: 88px;
    display: block;
}

/* Header 右侧容器 - 包含导航和语言切换 */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

/* 语言切换 - 使用flexbox */
.header-lang {
    font-size: 16px;
    font-family: 'HarmonyOS Sans SC', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-lang .lang-zh {
    color: #9E9E9E;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-lang .lang-en {
    color: black;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-lang .lang-zh:hover,
.header-lang .lang-en:hover {
    opacity: 0.7;
}

/* 语言分割线 - 使用文字竖线 */
.header-lang-divider {
    color: black;
    font-size: 16px;
    line-height: 1;
}

/* 导航栏 - 使用flexbox，固定间距 */
.header-nav {
    text-align: right;
    white-space: nowrap;
    display: flex;
    gap: 80px; /* 固定间距80px，由zoom统一缩放 */
    align-items: center;
}

.header-nav a {
    font-size: 24px;
    color: black;
    text-decoration: none;
    font-family: 'HarmonyOS Sans SC', sans-serif;
    font-weight: 400;
    position: relative;
    transition: opacity 0.3s ease;
    display: inline;
}

.header-nav a:hover {
    opacity: 0.7;
}

/* 导航激活状态下划线 */
.header-nav a.active {
    font-weight: 500;
    border-bottom: 3px solid #000000;
    padding-bottom: 2px;
}

/* 移动端汉堡菜单按钮（默认隐藏） */
.mobile-menu-btn {
    display: none;
}
