/* ============================================
   Header / 顶部导航样式
   ============================================ */

/* Header - 3D立体效果 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    /* 多层阴影营造立体感 */
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.05),
        0 8px 16px rgba(0,0,0,0.08),
        0 16px 32px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 42px;
    width: auto;
    display: block;
}

/* 导航 */
.nav {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
    height: 44px;
}

.nav-list > li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    height: 44px;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    padding: 0 14px;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(232, 90, 36, 0.06);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* 下拉菜单 */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 44px;
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: var(--white);
    border-radius: 12px;
    padding: 8px 0;
    list-style: none;
    box-shadow: 
        0 4px 6px rgba(0,0,0,0.05),
        0 10px 20px rgba(0,0,0,0.1),
        0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--gray-100);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

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

.dropdown-link {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.dropdown-link:hover {
    color: var(--primary);
    background: rgba(232, 90, 36, 0.06);
}

/* 下拉菜单小三角 */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: var(--white);
    border-left: 1px solid var(--gray-100);
    border-top: 1px solid var(--gray-100);
    transform: rotate(45deg);
}

/* 右侧区域 */
.header-right {
    display: none;
    align-items: center;
    gap: 12px;
    height: 44px;
}

/* 搜索按钮立体效果 */
.search-btn {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.04),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

.search-btn:hover {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 
        0 4px 8px rgba(232, 90, 36, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transform: translateY(-1px);
}

.search-btn svg {
    width: 18px;
    height: 18px;
    color: var(--gray-600);
    transition: color 0.2s;
}

.search-btn:hover svg {
    color: var(--primary);
}

/* 邮箱链接立体效果 */
.email-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 500;
    height: 44px;
    padding: 0 16px;
    background: var(--gray-50);
    border-radius: 10px;
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.04),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

.email-link:hover {
    color: var(--primary);
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 
        0 4px 8px rgba(232, 90, 36, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transform: translateY(-1px);
}

.email-link svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

/* 汉堡菜单按钮 */
.mobile-menu-btn {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.mobile-menu-btn:hover {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 8px rgba(232, 90, 36, 0.15);
}

.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
    color: var(--gray-600);
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    padding: 16px 24px;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-list li {
    margin-bottom: 4px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-link:hover {
    color: var(--primary);
}

/* Header 响应式 */
@media (min-width: 768px) {
    .nav {
        display: block;
    }

    .header-right {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }
}
