/* 统一头部导航样式 */
.unified-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 10px;
    left: 1%;
    right: 1%;
    z-index: 1000;
    height: 70px;
    border-radius: 8px;
}

.unified-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.unified-nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.unified-nav-center {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
    margin-right: 20px;
}

.unified-nav-right {
    display: flex;
    align-items: center;
}

.unified-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.unified-logo img {
    height: 45px;
    width: auto;
    max-width: 180px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.unified-logo:hover img {
    transform: scale(1.05);
}

.unified-nav-menu {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.unified-nav-menu li {
    list-style: none;
    display: flex;
    align-items: center;
}

.unified-nav-menu a {
    text-decoration: none;
    color: #666;
    font-size: 15px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 70px;
    line-height: 70px;
}

.unified-nav-menu a:hover {
    color: #1890ff;
}

.unified-mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.unified-search-icon-btn {
    font-size: 20px;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px 15px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    height: 70px;
}

.unified-search-icon-btn:hover {
    color: #1890ff;
}

/* 移动端侧边栏 */
.unified-mobile-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: #fff;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 1001;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.unified-mobile-sidebar::-webkit-scrollbar {
    display: none;
}

.unified-mobile-sidebar.show {
    transform: translateX(0);
}

.unified-mobile-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unified-mobile-sidebar-close {
    font-size: 24px;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
}

.unified-sidebar-menu {
    padding: 10px 0;
}

.unified-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.unified-sidebar-menu a:hover {
    background: #f0f5ff;
    color: #1890ff;
}

.unified-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.unified-sidebar-overlay.show {
    display: flex;
}

/* 搜索弹窗样式 */
.unified-search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    align-items: center;
    justify-content: center;
}

.unified-search-modal.show {
    display: flex;
}

/* 页面内容上边距 */
body.has-unified-header {
    padding-top: 70px;
}

@media (max-width: 768px) {
    .unified-header {
        top: 8px;
        left: 2%;
        right: 2%;
        height: 60px;
        border-radius: 8px;
    }

    .unified-nav-container {
        padding: 0 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    .unified-nav-center {
        display: none;
    }

    .unified-nav-menu {
        display: none;
    }

    .unified-mobile-menu-btn {
        display: flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .unified-nav-left {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .unified-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .unified-logo img {
        height: 42px;
        max-width: 200px;
    }

    .unified-nav-right {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .unified-search-icon-btn {
        display: flex !important;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        padding: 0;
        font-size: 20px;
    }
}

/* 更小屏幕优化 */
@media (max-width: 480px) {
    .unified-logo img {
        height: 38px;
        max-width: 180px;
    }
}

@media (max-width: 360px) {
    .unified-logo img {
        height: 35px;
        max-width: 160px;
    }
}