/* ===== 现代化Header样式设计 ===== */

/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 优雅Header主体 ===== */
.elegant-header {
    position: static;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* ===== 顶部联系信息栏 ===== */
.header-topbar {
    background: linear-gradient(135deg, #1e3c72 0%, #1e3c72 100%);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-topbar .contact-info {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header-topbar .contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.header-topbar .contact-item:hover {
    opacity: 1;
}

.header-topbar .contact-item i {
    font-size: 12px;
    color: #64b5f6;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.lang-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: #64b5f6;
}

.lang-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-divider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
}

/* ===== 主要导航区域 ===== */
.header-navbar {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* ===== 品牌Logo区域 ===== */
.brand-container {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.brand-link:hover {
    transform: translateY(-1px);
}

.logo-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.brand-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #1e3c72;
    margin: 0;
    letter-spacing: 1px;
    white-space: nowrap;
}

.brand-subtitle {
    display: flex;
    flex-direction: column;
    gap: 1px;
}



.subtitle-en {
    font-size: 13px;
    color: #888;
    font-weight: 400;
    font-style: italic;
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.2;
    letter-spacing: 0.8px;
    text-transform: lowercase;
    white-space: nowrap;
}

/* ===== 主导航菜单 ===== */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
}

/* ===== 右侧操作区域 ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.action-btn.primary {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.action-btn i {
    font-size: 16px;
}

/* ===== 移动端菜单按钮 ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 4px;
}

.menu-line {
    width: 24px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover .menu-line {
    background: #667eea;
}

/* ===== 移动端导航覆盖层 ===== */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-overlay.active .mobile-menu-container {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.mobile-brand-name {
    font-size: 18px;
    font-weight: 700;
}

.mobile-close-btn {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.mobile-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-navigation {
    flex: 1;
    padding: 20px 0;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: #f8f9fa;
    color: #667eea;
    padding-left: 30px;
}

.mobile-contact-info {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    background: #f8f9fa;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #666;
    font-size: 14px;
}

.mobile-contact-item i {
    color: #667eea;
    width: 16px;
}

/* ===== 页面内容区域 ===== */
.main-content {
    margin-top: 0; /* header不再固定，无需预留空间 */
}

body.mobile-menu-open {
    overflow: hidden;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar-content {
        gap: 20px;
    }
    
    .brand-name {
        font-size: 20px;
    }
    

    
    .subtitle-en {
        font-size: 9px;
    }
    
    .nav-menu {
        gap: 2px;
    }
    
    .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .header-topbar {
        padding: 6px 0;
    }
    
    .header-topbar .contact-info {
        gap: 15px;
    }
    
    .header-topbar .contact-item.desktop-only {
        display: none;
    }
    
    .header-navbar {
        padding: 12px 0;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .brand-name {
        font-size: 18px;
    }
    

    
    .subtitle-en {
        font-size: 8px;
    }
    
    .action-btn span {
        display: none;
    }
    
    .action-btn {
        padding: 10px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
    
    .main-content {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header-topbar .contact-info {
        gap: 10px;
    }
    
    .header-topbar .contact-item span {
        font-size: 12px;
    }
    
    .brand-link {
        gap: 10px;
    }
    
    .logo-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .brand-logo {
        width: 35px;
        height: 35px;
    }
    
    .brand-name {
        font-size: 16px;
    }
    

    
    .subtitle-en {
        font-size: 7px;
    }
    
    .mobile-menu-container {
        width: 280px;
    }
    
    .main-content {
        margin-top: 0;
    }
}



.elegant-header {
    animation: fadeInDown 0.6s ease-out;
}

/* ===== 滚动效果 ===== */
.elegant-header.scrolled {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

.elegant-header.scrolled .header-topbar {
    padding: 4px 0;
}

.elegant-header.scrolled .header-navbar {
    padding: 10px 0;
}

/* ===== 无障碍设计 ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== 打印样式 ===== */
@media print {
    .elegant-header {
        position: static;
        box-shadow: none;
    }
    
    .header-topbar,
    .header-actions,
    .mobile-overlay {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
}