/* Header专用样式文件 */

/* ===== 新Header样式 ===== */
.modern-header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 顶部信息栏 */
.header-top {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.top-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-details {
    display: flex;
    gap: 25px;
}

.contact-details span {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.contact-details span:hover {
    opacity: 1;
}

.contact-details i {
    font-size: 12px;
    color: #3498db;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #3498db;
    font-weight: 500;
}

.lang-divider {
    color: rgba(255,255,255,0.5);
}

.lang-option {
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: color 0.3s ease;
}

.lang-option:hover {
    color: #3498db;
}

/* 主导航区域 */
.header-main {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo品牌区域 */
.brand-section {
    flex-shrink: 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: translateY(-1px);
}

.logo-symbol {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.brand-logo:hover .logo-symbol {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

.company-subtitle {
    font-size: 12px;
    color: #7f8c8d;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* 导航菜单 */
.navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.05);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    font-weight: 600;
}

/* 行动按钮 */
.header-actions {
    flex-shrink: 0;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.cta-btn i {
    font-size: 13px;
}

/* 移动端菜单按钮 */
.mobile-toggle {
    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;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 移动端导航 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    height: calc(100vh - 100%);
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    transition: all 0.3s ease;
}

.mobile-nav.active {
    display: block;
    top: 100px;
}

.mobile-nav-content {
    padding: 30px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu {
    list-style: none;
    text-align: center;
    margin-bottom: 30px;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu a:hover {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.mobile-contact {
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.mobile-contact p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Header响应式设计 */
@media (max-width: 768px) {
    .header-top {
        padding: 6px 0;
    }
    
    .top-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .contact-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .header-main {
        padding: 12px 0;
    }
    
    .header-wrapper {
        gap: 15px;
    }
    
    .brand-logo {
        gap: 10px;
    }
    
    .logo-symbol {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .company-name {
        font-size: 16px;
    }
    
    .company-subtitle {
        font-size: 11px;
    }
    
    .navigation {
        display: none;
    }
    
    .header-actions {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .contact-details span {
        font-size: 12px;
    }
    
    .company-name {
        font-size: 14px;
    }
    
    .company-subtitle {
        font-size: 10px;
    }
}

/* 防止移动端导航时的body滚动 */
body.mobile-nav-open {
    overflow: hidden;
}